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.20.0 to 5.21.1 #226

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

vigneshshettyin
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade prisma from 5.20.0 to 5.21.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.


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

  • The recommended version was released on a month ago.

Release notes
Package name: prisma
  • 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!

from prisma GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade prisma from 5.20.0 to 5.21.1.

See this package in npm:
prisma

See this project in Snyk:
https://app.snyk.io/org/vigneshshettyin/project/f292640c-2272-4ab3-b7a3-dc7f2f3bba3e?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

vercel bot commented Nov 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eat-my-url ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 17, 2024 3:46am

@vigneshshettyin vigneshshettyin merged commit c7b5a43 into main Nov 18, 2024
7 checks passed
@vigneshshettyin vigneshshettyin deleted the snyk-upgrade-7a0f43866250373a9960ce3dc2532138 branch November 18, 2024 15:31
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.

2 participants