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

10652 releases since 2020
2020202120222023202420252026

Releases

  1. 6.6.0-dev.1713 Mar 2025pre-release

    Nothing published for this version

  2. 6.6.0-dev.1613 Mar 2025pre-release

    Nothing published for this version

  3. 6.6.0-dev.1513 Mar 2025pre-release

    Nothing published for this version

  4. 6.6.0-dev.1413 Mar 2025pre-release

    Nothing published for this version

  5. 6.6.0-dev.1313 Mar 2025pre-release

    Nothing published for this version

  6. 6.6.0-dev.1213 Mar 2025pre-release

    Nothing published for this version

  7. 6.6.0-dev.1013 Mar 2025pre-release

    Nothing published for this version

  8. 6.6.0-dev.912 Mar 2025pre-release

    Nothing published for this version

  9. 6.6.0-dev.812 Mar 2025pre-release

    Nothing published for this version

  10. 6.6.0-dev.712 Mar 2025pre-release

    Nothing published for this version

  11. 6.6.0-dev.612 Mar 2025pre-release

    Nothing published for this version

  12. 6.6.0-dev.511 Mar 2025pre-release

    Nothing published for this version

  13. 6.6.0-dev.411 Mar 2025pre-release

    Nothing published for this version

  14. 6.6.0-dev.311 Mar 2025pre-release

    Nothing published for this version

  15. 6.6.0-dev.211 Mar 2025pre-release

    Nothing published for this version

  16. 6.6.0-dev.111 Mar 2025pre-release

    Nothing published for this version

  17. 6.5.011 Mar 2025
    Release notes

    Today, we are excited to share the 6.5.0 stable release ๐ŸŽ‰

    ๐ŸŒŸ Help us spread the word about Prisma by starring the repo โ˜๏ธ or tweeting about the release. ๐ŸŒŸ

    Highlights

    Databases can only be reset manually and explicitly

    In previous versions, if Prisma ORM determined that a migrate command could not be applied cleanly to the underlying database, you would get a message like this one:

    ? We need to reset the "public" schema at "db.url.com:5432"
    Do you want to continue? All data will be lost. (y/N)
    

    While "no" was the default, we've determined that having this prompt in the first place was a mistake. In this version we're removing the prompt entirely and instead exiting with an appropriate error message.

    To get the previous behavior, you will need to run prisma migrate reset directly.

    Support for prisma.config.ts in Prisma Studio

    We've expanded support for our prisma.config.ts file to include Prisma Studio!

    To use the new config file, including the ability to connect to driver adapter enabled databases with Prisma Studio, add a studio block to your prisma.config.ts file:

    import path from 'node:path'
    import type { PrismaConfig } from 'prisma'
    import { PrismaLibSQL } from '@prisma/adapter-libsql'
    import { createClient } from '@libsql/client'
    
    export default {
      earlyAccess: true,
      schema: {
        kind: 'single',
        filePath: './prisma/schema.prisma',
      },
      studio: {
        adapter: async (env: unknown) => {
          const connectionString = `file:./dev.db'
          const libsql = createClient({
            url: connectionString,
          })
          return new PrismaLibSQL(libsql)
        },
      },
    } satisfies PrismaConfig
    

    Notice how this looks a little different from last release! Instead of an @prisma/config package thereโ€™s now two different options:

    1. Using the defineConfig helper exported by prisma/config.
    2. Using the PrismaConfig utility type exported by Prisma.

    All the relevant info for the prisma.config.ts file, including these new ways of defining your config, can be found in our docs.

    Allow for chaining $on and $extends.

    In previous versions of Prisma ORM, the return type of the $on client method was void. This did not allow for chaining $on() and $extends() calls, as $on is not available on extended clients.

    In this version we've resolved this issue and $on will now return the modified Prisma Client.

    Community fixes

    We have a number of community-submitted fixes that improve Prisma ORM:

    Prisma is hiring

    Join us at Prisma and work on our TypeScript ORM (now faster than ever) and our Cloud products like Prisma Postgres (now in GA!)

    We currently have two open roles in our Engineering team:

    If these donโ€™t fit, you can still check out our jobs page and send a general application.

    Enterprise support

    Prisma offers an enterprise support plan for Prisma ORM. Get direct help from our team and a joint slack channel! With Prisma ORM 7 on the horizon this is a great time to upgrade your support today.

    Credits

    Thank you to @overbit, @RaHehl, @toniopelo, and @de-novo for your contributions to this release!

    Open source โ†’
  18. 6.5.0-integration-push-zsmplqopwokk.119 Feb 2025pre-release

    Nothing published for this version

  19. 6.5.0-integration-push-ptqnnytntzol.119 Feb 2025pre-release

    Nothing published for this version

  20. 6.5.0-integration-fix-use-webcrypto.44 Mar 2025pre-release

    Nothing published for this version

  21. 6.5.0-integration-fix-use-webcrypto.34 Mar 2025pre-release

    Nothing published for this version

  22. 6.5.0-integration-fix-use-webcrypto.24 Mar 2025pre-release

    Nothing published for this version

  23. 6.5.0-integration-fix-use-webcrypto.13 Mar 2025pre-release

    Nothing published for this version

  24. 6.5.0-integration-fix-use-web-crypto.14 Mar 2025pre-release

    Nothing published for this version

  25. 6.5.0-integration-fix-improve-global-omit-api-performance-2.23 Mar 2025pre-release

    Nothing published for this version

  26. 6.5.0-integration-fix-improve-global-omit-api-performance-2.128 Feb 2025pre-release

    Nothing published for this version

  27. 6.5.0-integration-fix-improve-global-omit-api-performance.126 Feb 2025pre-release

    Nothing published for this version

  28. 6.5.0-integration-fix-export-index-js.26 Mar 2025pre-release

    Nothing published for this version

  29. 6.5.0-integration-fix-export-index-js.16 Mar 2025pre-release

    Nothing published for this version

  30. 6.5.0-integration-fix-e2e-prisma-config-2.921 Feb 2025pre-release

    Nothing published for this version

  31. 6.5.0-integration-fix-e2e-prisma-config-2.821 Feb 2025pre-release

    Nothing published for this version

  32. 6.5.0-integration-fix-e2e-prisma-config-2.721 Feb 2025pre-release

    Nothing published for this version

  33. 6.5.0-integration-fix-e2e-prisma-config-2.621 Feb 2025pre-release

    Nothing published for this version

  34. 6.5.0-integration-fix-e2e-prisma-config-2.521 Feb 2025pre-release

    Nothing published for this version

  35. 6.5.0-integration-fix-e2e-prisma-config-2.421 Feb 2025pre-release

    Nothing published for this version

  36. 6.5.0-integration-fix-e2e-prisma-config-2.321 Feb 2025pre-release

    Nothing published for this version

  37. 6.5.0-integration-fix-e2e-prisma-config-2.221 Feb 2025pre-release

    Nothing published for this version

  38. 6.5.0-integration-fix-e2e-prisma-config-2.121 Feb 2025pre-release

    Nothing published for this version

  39. 6.5.0-integration-fix-e2e-prisma-config.220 Feb 2025pre-release

    Nothing published for this version

  40. 6.5.0-integration-fix-e2e-prisma-config.120 Feb 2025pre-release

    Nothing published for this version

  41. 6.5.0-integration-fix-dynamic-libsql-import.16 Mar 2025pre-release

    Nothing published for this version

  42. 6.5.0-integration-fix-client-read-replicas.46 Mar 2025pre-release

    Nothing published for this version

  43. 6.5.0-integration-fix-client-read-replicas.326 Feb 2025pre-release

    Nothing published for this version

  44. 6.5.0-integration-fix-client-read-replicas.226 Feb 2025pre-release

    Nothing published for this version

  45. 6.5.0-integration-fix-client-read-replicas.126 Feb 2025pre-release

    Nothing published for this version

  46. 6.5.0-integration-feat-prisma-config-without-new-package.95 Mar 2025pre-release

    Nothing published for this version

  47. 6.5.0-integration-feat-prisma-config-without-new-package.85 Mar 2025pre-release

    Nothing published for this version

  48. 6.5.0-integration-feat-prisma-config-without-new-package.75 Mar 2025pre-release

    Nothing published for this version

  49. 6.5.0-integration-feat-prisma-config-without-new-package.65 Mar 2025pre-release

    Nothing published for this version

  50. 6.5.0-integration-feat-prisma-config-without-new-package.54 Mar 2025pre-release

    Nothing published for this version

  51. 6.5.0-integration-feat-prisma-config-without-new-package.44 Mar 2025pre-release

    Nothing published for this version

  52. 6.5.0-integration-feat-prisma-config-without-new-package.34 Mar 2025pre-release

    Nothing published for this version

  53. 6.5.0-integration-feat-prisma-config-without-new-package.23 Mar 2025pre-release

    Nothing published for this version

  54. 6.5.0-integration-feat-prisma-config-without-new-package.13 Mar 2025pre-release

    Nothing published for this version

  55. 6.5.0-integration-feat-get-rid-of-patches.110 Mar 2025pre-release

    Nothing published for this version

  56. 6.5.0-integration-engines-6-5-0-72-refactor-remove-set-params-and-connection-str-1b408865593607dfa57207e636054d68fbe0ddeb.110 Mar 2025pre-release

    Nothing published for this version

  57. 6.5.0-integration-engines-6-5-0-61-push-mwuxysxvlnqz-cf0a5062f0eda56dfaac329aea4833bc985a7155.17 Mar 2025pre-release

    Nothing published for this version

  58. 6.5.0-integration-engines-6-5-0-56-integration-1cf139073a8b56464eb2fc59c9f4cb13c1d2f3bd-26837d3c9977b21652932dc136f0cde531e2f60a.26 Mar 2025pre-release

    Nothing published for this version

  59. 6.5.0-integration-engines-6-5-0-56-integration-1cf139073a8b56464eb2fc59c9f4cb13c1d2f3bd-26837d3c9977b21652932dc136f0cde531e2f60a.16 Mar 2025pre-release

    Nothing published for this version

  60. 6.5.0-integration-engines-6-5-0-55-integration-1cf139073a8b56464eb2fc59c9f4cb13c1d2f3bd-97353f9a354d13246bd29b1ec7b2eb74ca8b945f.26 Mar 2025pre-release

    Nothing published for this version