generated from nhcarrigan/template
deps: update @prisma/client to 7.3.0 #2
Open
minori
wants to merge 1 commits from
dependencies/update--prisma-client into main
pull from: dependencies/update--prisma-client
merge into: nhcarrigan:main
nhcarrigan:main
nhcarrigan:dependencies/update--types-node
nhcarrigan:dependencies/update-eslint
nhcarrigan:dependencies/update-vitest
nhcarrigan:dependencies/update-typescript
nhcarrigan:dependencies/update-prisma
nhcarrigan:dependencies/update--vitest-coverage-istanbul
nhcarrigan:dependencies/update--nhcarrigan-eslint-config
nhcarrigan:dependencies/update--fastify-pre-commit
nhcarrigan:dependencies/update-discord.js
No Reviewers
Labels
Clear labels
aspect
code
Concerns the software code in the repository
aspect
dx
Concerns developers' experience with the codebase
aspect
interface
Concerns end-users' experience with the software
aspect
text
Concerns the documentation material in the repository
contribute
good first issue
A great opportunity for a team member to learn a new codebase
contribute
help wanted
Open for anyone on our team to grab.
contribute
staff only
Restricted to our executive leadership.
goal
addition
Addition of new feature
goal
fix
Bug fix
goal
improvement
Improvement to an existing feature
points
1
Very simple issue requiring minimal effort and complexity.
points
13
Extremely complex issue representing major undertakings. Should be broken down into smaller pieces.
points
2
Simple issue that requires a bit more thought or investigation.
points
3
Moderate complexity issue requiring more substantial work.
points
5
Complex issue requiring significant effort and expertise.
points
8
Very complex issue requiring extensive work and deep expertise.
priority
critical
1
Must be fixed ASAP
priority
high
2
Stalls work on the project or its dependents
priority
low
4
Low priority and doesn't need to be rushed
priority
medium
3
Not blocking but should be fixed soon
priority
none
5
No priority, should only be performed when a developer is available
status
awaiting triage
Has not been triaged & therefore, not ready for work
status
blocked
Blocked and therefore not ready for work
status
discarded
Will not be worked on
status
discontinued
Not suitable for work as repo is in maintenance
status
label work required
Needs proper labelling before it can be worked on
status
ready for dev
Ready for work
status
ticket work required
Needs more details before it can be worked on
talk
discussion
Open for discussions and feedback
talk
question
Can be resolved with an answer
time
1 day
Approximately one full day of development work.
time
1-2 weeks
One to two weeks of focused development effort.
time
2-3 days
Two to three days of development effort.
time
4-5 days
Approximately one week of development work.
time
<1 day
Less than one day of focused work. Quick fixes or simple tasks.
time
>2 weeks
More than two weeks of development work. Must be broken down into smaller pieces.
No Label
Milestone
No items
No Milestone
Assignees
gurkirat
hanna (Hanna Rose)
hikari (Hikari)
minori (Minori)
naomi (Naomi Carrigan)
rain
teklu
tim
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: nhcarrigan/rig-task-bot#2
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "dependencies/update--prisma-client"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dependency Update
Updates @prisma/client from
5.20.0to7.3.0.Type
dependencies
Changelog
Changelog
7.3.0
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: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.
6.19.2
Today, we are issuing a 6.19.2 patch release in the Prisma 6 release line. It fixes an issue with Prisma Accelerate support in some edge runtime configurations when the
@prisma/client/edgeentrypoint is not being used.Changes:
7.2.0
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.
6.19.1
Today, we are issuing a patch release for Prisma 6 that includes a fix for a diffing bug introduced in Prisma 6.13.1, which led to incorrectly reported empty diffs.
Changes
7.1.0
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.
7.0.1
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 https://github.com/prisma/prisma-engines/pull/5699)prisma db seedis run, but nomigrations.seedcommand is specified in the Prisma config file (via https://github.com/prisma/prisma/pull/28711)enginescheck inpackage.json, to let Node.js 25+ users adopt Prisma, although Node.js 25+ isn't considered stable yet (via https://github.com/prisma/prisma/pull/28600). Thanks @Sajito!Prisma Client
cockroachdbsupport inprisma-client-jsgenerator, after it was accidentally not shipped in Prisma 7.0.0 (via https://github.com/prisma/prisma/pull/28690)@prisma/better-sqlite3
better-sqlite3to^12.4.5, fixing https://github.com/prisma/prisma/issues/28624 (via https://github.com/prisma/prisma/pull/28625). Thank you @bhbs!7.0.0
Today, we are excited to share the
7.0.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — and follow us on X!
Highlights
Over the past year we focused on making it simpler and faster to build applications with Prisma, no matter what tools you use or where you deploy, with exceptional developer experience at it’s core. This release makes many features introduced over the past year as the new defaults moving forward.
Prisma ORM
ESM Prisma Client as the default
The Rust-free/ESM Prisma Client has been in the works for some time now, all the way back to v6.16.0, with early iterations being available for developers to adopt. Now with version 7.0, we’re making this the default for all new projects. With this, developers are able to get:
Adopting the new client is as simple as swapping the
prisma-client-jsprovider forprisma-clientin your mainschema.prisma:Prisma Client changes
In v7, we've moved to requiring users pass either an adapter or
accelerteUrlwhen creating a new instance ofPrismaClient.For Driver Adapters
For other databases:
We’ve also removed support for additional options when configuring your Prisma Client
new PrismaClient({ datasources: .. })support has been removednew PrismaClient({datasourceUrl: ..})support has been removednew PrismaClient()support has been removednew PrismaClient({})support has been removedFor Prisma Accelerate users:
Generated Client and types move out of
node_modulesWhen running
prisma generate, the generated Client runtime and project types will now require aoutputpath to be set in your project’s mainschema.prisma. We recommend that they be generated inside of your project’ssrcdirectory to ensure that your existing tools are able to consume them like any other piece of code you might have.Update your code to import
PrismaClientfrom this generated output:For developers who still need to stay on the
prisma-client-jsbut are using the newoutputoption, theres’s a new required package,@prisma/client-runtime-utils, which needs to be installed:Removal of implicit Prisma commands
In previous releases, Prisma would run
generateandseedin various situations:prisma generateprisma migratewould runprisma generateandprisma seedThis behaviour has been removed in favor of explicitly requiring commands to be run by users.
Removal of
prisma generateflagsFor
prisma generate, we’ve removed a few flags that were no longer needed:prisma generate --data-proxyprisma generate --accelerateprisma generate --no-engineprisma generate --allow-no-modelsRemoval of
prisma dbflagsFor
prisma db, we’ve removed the following flag:prisma db pull --local-d1This parameter no longer exists but equivalent functionality can be implemented by defining a config file with a connection string for the local D1 database. We provide a helper function listLocalDatabases in the D1 adapter to simplify the migration:
Removal of
prisma migrateflagsFor
prisma migrate diff, we’ve removed the following flags:prisma --[from/to]-schema-datamodel--[from/to]-schema. The usage is otherwise the same.prisma --[from/to]-url,prisma --[from/to]-schema-datasource--[from/to]-config-datasource. The user is expected to populate the datasource in the config file and use the new flag. We no longer support diffing two different URLs/datasources, since only one config can be used at a time.prisma --[from/to]-local-d1--[from/to]-config-datasource. The user is expected to populate the datasource in the config file and use the new flag with a minor complication due to the fact that it needs to reference the local D1 database. OurlistLocalDatabaseshelper function can be used for that, analogously to thedb pull --local-d1example above (where the user sets the datasource URL tofile://${listLocalDatabases().pop()})MongoDB support in Prisma 7
Currently, MongoDB is not supported in Prisma 7. For folks using MongoDB, please stay on Prisma v6. We aim to add support for MongoDB in a future release.
Driver Adapter naming updates
We’ve standardized our naming conventions for the various driver adapters internally. The following driver adapters have been updated:
PrismaBetterSQLite3⇒PrismaBetterSqlite3PrismaD1HTTP⇒PrismaD1HttpPrismaLibSQL⇒PrismaLibSqlPrismaNeonHTTP⇒PrismaNeonHttpSchema and config file updates
As part of a larger change in how the Prisma CLI reads your project configuration, we’ve updated what get’s set the schema, and what gets set in the
prisma.config.ts. Also as part of this release,prisma.config.tsis now required for projects looking to perform introspection and migration.Schema changes
datasource.urlis now configured in the config filedatasource.shadowDatabaseUrlis now configured in the config filedatasource.directUrlhas been made unnecessary and has removedgenerator.runtime=”react-native”has been removedFor early adopters of the config file, a few things have been removed with this release
engine: 'js'| 'classic'has been removedadapterhas been removedA brief before/after:
Explicit loading of environment variables
As part of the move to Prisma config, we’re no longer automatically loading environment variables when invoking the Prisma CLI. Instead, developers can utilize libraries like
dotenvto manage their environment variables and load them as they need. This means you can have dedicated local environment variables or ones set only for production. This removes any accidental loading of environment variables while giving developers full control.Removed support for
prismakeyword inpackage.jsonIn previous releases, users could configure their schema entry point and seed script in a
prismablock in thepackage.jsonof their project. With the move toprisma.config.ts, this no longer makes sense and has been removed. To migrate, use the Prisma config file instead:Removed Client Engines:
We’ve removed the following client engines:
LibraryEngine(engineType = "library", the Node-API Client)BinaryEngine(engineType = "binary", the long-running executable binary)DataProxyEngineandAccelerateEngine(Accelerate uses a newRemoteExecutornow)ReactNativeEngineDeprecated metrics feature has been removed
We deprecated the previewFeature
metricssome time ago, and have removed it fully for version 7. If you need metrics related data available, you can use the underlying driver adapter itself, like the Pool metric from the Postgres driver.Miscellaneous
WeakRefin Cloudflare Workers. This will now avoid any unexpected memory leaks.--urlflag fromprisma db pullprisma introspectcommand./wasmto/edgeprisma-client-js/edge→ meant “for Prisma Accelerate”/wasm→ meant “for Edge JS runtimes (e.g., Cloudflare, Vercel Edge)”/edge→ means “for Edge JS runtimes (e.g., Cloudflare, Vercel Edge)”PRISMA_CLI_QUERY_ENGINE_TYPEPRISMA_CLIENT_ENGINE_TYPEPRISMA_QUERY_ENGINE_BINARYPRISMA_QUERY_ENGINE_LIBRARYPRISMA_GENERATE_SKIP_AUTOINSTALLPRISMA_SKIP_POSTINSTALL_GENERATEPRISMA_GENERATE_IN_POSTINSTALLPRISMA_GENERATE_DATAPROXYPRISMA_GENERATE_NO_ENGINEPRISMA_CLIENT_NO_RETRYPRISMA_MIGRATE_SKIP_GENERATEPRISMA_MIGRATE_SKIP_SEEDMapped enums
If you followed along on twitter, you will have seen that we teased a highly-request user feature was coming to v7.0. That highly-requested feature is…. mapped emuns! We now support the
@mapattribute for enum members, which can be used to set their expected runtime valuesNew Prisma Studio comes to the CLI
We launched a new version of Prisma Studio to our Console and VS Code extension a while back, but the Prisma CLI still shipped with the older version.
Now, with v7.0, we’ve updated the Prisma CLI to include the new Prisma Studio. Not only are you able to inspect your database, but you get rich visualization to help you understand connected relationships in your database. It’s customizable, much smaller, and can inspect remote database by passing a
--urlflag. This new version of Prisma Studio is not tied to the Prisma ORM, and establishes a new foundation for what comes next.Currently, the new studio only supports Postgres, MySQL, and SQLite, with support for other databases coming in a future release.
For issues related to Prisma Studio, please direct them to the Studio repo on github.
Prisma Postgres
Prisma Postgres is our managed Postgres service, designed with the same philosophy of great DX that has guided Prisma for close to a decade. It works great with serverless, it’s fast, and with simple pricing and a generous free tier. Here’s what’s new:
Connection Pooling Changes with Prisma Accelerate
With support for connection pooling being added natively to Prisma Postgres, Prisma Accelerate now serves as a dedicated caching layer. If you were using Accelerate for the connection pooling features, don’t worry! Your existing connection string via Accelerate will continue to work, and you can switch to the new connection pool when you’re ready.
Simplified connection flow
We've made connecting to Prisma Postgres even simpler. Now, when you go to connect to a database, you’ll get new options to enable connection pooling, or to enable Prisma Accelerate for caching. Below, you’ll get code snippets for getting things configured in your project right away.
Serverless driver
For those who want to connect to Prisma Postgres but are deploying to environments like Cloudflare Workers, we have a new version of the serverless client library to support these runtimes.
Check out the serverless driver docs for more details
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.
6.19.0
Today, we are excited to share the
6.19.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X
Highlights
This release brings a lot of bug fixes and improvements to both the ORM and Prisma Postgres.
Prisma ORM
Prisma ORM is the most popular ORM in the TypeScript ecosystem. Today’s release brings a bunch of new bug fixes and overall improvements:
Prisma Postgres
Prisma Postgres is our fully managed Postgres service, designed with the same philosophy of great DX that has guided Prisma for close to a decade. With this release, we are introducing the following improvements:
Connection pooling with Prisma Postgres
We added support for direct connections in 6.17, opening Prisma Postgres up to working with any tool in the wider Postgres ecosystem. Now, you can confirm that connection to support connection pooling by appending the query parameter
pool=trueto the connection string.VS Code extension
A frequently requested feature is to be able to use a local Prisma Postgres database within our VS Code Extension without having to log in. In this release, we’re happy to share that this is now supported! Now you can work on your project without having to connect to the database remotely.
#1924: previewFeatures = "" suggestion results in "[]" value
Preparing for Prisma v7
Prisma v7 is almost here, and we’ve been making many of the feature in it available ahead of its release. If you haven’t been keeping your version of
prisma,@prisma/clientup to date, now is the time to do so before the release. Many of the changes we’ve introduced over the 6.x release cycle will become the default in v7.prisma-client-jsprisma-clientengineanddatasourcekeys inprisma.config.tsOpen 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.
6.18.0
Today, we are excited to share the
6.18.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Prisma ORM
Prisma ORM is the most popular ORM in the TypeScript ecosystem. Today’s release brings a bunch of new bug fixes and overall improvements:
prisma initnow creates aprisma.config.tsautomaticallyWhen creating a new project with 6.18.0,
prisma initwill now create aprisma.config.tsfile automatically. This prepares new applications for the future of Prisma 7. Some fields that have been historically set in theschema.prismafile are now able to be set in theprisma.config.ts, and we encourage people to migrate over to the new structure before the release of version 7, where this file will become a requirement.datasourceinprisma.config.tsIf you’re adopting the new
prisma.config.tssetup in your projects, version 6.18.0 brings the ability to set your datasource directly in your config file. Once this is in your config file, any datasource set in yourschema.prismawill be ignored. To set the datasource, we also must include the newenginekey which we can set to"classic", which will be required for Prisma v7envhelper functionjsorclassicas engine types inprisma.configBytestoUint8Arraydepending on Typescript versionPreparing for Prisma v7
While it has been mentioned a few times already, many of the changes in this release are here to prepare folks for the upcoming release of Prisma v7. It’s worth repeating that these changes and the migration to
prisma.config.tswill be required for Prisma v7, so we’re releasing this as opt-in features for developers. But come Prisma v7, they will be the new way of configuring your project.Prisma Postgres
Prisma Postgres is our fully managed Postgres service designed with the same philosophy of great DX that has guided Prisma for close to a decade. With this release we are introducing the following improvements:
Database Metric in Console
Inside of your database console, you can now view metrics on your database usage and interactions. You can get insights into the follow:
In addition, you can also get insights into how to improve your query caching and gain better performance.
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.
6.17.1
Today, we are issuing a patch release to address a regression in v6.17.0 that affected diffing of unsupported types, leading to unnecessary or incorrect changes when creating new migrations or running
db pull. This update is recommended for all users who have any fields marked asUnsupportedin their schema files.Changes
6.17.0
Today, we are excited to share the
6.17.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Prisma ORM
Prisma ORM is the most popular ORM in the TypeScript ecosystem. Today's release brings a number of bug fixes and improvements to Prisma ORM.
Bug fixes and improvements
configobject to configure DefaultAzureCredential:@opentelemetry/instrumentationto be compatible with">=0.52.0 <1". Learn more in this PR.Prisma Postgres
Prisma Postgres is our fully managed Postgres service designed with the same philosophy of great DX that has guided Prisma for close to a decade. With this release we are introducing the following improvements:
New usage workspace metrics available in your Console Dashboard
The Dashboard in your Prisma Console account now displays new metrics about your Prisma Postgres usage:
Using Prisma Postgres with any tool is ready for production
Previously, the only way to connect to Prisma Postgres was using Prisma ORM. That combination is great because it gives you connection pooling, global caching and overall an amazing DX.
That being said, we understand that preferences vary and some developers prefer to use plain SQL or lower-level query builders in their applications. As of this release, these ways for connecting to Prisma Postgres are now officially generally available and can be used in your production apps!
You can connect using Drizzle, Kysely, TypeORM,
psql, or any other Postgres-compatible library, database migration tools like Atlas or interfaces like DBeaver, Postico, and more.📚 Learn more in the docs.
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.
6.16.3
Today, we are issuing a 6.16.3 patch release focused on bug fixes.
🛠 Fixes
Prisma Client (
prisma-clientgenerator): fixed missing JSON null type definitions (JsonNull,DbNull,AnyNull) in thebrowser.tsentrypoint. (https://github.com/prisma/prisma/pull/28186)Prisma Migrate: don't add the default schema (namespace) to the generated migrations unless it was specified explicitly in the schema file. This restores the pre-6.13.0 behaviour that was inadvertently changed with enabling multi-schema support by default. Users who rely on database schemas for multi-tenancy can now again use the same migration files for all of their schemas. (https://github.com/prisma/prisma-engines/pull/5614)
Prisma Client: enabled negative
takewithfindFirstagain. (https://github.com/prisma/prisma-engines/pull/5616 — contributed by @jay-l-e-e)Prisma Accelerate: aligned the behaviour of the new Rust-free client with Query Engine to handle self-signed certificates consistently and ensure backward compatibility. (https://github.com/prisma/prisma/pull/28134)
@prisma/adapter-mariadb: fixed error event listeners leak. (https://github.com/prisma/prisma/pull/28177 — contributed by @Tiaansu)⚠️ Known Limitation: JSON null types in browser builds
The fix introduces the missing types, but the singleton instances differ between the client and browser entrypoints of the generated client. This means that values like
Prisma.JsonNullimported from browser cannot yet be assigned to fields expected from the client entrypoint, and vice versa. This results in confusing TypeScript errors if you mix them. A follow-up improvement is planned to unify these utility types across entrypoints.6.16.2
Today, we are issuing a 6.16.2 patch release.
Bug fixes
engineType = clientwith Prisma Postgres, but our validation rules permitted invalid combinations of Prisma Postgres URLs and driver adapters. This now produces a clear error message indicating Prisma Postgres URLs and driver adapters are mutually exclusive.unref()on NodeJS timers to prevent them from keeping the NodeJS event loop active. This change unintentionally affected non-NodeJS runtimes likeworkerd, where it has resulted in runtime errors. This behavior has been made conditional to prevent these runtime errors.6.16.1
Today, we are issuing a 6.16.1 patch release.
Bug fixes
driverAdaptersandqueryCompilerfeatures were stabilized, but leftover code in theprisma-client-tsgenerator required them to still be specified in edge runtimes. This has now been fixed, runtimes likeworkerdandvercel-edgeno longer require these preview features.6.16.0
Today, we are excited to share the
6.16.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Prisma ORM
This section contains all the updates made in Prisma ORM v6.16.0.
Rust-free ORM and driver adapters are Generally Available
Eight months ago, we published our ORM manifesto with the first hint that we're going to remove the Rust-based query engine from Prisma ORM:
After a lot of hard work and feedback from the community, we're incredibly excited to share that the migration has been completed and you can now use Prisma ORM without its Rust engine in your production apps. 🎉 This is a major milestone in the history of Prisma ORM and comes with a lot of benefits:
… and overall a much better DX since you don't need to worry about the extra binary in your generated Prisma Client code any more.
While the Rust-free ORM will become the default in Prisma ORM v7 soon, for now you still need to opt-into using it:
generatorblock in your Prisma schema:queryCompileranddriverAdapterfeature flags from thepreviewFeaturesarray. And if you usedbinaryTargets, you can also get rid of these.pgfor PostgreSQL:PrismaClientusing thePrismaPgdriver adapter as follows:📚 To learn more and see instructions for all other supported databases, check out the documentation.
New ESM-first
prisma-clientgenerator is Generally AvailableAnother major milestone has been achieved in this release: The new, flexible and ESM-first
prisma-clientgenerator is ready for production too. Here's a quick overview of its main benefits:node_modules; generated code is fully under control by the developerIn addition to making it production-ready, we also made some changes to the
prisma-clientgenerator:Prisma.validator; you can use TypeScript nativesatisfieskeyword instead./generared/prisma/browserentrypoint for importing types in browser environmentsIf you want to try out the new generator with your favorite framework, check out one of our ready-to-run examples (e.g. for Next.js, Nuxt or React Router).
📚 Learn more in the docs.
Type check performance optimizations
Runtime performance is not the only performance category that matters. In fact, when it comes to DX, type checking performance is equally important: if your TypeScript types become too complex and the compiler needs to do too much work (e.g. inferring types), it may slow down your editor, lead to laggy auto-completion or prevent jump-to-definition from working.
We've worked with TypeScript expert David Blass to find ways for improving the type checking performance in Prisma ORM and created benchmarks comparing the type checking performance with Drizzle.
You can read about the results here: Why Prisma ORM Checks Types Faster Than Drizzle
Deprecating the
postgresqlExtensionsPreview featureWe're deprecating the
postgresqlExtensionsPreview feature. Note that this doesn't mean that you can't use extensions with Prisma ORM any more. Instead of setting the Preview feature, you can install extensions manually with a customized migration via the--create-onlyflag:You can then install an extension with plain SQL in the newly created, empty migration file:
Prisma Postgres
Prisma Postgres is our fully managed Postgres service designed with the same philosophy of great DX that has guided Prisma for close to a decade. With this release we are introducing the following improvements:
Manage OAuth apps in Prisma Console
In Prisma Console, you can now manage all of the 3rd party applications that you've granted access to perform actions on behalf of yourself in your Prisma Console account. Find the 🧩 Integrations tab in the sidenav to see which applications currently have access.
Rust-free Prisma ORM with Prisma Accelerate and Prisma Postgres
With this release, the Rust-free Prisma ORM (Query Compiler) can now be used together with Prisma Postgres and also Prisma Accelerate. This means you can take advantage of connection pooling and caching while using the new TypeScript-based ORM architecture.
To enable it, update your Prisma schema:
We'd love for you to try this out and share your feedback as we prepare for General Availability. Please open an issue on GitHub if you encounter any problems or have suggestions.
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.
6.15.0
Today, we are excited to share the
6.15.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Highlights
AI safety guardrails for destructive commands
Prisma ORM now includes built-in safety checks that protect against destructive commands when triggered by AI coding assistants. The CLI can recognize when it is being executed by popular AI agents such as Claude Code, Gemini CLI, Qwen Code, Cursor, Aider and Replit.
If a command like
prisma migrate reset --forceis attempted, Prisma ORM will prompt for explicit confirmation before proceeding.This feature ensures that irreversible operations which drop and recreate the database are not executed automatically by an AI tool. Prisma ORM is the first ORM to provide this level of protection, making it safer to use AI-assisted development while working with your databases.
📚 Learn more in the docs.
prisma-client: runtime improvements and schema flexibilityWe simplified Prisma ORM by making the runtime options for the Prisma Client more consistent and easier to understand. Previously there were several overlapping aliases which created confusion. With this release we simplified the inputs while keeping support for all the major environments you might be targeting.
Changes include:
nodehas been removed, useruntime = "nodejs"insteaddeno-deployhas been removed, useruntime = "deno"insteadvercelhas been replaced by the newruntime = "vercel-edge"edge-lightis now just an alias forvercel-edgenodejs,deno, andbunnow share the same internal code path, while still keeping their separate input values for clarityThe updated list of supported runtimes is now:
nodejs,deno,bun,workerd(aliascloudflare),vercel-edge(aliasedge-light), andreact-native.In addition, we fixed an issue where running
prisma generatewould fail if your schema contained no models. This is now supported with the newprisma-clientgenerator, just like it already worked with the olderprisma-client-jsgenerator.For example, the following schema will now generate a client without errors:
Running
prisma generatewith this schema will succeed and create the client in./generated/client.📚 Learn more in the docs.
Using Prisma ORM with Vercel Fluid
Fluid compute is a new compute model from Vercel that combines the flexibility of serverless with the stability of servers, making it ideal for dynamic workloads such as streaming data and AI APIs.
A common challenge in traditional serverless platforms is that when functions are suspended, database connection pools can’t close idle connections. This leads to leaked connections that stay open until the database times them out, which can exhaust the pool.
Vercel provides the
attachDatabasePoolutility to solve this problem. It ensures idle connections in the pool are properly released before a function is suspended, preventing connection leaks.You can use this utility together with Prisma’s driver adapters to safely manage database connections in Fluid Compute:
📚 Learn more in the docs.
Other news
Prisma Postgres Management API is Generally Available
The Prisma Postgres Management API allows you to programmatically provision and manage Prisma Postgres instances. It’s the perfect way to spin up a database in your CI/CD workflow, see our GitHub Action examples for creating and deleting if you’re curious about this use case.
It also enables developers to offer databases to their own users! For example, did you know that Co.dev (YC23), a popular “low-code AI app builder” is using the Management API to provision Prisma Postgres instances to people building apps with their platform?
We’re excited to share that the Management API is now fully ready for production. With it moving into GA, we also added another piece of functionality where you can now create new projects without a default database.
We’re looking forward to see what you’re going to build with it!
📚 Learn more in the docs.
Prisma Postgres is now available on Pipedream
Prisma Postgres can now be used directly in your Pipedream workflows 🎉
With this integration, you can connect Prisma Postgres to over 2,800+ apps supported on Pipedream, enabling powerful automations and data workflows. For example, you can:
This makes it easier than ever to use Prisma Postgres in your automation pipelines, without needing to manage custom scripts or infrastructure.
📚 Learn more on the Pipedream integration page.
New
--jsonflag fornpx create-dbThe
npx create-dbcommand lets you spin up a temporary, production-ready Prisma Postgres database that you can later claim for continued use. With this release, you can now add the--jsonflag to return the database details in JSON format.This makes it straightforward to programmatically use the connection details, whether you are building custom APIs or integrating database provisioning into your workflows.
📚 Learn more in the docs.
Direct connections to Prisma Postgres are coming close to GA
Direct connections enable you to connect to your database using any ORM library or tool of your choice (e.g. Drizzle ORM, Kysely but also database GUIs like Postico or TablePlus).
In this release, we’ve improved the robustness of direct TCP connections and are close to bringing it to General Availability.
📚 Learn more in the docs.
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.
6.14.0
Today, we are excited to share the
6.14.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Highlights
@uniqueattributes for SQL views (Preview)Last release, we improved the robustness of SQL views defined in the Prisma schema. Views are virtual tables that don't allows for defining unique constraints, indexes or foreign keys in the underlying database.
However, as an application developer, it can be convenient to also define relationships involving views or paginate them using cursors. We've received this feedback from several people who had been using views in that way with Prisma ORM, so in this release we're re-introducing the
@uniqueattribute for views. This attribute enables:findUniquequeries, cursor-based pagination & implicit ordering for viewsHere's an example schema using
@uniqueand defining a relationship from a model to a view:Expand to view the SQL code for this view
You can now query this view and its relationship using
include:📚 Learn more in the docs.
Various fixes & stability improvements
prisma-clientgenerator and thequeryCompilerPreview feature (aka “Prisma Client without Rust engines”). Both will become the default in the upcoming Prisma 7 release and we're working hard on bringing these features into General Availability. You can try them out with your favorite stack with our ready-to-run examples.prisma.$usemethod), which was deprecated since v4.16.0. Use Prisma Client extensions instead.metricsPreview feature (which will be removed in Prisma 7)Improved type performance
In this release, we also addressed some type performance issues that led to slower editors and lagging auto-complete. If you're curious about the details, you can check the description and changes in this PR.
Other news
Increased robustness of Management API (Early Access)
We recently released an API for programmatically managing Prisma Postgres instances that's perfect for CI/CD workflows and scripting.
In this release, we made it more robust and are bringing it closer to its General Availability release.
Revoke OAuth tokens in Prisma Console
If you use OAuth to authorize third-party applications to act on your behalf in the Prisma Console, you can now revoke any app's access at any time. The Prisma Console shows a list of your authorized (connected) apps, and you can easily remove one to immediately block further access.
ICYMI
Last release was huge, so just in case you missed it, here's the TLDR of what we put out last time:
prisma.config.ts) is Generally Available – Native way to configure schema paths, migrations, seeds, and more; no need forearlyAccessflag anymore.@@schema.pgvector,pg_search,pg_stat_statements,citext,pg_trgm,fuzzystrmatch, andunaccent. If you don't see the extension you need, you can request it here. Extensions only work on new instances, if you want to use any of them on your existing instance, reach out to us.npx create-db– Instantly spin up a new Postgres database—no authentication required.6.13.0
Today, we are excited to share the
6.13.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Highlights
In this ORM release, we’re moving the Prisma Config file and the multi-schema feature into General Availability. This means these features now are fully production-ready and we’re looking forward to seeing what you are going to build with them!
Additionally, support for SQL views is getting an important update to further stabilize its API.
Configuring Prisma via Prisma Config is now Generally Available
The
prisma.config.tsfile is Prisma ORM’s native way to provide configuration options for your project. It currently lets you specify:seedcommand to populate your database based on some executable scriptHere’s an example Prisma Config file that specified custom locations for various project assets in and a seed script inside a
dbdirectory:Note that you’ll also see warning now if you defined a
prisma.seedcommand inpackage.json.We’re excited to move the
prisma.config.tsfile into General Availability. If you used it before in your projects, you can now dropearlyAccessfrom its options:There still are and will be fields on the Prisma Config object that are Early Access or Preview features. To opt-into these, you’ll need to explicitly declare them via a new
experimentalfield.For example, usage of
adaptersis currently still in Preview:Finally, the Prisma Config file now also supports various file extensions so it fits neatly into your individual project setups:
.js,.ts,.mjs,.cjs,.mts,.cts. It also can be defined as.config/prisma.${extension}, whereextensionis the same one as file extensions above.📚 Learn more in the docs.
Using multiple schemas in now Generally Available
Databases like PostgreSQL or SQL Server provide a way to logically organize your tables in dedicated namespaces called schemas. In Prisma ORM, you can assign tables to various schemas via the
@@schemaattribute:This feature has moved into General Availability, so if you were using it before, you can now drop the
multiSchemafeature flag from thegeneratorblock in your Prisma schema:📚 Learn more in the docs.
More robust support for SQL views (Preview)
SQL views are virtual tables created by a query. Unlike regular tables, views do not store data themselves; instead, they represent the result of a stored SQL query that runs whenever the view is accessed.
We continue to improve support for SQL views, making them more reliable and better aligned with Prisma’s features. In this release, we ensured that
@id,@indexand@uniquecan’t be used on aviewblock in the Prisma schema. Without these attributes, several other features in Prisma Client or the Prisma schema don’t make sense any more either, so we made sure that they can’t be used with views:findUniquequeries and cursor-based pagination in Prisma ClientThis will align the API surface of Prisma ORM with the actual capabilities of SQL views and adds guardrails so you can use views with more confidence!
📚 Learn more in the docs.
Externally managed tables
In some situations, you may not want Prisma ORM to be “responsible” for specific tables in your database because they’re being managed by a different team in your organization or an external service.
In these cases, you still may want to quert these tables using Prisma Client but never want Prisma Migrate to make any changes to them.
In this release, we’re introducing externally managed tables that will be:
You can specify which tables should be ignored by Prisma Migrate using the
tablesoption inprisma.config.ts:A typical use case for this is the
userstable from Supabase which you never want be changed by Prisma Migrate but still may want to query with Prisma Client.📚 Learn more in the docs.
Other news
pgvectorextension support for Prisma Postgres (Early Access)In this release, we’ve implemented a highly popular feature request for Prisma Postgres: Early Access support for the
pgvectorPostgreSQL extension along with several other popular Postgres extensions!It enables efficient storage and querying of high-dimensional vector embeddings directly in a Postgres database and thus is perfect for building AI-driven applications.
pgvectoressentially allows developers to perform similarity search (e.g., for recommendation systems or semantic search) using standard SQL, eliminating the need for a separate vector database.Native support for
pgvectorin Prisma ORM is going to follow soon, until then you can usepgvectorvia custom migrations and TypedSQL.In addition to
pgvector, Prisma Postgres now includes Early Access support forpg_search,pg_stat_statements,citext,pg_trgm,fuzzystrmatch, andunaccent. If you don’t see the extension you need, you can request it here.📚 Learn more in the docs.
Manage Prisma Postgres programmatically via an API
Whether you need a way to quickly provision a Prisma Postgres instance in your CI/CD workflows, want to attach a fresh database to a preview branch of your app or even want to offer Prisma Postgres to your own users—our new Management API has you covered!
It’s shaped as a familiar REST API so you can programmatically take care of your database workflows: Provision or delete Prisma Postgres instances, retrieve or create connection strings and manage entire projects in Prisma Console.
📚 Learn more in the docs.
CI/CD GitHub Actions for Prisma Postgres available on GitHub Marketplace
Based on the Management API, we’ve also published two templates for GitHub Actions that you can use in your own CI/CD setups:
These Actions serve as the foundational building blocks for integrating Prisma Postgres into CI/CD pipelines.
They enable workflows like provisioning databases on every pull request, running integration tests against real instances, and managing database lifecycles end-to-end. We’ve included several examples in the README to help users get started quickly. The setup is straightforward, and these Actions are designed to plug into user's workflows with minimal effort.
Instant Postgres with
npx create-db— no auth requiredWe launched a new CLI command that allows you to spin up a new database within seconds:
The command doesn’t require authentication, so you can play around with your database without any initial hurdles!
Your instance will be automatically deleted after 24 hours but you can claim it and put it into your Prisma Console account if you want to keep using it after that period. Visit the docs to learn more.
New navigation UI for Prisma Console
The Prisma Console got a little makeover, including a new design for navigating and managing your projects and their databases. This makes common workflows like creating new projects, navigating between projects and databases, as well as accessing project settings a lot more smooth.
We’re eager to hear your feedback, let us know on X what you think of the new UI.
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.
6.12.0
Today, we are excited to share the
6.12.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Highlights
ESM-compatible
prisma-clientgenerator now in PreviewWe’re excited to share that our new and more flexible
prisma-clientgenerator is moving into Preview! As a reminder, here’s what it looks like:This new generator eliminates any headaches that you may have experienced due to magical code generation into
node_modulesand gives you full control over the generated Prisma Client code. With it moving into Preview, we hope that even more of you will try it out and share your feedback with us!In addition to moving it into Preview, we also created a couple of new ready-to-run examples to help you get started with the new generator and your favorite framework:
📚 Learn more in the docs.
Specify
viewsandmigrationsfolder locations inprisma.config.ts(Early Access)As we’re getting closer to the General Availability release of
prisma.config.ts, we’re adding more capabilities to it. In previous versions, the Prisma CLI implicitly used to infer the location for migration and SQL view definition files based on the location of the Prisma schema. In this release, we’re adding two new fields (migrationsandviews) to give you more flexibility and clarity on how to locate these files:📚 Learn more in the docs.
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
6.11.1
Today, we are issuing a 6.11.1 patch release.
Bug fixes
In Prisma ORM version 6.11.0, we shipped a bug fix for Prisma that allows using Prisma Postgres with direct TCP connections with Prisma Driver Adapters. This fix required refactoring the Prisma Client initialization logic, and while several test cases were added, an edge case was missing, causing https://github.com/prisma/prisma/issues/27569.
Namely, using
@prisma/clientwith@prisma/extension-accelerateon aprisma+postgres://...connection string, while generating the Prisma Client definitions viaprisma generate, resulted in aPrismaClientInitializationError.This is now fixed, so we highly recommend upgrading to version 6.11.1.
Reminder: when using Prisma Accelerate, we highly encourage you to generate your Prisma Client definitions via
prisma generate --no-engine.We've fixed an issue that would occur when using arrays as aggregation fields with the query compiler. These queries would fail with a confusing data mapping error. They should now work as expected.
6.11.0
Today, we are excited to share the
6.11.0stable release 🎉🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!
Highlights
Prisma ORM without Rust engines for MySQL/MariaDB, Neon & CockroachDB (Preview)
We are in the process of removing the Rust engines from Prisma ORM. This week, we're adding Preview support for the Rust-free Prisma ORM version for MySQL via a new
@prisma/adapter-mariadbdriver adapter, as well as for Neon and CockroachDB via the already existing@prisma/adapter-neonand@prisma/adapter-pgadapters.To use it, enable the
queryCompileranddriverAdaptersfeature flags on yourgeneratorblock, install the driver adapter for your database and start querying!📚Learn more in the docs.
Stop and remove local Prisma Postgres instances via CLI
You can start a local Prisma Postgres instance using the
prisma dev --name mydbcommand or via the Prisma VS Code extension UI.If you start a local instance via the Prisma CLI, you can simply kill the process to stop the instance. However, when you start instances via the VS Code extension UI, you could also only stop them via the UI—not via the CLI.
This changes in this release: You can now also stop local Prisma Postgres instances and remove them from your file system via the Prisma CLI:
prisma dev stop <globs>: Stops one or more local Prisma Postgres instancesprisma dev rm <globs>: Removes one or more local Prisma Postgres instances from your file system📚Learn more in the docs.
Ready-to-run examples for new
prisma-clientgeneratorOur new
prisma-clientgenerator is more flexible, provides more control about the generated code, works with various JS runtimes and comes with ESM support out-of-the-box.To make it easier for you to try it out, we created a few ready-to-run example projects so you can see the new generator in action:
nextjs-starter-webpacknextjs-starter-turbopackneextjs-starter-webpack-monoreponextjs-starter-webpack-with-middlewareBug fixes in VS Code embedded Prisma Studio
Have you already seen the new look of Prisma Studio when it's embedded directly in VS Code via the Prisma VS Code extension? In this release, we fixed a few bugs that you all have reported:
Let us know in case you hit any snags with Prisma ORM by opening a new issue.
Other news
Embed Prisma Studio in your own tools and projects
If you're using Prisma Postgres (yourself or by offering it to your own users), you can now embed Prisma Studio to offer an amazing data editing experience to your users via the
@prisma/studio-corenpm package.Try out the demo that shows how to integrate Prisma Studio in your own apps!
Predict your Prisma Postgres bill with our new Pricing Calculator
Prisma Postgres comes with a pricing model that seems too simple to be true: You're charged based on storage and operations—not CPU, compute hours or any other resource-based metrics.
While it's simple, it may feel unfamiliar because it's so different from existing pricing models. To understand how much you'd pay for Prisma Postgres running your app, you can now use our Pricing Calculator. Put in the predicted storage and number of operations to see how much you're going to be charged on each plan.
Prisma Postgres now available for all Postgres templates in Vercel Marketplace
On vercel.com/templates, you can find lots of one-click-deploy application templates! We recently worked with the Vercel team to get Prisma Postgres working with all templates requiring a PostgreSQL database, for example:
Connecting to Prisma Postgres with any tool is now faster
We recently enabled the option to connect to Prisma Postgres with any tool via direct TCP connections. In this release, we have reduced the connection latency so your first request is now faster.
New region for Prisma Postgres: Frankfurt (
eu-central-1)We keep expanding Prisma Postgres availability across the globe! After having added San Francisco just a few weeks ago, we're now adding Frankfurt based on another poll we ran on X. Here are all the regions where you can spin up Prisma Postgres instances today:
eu-central-1: Frankfurt (new!)eu-west-3: Parisus-west-1: San Franciscous-east-1: North Virginiaap-northeast-1: Tokyoap-southeast-1: SingaporeKeep an eye on our X account to take part in the poll and vote for the next availability zone of Prisma Postgres!
6.10.1
Today, we are issuing a 6.10.1 patch release.
Bug fixes
In Prisma ORM version 6.10.0, we shipped a bug fix for Prisma Migrate that ensured we always gracefully closed PostgreSQL connections by sending the Terminate message and not just abruptly closing the TCP connection. This fix was incomplete because it didn't work on Windows, which is now fixed. We highly recommend upgrading to version 6.10.1 if you are using Windows.
We also recommend upgrading to this version if you are currently using local Prisma Postgres via the
prisma devcommand with an ORM version older than 6.10.x.Performance improvements
The
queryCompilerpreview feature recently introduced a performance regression related to in-memory joins in TypeScript-based query execution (users who use thequeryCompilerand therelationJoinspreview features together were not affected, unless usingrelationLoadStrategy: "query"). This has now been fixed, leading to significant performance improvements: in our Query Compiler benchmarks, we are seeing up to 500x performance improvement compared to the previous implementation in the TypeScript-based query executor, or up to 10–20x performance improvement compared to the Rust-based Query Engine.Other news
Please see the release notes for Prisma ORM 6.10.0 for other recent news and announcements.
6.10.0
Today, we are excited to share the
6.10.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release.
Highlights
No Rust engines for MS SQL Server & PlanetScale (Preview)
We are in the process of removing the Rust engines from Prisma ORM. If you want to try this, you can configure your
generatorlike this:In this release, we are excited to move the
queryCompiler(which enables using Prisma ORM without Rust engines) into Preview for MS SQL Server and PlanetScale (via the new@prisma/adapter-mssqland existing@prisma/adapter-planetscaledriver adapters).📚Learn more in the docs.
Manage local Prisma Postgres instances in VS Code
We recently released a database management UI as part of the Prisma VS Code extension to enable visual database management workflows for Prisma Postgres. In this release, we added new functionality to it: You can now manage multiple local Prisma Postgres instances via the same UI. To try it, find the Prisma logo in VS Code’s sidebar and start managing your local Prisma Postgres instances (no Docker required).
📚 Learn more in the docs.
Performance improvements for
prisma migrate devWe improved the
prisma migrate devcommand by optimizing the interactions with the shadow database. Our measurements show a 2x improvement in speed for some databases!"Push to Cloud": Easily deploy a local Prisma Postgres instance in VS Code
Local Prisma Postgres instances are perfect for development, but how do you go from local to remote once you’re ready to deploy?
The database management UI in VS Code now has a Push to Cloud button that makes it easy to deploy your local Prisma Postgres so that you can connect to it from your deployed applications.
📚 Learn more in the docs.
Support for shard keys on PlanetScale (Preview)
Sharding is a popular technique to scale up when database load grows. As of this release, Prisma ORM supports sharding on PlanetScale natively via the new
@shardKeyand@@shardKeyattributes in the Prisma schema which you can apply to the fields in your models that should serve as shard keys in your database setup:Note that this requires you to set the
shardKeysPreview feature flag on your generator definition:📚 Learn more in the docs.
Other changes
pg-workerpackage. It's not needed any more, you can simply usepgwhen using Prisma ORM in Cloudflare Workers.prisma-clientgenerator changed. Learn how this affects imports in the docs.More news
Local Prisma Postgres now works with any ORM & tool (Early Access)
We recently released direct connections for remote Prisma Postgres so that you can now use it with your favorite ORM or database tool. As of this release, this is also possible for your local Prisma Postgres instances. To try it, run the
prisma devcommand and use the direct connection string starting withpostgres://in order to connect from any tool.📚 Learn more in the docs.
Let your favorite AI tool manage Prisma Postgres via remote MCP
We just released a new remote MCP server that helps you manage Prisma Postgres instances! It enables your AI tools to help with these workflows:
You can start it using the
npx -y mcp-remote https://mcp.prisma.io/mcpcommand.📚 Learn more in the docs.
6.9.0
Today, we are excited to share the
6.9.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release.
Highlights
Prisma ORM without Rust engines for PostgreSQL & SQLite (Preview)
If you've been excited about our work of removing the Rust engines from Prisma ORM but hesitated trying it out because it was in an Early Access (EA) phase, now is a great time for you to get your hands on the Rust-free Prisma ORM version.
This major architectural change has moved from EA into Preview in this release, meaning there are no more know major issues. If you want to try it out, add the
queryCompileranddriverAdapterspreview feature flags to yourgenerator, install the driver adapter for your database, and get going:Now run
prisma generateto re-generate Prisma Client. If you didn't use a driver adapter before, you'll need to install, e.g. the one for PostgreSQL:Once installed, you can instantiate
PrismaClientas follows:No more hassle with query engines, binary targets and an even smoother experience in serverless and edge environments!
📚 Learn more in the docs.
Major improvements for local Prisma Postgres (Preview)
In the last release, we enabled you to spin up a Prisma Postgres instance locally via the new
prisma devcommand. Local Prisma Postgres uses PGlite under the hood and gives you an identical experience as you get with a remote Prisma Postgres instance.This release brings major improvements to this feature:
prisma devinvocations.prisma initnow uses local Prisma Postgres by default.Try it out and let us know what you think!
📚 Learn more in the docs.
More news
Connect to Prisma Postgres with any ORM (Preview)
Since its GA release, you could only interact with Prisma Postgres using Prisma ORM via a custom connection string.
This has changed now: When setting up a new Prisma Postgres instance, you receive a regular PostgreSQL direct TCP connection string (starting with
postgres://...) that lets you connect to it using your favorite tool or database library, including Drizzle, Kysely, TypeORM, and others.If you want to access Prisma Postgres from a serverless environment, you can also use our new serverless driver (Early Access).
📚 Learn more in the docs.
Automated backup & restore
Prisma Postgres' backup and restore mechanism has seen a major upgrade recently: You can now easily restore any previous backup via the UI in the Prisma Console. Find the new Backups tab when viewing your database and select any backup from the list to restore its state to a previous point in time.
📚 Learn more in the docs.
Prisma's VS Code extension now has a UI to manage Prisma Postgres
If you're using Prisma ORM, chances are that you're using our VS Code extension too. In its latest release, we've added a major new capability to it: A UI for managing databases.
With this new UI, you can:
To use the new features, make sure to have the latest version of the Prisma VS Code extension installed and look out for the new Prisma logo in VS Code's Activity Bar.
📚 Learn more in the docs.
New region for Prisma Postgres: San Francisco (
us-west-1)We keep expanding Prisma Postgres availability across the globe! After having added Singapore just a few weeks ago, we're now adding San Francisco based on another poll we ran on X. Here are all the regions where you can spin up Prisma Postgres instances today:
us-west-1: San Francisco (new!)us-east-1: North Virginiaeu-west-3: Parisap-northeast-1: Tokyoap-southeast-1: SingaporeKeep an eye on our X account to take part in the poll and vote for the next availability zone of Prisma Postgres!
6.8.2
Today, we are issuing the 6.8.2 patch release. It fully resolves an issue with the
prisma initandprisma devcommands for some Windows users who were still facing problems after the previous incomplete fix in version 6.8.1.Fixes:
6.8.1
Today, we are issuing the 6.8.1 patch release. It fixes an issue with the
prisma initandprisma devcommands on Windows.Fixes
6.8.0
Today, we are excited to share the
6.8.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release.
Highlights
Local development with Prisma Postgres via
prisma dev(Early Access)In this release, we're releasing a way to develop against Prisma Postgres locally — no Docker required!
To get started, run the new
prisma devcommand:This command spins up a local Prisma Postgres instance and prints the connection URL that you'll need to set as the
urlof yourdatasourceblock to point to a local Prisma Postgres instance. It looks similar to this:You can then run migrations and execute queries against this local Prisma Postgres instance as with any remote one. Note that you need to keep the
prisma devprocess running in order to interact with the local Prisma Postgres instance.📚 Learn more in the docs.
Native Deno support in
prisma-clientgenerator (Preview)In this release, we're removing the
denoPreview feature from theprisma-client-jsgenerator. If you want to use Prisma ORM with Deno, you can now do so with the newprisma-clientgenerator:📚 Learn more in the docs.
VS Code Agent Mode: AI support with your database workflows
Have you tried agent mode in VS Code already?
"The agent acts as an autonomous pair programmer that performs multi-step coding tasks at your command, such as analyzing your codebase, proposing file edits, and running terminal commands."
As of this release, your agent is capable of supporting you with your database workflows more than ever! If you're using VS Code and have the Prisma VS Code extension installed, your agent now is able to help you with your database workflows, such as:
All you need to do is make sure you're using the latest version of Prisma's VS Code extension and your agent is ready to go 🚀
📚 Learn more in the docs.
Other news
You voted, we acted: New Singapore region for Prisma Postgres
We recently ran a poll where we asked you which region you'd like to see next for Prisma Postgres. The majority vote went to Asia Pacific (Singapore), so as of today, you're able to spin up new Prisma Postgres instances in the
ap-southeast-1region.We're not stopping here — keep an eye out on X for another poll asking for your favorite regions that we should add!
6.7.0
Today, we are excited to share the
6.7.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release.
Highlights
Prisma ORM without Rust engines (Early Access)
If you're a regular visitor of our company blog, you may already know that we're currently working on moving the core of Prisma from Rust to TypeScript. We have written extensively about why we're moving away from Rust and already shared the first measurements of performance boosts we saw from the re-write.
This re-write is not just a move from one programming language to another. It fundamentally improves the architecture of Prisma ORM and replaces the Query Engine (which is written in Rust and deployed as a standalone binary) with a much leaner and more efficient approach that we call Query Compiler.
In this release, we're excited to give you Early Access to the new Query Compiler for PostgreSQL and SQLite database 🥳 Support for more database will follow very soon!
To use the new "Rust-free" version of Prisma ORM, add the
queryCompiler(new) anddriverAdaptersfeature flags to your client generator:Now run
prisma generateto re-generate Prisma Client. If you didn't use a driver adapter before, you'll need to install one. For example, the one for PostgreSQL:Once installed, you can instantiate
PrismaClientas follows:This version of
PrismaClientdoesn't have a Query Engine binary and you can use it in the exact same way as before.📚 Learn more in the docs.
Support for
better-sqlite3JavaScript driver (Preview)Driver adapters are Prisma ORM's way of letting you use JS-native drivers (like
pg) to interact with your database. In this release, we're introducing a new driver adapter for using thebetter-sqlite3package, so you can now interact with SQLite database in a JS-native way.To use it, first enable the
driverAdaptersPreview feature flag in on your clientgenerator, then install these libraries:Now you can instantiate Prisma Client as follows:
📚 Learn more in the docs.
Multi-file Prisma schemas are now production-ready
The
prismaSchemaFolderPreview feature is moving into General Availability 🎉 With that change, Prisma ORM now by default supports splitting your Prisma schema file and e.g. lets you organize your schema as follows:prisma/schema.prisma→ defines data source and generatorprisma/models/posts.prisma→ definesPostmodelprisma/models/users.prisma→ definesUsermodel⚠️ Note that there have been breaking changes to the
prismaSchemaFolderPreview feature in the last 6.6.0 release. If you've been using this feature to split your Prisma schema, make sure to read the release notes and update your project accordingly.📚 Learn more in the docs.
Splitting generated output with new
prisma-clientgenerator (Preview)With the
prisma-client-jsgenerator, the generated Prisma Client library is put into a singleindex.d.tsfile. This sometimes led to issues with large schemas where the size of the generated output could slow down code editors and breaking auto-complete.As of this release, our new
prisma-clientgenerator (that was released in 6.6.0) now splits the generated Prisma Client library into multiple files and thus avoids the problems of a single, large output file.Also: As a bonus, we now ensure that generated files do not raise any ESLint and TypeScript errors!
Before
After
📚 Learn more in the docs.
Company news
Our team has been busy shipping more than just the ORM! Check out these articles to learn what else we've been up to recently:
6.6.0
Today, we are excited to share the
6.6.0stable release 🎉 This version comes packed with exciting features, we can't wait to see what you're going to build with it! Read our announcement blog post for more details: Prisma ORM 6.6.0: ESM Support, D1 Migrations & MCP Server🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release. 🌟
Highlights
ESM support with more flexible
prisma-clientgenerator (Early Access)We are excited to introduce a new
prisma-clientgenerator that's more flexible, comes with ESM support and removes any magic behaviours that may cause friction with the currentprisma-client-jsgenerator.Here are the main differences:
outputpath; no “magic” generation intonode_modulesany moremoduleFormatfieldHere's how you can use the new
prisma-clientgenerator in your Prisma schema:In your application, you can then import the
PrismaClientconstructor (and anything else) from the generated folder:⚠️ Important: We recommend that you add the
outputpath to.gitignoreso that the query engine that's part of the generated Prisma Client is kept out of version control:📚 Learn more in the docs.
Cloudflare D1 & Turso/LibSQL migrations (Early Access)
Cloudflare D1 and Turso are popular database providers that are both based on SQLite. While you can query them using the respective driver adapter for D1 or Turso, previous versions of Prisma ORM weren't able to make schema changes against these databases.
With today's release, we're sharing the first Early Access version of native D1 migration support for the following commands:
prisma db push: Updates the schema of the remote database based on your Prisma schemaprisma db pull: Introspects the schema of the remote database and updates your local Prisma schemaprisma migrate diff: Outputs the difference between the schema of the remote database and your local Prisma schemaTo use these commands, you need to connect the Prisma CLI to your D1 or Turso instance by using the driver adapter in your
prisma.config.tsfile. Here is an example for D1:With that setup, you can now execute schema changes against your D1 instance by running:
📚 Learn more in the docs:
MCP server to manage Prisma Postgres via LLMs (Preview)
Prisma Postgres is the first serverless database without cold starts. Designed for optimal efficiency and high performance, it's the perfect database to be used alongside AI tools like Cursor, Windsurf, Lovable or co.dev. In this ORM release, we're adding a command to start a Prisma MCP server that you can integrate in your AI development environment. Thanks to that MCP server, you can now:
… and much more.
To get started, add this snippet to the MCP configuration of your favorite AI tool and get started:
📚 Learn more in the docs.
New
--promptoption onprisma initYou can now pass a
--promptoption to theprisma initcommand to have it scaffold a Prisma schema for you and deploy it to a fresh Prisma Postgres instance:For everyone, following social media trends, we also created an alias called
--vibefor you 😉Improved API for using driver adapters
In this release, we are introducing a nice DX improvement for driver adapters. Driver adapters let you access your database using JS-native drivers with Prisma ORM.
Before 6.6.0
Earlier versions of Prisma ORM required you to first instantiate the driver itself, and then use that instance to create the Prisma driver adapter. Here is an example using the
@libsql/clientdriver for LibSQL:6.6.0 and later
As of this release, you instantiate the driver adapter directly with the options of your preferred JS-native driver.:
Other changes
prismaSchemaFolderbreaking changesIf you are using the
prismaSchemaFolderPreview feature to split your Prisma schema into multiple files, you may encounter some breaking changes in this version.Explicit declaration of schema folder location
You now must always provide the path to the schema folder explicitly. You can do this in either of three ways:
--schemaoption to your Prisma CLI command (e.g.prisma migrate dev --schema ./prisma/schema)prisma.schemafield inpackage.json:schemaproperty inprisma.config.ts:migrationsfolder must live next to.prismafile withdatasourceblockYour
migrationsdirectory must live next to the.prismafile that defines yourdatasourceblog. If you relied on the implicit schema folder location of./prisma/schemamake sure to move your migrations folder from./prisma/migrationsto./prisma/schema/migrations.Assuming
schema.prismadefines thedatasourcein this example, here's how how need to place themigrationsfolder:See this PR for more details.
No more Bun issues if Node.js is not installed
Bun users reported an issue that
prisma generatewould hang if Node.js installed on their machine. This is now fixed and Bun users can generate Prisma Client without issues.Company news
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.
We are hiring: Developer Support Engineer
If you care about making developers successful, join us as a Developer Support Engineer.
6.5.0
Today, we are excited to share the
6.5.0stable 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
migratecommand could not be applied cleanly to the underlying database, you would get a message like this one: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 resetdirectly.Support for
prisma.config.tsin Prisma StudioWe've expanded support for our
prisma.config.tsfile 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
studioblock to yourprisma.config.tsfile:Notice how this looks a little different from last release! Instead of an
@prisma/configpackage there’s now two different options:defineConfighelper exported byprisma/config.PrismaConfigutility type exported byPrisma.All the relevant info for the
prisma.config.tsfile, including these new ways of defining your config, can be found in our docs.Allow for chaining
$onand$extends.In previous versions of Prisma ORM, the return type of the
$onclient method wasvoid. This did not allow for chaining$on()and$extends()calls, as$onis not available on extended clients.In this version we've resolved this issue and
$onwill 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!
✨ This PR was created by Minori, your friendly dependency updater! 🌸
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.