Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade prisma from 5.1.1 to 6.0.1 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-io[bot]
Copy link

@snyk-io snyk-io bot commented Jan 5, 2025

snyk-top-banner

Snyk has created this PR to upgrade prisma from 5.1.1 to 6.0.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 2202 versions ahead of your current version.

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Uncontrolled resource consumption
SNYK-JS-BRACES-6838727
169 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-CROSSSPAWN-8303230
169 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-ZOD-5925617
169 Proof of Concept
high severity Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
169 No Known Exploit
high severity HTTP Request Smuggling
SNYK-JS-NEXT-6828456
169 No Known Exploit
high severity Denial of Service (DoS)
SNYK-JS-NEXT-7442548
169 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-POSTCSS-5926692
169 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-POSTCSS-5926692
169 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-NANOID-8492085
169 No Known Exploit
medium severity Resource Exhaustion
SNYK-JS-NEXT-6032387
169 Proof of Concept
Release notes
Package name: prisma
  • 6.0.1 - 2024-12-02

    Today we are releasing the 6.0.1 patch release to address an issue with using Prisma Client generated in a custom output path with Next.js.

    Changes

  • 6.0.1-dev.1 - 2024-12-02
  • 6.0.0 - 2024-11-28

    We’re excited to share the Prisma ORM v6 release today 🎉

    As this is a major release, it includes a few breaking changes that may affect your application. Before upgrading, we recommend that you check out our upgrade guide to understand the impact on your application.

    If you want to have an overview of what we accomplished since v5, check out our announcement blog post: Prisma 6: Better Performance, More Flexibility & Type-Safe SQL.

    🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release.

    Breaking changes

    ⚠️ This section contains a list of breaking changes. If you upgrade your application to Prisma ORM v6 without addressing these, your application is going to break! For detailed upgrade instructions, check out the upgrade guide. ⚠️ 

    Minimum supported Node.js versions

    The new minimum supported Node.js versions for Prisma ORM v6 are:

    • for Node.js 18 the minimum supported version is 18.18.0
    • for Node.js 20 the minimum supported version is 20.9.0
    • for Node.js 22 the minimum supported version is 22.11.0

    There is no official support for Node.js <18.18.0, 19, 21, 23.

    Minimum supported TypeScript version

    The new minimum supported TypeScript version for Prisma ORM v6 is: 5.1.0.

    Schema change for implicit m-n relations on PostgreSQL

    If you're using PostgreSQL and are defining implicit many-to-many relations in your Prisma schema, Prisma ORM maintains the relation table for you under the hood. This relation table has A and B columns to represent the tables of the models that are part of this relation.

    Previous versions of Prisma ORM used to create a unique index on these two columns. In Prisma v6, this unique index is changing to a primary key in order to simplify for the default replica identity behaviour.

    If you're defining implicit m-n relations in your Prisma schema, the next migration you'll create will contain ALTER TABLE statements for all the relation tables that belong to these relations.

    Full-text search on PostgreSQL

    The fullTextSearch Preview feature is promoted to General Availability only for MySQL. This means that if you're using PostgreSQL and currently make use of this Preview feature, you now need to use the new fullTextSearchPostgres Preview feature.

    Usage of Buffer

    Prisma v6 replaces the usage of Buffer with Uint8Array to represent fields of type Bytes. Make sure to replace all your occurrences of the Buffer type with the new Uint8Array.

    Removed NotFoundError

    In Prisma v6, we removed the NotFoundError in favor of PrismaClientKnownRequestError with error code P2025 in findUniqueOrThrow() and findFirstOrThrow(). If you've relied on catching NotFoundError instances in your code, you need to adjust the code accordingly.

    New keywords that can't be used as model names: async, await, using

    With this release, you can't use async, await and using as model names any more.


    ⚠️ For detailed upgrade instructions, check out the upgrade guide. ⚠️ 

    Preview features promoted to General Availability

    In this release, we are promoting a number of Preview features to General Availability.

    fullTextIndex

    If you use the full-text index feature in your app, you can now remove fullTextIndex from the previewFeatures in your Prisma schema:

    generator client {
      provider        = "prisma-client-js"
    - previewFeatures = ["fullTextIndex"]
    }
    

    fullTextSearch

    If you use the full-text search feature with MySQL in your app, you can now remove fullTextSearch from the previewFeatures in your Prisma schema:

    generator client {
      provider        = "prisma-client-js"
    - previewFeatures = ["fullTextSearch"]
    }
    

    If you are using it with PostgreSQL, you need to update the name of the feature flag to fullTextSearchPostgres:

    generator client {  
      provider        = "prisma-client-js"
    - previewFeatures = ["fullTextSearch"]  
    + previewFeatures = ["fullTextSearchPostgres"]
    }

    New features

    We are also releasing new features with this release:

    Company news

    🚀 Prisma Postgres is free during Early Access

    In case you missed it: We recently launched Prisma Postgres, a serverless database with zero cold starts, a generous free tier, connection pooling, real-time events, and a lot more! It’s entirely free during the Early Access phase, try it now!

    ✨ Let us know what you think of Prisma ORM

    We're always trying to improve! If you've recently used Prisma ORM, we'd appreciate hearing your thoughts about your experience via this 2min survey.

  • 5.23.0-integration-otel-peer-deps.1 - 2024-11-07
  • 5.23.0-integration-engines-5-23-0-8-integration-include-field-native-type-data-to-dmmf-f616ccc38c3d791e452ebd52f830a7fad0161650.2 - 2024-11-15
  • 5.23.0-integration-engines-5-23-0-8-integration-include-field-native-type-data-to-dmmf-f616ccc38c3d791e452ebd52f830a7fad0161650.1 - 2024-11-15
  • 5.23.0-integration-engines-5-23-0-6-integration-enum-mapped-values-cc1d5ee45ff9a116165edca8ab47690e5133baf0.2 - 2024-11-14
  • 5.23.0-integration-engines-5-23-0-6-integration-enum-mapped-values-cc1d5ee45ff9a116165edca8ab47690e5133baf0.1 - 2024-11-14
  • 5.23.0-integration-engines-5-23-0-26-integration-enum-mapped-values-caa24ef936c3d4510b1fec91d88f94a5d6df0cdc.2 - 2024-11-28
  • 5.23.0-integration-engines-5-23-0-26-integration-enum-mapped-values-caa24ef936c3d4510b1fec91d88f94a5d6df0cdc.1 - 2024-11-28
  • 5.23.0-integration-engines-5-23-0-24-integration-enum-mapped-values-3481347682d702270b0c3c9e3d557e210154a15a.2 - 2024-11-28
  • 5.23.0-integration-engines-5-23-0-24-integration-enum-mapped-values-3481347682d702270b0c3c9e3d557e210154a15a.1 - 2024-11-28
  • 5.23.0-integration-engines-5-23-0-23-implicit-m2m-id-6a7820e9be60378b1fa68bf5922e06de81baca34.1 - 2024-11-28
  • 5.23.0-integration-engines-5-23-0-22-integration-enum-mapped-values-89f945da93fef3a624a4ebfff5ef973e7f2fc01d.2 - 2024-11-27
  • 5.23.0-integration-engines-5-23-0-22-integration-enum-mapped-values-89f945da93fef3a624a4ebfff5ef973e7f2fc01d.1 - 2024-11-27
  • 5.23.0-integration-engines-5-23-0-20-integration-enum-mapped-values-5951ba0974e3e23a86bf5e9ff7eb9c5dd7519e23.2 - 2024-11-27
  • 5.23.0-integration-engines-5-23-0-20-integration-enum-mapped-values-5951ba0974e3e23a86bf5e9ff7eb9c5dd7519e23.1 - 2024-11-27
  • 5.23.0-integration-engines-5-23-0-2-add-schema-to-dmmf-6b2b29378ec9ecb0902a9ae4fa6302e9b16baf18.1 - 2024-11-07
  • 5.23.0-integration-engines-5-23-0-19-integration-enum-mapped-values-3a4cdab80bbc3114eec7f32b9d272b3d033acfd1.2 - 2024-11-27
  • 5.23.0-integration-engines-5-23-0-19-integration-enum-mapped-values-3a4cdab80bbc3114eec7f32b9d272b3d033acfd1.1 - 2024-11-27
  • 5.23.0-integration-engines-5-23-0-17-implicit-m2m-id-701e194f51e12fda9d113117e2c8300f554160d3.1 - 2024-11-27
  • 5.23.0-integration-engines-5-23-0-16-implicit-m2m-id-42e66f7165718331029b4c93e767c0cc7241884d.1 - 2024-11-26
  • 5.23.0-integration-engines-5-23-0-1-add-schema-to-dmmf-69b6e9d3bee92eeb76fcfa1ffb0a5b65cd7027b4.1 - 2024-11-07
  • 5.23.0-dev.33 - 2024-11-28
  • 5.23.0-dev.32 - 2024-11-28
  • 5.23.0-dev.31 - 2024-11-28
  • 5.23.0-dev.30 - 2024-11-28
  • 5.23.0-dev.29 - 2024-11-27
  • 5.23.0-dev.28 - 2024-11-27
  • 5.23.0-dev.27 - 2024-11-27
  • 5.23.0-dev.26 - 2024-11-27
  • 5.23.0-dev.25 - 2024-11-27
  • 5.23.0-dev.24 - 2024-11-27
  • 5.23.0-dev.23 - 2024-11-27
  • 5.23.0-dev.22 - 2024-11-27
  • 5.23.0-dev.21 - 2024-11-27
  • 5.23.0-dev.20 - 2024-11-27
  • 5.23.0-dev.19 - 2024-11-27
  • 5.23.0-dev.18 - 2024-11-26
  • 5.23.0-dev.17 - 2024-11-25
  • 5.23.0-dev.16 - 2024-11-22
  • 5.23.0-dev.15 - 2024-11-21
  • 5.23.0-dev.14 - 2024-11-21
  • 5.23.0-dev.13 - 2024-11-21
  • 5.23.0-dev.12 - 2024-11-20
  • 5.23.0-dev.11 - 2024-11-19
  • 5.23.0-dev.10 - 2024-11-15
  • 5.23.0-dev.9 - 2024-11-15
  • 5.23.0-dev.8 - 2024-11-15
  • 5.23.0-dev.7 - 2024-11-13
  • 5.23.0-dev.6 - 2024-11-13
  • 5.23.0-dev.5 - 2024-11-12
  • 5.23.0-dev.4 - 2024-11-11
  • 5.23.0-dev.3 - 2024-11-06
  • 5.23.0-dev.2 - 2024-11-06
  • 5.23.0-dev.1 - 2024-11-05
  • 5.22.0 - 2024-11-05

    Today, we are excited to share the 5.22.0 stable release 🎉

    🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release.

    Highlights

    Further Tracing Improvements

    In our ongoing effort to stabilize the tracing Preview feature, we’ve made our spans compliant with OpenTelemetry Semantic Conventions for Database Client Calls. This should lead to better compatibility with tools such as DataDog and Sentry.

    We’ve also included numerous bug fixes that should make this Preview feature easier to work with.

    Metrics bug fix

    Occasionally, connection pool metrics would become negative or grow unbounded. In this release, connection pool metrics should stay consistent.

    Connection Pool Timeout fix

    In a specific case, there could be issues where fetching a new connection from the connection pool would time out, regardless of the state of the application and connection pool. If you have experience connection pool issues accessing a PostgreSQL database with TLS encryption in a resource-constrained environment (such as Function-as-a-Service offerings or very small VPS) this should resolve those issues.

    Special thanks to @ youxq for their pull request and help resolving this issue!

    Join us

    Looking to make an impact on Prisma in a big way? We're hiring!

    Learn more on our careers page: https://www.prisma.io/careers

    Fixes and improvements

    Prisma Migrate

    Prisma

    Credits

    Huge thanks to @ tmm1, @ Takur0, @ hinaloe, @ andyjy, and @ youxq for helping!

  • 5.22.0-integration-remove-custom-yarn-logic.5 - 2024-10-31
  • 5.22.0-integration-remove-custom-yarn-logic.4 - 2024-10-30
  • 5.22.0-integration-remove-custom-yarn-logic.3 - 2024-10-24
  • 5.22.0-integration-remove-custom-yarn-logic.2 - 2024-10-24
  • 5.22.0-integration-remove-custom-yarn-logic.1 - 2024-10-18
  • 5.22.0-integration-itx-refactor.8 - 2024-11-05
  • 5.22.0-integration-itx-refactor.7 - 2024-11-05
  • 5.22.0-integration-itx-refactor.6 - 2024-11-05
  • 5.22.0-integration-itx-refactor.5 - 2024-11-05
  • 5.22.0-integration-itx-refactor.4 - 2024-11-05
  • 5.22.0-integration-itx-refactor.3 - 2024-11-04
  • 5.22.0-integration-itx-refactor.2 - 2024-10-24
  • 5.22.0-integration-itx-refactor.1 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-9-integration-itx-refactor-5f90ddeb9d0a90f8ebeb1d039b942bb1f2d03f86.2 - 2024-10-18
  • 5.22.0-integration-engines-5-22-0-9-integration-itx-refactor-5f90ddeb9d0a90f8ebeb1d039b942bb1f2d03f86.1 - 2024-10-18
  • 5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.2 - 2024-10-18
  • 5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.1 - 2024-10-18
  • 5.22.0-integration-engines-5-22-0-6-integration-itx-refactor-ba57ba52278616e9fd4ab191177b33b503913ff0.2 - 2024-10-17
  • 5.22.0-integration-engines-5-22-0-6-integration-itx-refactor-ba57ba52278616e9fd4ab191177b33b503913ff0.1 - 2024-10-17
  • 5.22.0-integration-engines-5-22-0-5-integration-itx-refactor-66947c4986688f81a10436a5c2a70b9db6014191.2 - 2024-10-17
  • 5.22.0-integration-engines-5-22-0-5-integration-itx-refactor-66947c4986688f81a10436a5c2a70b9db6014191.1 - 2024-10-17
  • 5.22.0-integration-engines-5-22-0-41-integration-itx-refactor-89ad5dccce633950f4b6736f90e194bb05b096b1.2 - 2024-11-05
  • 5.22.0-integration-engines-5-22-0-41-integration-itx-refactor-89ad5dccce633950f4b6736f90e194bb05b096b1.1 - 2024-11-05
  • 5.22.0-integration-engines-5-22-0-40-integration-itx-refactor-d4628ef4e5da23e8dcaa9b10f72759d047d3cce5.2 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-40-integration-itx-refactor-d4628ef4e5da23e8dcaa9b10f72759d047d3cce5.1 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-38-integration-itx-refactor-b63aa059c0f251bb8ff8bceeb0d7248b3cce925f.2 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-38-integration-itx-refactor-b63aa059c0f251bb8ff8bceeb0d7248b3cce925f.1 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-37-integration-itx-refactor-d084c3bc9507243f38d2c8749371a0771d3de4fb.1 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-36-integration-itx-refactor-684c606234f356d048641030c875ea46d3af34c6.2 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-36-integration-itx-refactor-684c606234f356d048641030c875ea46d3af34c6.1 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-35-integration-itx-refactor-2968504c9babaf1b7efe93e64a5589fcfa4f9bda.2 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-35-integration-itx-refactor-2968504c9babaf1b7efe93e64a5589fcfa4f9bda.1 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-34-integration-itx-refactor-0d1ec1c2f69bbe63db492ce052ae424b05a09152.2 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-34-integration-itx-refactor-0d1ec1c2f69bbe63db492ce052ae424b05a09152.1 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-33-integration-itx-refactor-146387dd2bb43bdeed5f31d2c7ed1a8e4387f398.2 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-33-integration-itx-refactor-146387dd2bb43bdeed5f31d2c7ed1a8e4387f398.1 - 2024-11-04
  • 5.22.0-integration-engines-5-22-0-3-integration-itx-refactor-8a24494c6f5beb8b01ae2fb7617a01640f9152ce.2 - 2024-10-17
  • 5.22.0-integration-engines-5-22-0-3-integration-itx-refactor-8a24494c6f5beb8b01ae2fb7617a01640f9152ce.1 - 2024-10-17
  • 5.22.0-integration-engines-5-22-0-29-metrics3-phantasmagoria-of-the-lost-recorder-f73daa6eef72b255e6eab76235324269f03e1fbf.1 - 2024-11-01
  • 5.22.0-integration-engines-5-22-0-28-metrics3-phantasmagoria-of-the-lost-recorder-e55689884a2dc34c5fd62635ea96a7f666277679.1 - 2024-11-01
  • 5.22.0-integration-engines-5-22-0-27-metrics3-phantasmagoria-of-the-lost-recorder-47785ced2c48f59d114bb0f15b5495cf6c0a7b8e.1 - 2024-11-01
  • 5.22.0-integration-engines-5-22-0-26-integration-next-bbe742e5df39dfd9012055dba6026ae1f90d2d13.2 - 2024-10-31
  • 5.22.0-integration-engines-5-22-0-26-integration-next-bbe742e5df39dfd9012055dba6026ae1f90d2d13.1 - 2024-10-31
  • 5.22.0-integration-engines-5-22-0-25-bump-rust-postgres-integration-9fa55196fd05878be9db69ba3b4e6c08f9dc0591.1 - 2024-10-30
  • 5.22.0-integration-engines-5-22-0-22-Agent calls commands that are disabled in .env Significant-Gravitas/AutoGPT#4998-integration-eb7519dcdf552de090269ebfa2beabc8e1a13e1b.1 - 2024-10-29
  • 5.22.0-integration-engines-5-22-0-21-integration-itx-refactor-4b37093e1c80ffe0f10754fdd0a7ec87d2591da9.2 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-21-integration-itx-refactor-4b37093e1c80ffe0f10754fdd0a7ec87d2591da9.1 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-20-integration-itx-refactor-486002408604a9365f7332eef64042dca68678d6.2 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-20-integration-itx-refactor-486002408604a9365f7332eef64042dca68678d6.1 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-2-integration-itx-refactor-10561ae38bf0882d58859b272629052f23bd8263.2 - 2024-10-17
  • 5.22.0-integration-engines-5-22-0-2-integration-itx-refactor-10561ae38bf0882d58859b272629052f23bd8263.1 - 2024-10-17
  • 5.22.0-integration-engines-5-22-0-19-integration-itx-refactor-1d05dc605389ce8c7dbc7846427123cc5178008b.2 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-19-integration-itx-refactor-1d05dc605389ce8c7dbc7846427123cc5178008b.1 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-16-integration-itx-refactor-5fa40bdce9edc9cd058852f7ef56ffbcc2edcc8b.2 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-16-integration-itx-refactor-5fa40bdce9edc9cd058852f7ef56ffbcc2edcc8b.1 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-15-integration-itx-refactor-e6a1a87cfa6c4940596af734f1adf379b009e288.2 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-15-integration-itx-refactor-e6a1a87cfa6c4940596af734f1adf379b009e288.1 - 2024-10-24
  • 5.22.0-integration-engines-5-22-0-14-refactor-metrics-4a27b2e54894ed710cde5df92d4b41d1f2709e5a.1 - 2024-10-23
  • 5.22.0-integration-engines-5-22-0-13-refactor-metrics-177edc4c001abd8ae80c6e1e2c418283761a1483.1 - 2024-10-23
  • 5.22.0-integration-engines-5-22-0-11-integration-itx-refactor-68dbf76299a3789c291558b6c5a4adf398bdf338.2 - 2024-10-18
  • 5.22.0-integration-engines-5-22-0-11-integration-itx-refactor-68dbf76299a3789c291558b6c5a4adf398bdf338.1 - 2024-10-18
  • 5.22.0-integration-engines-5-22-0-1-fix-shadow-db-ws-a57fc564c92d0e3eac830e38694dd44c464c82aa.1 - 2024-10-17
  • 5.22.0-dev.17 - 2024-11-05
  • 5.22.0-dev.16 - 2024-11-05
  • 5.22.0-dev.15 - 2024-11-05
  • 5.22.0-dev.14 - 2024-11-05
  • 5.22.0-dev.13 - 2024-11-04
  • 5.22.0-dev.12 - 2024-11-04
  • 5.22.0-dev.11 - 2024-11-04
  • 5.22.0-dev.10 - 2024-11-04
  • 5.22.0-dev.9 - 2024-11-01
  • 5.22.0-dev.8 - 2024-10-30
  • 5.22.0-dev.7 - 2024-10-28
  • 5.22.0-dev.6 - 2024-10-28
  • 5.22.0-dev.5 - 2024-10-23
  • 5.22.0-dev.4 - 2024-10-23
  • 5.22.0-dev.3 - 2024-10-20
  • 5.22.0-dev.2 - 2024-10-18
  • 5.22.0-dev.1 - 2024-10-18
  • 5.21.1 - 2024-10-17
    • Fixed a bug where migrations were not using shadow database correctly in some edge cases
  • 5.21.1-dev.1 - 2024-10-17
  • 5.21.0 - 2024-10-15

    Today, we are excited to share the 5.21.0 release 🎉

    🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release.

    Highlights

    Better support for tracing in MongoDB

    The tracing Preview feature now has full support for MongoDB with previously missing functionality now implemented. This is a part of the ongoing effort to stabilize this Preview feature and release it in General Availability.

    tracing is a Preview feature that enables built-in support for OpenTelemetry instrumentation inside the Prisma Client and provides deep insights into the performance and timing of your queries. See our documentation for more information.

    For an easy to use and zero-configuration tracing instrumentation tool with a dashboard that provides an overview of your queries, statistics, and AI-powered recommendations, try Prisma Optimize.

    WebAssembly engine size decrease for edge functions

    Due to recent changes, some users experienced a steep increase of the bundle size in Prisma 5.20 when using the driverAdapters Preview feature, going over the 1 MB limit on the free tier of Cloudflare Workers. This has now been fixed.

    Fixes and improvements

    Prisma Engines

    Credits

    Huge thanks to @ austin-tildei, @ LucianBuzzo, @ mcuelenaere, @ pagewang0, @ key-moon, @ pranayat, @ yubrot, @ skyzh for helping!

  • 5.21.0-integration-itx-refactor.26 - 2024-10-10
  • 5.21.0-integration-itx-refactor.25 - 2024-10-10
  • 5.21.0-integration-itx-refactor.24 - 2024-10-10
  • 5.21.0-integration-itx-refactor.23 - 2024-10-10
  • 5.21.0-integration-itx-refactor.22 - 2024-10-07
  • 5.21.0-integration-itx-refactor.21 - 2024-10-07
  • 5.21.0-integration-itx-refactor.20 - 2024-10-07
  • 5.21.0-integration-itx-refactor.19 - 2024-10-07
  • 5.21.0-integration-itx-refactor.18 - 2024-10-06
  • 5.21.0-integration-itx-refactor.17 - 2024-10-04
  • 5.21.0-integration-itx-refactor.16 - 2024-10-02
  • 5.21.0-integration-itx-refactor.15 - 2024-10-02
  • 5.21.0-integration-itx-refactor.14 - 2024-10-01
  • 5.21.0-integration-itx-refactor.13 - 2024-09-27
  • 5.21.0-integration-itx-refactor.12 - 2024-09-27
  • 5.21.0-integration-itx-refactor.11 - 2024-09-27
  • 5.21.0-integration-itx-refactor.10 - 2024-09-27
  • 5.21.0-integration-itx-refactor.9 - 2024-09-27
  • 5.21.0-integration-itx-refactor.8 - 2024-09-26
  • 5.21.0-integration-itx-refactor.7 - 2024-09-26
  • 5.21.0-integration-itx-refactor.6 - 2024-09-26
  • 5.21.0-integration-itx-refactor.5 - 2024-09-26
  • 5.21.0-integration-itx-refactor.4 - 2024-09-26
  • 5.21.0-integration-itx-refactor.3 - 2024-09-26
  • 5.21.0-integration-itx-refactor.2 - 2024-09-26
  • 5.21.0-integration-itx-refactor.1 - 2024-09-25
  • 5.21.0-integration-engines-5-21-0-9-integration-itx-refactor-325cba8061c5016044717b791bbeb1b80826a139.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-9-integration-itx-refactor-325cba8061c5016044717b791bbeb1b80826a139.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-7-integration-mimalloc-e348b85a811cbce6dcf6f7fee495333f099b529a.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-7-integration-mimalloc-e348b85a811cbce6dcf6f7fee495333f099b529a.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-6-integration-itx-refactor-1059f14238be9ee317b2fdeb4b31b3e45866df2a.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-5-integration-itx-refactor-829d5e863e388afcf132ef456b0fff5d79dd08cd.2 - 2024-09-25
  • 5.21.0-integration-engines-5-21-0-5-integration-itx-refactor-829d5e863e388afcf132ef456b0fff5d79dd08cd.1 - 2024-09-25
  • 5.21.0-integration-engines-5-21-0-4-integration-itx-refactor-26f089d271712b9396e7b7b9a0a1088f1941e83b.2 - 2024-09-25
  • 5.21.0-integration-engines-5-21-0-4-integration-itx-refactor-26f089d271712b9396e7b7b9a0a1088f1941e83b.1 - 2024-09-25
  • 5.21.0-integration-engines-5-21-0-37-integration-itx-refactor-17b7e562a6221b365600e9c7fa310770aa23800a.2 - 2024-10-15
  • 5.21.0-integration-engines-5-21-0-37-integration-itx-refactor-17b7e562a6221b365600e9c7fa310770aa23800a.1 - 2024-10-15
  • 5.21.0-integration-engines-5-21-0-35-mobc-and-metrics-up-32af6fa52346dd9c35de00aad9c66abe577c8822.1 - 2024-10-14
  • 5.21.0-integration-engines-5-21-0-34-integration-itx-refactor-ff4016d5bf29b443876eaf3717671bae3e66572b.2 - 2024-10-10
  • 5.21.0-integration-engines-5-21-0-34-integration-itx-refactor-ff4016d5bf29b443876eaf3717671bae3e66572b.1 - 2024-10-10
  • 5.21.0-integration-engines-5-21-0-30-integration-mongodb-aggregate-tracing-3d4b90e67bb5d48bbedf382a8f95a61c63d31c47.2 - 2024-10-07
  • 5.21.0-integration-engines-5-21-0-30-integration-mongodb-aggregate-tracing-3d4b90e67bb5d48bbedf382a8f95a61c63d31c47.1 - 2024-10-07
  • 5.21.0-integration-engines-5-21-0-29-integration-itx-refactor-d9c03d983fd548ce3b272f8d3bd21029b1cbdf31.2 - 2024-10-07
  • 5.21.0-integration-engines-5-21-0-29-integration-itx-refactor-d9c03d983fd548ce3b272f8d3bd21029b1cbdf31.1 - 2024-10-07
  • 5.21.0-integration-engines-5-21-0-28-integration-itx-refactor-0ffdf7cc92f918047a9e01115a75ae60f1c0f010.2 - 2024-10-07
  • 5.21.0-integration-engines-5-21-0-28-integration-itx-refactor-0ffdf7cc92f918047a9e01115a75ae60f1c0f010.1 - 2024-10-07
  • 5.21.0-integration-engines-5-21-0-27-integration-itx-refactor-dffe32bba8f22a19a90b49c250f83df08deca7bc.2 - 2024-10-07
  • 5.21.0-integration-engines-5-21-0-27-integration-itx-refactor-dffe32bba8f22a19a90b49c250f83df08deca7bc.1 - 2024-10-07
  • 5.21.0-integration-engines-5-21-0-26-integration-itx-refactor-585e6fd6cee6f51127f2ff79bcfea5c385e19dae.2 - 2024-10-06
  • 5.21.0-integration-engines-5-21-0-26-integration-itx-refactor-585e6fd6cee6f51127f2ff79bcfea5c385e19dae.1 - 2024-10-06
  • 5.21.0-integration-engines-5-21-0-25-integration-itx-refactor-34fd61cc127f54e6375cdc19ed445ca6e52e6ca7.2 - 2024-10-04
  • 5.21.0-integration-engines-5-21-0-25-integration-itx-refactor-34fd61cc127f54e6375cdc19ed445ca6e52e6ca7.1 - 2024-10-04
  • 5.21.0-integration-engines-5-21-0-24-accelerate-migration-77f7447c3b0e63f746dfee904785fce4b7149543.1 - 2024-10-04
  • 5.21.0-integration-engines-5-21-0-23-integration-itx-refactor-1b14d69c4ed350ab8a088cfb8a8cc582d8ab7eab.2 - 2024-10-04
  • 5.21.0-integration-engines-5-21-0-22-accelerate-migration-55d3efd72e46de282f8415aa332b1882180d62b8.1 - 2024-10-04
  • 5.21.0-integration-engines-5-21-0-20-integration-itx-refactor-4c3d81888c1061f682f4be20a2dafa2126e6af1f.2 - 2024-09-27
  • 5.21.0-integration-engines-5-21-0-20-integration-itx-refactor-4c3d81888c1061f682f4be20a2dafa2126e6af1f.1 - 2024-09-27
  • 5.21.0-integration-engines-5-21-0-2-integration-itx-refactor-aa413b54d4893760c84635debe7d5ea6e54326cb.2 - 2024-09-25
  • 5.21.0-integration-engines-5-21-0-2-integration-itx-refactor-aa413b54d4893760c84635debe7d5ea6e54326cb.1 - 2024-09-25
  • 5.21.0-integration-engines-5-21-0-19-integration-itx-refactor-104354e8a9def55d4f413f31d16799330e3ef7d3.2 - 2024-09-27
  • 5.21.0-integration-engines-5-21-0-19-integration-itx-refactor-104354e8a9def55d4f413f31d16799330e3ef7d3.1 - 2024-09-27
  • 5.21.0-integration-engines-5-21-0-18-integration-itx-refactor-60fff8e2a18dd630661a945ec54241303111de17.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-18-integration-itx-refactor-60fff8e2a18dd630661a945ec54241303111de17.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-17-integration-itx-refactor-758897863fcf14f0008c5a2e4a0f083f302b68f7.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-17-integration-itx-refactor-758897863fcf14f0008c5a2e4a0f083f302b68f7.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-16-integration-itx-refactor-c90c063bcee736c037b80640d08b62aec265d1e0.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-16-integration-itx-refactor-c90c063bcee736c037b80640d08b62aec265d1e0.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-15-integration-itx-refactor-0e688c08010939456f897a5a2b2300625028f8b0.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-15-integration-itx-refactor-0e688c08010939456f897a5a2b2300625028f8b0.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-14-integration-itx-refactor-0014c6b321b67e8d77a98443eb4389c66549adee.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-14-integration-itx-refactor-0014c6b321b67e8d77a98443eb4389c66549adee.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-13-integration-itx-refactor-21703fdfdb97895d83034d69ffa77bef5a946b6d.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-13-integration-itx-refactor-21703fdfdb97895d83034d69ffa77bef5a946b6d.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-12-integration-itx-refactor-b2048e62b2d197d818c71d913a19d56ab7ee4361.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-12-integration-itx-refactor-b2048e62b2d197d818c71d913a19d56ab7ee4361.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-11-integration-itx-refactor-123024dbffa4e26814bc0b4ce921317c3bbd451f.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-11-integration-itx-refactor-123024dbffa4e26814bc0b4ce921317c3bbd451f.1 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-10-integration-itx-refactor-6c3c8b6657befa0cefc9e1276cfb23d2a4921b11.2 - 2024-09-26
  • 5.21.0-integration-engines-5-21-0-10-integration-itx-refactor-6c3c8b6657befa0cefc9e1276cfb23d2a4921b11.1 - 2024-09-26
  • 5.21.0-integration-25129.1 - 2024-09-26
  • 5.21.0-dev.11 - 2024-10-15
  • 5.21.0-dev.10 - 2024-10-15
  • 5.21.0-dev.9 - 2024-10-10
  • 5.21.0-dev.8 - 2024-10-10
  • 5.21.0-dev.7 - 2024-10-10
  • 5.21.0-dev.6 - 2024-10-09
  • 5.21.0-dev.5 - 2024-10-08
  • 5.21.0-dev.4 - 2024-10-07
  • 5.21.0-dev.3 - 2024-10-02
  • 5.21.0-dev.2 - 2024-10-02
  • 5.21.0-dev.1 - 2024-09-26
  • 5.20.0 - 2024-09-24

    🌟 Help us spread the word about Prisma by starring the repo or posting on X about the release. 🌟

    Highlights

    strictUndefinedChecks in Preview

    With Prisma ORM 5.20.0, the Preview feature strictUndefinedChecks will disallow any value that is explicitly undefined and will be a runtime error. This change is direct feedback from this GitHub issue and follows our latest proposal on the same issue.

    To demonstrate the change, take the following code snippet:

    prisma.table.deleteMany({
      where: {
        // If `nullableThing` is nullish, this query will remove all data.
        email: nullableThing?.property,
      }
    })

    In Prisma ORM 5.19.0 and below, this could result in unintended behavior. In Prisma ORM 5.20.0, if the strictUndefinedChecks Preview feature is enabled, you will get a runtime error instead:

    Invalid \`prisma.user.findMany()\` invocation in
    /client/tests/functional/strictUndefinedChecks/test.ts:0:0
      XX })
      XX 
      XX test('throws on undefined input field', async () => {
    → XX   const result = prisma.user.deleteMany({
             where: {
               email: undefined
                      ~~~~~~~~~
             }
           })
    Invalid value for argument \`where\`: explicitly \`undefined\` values are not allowed."

    We have also introduced the Prisma.skip symbol, which will allow you to get the previous behavior if desired.

    prisma.table.findMany({
      where: {
        // Use Prisma.skip to skip parts of the query
        email: nullableEmail ?? Prisma.skip
      }
    })

    From Prisma ORM 5.20.0 onward, we recommend enabling strictUndefinedChecks, along with the TypeScript compiler option exactOptionalPropertyTypes, which will help catch cases of undefined values at compile time. Together, these two changes will help protect your Prisma queries from potentially destructive behavior.

    strictUndefinedChecks will be a valid Preview feature for the remainder of Prisma ORM 5. With our next major version, this behavior will become the default and the Preview feature will be “graduated” to Generally Available.

    If you have any questions or feedback about strictUndefinedChecks, please ask/comment in our dedicated Preview feature GitHub discussion.

    typedSql bug fix

    Thank you to everyone who has tried out our typedSql Preview feature and provided feedback! This release has a quick fix for typescript files generated when Prisma Schema enums had hyphens.

    Fixes and improvements

    Prisma

    Prisma Engines

    Credits

    Huge thanks to @ mcuelenaere, @ pagewang0, @ key-moon, @ pranayat, @ yubrot, @ thijmenjk, @ mydea, @ HRM, @ haaawk, @ baileywickham, @ brian-dlee, @ nickcarnival, @ eruditmorina, @ nzakas, and @ gutyerrez for helping!

  • 5.20.0-integration-otel-peer-deps.2 - 2024-09-06
  • 5.20.0-integration-otel-peer-deps.1 - 2024-09-05
  • 5.20.0-integration-fix-driver-adapters-breaking.1 - 2024-09-24
  • 5.20.0-integration-feat-strict-undefined-checks.2 - 2024-09-23
  • 5.20.0-integration-feat-strict-undefined-checks.1 - 2024-09-13
  • 5.20.0-integration-feat-no-nextjs-workaround.2 - 2024-09-06
  • 5.20.0-integration-feat-no-nextjs-workaround.1 - 2024-09-06
  • 5.20.0-integration-engines-5-20-0-9-integration-itx-refactor-51ed793416e8f8bd436b0a4802ba4e44d2c40263.2 - 2024-09-21
  • 5.20.0-integration-engines-5-20-0-9-integration-itx-refactor-51ed793416e8f8bd436b0a4802ba4e44d2c40263.1 - 2024-09-21
  • 5.20.0-integration-engines-5-20-0-6-integration-fix-planetscale-transactions-0deadde8739779d8360ea8c60d2b49693271abcf.2 - 2024-09-03
  • 5.20.0-integration-engines-5-20-0-6-integration-fix-planetscale-transactions-0deadde8739779d8360ea8c60d2b49693271abcf.1 - 2024-09-03
  • 5.20.0-integration-engines-5-20-0-5-integration-fix-planetscale-transactions-7cb8cc9f8e14bd5bde8f8f67c26ccace7c49a53f.2 - 2024-09-03
  • 5.20.0-integration-engines-5-20-0-5-integration-fix-planetscale-transactions-7cb8cc9f8e14bd5bde8f8f67c26ccace7c49a53f.1 - 2024-09-03
  • 5.20.0-integration-engines-5-20-0-2-integration-nested-transactions-70e4e8eaa9b1ca0ec042fa831bc2c81f668215a7.2 - 2024-08-29
  • 5.20.0-integration-engines-5-20-0-2-integration-nested-transactions-70e4e8eaa9b1ca0ec042fa831bc2c81f668215a7.1 - 2024-08-29
  • 5.20.0-integration-engines-5-20-0-13-integration-itx-refactor-412fc8ba6449e41c37627808a172c1f3daa46129.2 - 2024-09-24
  • 5.20.0-integration-engines-5-20-0-13-integration-itx-refactor-412fc8ba6449e41c37627808a172c1f3daa46129.1 - 2024-09-24
  • 5.20.0-dev.21 - 2024-09-24
  • 5.20.0-dev.20 - 2024-09-24
  • 5.20.0-dev.19 - 2024-09-24
  • 5.20.0-dev.18 - 2024-09-24
  • 5.20.0-dev.17 - 2024-09-24
  • 5.20.0-dev.16 - 2024-09-23
  • 5.20.0-dev.15 - 2024-09-13
  • 5.20.0-dev.14 - 2024-09-09
  • 5.20.0-dev.13 - 2024-09-09
  • 5.20.0-dev.12 - 2024-09-06
  • 5.20.0-dev.11 - 2024-09-05
  • 5.20.0-dev.10 - 2024-09-05
  • 5.20.0-dev.9 - 2024-09-05
  • 5.20.0-dev.8 - 2024-09-05
  • 5.20.0-dev.7 - 2024-09-05
  • 5.20.0-dev.6 - 2024-09-04
  • ...

Copy link

semanticdiff-com bot commented Jan 5, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  benchmark/frontend/package.json  0% smaller

Copy link
Author

snyk-io bot commented Jan 5, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants