PackageTrack

npm · #3659 most downloaded on npm

@prisma/client

7.10.0prisma/prisma

Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.

Release timeline

10653 releases since 2020
20202026

One column per quarter.

Releases

  1. 5.7.0-dev.615 Nov 2023pre-release

    Nothing published for this version

  2. 5.7.0-dev.515 Nov 2023pre-release

    Nothing published for this version

  3. 5.7.0-dev.415 Nov 2023pre-release

    Nothing published for this version

  4. 5.7.0-dev.315 Nov 2023pre-release

    Nothing published for this version

  5. 5.7.0-dev.215 Nov 2023pre-release

    Nothing published for this version

  6. 5.7.0-dev.115 Nov 2023pre-release

    Nothing published for this version

  7. 5.6.014 Nov 2023
    Release notes

    🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟

    🚀 Prisma Accelerate, our connection pool and global edge cache, is now Generally Available! Sign up to give it a try. 🚀

    Highlights

    Driver adapters improvements (Preview)

    In version 5.4.0, we released driverAdapters into Preview. The driverAdapters feature enables Prisma Client to access your database using JavaScript or Serverless database drivers.

    In this release, we fixed many bugs for the existing driver adapters. We appreciate all the community feedback that has helped us improve this feature!

    PlanetScale serverless driver adapter improvements

    This release also introduces a small breaking change to the @prisma/adapter-planetscale package to improve its stability and performance. The serverless driver adapter will now use a connection pool instead of a single connection from PlanetScale’s serverless driver.

    In case you’re using the @prisma/adapter-planetscale, update your Prisma Client instance with the following:

    -import { connect } from '@planetscale/database'
    +import { Client } from '@planetscale/database'
    import { PrismaPlanetScale } from '@prisma/adapter-planetscale'
    import { PrismaClient } from '@prisma/client'
    import { fetch as undiciFetch } from 'undici';
    
    -const connection = connect({ url: connectionString, fetch: undiciFetch })
    +const client = new Client({ url: connectionString, fetch: undiciFetch })
    
    -const adapter = new PrismaPlanetScale(connection)
    +const adapter = new PrismaPlanetScale(client)
    
    const prisma = new PrismaClient({ adapter })
    

    If you run into the following error: [TypeError]: PrismaPlanetScale must be initialized with an instance of Client., you can use the following snippet when defining your Prisma Client instance:

    import { createRequire } from "node:module";
    import { PrismaPlanetScale } from "@prisma/adapter-planetscale";
    import { fetch as undiciFetch } from 'undici';
    
    const require = createRequire(import.meta.url);
    const { Client } = require("@planetscale/database");
    
    const client = new Client({ url:  process.env.DATABASE_URL , fetch: undiciFetch })
    const adapter = new PrismaPlanetScale(client);
    

    Request for feedback

    We encourage you to try out the driver adapters and share your feedback to help us move it to General Availability in either of the following GitHub discussions:

    Refer to our docs to learn more about driver adapters.

    New prisma debug command

    This release introduces a new command: prisma debug. The command provides debugging information such as environment variables that Prisma Client, Prisma Migrate, Prisma CLI, and Prisma Studio use. The command is also useful when creating a bug report as the information complements the output of the prisma -v command.

    You can learn more about the command in our docs.

    Read replicas extension improvements

    We also released version 0.3.0 of the @prisma/extension-read-replicas package that contains the following improvements:

    • A new $replica() method that explicitly enables you to use a replica for your query.

      For example, by default, the queryRaw and executeRaw methods are forwarded to the primary database, as they could try to write to the database. You can use the $replica() method with either of the *Raw methods to explicitly execute your query against a replica instead of your primary database.

    • Validation for when there’s an empty list of replicas.

    • Webpack bundling fixes

    We want to thank you, our community members, for your contributions! 🙏

    You can find additional information on the changes in the extension’s release. You can learn more about the extension in the announcement blog post.

    Package provenance

    npm has introduced provenance statements to improve supply-chain security and transparency of packages. This allows developers to verify where and how packages are built.

    Starting with the 5.6.0 release, all npm packages for Prisma ORM will be published with provenance statements. If you maintain a Prisma Client extension or generator, we encourage you to enable provenance statements when publishing to npm.

    Fixes and improvements

    Prisma Migrate

    Prisma Client

    Prisma CLI

    Credits

    Huge thanks to @onichandame, @LucianBuzzo, @RobertCraigie, @fqazi, @KhooHaoYit, @alencardc, @Oreilles, @christianledgard, @skyzh, @alula, @luxaritas, @Nasfame, @lukahartwig, @steebchen, @icanipa for helping!

    Company news

    Prisma Accelerate is now Generally Available

    We're excited to share that Prisma Accelerate is now Generally Available. Prisma Accelerate is a global database cache that's available in over 280 locations and provides scalable connection pooling for serverless and edge applications.

    Learn more in the announcement blog post. Sign up and try out Prisma Accelerate here.

    💼 We’re hiring!

    If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you.

    We're hiring for an Engineering Manager: Prisma Data Platform.

    Open source →
  8. 5.6.0-integration-refactor-consistently-use-binarytarget-term.231 Oct 2023pre-release

    Nothing published for this version

  9. 5.6.0-integration-refactor-consistently-use-binarytarget-term.130 Oct 2023pre-release

    Nothing published for this version

  10. 5.6.0-integration-joel-node-fetch-publish.131 Oct 2023pre-release

    Nothing published for this version

  11. 5.6.0-integration-fix-planetscale-client.410 Nov 2023pre-release

    Nothing published for this version

  12. 5.6.0-integration-fix-planetscale-client.310 Nov 2023pre-release

    Nothing published for this version

  13. 5.6.0-integration-fix-planetscale-client.110 Nov 2023pre-release

    Nothing published for this version

  14. 5.6.0-integration-feat-client-wasm-engine.91 Nov 2023pre-release

    Nothing published for this version

  15. 5.6.0-integration-feat-client-wasm-engine.81 Nov 2023pre-release

    Nothing published for this version

  16. 5.6.0-integration-feat-client-wasm-engine.71 Nov 2023pre-release

    Nothing published for this version

  17. 5.6.0-integration-feat-client-wasm-engine.631 Oct 2023pre-release

    Nothing published for this version

  18. 5.6.0-integration-feat-client-wasm-engine.531 Oct 2023pre-release

    Nothing published for this version

  19. 5.6.0-integration-feat-client-wasm-engine.431 Oct 2023pre-release

    Nothing published for this version

  20. 5.6.0-integration-feat-client-wasm-engine.331 Oct 2023pre-release

    Nothing published for this version

  21. 5.6.0-integration-feat-client-wasm-engine.226 Oct 2023pre-release

    Nothing published for this version

  22. 5.6.0-integration-feat-client-wasm-engine.124 Oct 2023pre-release

    Nothing published for this version

  23. 5.6.0-integration-feat-auto-edge-import.31 Nov 2023pre-release

    Nothing published for this version

  24. 5.6.0-integration-feat-auto-edge-import.21 Nov 2023pre-release

    Nothing published for this version

  25. 5.6.0-integration-feat-auto-edge-import.127 Oct 2023pre-release

    Nothing published for this version

  26. 5.6.0-integration-engines-5-6-0-7-integration-bump-mobc-7278ed291ba8a8b6be9da5f7959a59084a3e19ae.228 Oct 2023pre-release

    Nothing published for this version

  27. 5.6.0-integration-engines-5-6-0-7-integration-bump-mobc-7278ed291ba8a8b6be9da5f7959a59084a3e19ae.128 Oct 2023pre-release

    Nothing published for this version

  28. 5.6.0-integration-engines-5-6-0-6-integration-engineer-dont-overwrite-engine-versions-01aa2621a92b5b3df1c7904ecda5970ec061c579.227 Oct 2023pre-release

    Nothing published for this version

  29. 5.6.0-integration-engines-5-6-0-6-integration-engineer-dont-overwrite-engine-versions-01aa2621a92b5b3df1c7904ecda5970ec061c579.127 Oct 2023pre-release

    Nothing published for this version

  30. 5.6.0-integration-engines-5-6-0-31-integration-bump-mobc-d19bcc65cdabf1db98633bb5aa496b2bf2f6046d.213 Nov 2023pre-release

    Nothing published for this version

  31. 5.6.0-integration-engines-5-6-0-31-integration-bump-mobc-d19bcc65cdabf1db98633bb5aa496b2bf2f6046d.113 Nov 2023pre-release

    Nothing published for this version

  32. 5.6.0-integration-engines-5-6-0-26-integration-bump-mobc-14aff2880480b5db1569ca98339eb75f33a2b6bb.213 Nov 2023pre-release

    Nothing published for this version

  33. 5.6.0-integration-engines-5-6-0-26-integration-bump-mobc-14aff2880480b5db1569ca98339eb75f33a2b6bb.113 Nov 2023pre-release

    Nothing published for this version

  34. 5.6.0-integration-engines-5-6-0-22-integration-sql-nested-transactions-4c2470361c7aef1441e5cf3c5b517f19ab30c87a.28 Nov 2023pre-release

    Nothing published for this version

  35. 5.6.0-integration-engines-5-6-0-22-integration-sql-nested-transactions-4c2470361c7aef1441e5cf3c5b517f19ab30c87a.18 Nov 2023pre-release

    Nothing published for this version

  36. 5.6.0-integration-engines-5-6-0-20-integration-ps-datetime-fidelity-e596b1a3d11a649b11e48da239c60e780cbaf9e2.28 Nov 2023pre-release

    Nothing published for this version

  37. 5.6.0-integration-engines-5-6-0-20-integration-ps-datetime-fidelity-e596b1a3d11a649b11e48da239c60e780cbaf9e2.18 Nov 2023pre-release

    Nothing published for this version

  38. 5.6.0-integration-engines-5-6-0-18-integration-mff-517-e06ca3d983a0c00cb2158d6b2f530562d119751b.47 Nov 2023pre-release

    Nothing published for this version

  39. 5.6.0-integration-engines-5-6-0-18-integration-mff-517-e06ca3d983a0c00cb2158d6b2f530562d119751b.37 Nov 2023pre-release

    Nothing published for this version

  40. 5.6.0-integration-engines-5-6-0-18-integration-mff-517-e06ca3d983a0c00cb2158d6b2f530562d119751b.27 Nov 2023pre-release

    Nothing published for this version

  41. 5.6.0-integration-engines-5-6-0-18-integration-mff-517-e06ca3d983a0c00cb2158d6b2f530562d119751b.17 Nov 2023pre-release

    Nothing published for this version

  42. 5.6.0-integration-engines-5-6-0-17-integration-mff-517-18ad27daee2d562b8d75e34b5b30da2fc6a6ef17.27 Nov 2023pre-release

    Nothing published for this version

  43. 5.6.0-integration-engines-5-6-0-17-integration-mff-517-18ad27daee2d562b8d75e34b5b30da2fc6a6ef17.17 Nov 2023pre-release

    Nothing published for this version

  44. 5.6.0-integration-engines-5-6-0-16-integration-mff-517-687b72e4b3791deb25ec1af8b20ace67cf68bc85.27 Nov 2023pre-release

    Nothing published for this version

  45. 5.6.0-integration-engines-5-6-0-16-integration-mff-517-687b72e4b3791deb25ec1af8b20ace67cf68bc85.17 Nov 2023pre-release

    Nothing published for this version

  46. 5.6.0-integration-engines-5-6-0-14-integration-sql-nested-transactions-5a0f60fe78f2029f692e21ce8732a978466b9baf.21 Nov 2023pre-release

    Nothing published for this version

  47. 5.6.0-integration-engines-5-6-0-14-integration-sql-nested-transactions-5a0f60fe78f2029f692e21ce8732a978466b9baf.11 Nov 2023pre-release

    Nothing published for this version

  48. 5.6.0-integration-engines-5-6-0-13-janpio-sql-nested-transactions-07d231288d1a9b62fb7af3764745b75447d5d2b7.11 Nov 2023pre-release

    Nothing published for this version

  49. 5.6.0-integration-engines-5-6-0-12-integration-sql-nested-transactions-a8af640da343c10e0f7421264c2838b302d3ce6d.21 Nov 2023pre-release

    Nothing published for this version

  50. 5.6.0-integration-engines-5-6-0-12-integration-sql-nested-transactions-a8af640da343c10e0f7421264c2838b302d3ce6d.11 Nov 2023pre-release

    Nothing published for this version

  51. 5.6.0-integration-engines-5-6-0-10-integration-bump-mobc-e4056297dc83a2ee095f9f9fb637fc1dbc167b73.230 Oct 2023pre-release

    Nothing published for this version

  52. 5.6.0-integration-engines-5-6-0-10-integration-bump-mobc-e4056297dc83a2ee095f9f9fb637fc1dbc167b73.130 Oct 2023pre-release

    Nothing published for this version

  53. 5.6.0-integration-debug-nodemodule-hack.22 Nov 2023pre-release

    Nothing published for this version

  54. 5.6.0-integration-debug-nodemodule-hack.12 Nov 2023pre-release

    Nothing published for this version

  55. 5.6.0-integration-chore-upgrade-esm-deps.1631 Oct 2023pre-release

    Nothing published for this version

  56. 5.6.0-integration-chore-upgrade-esm-deps.1531 Oct 2023pre-release

    Nothing published for this version

  57. 5.6.0-integration-chore-upgrade-esm-deps.1431 Oct 2023pre-release

    Nothing published for this version

  58. 5.6.0-integration-chore-upgrade-esm-deps.1330 Oct 2023pre-release

    Nothing published for this version

  59. 5.6.0-integration-chore-upgrade-esm-deps.1230 Oct 2023pre-release

    Nothing published for this version

  60. 5.6.0-integration-chore-upgrade-esm-deps.1130 Oct 2023pre-release

    Nothing published for this version