Open
Conversation
faa0d42 to
5faaba4
Compare
d382f58 to
4ad5a7f
Compare
ded9f14 to
fc56c6e
Compare
fb09a2a to
ddb1731
Compare
a3327c8 to
534a3d5
Compare
8b58eea to
8223d17
Compare
8223d17 to
43d7535
Compare
43d7535 to
72ac6e2
Compare
4140b90 to
d8efe85
Compare
d8efe85 to
ab1f335
Compare
6d14435 to
5c24038
Compare
5c24038 to
71ba3b5
Compare
71ba3b5 to
ce2886b
Compare
ad6c475 to
f3f372b
Compare
ee5dda1 to
a2b8914
Compare
a2b8914 to
5e1fa08
Compare
5e1fa08 to
214ec5e
Compare
77d9a14 to
b31b539
Compare
b31b539 to
b48eb0d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.0.0→7.3.06.19.0→6.19.27.0.0→7.3.07.0.0→7.3.07.0.0→7.3.07.2.0→7.3.07.0.0→7.3.07.2.0→7.3.06.19.0→6.19.26.9.0→6.19.26.15.0→6.19.27.0.0→7.3.06.19.0→6.19.27.2.0→7.3.06.9.0→6.19.26.15.0→6.19.2Release Notes
prisma/prisma (@prisma/adapter-better-sqlite3)
v7.3.0Compare Source
Today, we are excited to share the
7.3.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
ORM
We've been working on various performance-related bugs since the initial ORM 7.0 release. With 7.3.0, we're introducing a new
compilerBuildoption for the client generator block inschema.prismawith two options:fastandsmall. This allows you to swap the underlying Query Compiler engine based on your selection, one built for speed (with an increase in size), and one built for size (with the trade off for speed). By default, thefastmode is used, but this can be set by the user:generator client { provider = "prisma-client" output = "../src/generated/prisma" compilerBuild = "fast" // "fast" | "small" }We still have more in progress for performance, but this new
compilerBuildoption is our first step toward addressing your concerns!#29005: Bypass the Query Compiler for Raw Queries
Raw queries (
$executeRaw,$queryRaw) can now skip going through the query compiler and query interpreter infrastructure. They can be sent directly to the driver adapter, removing additional overhead.#28965: Update MSSQL to v12.2.0
This community PR updates the
@prisma/adapter-mssqlto use MSSQL v12.2.0. Thanks Jay-Lokhande!#29001: Pin better-sqlite3 version to avoid SQLite bug
An underlying bug in SQLite 3.51.0 has affected the
better-sqlite3adapter. We’ve bumped the version that powers@prisma/better-sqlite3and have pinned the version to prevent any unexpected issues. If you are using@prisma/better-sqlite3, please upgrade to v7.3.0.#29002: Revert
@mapenums to v6.19.0 behaviorIn the initial release of v7.0, we made a change with Mapped Enums where the generated enum would get its value from the value passed to the
@mapfunction. This was a breaking change from v6 that caused issues for many users. We have reverted this change for the time being, as many different diverging approaches have emerged from the community discussion.prisma-engines#5745: Cast BigInt to text in JSON aggregation
When using
relationJoinswith BigInt fields in Prisma 7, JavaScript'sJSON.parseloses precision for integers larger thanNumber.MAX_SAFE_INTEGER(2^53 - 1). This happens because PostgreSQL'sJSONB_BUILD_OBJECTreturns BigInt values as JSON numbers, which JavaScript cannot represent precisely.This PR cast BigInt columns to
::textinsideJSONB_BUILD_OBJECTcalls, similar to howMONEYis already cast to::numeric.This ensures BigInt values are returned as JSON strings, preserving full precision when parsed in JavaScript.
Open roles at Prisma
Interested in joining Prisma? We’re growing and have several exciting opportunities across the company for developers who are passionate about building with Prisma. Explore our open positions on our [Careers page](https://www.prisma.io/careers#current) and find the role that’s right for you.
Enterprise support
Thousands of teams use Prisma and many of them already tap into our Enterprise & Agency Support Program for hands-on help with everything from schema integrations and performance tuning to security and compliance.
With this program you also get priority issue triage and bug fixes, expert scalability advice, and custom training so that your Prisma-powered apps stay rock-solid at any scale. Learn more or join: https://prisma.io/enterprise.
v7.2.0Compare Source
Today, we are excited to share the
7.2.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Highlights
ORM
sqlcommenter-query-insightsplugin-urlparam fordb pull,db push,migrate dev-urlflag to key migrate commands to make connection configuration more flexible.prisma generateprisma generate) to proceed even when URLs are undefined.prisma initbased on the JS runtime (Bun vs others)prisma inittailor generated setup depending on whether the runtime is Bun or another JavaScript runtime.DataMapperErroraUserFacingErrorDataMapperErroris surfaced as a user-facing error for clearer, more actionable error reporting.22P02).prisma version --jsonemit JSON only to stdoutVS Code Extension
Open roles at Prisma
Interested in joining Prisma? We’re growing and have several exciting opportunities across the company for developers who are passionate about building with Prisma. Explore our open positions on our [Careers page](https://www.prisma.io/careers#current) and find the role that’s right for you.
Enterprise support
Thousands of teams use Prisma and many of them already tap into our Enterprise & Agency Support Program for hands-on help with everything from schema integrations and performance tuning to security and compliance.
With this program you also get priority issue triage and bug fixes, expert scalability advice, and custom training so that your Prisma-powered apps stay rock-solid at any scale. Learn more or join: https://prisma.io/enterprise.
v7.1.0Compare Source
Today, we are excited to share the
7.1.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
This release brings quality of life improvements and fixes various bugs.
Prisma ORM
#28735: pnpm monorepo issues with prisma client runtime utils
Resolves issues in pnpm monorepos where users would report TypeScript issues related to
@prisma/client-runtime-utils.#28769: implement sql commenter plugins for Prisma Client
This PR implements support for SQL commenter plugins to Prisma Client. The feature will allow users to add metadata to SQL queries as comments following the sqlcommenter format.
Here’s two related PRs that were also merged:
traceContextSQL commenter plugin#28737: added error message when constructing client without configs
This commit adds an additional error message when trying to create a new PrismaClient instance without any arguments.
Thanks to @xio84 for this community contribution!
#28820: mark
@opentelemetry/apias external in instrumentationEnsures
@opentelemetry/apiis treated as an external dependency rather than bundled.Since it is a peer dependency, this prevents applications from ending up with duplicate copies of the package.
#28694: allow
env()helper to accept interface-based genericsUpdates the
env()helper’s type definition so it works with interfaces as well as type aliases.This removes the previous constraint requiring an index signature and resolves TS2344 errors when using interface-based env types. Runtime behavior is unchanged.
Thanks to @SaubhagyaAnubhav for this community contribution!
Read Replicas extension
#53: Add support for Prisma 7
Users of the read-replicas extension can now use the extension in Prisma v7. You can update by installing:
For folks still on Prisma v6, install version
0.4.1:For more information, visit the repo
SQL comments
We're excited to announce SQL Comments support in Prisma 7.1.0! This new feature allows you to append metadata to your SQL queries as comments, making it easier to correlate queries with application context for improved observability, debugging, and tracing.
SQL comments follow the sqlcommenter format developed by Google, which is widely supported by database monitoring tools. With this feature, your SQL queries can include rich metadata:
Basic usage
Pass an array of SQL commenter plugins to the new
commentsoption when creating aPrismaClientinstance:Query tags
The
@prisma/sqlcommenter-query-tagspackage lets you add arbitrary tags to queries within an async context:Resulting SQL:
Use
withMergedQueryTagsto merge tags with outer scopes:Trace context
The
@prisma/sqlcommenter-trace-contextpackage adds W3C Trace Context (traceparent) headers for distributed tracing correlation:When tracing is enabled and the span is sampled:
Custom plugins
Create your own plugins to add custom metadata:
Framework integration
SQL comments work seamlessly with popular frameworks, e.g., Hono:
Additional framework examples for Express, Koa, Fastify, and NestJS are available in the documentation.
For complete documentation, see SQL Comments. We'd love to hear your feedback on this feature! Please open an issue on GitHub or join the discussion in our Discord community.
Open roles at Prisma
Interested in joining Prisma? We’re growing and have several exciting opportunities across the company for developers who are passionate about building with Prisma. Explore our open positions on our Careers page and find the role that’s right for you.
Enterprise support
Thousands of teams use Prisma and many of them already tap into our Enterprise & Agency Support Program for hands-on help with everything from schema integrations and performance tuning to security and compliance.
With this program you also get priority issue triage and bug fixes, expert scalability advice, and custom training so that your Prisma-powered apps stay rock-solid at any scale. Learn more or join: https://prisma.io/enterprise.
v7.0.1Compare Source
Today, we are issuing a 7.0.1 patch release focused on quality of life improvements, and bug fixes.
🛠 Fixes
Prisma Studio:
Prisma CLI
prisma migrate diff(via prisma/prisma-engines#5699)prisma db seedis run, but nomigrations.seedcommand is specified in the Prisma config file (via #28711)enginescheck inpackage.json, to let Node.js 25+ users adopt Prisma, although Node.js 25+ isn't considered stable yet (via #28600). Thanks @Sajito!Prisma Client
cockroachdbsupport inprisma-client-jsgenerator, after it was accidentally not shipped in Prisma 7.0.0 (via #28690)@prisma/better-sqlite3
better-sqlite3to^12.4.5, fixing #28624 (via #28625). Thank you @bhbs!Configuration
📅 Schedule: Branch creation - "before 8am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.