Prisma: 2.0.0-preview025 Release

Release date:
March 27, 2020
Previous version:
2.0.0-preview024 (released March 12, 2020)
Magnitude:
1,541 Diff Delta
Contributors:
9 total committers
Data confidence:
Commits:

66 Commits in this Release

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

Authored March 17, 2020
Authored March 19, 2020
Authored March 19, 2020
Authored March 20, 2020
Authored March 16, 2020
Authored March 16, 2020
Authored March 13, 2020
Authored March 27, 2020
Authored March 16, 2020
Authored March 24, 2020
Authored March 13, 2020
Authored March 12, 2020
Authored March 23, 2020
Authored March 17, 2020
Authored March 24, 2020
Authored March 24, 2020
Authored March 20, 2020
Authored March 25, 2020
Authored March 27, 2020
Authored March 17, 2020
Authored March 17, 2020

Top Contributors in 2.0.0-preview025

Jolg42
nikolasburk
timsuchanek
matthewmueller
steebchen
2color
pantharshit00
pimeys
prisma-bot

Directory Browser for 2.0.0-preview025

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 issuing the twenty-fifth Preview release: 2.0.0-preview025 (short: preview025).

Breaking changes

Renaming the prisma2 npm package

With this release, we're renaming the Prisma 2 CLI npm package from prisma2 to @prisma/cli. Note that you can still invoke the CLI using the prisma2 command!

To upgrade, you first should uninstall the current prisma2 version and then install the @prisma/cli package.

Local installation (recommended)

The local installation is generally preferred since it prevents conflicting versions of the same package.

# Uninstall current `prisma2` CLI (`preview024` or earlier)
npm uninstall prisma2

# Install new `prisma2` CLI via `@prisma/cli` npm package
npm install @prisma/cli --save-dev

# Invoke the CLI via `npx`
npx prisma2

Global installation

# Uninstall current `prisma2` CLI (`preview024` or earlier)
npm uninstall -g prisma2

# Install new `prisma2` CLI via `@prisma/cli` npm package
npm install -g @prisma/cli

# Invoke the CLI via `npx`
npx prisma2

Other

  • The prisma2 --version output changed
  • Virtual relation fields (aka β€œback-relation fields”) follow the same name as the model they relate to during introspection
  • The default for errorFormat in the PrismaClient constructor now is colorless

Fixes and improvements per Prisma 2 repository

prisma2

prisma-client-js

prisma-engines

migrate