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

Releases

  1. 5.20.0-integration-feat-strict-undefined-checks.223 Sept 2024pre-release

    Nothing published for this version

  2. 5.20.0-integration-feat-strict-undefined-checks.113 Sept 2024pre-release

    Nothing published for this version

  3. 5.20.0-integration-feat-no-nextjs-workaround.26 Sept 2024pre-release

    Nothing published for this version

  4. 5.20.0-integration-feat-no-nextjs-workaround.16 Sept 2024pre-release

    Nothing published for this version

  5. 5.20.0-integration-engines-5-20-0-9-integration-itx-refactor-51ed793416e8f8bd436b0a4802ba4e44d2c40263.221 Sept 2024pre-release

    Nothing published for this version

  6. 5.20.0-integration-engines-5-20-0-9-integration-itx-refactor-51ed793416e8f8bd436b0a4802ba4e44d2c40263.121 Sept 2024pre-release

    Nothing published for this version

  7. 5.20.0-integration-engines-5-20-0-6-integration-fix-planetscale-transactions-0deadde8739779d8360ea8c60d2b49693271abcf.23 Sept 2024pre-release

    Nothing published for this version

  8. 5.20.0-integration-engines-5-20-0-6-integration-fix-planetscale-transactions-0deadde8739779d8360ea8c60d2b49693271abcf.13 Sept 2024pre-release

    Nothing published for this version

  9. 5.20.0-integration-engines-5-20-0-5-integration-fix-planetscale-transactions-7cb8cc9f8e14bd5bde8f8f67c26ccace7c49a53f.23 Sept 2024pre-release

    Nothing published for this version

  10. 5.20.0-integration-engines-5-20-0-5-integration-fix-planetscale-transactions-7cb8cc9f8e14bd5bde8f8f67c26ccace7c49a53f.13 Sept 2024pre-release

    Nothing published for this version

  11. 5.20.0-integration-engines-5-20-0-2-integration-nested-transactions-70e4e8eaa9b1ca0ec042fa831bc2c81f668215a7.229 Aug 2024pre-release

    Nothing published for this version

  12. 5.20.0-integration-engines-5-20-0-2-integration-nested-transactions-70e4e8eaa9b1ca0ec042fa831bc2c81f668215a7.129 Aug 2024pre-release

    Nothing published for this version

  13. 5.20.0-integration-engines-5-20-0-13-integration-itx-refactor-412fc8ba6449e41c37627808a172c1f3daa46129.224 Sept 2024pre-release

    Nothing published for this version

  14. 5.20.0-integration-engines-5-20-0-13-integration-itx-refactor-412fc8ba6449e41c37627808a172c1f3daa46129.124 Sept 2024pre-release

    Nothing published for this version

  15. 5.20.0-dev.2124 Sept 2024pre-release

    Nothing published for this version

  16. 5.20.0-dev.2024 Sept 2024pre-release

    Nothing published for this version

  17. 5.20.0-dev.1924 Sept 2024pre-release

    Nothing published for this version

  18. 5.20.0-dev.1824 Sept 2024pre-release

    Nothing published for this version

  19. 5.20.0-dev.1724 Sept 2024pre-release

    Nothing published for this version

  20. 5.20.0-dev.1623 Sept 2024pre-release

    Nothing published for this version

  21. 5.20.0-dev.1513 Sept 2024pre-release

    Nothing published for this version

  22. 5.20.0-dev.149 Sept 2024pre-release

    Nothing published for this version

  23. 5.20.0-dev.139 Sept 2024pre-release

    Nothing published for this version

  24. 5.20.0-dev.126 Sept 2024pre-release

    Nothing published for this version

  25. 5.20.0-dev.115 Sept 2024pre-release

    Nothing published for this version

  26. 5.20.0-dev.105 Sept 2024pre-release

    Nothing published for this version

  27. 5.20.0-dev.95 Sept 2024pre-release

    Nothing published for this version

  28. 5.20.0-dev.85 Sept 2024pre-release

    Nothing published for this version

  29. 5.20.0-dev.75 Sept 2024pre-release

    Nothing published for this version

  30. 5.20.0-dev.64 Sept 2024pre-release

    Nothing published for this version

  31. 5.20.0-dev.54 Sept 2024pre-release

    Nothing published for this version

  32. 5.20.0-dev.44 Sept 2024pre-release

    Nothing published for this version

  33. 5.20.0-dev.32 Sept 2024pre-release

    Nothing published for this version

  34. 5.20.0-dev.228 Aug 2024pre-release

    Nothing published for this version

  35. 5.20.0-dev.128 Aug 2024pre-release

    Nothing published for this version

  36. 5.19.12 Sept 2024
    Release notes

    Today, we are issuing the 5.19.1 patch release.

    What's Changed

    We've fixed the following issues:

    • https://github.com/prisma/prisma/issues/25103
    • https://github.com/prisma/prisma/issues/25137
    • https://github.com/prisma/prisma/issues/25104
    • https://github.com/prisma/prisma/issues/25101

    Full Changelog: https://github.com/prisma/prisma/compare/5.19.0...5.19.x, https://github.com/prisma/prisma-engines/compare/5.19.0...5.19.x

    Open source →
  37. 5.19.1-dev.42 Sept 2024pre-release

    Nothing published for this version

  38. 5.19.1-dev.32 Sept 2024pre-release

    Nothing published for this version

  39. 5.19.1-dev.22 Sept 2024pre-release

    Nothing published for this version

  40. 5.19.1-dev.12 Sept 2024pre-release

    Nothing published for this version

  41. 5.19.027 Aug 2024
    Release notes

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

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

    Highlights

    Introducing TypedSQL

    TypedSQL is a brand new way to interact with your database from Prisma Client. After enabling the typedSql Preview feature, you’re able to write SQL queries in a new sql subdirectory of your prisma directory. These queries are then checked by Prisma during using the new --sql flag of prisma generate and added to your client for use in your code.

    To get started with TypedSQL:

    1. Make sure that you have the latest version of prisma and @prisma/client installed:

      npm install -D prisma@latest
      npm install @prisma/client@latest
      
    2. Enable the typedSql Preview feature in your Prisma Schema.

         generator client {
           provider = "prisma-client-js"
           previewFeatures = ["typedSql"]
         }
      
    3. Create a sql subdirectory of your prisma directory.

      mkdir -p prisma/sql
      
    4. You can now add .sql files to the sql directory! Each file can contain one sql query and the name must be a valid JS identifier. For this example, say you had the file getUsersWithPosts.sql with the following contents:

      SELECT u.id, u.name, COUNT(p.id) as "postCount"
      FROM "User" u
      LEFT JOIN "Post" p ON u.id = p."authorId"
      GROUP BY u.id, u.name
      
    5. Import your SQL query into your code with the @prisma/client/sql import:

         import { PrismaClient } from '@prisma/client'
         import { getUsersWithPosts } from '@prisma/client/sql'
      
         const prisma = new PrismaClient()
      
         const usersWithPostCounts = await prisma.$queryRawTyped(getUsersWithPosts)
         console.log(usersWithPostCounts)
      

    There’s a lot more to talk about with TypedSQL. We think that the combination of the high-level Prisma Client API and the low-level TypedSQL will make for a great developer experience for all of our users.

    To learn more about behind the “why” of TypedSQL be sure to check out our announcement blog post.

    For docs, check out our new TypedSQL section.

    Bug fixes

    Driver adapters and D1

    A few issues with our driverAdapters Preview feature and Cloudflare D1 support were resolved via https://github.com/prisma/prisma-engines/pull/4970 and https://github.com/prisma/prisma/pull/24922

    • Mathematic operations such as max, min, eq, etc in queries when using Cloudflare D1.
    • Resolved issues when comparing BigInt IDs when relationMode="prisma" was enabled and Cloudflare D1 was being used.

    Joins

    • https://github.com/prisma/prisma/issues/23742 fixes Prisma Client not supporting deeply nested some clauses when the relationJoins Preview feature was enabled.

    MongoDB

    The MongoDB driver for Rust (that our query engine users under the hood) had behavior that prioritized IPv4 connections over IPv6 connections. In IPv6-only environments, this could lead to significant "cold starts" where the query engine had to wait for IPv4 to fail before the driver would try IPv6.

    With help from the MongoDB team, this has been resolved. The driver will now try IPv4 and IPv6 connections in parallel and then move forward with the first response. This should prevent cold start issues that have been seen with MongoDB in Prisma Accelerate.

    Thank you to the MongoDB team!

    Join us

    Looking to make an impact on Prisma in a big way? We're now hiring engineers for the ORM team!

    • Senior Engineer (TypeScript): This person will be primarily working on the TypeScript side and evolving our Prisma client. Rust knowledge (or desire to learn Rust) is a plus.
    • Senior Engineer (Rust): This person will be focused on the prisma-engines Rust codebase. TypeScript knowledge (or, again, a desire to learn) is a plus.

    Credits

    Huge thanks to @mcuelenaere, @pagewang0, @Druue, @key-moon, @Jolg42, @pranayat, @ospfranco, @yubrot, @skyzh for helping!

    Open source →
  42. 5.19.0-integration-feat-typed-sql.2623 Aug 2024pre-release

    Nothing published for this version

  43. 5.19.0-integration-feat-typed-sql.2523 Aug 2024pre-release

    Nothing published for this version

  44. 5.19.0-integration-feat-typed-sql.2423 Aug 2024pre-release

    Nothing published for this version

  45. 5.19.0-integration-feat-typed-sql.2323 Aug 2024pre-release

    Nothing published for this version

  46. 5.19.0-integration-feat-typed-sql.2223 Aug 2024pre-release

    Nothing published for this version

  47. 5.19.0-integration-feat-typed-sql.2122 Aug 2024pre-release

    Nothing published for this version

  48. 5.19.0-integration-feat-typed-sql.2022 Aug 2024pre-release

    Nothing published for this version

  49. 5.19.0-integration-feat-typed-sql.1922 Aug 2024pre-release

    Nothing published for this version

  50. 5.19.0-integration-feat-typed-sql.1822 Aug 2024pre-release

    Nothing published for this version

  51. 5.19.0-integration-feat-typed-sql.1722 Aug 2024pre-release

    Nothing published for this version

  52. 5.19.0-integration-feat-typed-sql.1622 Aug 2024pre-release

    Nothing published for this version

  53. 5.19.0-integration-feat-typed-sql.1522 Aug 2024pre-release

    Nothing published for this version

  54. 5.19.0-integration-feat-typed-sql.1422 Aug 2024pre-release

    Nothing published for this version

  55. 5.19.0-integration-feat-typed-sql.1321 Aug 2024pre-release

    Nothing published for this version

  56. 5.19.0-integration-feat-typed-sql.1221 Aug 2024pre-release

    Nothing published for this version

  57. 5.19.0-integration-feat-typed-sql.1121 Aug 2024pre-release

    Nothing published for this version

  58. 5.19.0-integration-feat-typed-sql.1021 Aug 2024pre-release

    Nothing published for this version

  59. 5.19.0-integration-feat-typed-sql.921 Aug 2024pre-release

    Nothing published for this version

  60. 5.19.0-integration-feat-typed-sql.820 Aug 2024pre-release

    Nothing published for this version