@prisma/sdk
4.0.0 · 28 Jun 2022Apache-2.040.1k / weekRepositoryHomepagenpmAtom feed
Upgrading @prisma/sdk From 0.0.83 to 2.20.0
189 releases in betweennotes for 38
Counted from 38 of 189 release notes, and the breaking changes of 6 pre-releases on the way to a major. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking2.17.0
- Breaking2.17.0
- Breaking2.17.0
- Breaking2.17.0
- Breaking2.15.0
- Breaking2.15.0
- Breaking2.15.0
- Breaking2.14.0
- Breaking2.13.0
- Breaking2.12.1
Security
Fixes 1 advisory affecting 0.0.83
- Command injection vulnerability in @prisma/sdk in getPackedPackage functionhigh · GHSA-pxcc-hj8w-fmm7
- 2.20.0
Command injection vulnerability in @prisma/sdk in getPackedPackage function This is a low-severity issue and no users have been affected
- 2.20.0
Visual Studio Code Prisma Extension Remote Code Execution Vulnerability This is a high-severity issue and we recommend all Prisma VS Code extension users verify that they have automatically been upgraded to the latest version. There is no evidence that this vulnerability has been exploited.
Release by release
- Security
Command injection vulnerability in @prisma/sdk in getPackedPackage function This is a low-severity issue and no users have been affected
- Security
Visual Studio Code Prisma Extension Remote Code Execution Vulnerability This is a high-severity issue and we recommend all Prisma VS Code extension users verify that they have automatically been upgraded to the latest version. There is no evidence that this vulnerability has been exploited.
- New
- New
- Security
- New
After
migrate dev,migrate resetanddb push, generation is always triggered to avoid issues where the Prisma Client API is outdated due to changes in relation names which have an impact on the database schema (GitHub issue) - New
Improve UX when
migrate devproduces warnings (GitHub issue) - New
Better error when adding a new required field and the default value is Prisma-level, e.g.
uuid() - New
Small improvement where Prisma Migrate failed to create the database on DigitalOcean
- New
- Deprecated
We will at some point in the near future add a deprecation warning to the
prisma introspectCLI command. - New
In this release, we are introducing a new command
prisma db pull, which behaves exactly the same asprisma introspect. - New
Eventually,
prisma introspectwill be removed. - New
- Deprecated
- Breaking
Note that this release comes with some breaking changes.
- Breaking
Note that this release comes with a few minor breaking changes compared to previous versions.
- Breaking
If you want to continue using
Decimal(65,30), you need to change the type in the Prisma schema fromFloattoDecimal. Alternatively, you can also runprisma introspectwhich will automatically remap the previousFloatfields toDecimal. Note that this will also change the type that Prisma Client returns fromNumbertoDecimal.js. - Breaking
If you would like to change the column's type in the database from
Decimal(65,30)toDouble, leave the Prisma schema as is and create a new migration. Prisma Migrate will alter the column's type toDouble. Note that if you have rows with data for the column, they will be cast fromDecimal(65,30)toDouble.
- Breaking
2.16.1nothing new or fixed in the note
- New
Via introspection in cases when Prisma detects a database column with a type that is not yet natively supported by Prisma
- New
manually in combination with Prisma Migrate; in this case Prisma Migrate generates a SQL migration with the type that's provided as an argument to
Unsupportedin the Prisma schema - New
When using the
nativeTypesPreview feature, introspection will only render a native attribute if the column type does not map to Prisma's corresponding default type. This might remove any existing type annotations upon (re-)introspection where the default mapping is currently in place. - New
If no action is taken, the next time a new migration is created with
prisma migrate dev, Prisma Migrate will generate DDL statements to change columns of Prisma's typeFloatto useDoubleinstead ofDecimal. These changes may lead to rounding errors due to differences in precision.
- New
- Breaking
We've upgraded our RHEL base image from CentOS 6 to Amazon Linux 2. CentOS 6 reached end-of-life on November 30th, 2020. This may affect machines still running Amazon Linux 1. If you run into problems with this upgrade, please don't hesitate to reach out.
- Breaking
We've renamed the
FindOneModelArgsandFindManyModelArgstype definitions to improve consistency. See this issue for more details. - Breaking
Following the deprecation in 2.12.0, this release we've removed
findOneand moved many of the Typescript types under thePrismanamespace. - New
JavaScript:
prisma/seed.js
- Breaking
- Breaking
This release introduces a breaking change for TypeScript users.
- New
- New
- New
- Breaking
16 other lines we could not sort, mostly version bumps
- 2.19.0
Learn how top companies are addressing the challenges of data at scale
- 2.19.0
Discover how companies use Prisma to make their developers more productive
- 2.19.0
Get a better understanding of the future of data in the enterprise
- 2.17.0
Native types are now stable
- 2.17.0
Prisma Migrate now works with cloud-hosted databases (e.g. Heroku)
- 2.17.0
Soft resets for cloud-hosted environments
- 2.17.0
More improvements and bug fixes for Prisma Migrate
- 2.17.0
Improvements and changes for
prisma db push - 2.17.0
prisma db seednow supports custom schema locations - 2.17.0
Improvements and bug fixes in Prisma Client
68 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.