Packages

@prisma/sdk

4.0.0 · 28 Jun 2022Apache-2.040.1k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: Deprecated: @prisma/sdk was an internal package which doesn't follow semver and can include breaking changes without a warning. We renamed it to @prisma/internals to make it clearer. If you're using this package it would be helpful if you could help us understand where, how, and why you are using it by ginving us feedback in https://github.com/prisma/prisma/discussions/13877). Your feedback will be valuable to us in defining a better API.What to use instead

Upgrading @prisma/sdk From 0.0.100 to 2.20.0

172 releases in betweennotes for 38

Other targets from 0.0.100Newest 0.x0.0.234Latest4.0.0
  1. 0.0.100yours
  2. 134 releases
  3. 2.0.0major
  4. 25 releases
  5. 2.12.0breaking
  6. 2.12.1breaking
  7. 2.13.0breaking
  8. 1 release
  9. 2.14.0breaking
  10. 2.15.0breaking
  11. 2 releases
  12. 2.17.0breaking
  13. 2 releases
  14. 2.20.0target
  15. 30 pre
28+
changes to make
1
advisory fixed
886+
new
34+
fixes

Counted from 38 of 172 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.100

Release by release

  1. 2.20.0

    Security fix30 Mar 202119 new
  2. 2.19.0

    16 Mar 202141 new · 1 fix
    • New

      After migrate dev, migrate reset and db 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 dev produces 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

  3. 2.18.0

    Deprecation2 Mar 202145 new
    • Deprecated

      We will at some point in the near future add a deprecation warning to the prisma introspect CLI command.

    • New

      In this release, we are introducing a new command prisma db pull, which behaves exactly the same as prisma introspect.

    • New

      Eventually, prisma introspect will be removed.

    • New
  4. 2.17.0

    Migration needed16 Feb 202173 new · 2 fixes
    • 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 from Float to Decimal. Alternatively, you can also run prisma introspect which will automatically remap the previous Float fields to Decimal. Note that this will also change the type that Prisma Client returns from Number to Decimal.js.

    • Breaking

      If you would like to change the column's type in the database from Decimal(65,30) to Double, leave the Prisma schema as is and create a new migration. Prisma Migrate will alter the column's type to Double. Note that if you have rows with data for the column, they will be cast from Decimal(65,30) to Double.

  5. 2.16.1nothing new or fixed in the note

  6. 2.16.0

    2 Feb 202135 new
    • 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 Unsupported in the Prisma schema

    • New

      When using the nativeTypes Preview 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 type Float to use Double instead of Decimal. These changes may lead to rounding errors due to differences in precision.

  7. 2.15.0

    Migration needed20 Jan 202147 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 FindOneModelArgs and FindManyModelArgs type definitions to improve consistency. See this issue for more details.

    • Breaking

      Following the deprecation in 2.12.0, this release we've removed findOne and moved many of the Typescript types under the Prisma namespace.

    • New

      JavaScript: prisma/seed.js

  8. 2.14.0

    Migration needed5 Jan 202127 new
16 other lines we could not sort, mostly version bumps
  • 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.19.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 seed now supports custom schema locations

    2.17.0
  • Improvements and bug fixes in Prisma Client

    2.17.0

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.