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.8 to 4.0.0

307 releases in betweennotes for 83

Other targets from 0.0.8Newest 0.x0.0.234Clears its advisory2.20.0
  1. 0.0.8yours
  2. 222 releases
  3. 2.0.0major
  4. 36 releases
  5. 2.20.0security
  6. 19 releases
  7. 3.0.1security
  8. 26 releases
  9. 4.0.0target
  10. 30 pre
57+
changes to make
1
advisory fixed
1691+
new
49+
fixes

Counted from 83 of 307 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
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking3.13.0
  • Breaking3.11.1

Security

Fixes 1 advisory affecting 0.0.8

  • Tagged Template: prisma.$queryRaw...``. This API sent a prepared statement and was safe from SQL injections.

    3.0.1
  • Function Call: prisma.$queryRaw(...). This API sent a raw query string and was not safe from SQL injections.

    3.0.1
  • $queryRaw...``: Safe from SQL injections. Sends a prepared statement and returns the resulting rows.

    3.0.1
  • $executeRaw...``: Safe from SQL injections. Sends a prepared statement and returns the result count.

    3.0.1
  • $queryRawUnsafe(...): Not safe from SQL injections. Sends the query as a string and returns the resulting rows. Useful for queries that can't be prepared, like using a variable for the table name.

    3.0.1
  • $executeRawUnsafe(...): Not safe from SQL injections. Sends the query as a string and returns the result count. Useful for queries that can't be prepared, like altering a column's data type.

    3.0.1
  • 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.

    2.20.0

Release by release

  1. 4.0.0

    Migration needed28 Jun 202260 new
    • Breaking

      ⚠️ Breaking change: If you previously configured the index properties at the database level, refer to the upgrade guide for a detailed explanation and steps to follow.

    • Breaking

      ⚠️ Breaking change: Refer to the upgrade guide for a detailed explanation and steps to follow.

    • Breaking

      ⚠️ Breaking change: Refer to our upgrade guide for detailed explanation and steps when working with default fields on composite types in MongoDB from version 4.0.0.

    • Breaking

      ⚠️ Breaking change: Refer to our upgrade path for a detailed explanation and steps to follow.

  2. 3.15.1 – 3.15.22 releases, nothing new or fixed in the notes

  3. 3.13.0

    Migration needed26 Apr 202223 new
  4. 3.12.0

    5 Apr 202270 new
    • New

      Expressive and type-safe operations for querying MongoDB embedded documents

    • New

      Thorough introspection support for using Prisma with existing MongoDB databases

    • New

      Declarative index management right from your Prisma Schema with db push

    • New

      Powerful raw query APIs to help you incrementally migrate to Prisma

  5. 3.11.1

    Migration needed24 Mar 2022
    • Breaking

      A having filter on an aggregated field will return undefined fields. This is because aggregation on undefined fields yields null, not undefined, thus matching the filter.

    • Breaking

      Filters on undefined to-many relations (e.g., the backing array of a many-to-many is undefined) will currently include those relations in the result set.

28 other lines we could not sort, mostly version bumps
  • Kevin Jernigan, MongoDB

    3.5.0
  • Greg McKeon, Cloudflare

    3.5.0
  • Jason Lengstorf, Netlify

    3.5.0
  • Sugu Sougoumarane and Taylor Barnett, PlanetScale

    3.5.0
  • Aydrian Howard, CockroachDB

    3.5.0
  • Hassan El Mghari, Vercel

    3.5.0
  • ON DELETE RESTRICT (NO ACTION on SQL Server) for required relations

    2.26.0
  • ON DELETE SET NULL for optional relations

    2.26.0
  • ON UPDATE CASCADE for all relations regardless if optional or required.

    2.26.0
  • June 29th: Workshops

    2.26.0

73 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.