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. 4.3.0-dev.910 Aug 2022pre-release

    Nothing published for this version

  2. 4.3.0-dev.810 Aug 2022pre-release

    Nothing published for this version

  3. 4.3.0-dev.710 Aug 2022pre-release

    Nothing published for this version

  4. 4.3.0-dev.610 Aug 2022pre-release

    Nothing published for this version

  5. 4.3.0-dev.510 Aug 2022pre-release

    Nothing published for this version

  6. 4.3.0-dev.410 Aug 2022pre-release

    Nothing published for this version

  7. 4.3.0-dev.310 Aug 2022pre-release

    Nothing published for this version

  8. 4.3.0-dev.210 Aug 2022pre-release

    Nothing published for this version

  9. 4.3.0-dev.19 Aug 2022pre-release

    Nothing published for this version

  10. 4.2.110 Aug 2022
    Release notesOpen source โ†’
  11. 4.2.1-dev.210 Aug 2022pre-release

    Nothing published for this version

  12. 4.2.09 Aug 2022
    Release notes

    ๐ŸŒŸ Help us spread the word about Prisma by starring the repo or tweeting about the release. ๐ŸŒŸ

    Major improvements

    Prisma Client tracing support (Preview)

    We're excited to announce Preview support for tracing in Prisma Client! ๐ŸŽ‰

    Tracing allows you to track requests as they flow through your application. This is especially useful for debugging distributed systems where each request can span multiple services.

    With tracing, you can now see how long Prisma takes and what queries are issued in each operation. You can visualize these traces as waterfall diagrams using tools such as Jaeger, Honeycomb, or DataDog.

    Read more about tracing in our announcement post and learn more in our documentation on how to start working with tracing.

    Try it out and let us know what you think.

    Isolation levels for interactive transactions

    We are improving the interactiveTransactions Preview feature with the support for defining the isolation level of an interactive transaction.

    Isolation levels describe different types of trade-offs between isolation and performance that databases can make when processing transactions. Isolation levels determine what types of data leaking can occur between transactions or what data anomalies can occur.

    To set the transaction isolation level, use the isolationLevel option in the second parameter of the API. For example:

    await prisma.$transaction(
      async (prisma) => {
        // Your transaction...
      },
      {
        isolationLevel: Prisma.TransactionIsolationLevel.Serializable,
        maxWait: 5000,
        timeout: 10000,
      }
    )
    

    Prisma Client supports the following isolation levels if they're available in your database provider:

    • ReadCommitted
    • ReadUncommitted
    • RepeatableRead
    • Serializable
    • Snapshot

    Learn more about in our documentation. Try it out, and let us know what you think in this GitHub issue.

    Renaming of Prisma Client Metrics

    In this release, we've renamed the metrics โ€” counters, gauges, and histograms โ€” returned from prisma.$metrics() to make it a little easier to understand at a glance.

    Previous Updated
    query_total_operations prisma_client_queries_total
    query_total_queries prisma_datasource_queries_total
    query_active_transactions prisma_client_queries_active
    query_total_elapsed_time_ms prisma_client_queries_duration_histogram_ms
    pool_wait_duration_ms prisma_client_queries_wait_histogram_ms
    pool_active_connections prisma_pool_connections_open
    pool_idle_connections prisma_pool_connections_idle
    pool_wait_count prisma_client_queries_wait

    Give Prisma Client metrics a shot and let us know what you think in this GitHub issue

    To learn more, check out our documentation.

    Syntax highlighting for raw queries in Prisma Client

    This release adds syntax highlighting support for raw SQL queries when using $queryRaw`` and $executeRaw`` . This is made possible using Prisma's VS Code extension.

    <img width="678" alt="Screenshot 2022-08-09 at 12 30 27" src="https://user-images.githubusercontent.com/33921841/183627500-ad866a4d-8624-4f05-839f-81daaaf3ce2d.png">

    Note: Syntax highlighting currently doesn't work with when using parentheses, (), $queryRaw(), $executeRaw(), $queryRawUnsafe(), and $executeRawUnsafe().

    If you are interested in having this supported, let us know in this GitHub issue.

    Experimental Cloudflare Module Worker Support

    We fixed a bug in this release that prevented the Prisma Edge Client from working with Cloudflare Module Workers.

    We now provide experimental support with a workaround for environment variables.

    Try it out and let us know how what you think! In case you run into any errors, feel free to create a bug report.

    Upgrade to Prisma 4

    In case you missed it, we held a livestream a few weeks ago and walked through issues you may run into while upgrading to Prisma 4 and how to fix them!

    Request for feedback

    Our Product teams are currently running two surveys to help close the feature gaps and improve Prisma.

    If you have a use-case for geographical data (GIS) or full-text search/ indexes (FTS), we would appreciate your feedback on your needs:

    Many thanks! ๐Ÿ™Œ๐Ÿฝ

    Fixes and improvements

    Prisma Client

    Prisma

    Language tools (e.g. VS Code)

    Prisma Studio

    Credits

    Huge thanks to @shian15810, @zifeo, @lodi-g, @Gnucki, @apriil15, @givensuman, @peter-gy for helping!

    Prisma Data Platform

    We're working on the Prisma Data Platform โ€” a collaborative environment for connecting apps to databases. It includes the:

    • Data Browser for navigating, editing, and querying data
    • Data Proxy for persistent, reliable, and scalable connection pooling for your database.
    • Query Console for experimenting with queries

    Try it out and let us know what you think!

    ๐Ÿ’ผ 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 looking for a Developer Advocate (Frontend / Fullstack) and Back-end Engineer: Prisma Data Platform.

    Feel free to read the job descriptions and apply using the links provided.

    ๐Ÿ“บ Join us for another "What's new in Prisma" livestream

    Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.

    The stream takes place on YouTube on Thursday, August 11 at 5 pm Berlin | 8 am San Francisco.

    Open source โ†’
  13. 4.2.0-integration-update-pkg-annotations.18 Aug 2022pre-release

    Nothing published for this version

  14. 4.2.0-integration-tracing-fix.51 Aug 2022pre-release

    Nothing published for this version

  15. 4.2.0-integration-tracing-fix.41 Aug 2022pre-release

    Nothing published for this version

  16. 4.2.0-integration-tracing-fix.31 Aug 2022pre-release

    Nothing published for this version

  17. 4.2.0-integration-tracing-fix.21 Aug 2022pre-release

    Nothing published for this version

  18. 4.2.0-integration-tracing-fix.11 Aug 2022pre-release

    Nothing published for this version

  19. 4.2.0-integration-fix-localdev-postinstall.126 Jul 2022pre-release

    Nothing published for this version

  20. 4.2.0-integration-fix-failing-ecosystem-tests.14 Aug 2022pre-release

    Nothing published for this version

  21. 4.2.0-integration-fix-debug-types.15 Aug 2022pre-release

    Nothing published for this version

  22. 4.2.0-integration-engines-4-2-0-6-integration-test-auto-release-f254950bf249ea064a25252bc81800f9715b9f44.121 Jul 2022pre-release

    Nothing published for this version

  23. 4.2.0-integration-engines-4-2-0-32-fix-dmmf-test-8dd177a7c20a62f107b8d21725f1c1b7461d563b.18 Aug 2022pre-release

    Nothing published for this version

  24. 4.2.0-integration-engines-4-2-0-26-integration-tracing-fix-0e187b820c59614bb23d16c1f22332c991de1892.13 Aug 2022pre-release

    Nothing published for this version

  25. 4.2.0-integration-engines-4-2-0-21-integration-tracing-more-fixes-ae7c377d84048fc7fc2e1a1f97780b1f2f3c41dd.12 Aug 2022pre-release

    Nothing published for this version

  26. 4.2.0-integration-engines-4-2-0-19-integration-tracing-fix-8cd3da4cf873bb75ec82d00295e47a2e078c4aea.11 Aug 2022pre-release

    Nothing published for this version

  27. 4.2.0-integration-engines-4-2-0-16-integration-tracing-more-fixes-ae7c377d84048fc7fc2e1a1f97780b1f2f3c41dd.129 Jul 2022pre-release

    Nothing published for this version

  28. 4.2.0-integration-engines-4-2-0-15-integration-metric-renaming-1f993ff682f550307ef63b792a1c5f678f6963a8.129 Jul 2022pre-release

    Nothing published for this version

  29. 4.2.0-integration-engines-4-2-0-14-query-engine-itx-isolation-1261b1df947d7ed71189ea4497d996e45522f3f6.129 Jul 2022pre-release

    Nothing published for this version

  30. 4.2.0-integration-engines-4-2-0-13-query-engine-itx-isolation-ef54f39c384a756a790818f4bba8386936d705ca.128 Jul 2022pre-release

    Nothing published for this version

  31. 4.2.0-integration-engines-4-2-0-12-integration-tracing-fix-895bd692464d00b535a72dc05f189e5bced5c584.128 Jul 2022pre-release

    Nothing published for this version

  32. 4.2.0-integration-engine-local-postinstall.188 Aug 2022pre-release

    Nothing published for this version

  33. 4.2.0-integration-engine-local-postinstall.178 Aug 2022pre-release

    Nothing published for this version

  34. 4.2.0-integration-engine-local-postinstall.168 Aug 2022pre-release

    Nothing published for this version

  35. 4.2.0-integration-engine-local-postinstall.158 Aug 2022pre-release

    Nothing published for this version

  36. 4.2.0-integration-engine-local-postinstall.145 Aug 2022pre-release

    Nothing published for this version

  37. 4.2.0-integration-engine-local-postinstall.135 Aug 2022pre-release

    Nothing published for this version

  38. 4.2.0-integration-engine-local-postinstall.125 Aug 2022pre-release

    Nothing published for this version

  39. 4.2.0-integration-engine-local-postinstall.115 Aug 2022pre-release

    Nothing published for this version

  40. 4.2.0-integration-engine-local-postinstall.105 Aug 2022pre-release

    Nothing published for this version

  41. 4.2.0-integration-engine-local-postinstall.95 Aug 2022pre-release

    Nothing published for this version

  42. 4.2.0-integration-engine-local-postinstall.85 Aug 2022pre-release

    Nothing published for this version

  43. 4.2.0-integration-engine-local-postinstall.75 Aug 2022pre-release

    Nothing published for this version

  44. 4.2.0-integration-engine-local-postinstall.65 Aug 2022pre-release

    Nothing published for this version

  45. 4.2.0-integration-engine-local-postinstall.55 Aug 2022pre-release

    Nothing published for this version

  46. 4.2.0-integration-engine-local-postinstall.44 Aug 2022pre-release

    Nothing published for this version

  47. 4.2.0-integration-engine-local-postinstall.34 Aug 2022pre-release

    Nothing published for this version

  48. 4.2.0-integration-engine-local-postinstall.24 Aug 2022pre-release

    Nothing published for this version

  49. 4.2.0-integration-engine-local-postinstall.13 Aug 2022pre-release

    Nothing published for this version

  50. 4.2.0-integration-debug-unpkg-com.219 Jul 2022pre-release

    Nothing published for this version

  51. 4.2.0-integration-debug-unpkg-com.119 Jul 2022pre-release

    Nothing published for this version

  52. 4.2.0-integration-add-fmt-wasm-to-cli.48 Aug 2022pre-release

    Nothing published for this version

  53. 4.2.0-integration-add-fmt-wasm-to-cli.38 Aug 2022pre-release

    Nothing published for this version

  54. 4.2.0-integration-add-fmt-wasm-to-cli.222 Jul 2022pre-release

    Nothing published for this version

  55. 4.2.0-integration-add-fmt-wasm-to-cli.122 Jul 2022pre-release

    Nothing published for this version

  56. 4.2.0-dev.589 Aug 2022pre-release

    Nothing published for this version

  57. 4.2.0-dev.578 Aug 2022pre-release

    Nothing published for this version

  58. 4.2.0-dev.568 Aug 2022pre-release

    Nothing published for this version

  59. 4.2.0-dev.558 Aug 2022pre-release

    Nothing published for this version

  60. 4.2.0-dev.548 Aug 2022pre-release

    Nothing published for this version