Skip to content

Releases: prisma/prisma

2.0.0-preview-13

27 Sep 10:34
Compare
Choose a tag to compare
2.0.0-preview-13 Pre-release
Pre-release

Today, we are issuing the thirteenth Preview release: 2.0.0-preview-13 (short: preview-13).

Note: Due to a German holiday, there won't be a Prisma 2 release next week. The next release 2.0.0-preview-14 will happen in two weeks, on Thursday (October 10th).

A special shoutout to @wardpeet whose PR fixed Photon's query engine on Windows 🙏

Breaking changes

This version contains a breaking change in the _Migrations table that Lift uses to store the migration history of a project.

Due to that change, you might encounter an error looking similar to this:

thread 'tokio-runtime-worker-0' panicked at 'Deserializing the database migration failed.: 
Error("missing field `original_steps`", line: 0, column: 0)', src/libcore/result.rs:999:5

If you see that error, you need to manually delete the _Migration table from your database as a workaround.

Major changes

Prisma Studio is getting more stable! We were able to fix a number of bugs that impacted the experience when using Studio. Be sure to try the new Studio version out by entering Prisma's development mode with prisma2 dev and open the provided Studio endpoint in your browser. You can report Studio bugs here.

Another improvement that comes with this release enables you to directly submit detailed error reports whenever the Lift CLI crashes. There won't be any cryptic Rust stracktraces any more in the terminal, instead you'll be shown a dialogue where you can confirm the error report submission.

Fixes and improvements per Prisma 2 repository

prisma2

photonjs

lift

studio

prisma-engine

2.0.0-preview-12

19 Sep 07:52
Compare
Choose a tag to compare
2.0.0-preview-12 Pre-release
Pre-release

Today, we are issuing the twelfth Preview release: 2.0.0-preview-12 (short: preview-12).

Breaking changes

We have adjusted the way how the Photon constructor is exported from @generated/photon, it's not a default export any more. Therefore, it now needs to be imported as follows:

import { Photon } from '@generated/photon'
// or
const { Photon } = require('@generated/photon')

The previous import syntax is not valid any more:

import Photon from '@generated/photon'
// or
const Photon = require('@generated/photon')

Major changes

In previous versions, when running prisma2 lift save against a database that didn't exist, Lift would always create this database on your PostgreSQL or MySQL database server without further notice.

This could lead to confusion, e.g. when there is a typo in the database name. In that case, Lift would create the database with the wrong name. preview-12 now includes an extra validation step that asks explicitly if the database should be created. You can skip the prompt using the new --create-db flag, e.g. prisma2 lift save --create-db.

Fixes and improvements per Prisma 2 repository

prisma2

photonjs

lift

2.0.0-preview-11

12 Sep 14:05
9ba7f2b
Compare
Choose a tag to compare
2.0.0-preview-11 Pre-release
Pre-release

Today, we are issuing the eleventh Preview release: 2.0.0-preview-11 (short: preview-11).

Major changes

For this release, we have invested a lot into fixing bugs across the stack.
Worth pointing out: We worked on the initial support for Windows. Please try it out, if you have Windows!

Try it yourself by upgrading to the latest version:

npm install -g prisma2

Please share your feedback and report any issues you might encounter!

Fixes and improvements per Prisma 2 repository

prisma2

photonjs

studio

lift

prisma-engine

2.0.0-preview-10

12 Sep 13:47
63f8a50
Compare
Choose a tag to compare
2.0.0-preview-10 Pre-release
Pre-release

Today, we are issuing the tenth Preview release: 2.0.0-preview-10 (short: preview-10).

Major changes

For this release, we have invested a lot into fixing bugs across the stack. Prisma Studio got many fixes and you should check that out.

Try it yourself by upgrading to the latest version:

npm install -g prisma2

Please share your feedback and report any issues you might encounter.

Fixes and improvements per Prisma 2 repository

prisma2

studio

prisma-engine

2.0.0-preview-9.1

30 Aug 14:02
Compare
Choose a tag to compare
2.0.0-preview-9.1 Pre-release
Pre-release

Fixes

This release includes an important fix for the init flow, which ended up hanging with specific settings when downloading an example.

We also fixed an edge-case where you could get into an empty state #467

2.0.0-preview-9

29 Aug 16:00
Compare
Choose a tag to compare
2.0.0-preview-9 Pre-release
Pre-release

Today, we are issuing the ninth Preview release: 2.0.0-preview-9 (short: preview-9).

Major changes

For this release, we have invested a lot into making the prisma2 init command a lot more approachable and user-friendly. The wizard that's launched by prisma2 init helps you to set up a new project. With this release, the wizard becomes a lot more robust and provides a clearer user flows than before.

Try it yourself by upgrading to the latest version and using the init command:

npm install -g prisma2
prisma2 init hello-world

Please share your feedback for the init flow and report any issues you might encounter.

Fixes and improvements per Prisma 2 repository

prisma2

Fixed by the new init flow

photonjs

2.0.0-preview-8

22 Aug 15:01
Compare
Choose a tag to compare
2.0.0-preview-8 Pre-release
Pre-release

Today, we are issuing the eighth Preview release: 2.0.0-preview-8 (short: preview-8).

Fixes and improvements per Prisma 2 repository

prisma2

2.0.0-preview-7

15 Aug 15:07
Compare
Choose a tag to compare
2.0.0-preview-7 Pre-release
Pre-release

Today, we are issuing the seventh Preview release: 2.0.0-preview-7 (short: preview-7).

Major changes

With this release, we've put major efforts into making Lift's migration engine more performant. Especially remote migrations benefit from significant performance improvements in this release.

Fixes and improvements per Prisma 2 repository

prisma2

lift

photonjs

2.0.0-preview-6.1

08 Aug 17:39
Compare
Choose a tag to compare
2.0.0-preview-6.1 Pre-release
Pre-release

Fixes

There was a problem in packaging the cli in the 2.0.0-preview-6 release, which broke most commands.

2.0.0-preview-6

08 Aug 16:44
5aaab0a
Compare
Choose a tag to compare
2.0.0-preview-6 Pre-release
Pre-release

Today, we are issuing the sixth Preview release: 2.0.0-preview-6 (short: preview-6).

Major changes

Next to a lot of bug fixes, this release ships with a completely overhauled core of the Prisma query engine which makes the resolution of Photon queries a lot more stable.

Unfortunately, due to the overhaul there is one known regression to be aware of: Required relations are not enforced as NOT NULL on the database level. They are enforced by the query engine though. This is intermediate until we have fixed a limitation in the query engine. You can track the progress of this issue here.

Fixes and improvements in the Prisma 2 repository

prisma2

photonjs

lift