Prisma: 2.10.0 Release

Release date:
October 27, 2020
Previous version:
2.9.0 (released October 13, 2020)
Magnitude:
4,195 Diff Delta
Contributors:
7 total committers
Data confidence:
Commits:

82 Commits in this Release

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

Authored October 21, 2020
Authored October 26, 2020
Authored October 21, 2020
Authored October 22, 2020
Authored October 14, 2020
Authored October 20, 2020
Authored October 27, 2020
Authored October 22, 2020
Authored October 22, 2020
Authored October 23, 2020
Authored October 15, 2020
Authored October 27, 2020
Authored October 21, 2020
Authored October 22, 2020
Authored October 26, 2020
Authored October 26, 2020
Authored October 21, 2020
Authored October 16, 2020
Authored October 14, 2020
Authored October 27, 2020

Top Contributors in 2.10.0

timsuchanek
Jolg42
williamluke4
jasonkuhrt
madebysid
renovate-bot
eemmiillyy

Directory Browser for 2.10.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.10.0 stable release πŸŽ‰

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

Major improvements

This release introduces some major new features in Preview!

Support for Microsoft SQL Server (Preview)

With this release, we're introducing support for a new database: Microsoft SQL Server πŸ₯³

You can start using your MS SQL Server databases today with introspection and query them with Prisma Client. Note that Prisma Migrate does not support MS SQL Server yet.

An MS SQL Server database is specified in your Prisma schema via the new sqlserver connector. Note that while it's in Preview, you also need to add the additional previewFeature flag microsoftSqlServer in the generator for Prisma Client:

datasource db {
  provider = "sqlserver"
}

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["microsoftSqlServer"]
}

You can find a ready-to-run example based on MS SQL Server here.

Please share your feedback on how this feature works for you. We are interested in both positive and negative feedback, so we know whether this feature is already ready for production! (If you encounter any problems, please open a new issue here).

πŸ“š Documentation: Microsoft SQL Server connector

Single-command schema changes for prototyping (Preview)

With this release, we are introducing a new command that lets you push the state of your Prisma schema file to the database without using migrations: prisma db push --preview-feature

push is the first command that's introduced under the new prisma db namespace. The prisma db namespace will be used for commands that operate directly against the database without e.g., saving or manipulating a migration history on your file system nor in the migrations table. It's therefore well-suited for prototyping and local development environments. In production environments, you'll want to be able to track and replay the changes made to your database which will be handled by the prisma migrate namespace.

The idea behind prisma db push is that you only care about the end state of your database schema, but not about how this end state is achieved.

Also note that the command runs prisma generate for you, so you're saving an extra step after having updated your Prisma schema!

Please share your feedback on how this feature works for you. We are interested in both positive and negative feedback, so we know whether this feature is already ready for production! (If you encounter any problems, please open a new issue here).

πŸ“š Documentation: db push command

Atomic number operations are now stable

In 2.6.0 we introduced case atomic number operations in Preview, in today's release we're promoting this feature to stable. This means you don't need to include the atomicNumberOperations feature flag in the Prisma Client generator any more:

generator client {
  provider        = "prisma-client-js"
- previewFeatures = ["atomicNumberOperations"]
}

πŸ“š Documentation: Atomic operations on update

Already existing preview features from previous releases

Just a quick reminder:

  • In version 2.1.0 we introduced two preview features, namely connectOrCreate and transactionApi.

In case they're useful for you, please give them a try and share your feedback! These features remain in preview in this release.

πŸŽƒ Join the first Prisma Meetup online

We are excited to bring you the first Prisma Meetup which is going to happen entirely online, so you can dial in from around the globe!

It will be streamed on Youtube this Thursday: October 29th, 2020 at 6pm (CET, Berlin) | 10am (PDT, San Francisco)

We have amazing speakers on board for our first Meetup:

β—­ Tammy Butow (Principal SRE @ Gremlin): Database Horror Stories β—­ HervΓ© Labas (VP of Product @ Prisma): The future of Prisma and its roadmap β—­ Tom Hutchinson (Head of Mobile @ Rapha): Prisma at Rapha

You can watch the event on YouTube here.

Fixes and improvements

prisma

prisma-client-js

migrate

language-tools

studio

prisma-engines