Prisma: 2.22.0 Release

Release date:
May 4, 2021
Previous version:
2.21.2 (released April 15, 2021)
Magnitude:
1,491 Diff Delta
Contributors:
6 total committers
Data confidence:
Commits:

56 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored April 26, 2021
Authored April 30, 2021
Authored April 26, 2021
Authored April 19, 2021
Authored May 3, 2021
Authored April 19, 2021
Authored May 3, 2021
Authored April 29, 2021

Top Contributors in 2.22.0

Jolg42
janpio
williamluke4
renovate-bot
millsp
madebysid

Directory Browser for 2.22.0

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Today, we are excited to share the 2.22.0 stable release 🎉

🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟 

Major improvements & new features

prisma db push is now Generally Available

prisma db push enables you to update the database schema from the Prisma schema file, without generating any migrations.

This is especially useful when prototyping a new feature, iterating on the schema changes before creating migrations or generally if you are at stage of your development process, where you don't need to persist the schema change history via database migrations.

It is now promoted from Preview to General Availabilty.

You can find more info on prisma db push in the official docs.

Deprecation of array notation for provider fields

In this release, we are also entirely removing the array notation for the provider fields on datasource blocks. This has been deprecated since 2.11.0 (November 2020).

You can read more about our reasons for this deprecation here.

Prisma Client Go gets support for AND operator

We've always had OR, but this release we also added AND support:

first, err := client.User.FindFirst(
    User.Or(
        User.Email.Equals("[email protected]"),
        User.And(
            User.Name.Equals("John"),
            User.Username.Equals("johno"),
        ),
    ),
).Exec(ctx)

Learn more in our docs.

Fixes and improvements

Prisma Migrate

Prisma Client

Prisma Studio

Prisma engines

Credits

Huge thanks to @Sytten, @schiller-manuel, @mongolyy, @paularah, @Iamshankhadeep, @meeq for helping!

📺 Join us for another "What's new in Prisma" livestream

Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.

The stream takes place on Youtube on Thursday, May 06 at 5pm Berlin | 8am San Francisco.