[Snyk] Upgrade @prisma/client from 6.8.2 to 6.12.0#142
Open
[Snyk] Upgrade @prisma/client from 6.8.2 to 6.12.0#142
Conversation
Snyk has created this PR to upgrade @prisma/client from 6.8.2 to 6.12.0. See this package in npm: @prisma/client See this project in Snyk: https://app.snyk.io/org/pshaddel/project/a92b9b01-9263-495d-9d66-d73912d132b0?utm_source=github&utm_medium=referral&page=upgrade-pr
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.
Snyk has created this PR to upgrade @prisma/client from 6.8.2 to 6.12.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 210 versions ahead of your current version.
The recommended version was released a month ago.
Release notes
Package name: @prisma/client
-
6.12.0 - 2025-07-15
generator client {
- React Router + Vite + Cloudflare
- React Router + Vite + Node.js
- Nuxt 3 + Vite + Nitro
- Deno Deploy
-
6.12.0-integration-raw-code-fallback-turso.1 - 2025-07-14
-
6.12.0-integration-push-nqqtxovowlmm.3 - 2025-07-14
-
6.12.0-integration-push-nqqtxovowlmm.2 - 2025-07-11
-
6.12.0-integration-push-nqqtxovowlmm.1 - 2025-07-10
-
6.12.0-integration-fix-support-adapter-type-in-prisma-client-constructor-with-edge-runtimes.1 - 2025-07-11
-
6.12.0-integration-fix-regression-accelerate.1 - 2025-07-02
-
6.12.0-integration-fix-mcp-json-response.3 - 2025-07-03
-
6.12.0-integration-fix-mcp-json-response.2 - 2025-07-03
-
6.12.0-integration-fix-mcp-json-response.1 - 2025-07-02
-
6.12.0-integration-feat-investigate-prisma-generate-on-stackblitz.1 - 2025-07-14
-
6.12.0-dev.40 - 2025-07-15
-
6.12.0-dev.39 - 2025-07-15
-
6.12.0-dev.38 - 2025-07-15
-
6.12.0-dev.37 - 2025-07-15
-
6.12.0-dev.36 - 2025-07-15
-
6.12.0-dev.35 - 2025-07-14
-
6.12.0-dev.34 - 2025-07-14
-
6.12.0-dev.33 - 2025-07-14
-
6.12.0-dev.32 - 2025-07-14
-
6.12.0-dev.31 - 2025-07-11
-
6.12.0-dev.30 - 2025-07-10
-
6.12.0-dev.29 - 2025-07-10
-
6.12.0-dev.28 - 2025-07-10
-
6.12.0-dev.27 - 2025-07-10
-
6.12.0-dev.26 - 2025-07-10
-
6.12.0-dev.25 - 2025-07-10
-
6.12.0-dev.24 - 2025-07-10
-
6.12.0-dev.23 - 2025-07-10
-
6.12.0-dev.22 - 2025-07-09
-
6.12.0-dev.21 - 2025-07-09
-
6.12.0-dev.20 - 2025-07-09
-
6.12.0-dev.19 - 2025-07-09
-
6.12.0-dev.18 - 2025-07-04
-
6.12.0-dev.17 - 2025-07-04
-
6.12.0-dev.16 - 2025-07-03
-
6.12.0-dev.15 - 2025-07-03
-
6.12.0-dev.14 - 2025-07-03
-
6.12.0-dev.13 - 2025-07-03
-
6.12.0-dev.12 - 2025-07-03
-
6.12.0-dev.11 - 2025-07-02
-
6.12.0-dev.10 - 2025-07-02
-
6.12.0-dev.9 - 2025-07-02
-
6.12.0-dev.8 - 2025-07-01
-
6.12.0-dev.7 - 2025-07-01
-
6.12.0-dev.6 - 2025-07-01
-
6.12.0-dev.4 - 2025-07-01
-
6.12.0-dev.3 - 2025-07-01
-
6.12.0-dev.2 - 2025-07-01
-
6.12.0-dev.1 - 2025-07-01
-
6.11.1 - 2025-07-03
-
-
-
6.11.1-dev.1 - 2025-07-03
-
6.11.0 - 2025-07-01
- Fixed an issue with writing and deleting from tables with UUIDs
- Fixed an issue with saving data in fullscreen mode
- Fixed an issue with updating the schema when the refresh button is clicked


- Next.js SaaS Starter with Drizzle ORM
- Postgres SvelteKit Starter with Postgres.js
- Next.js + PostgreSQL Auth Starter with Drizzle ORM
- … and a lot more
-
6.11.0-integration-upgrade-mcp-sdk.1 - 2025-06-30
-
6.11.0-integration-fix-generator-ts-pre-preview.1 - 2025-06-25
-
6.11.0-dev.43 - 2025-07-01
-
6.11.0-dev.42 - 2025-07-01
-
6.11.0-dev.41 - 2025-07-01
-
6.11.0-dev.40 - 2025-07-01
-
6.11.0-dev.39 - 2025-06-30
-
6.11.0-dev.38 - 2025-06-30
-
6.11.0-dev.37 - 2025-06-30
-
6.11.0-dev.36 - 2025-06-27
-
6.11.0-dev.35 - 2025-06-27
-
6.11.0-dev.34 - 2025-06-27
-
6.11.0-dev.33 - 2025-06-27
-
6.11.0-dev.32 - 2025-06-27
-
6.11.0-dev.31 - 2025-06-27
-
6.11.0-dev.30 - 2025-06-26
-
6.11.0-dev.29 - 2025-06-26
-
6.11.0-dev.28 - 2025-06-26
-
6.11.0-dev.27 - 2025-06-26
-
6.11.0-dev.26 - 2025-06-26
-
6.11.0-dev.25 - 2025-06-26
-
6.11.0-dev.24 - 2025-06-26
-
6.11.0-dev.23 - 2025-06-25
-
6.11.0-dev.22 - 2025-06-25
-
6.11.0-dev.21 - 2025-06-25
-
6.11.0-dev.20 - 2025-06-25
-
6.11.0-dev.19 - 2025-06-25
-
6.11.0-dev.18 - 2025-06-25
-
6.11.0-dev.17 - 2025-06-24
-
6.11.0-dev.16 - 2025-06-24
-
6.11.0-dev.15 - 2025-06-23
-
6.11.0-dev.14 - 2025-06-23
-
6.11.0-dev.13 - 2025-06-23
-
6.11.0-dev.12 - 2025-06-21
-
6.11.0-dev.11 - 2025-06-20
-
6.11.0-dev.10 - 2025-06-20
-
6.11.0-dev.9 - 2025-06-20
-
6.11.0-dev.8 - 2025-06-19
-
6.11.0-dev.7 - 2025-06-19
-
6.11.0-dev.6 - 2025-06-19
-
6.11.0-dev.5 - 2025-06-19
-
6.11.0-dev.4 - 2025-06-19
-
6.11.0-dev.3 - 2025-06-18
-
6.11.0-dev.2 - 2025-06-18
-
6.11.0-dev.1 - 2025-06-18
-
6.10.1 - 2025-06-18

-
6.10.1-dev.2 - 2025-06-18
-
6.10.1-dev.1 - 2025-06-18
-
6.10.0 - 2025-06-17
// Single-column shard key
- We deprecated the
- Entrypoint for new
- Managing databases and connection strings
- Creating and re-instantiating backups
- Querying databases via plain SQL
- Introspecting database schemas
-
6.10.0-integration-fix-orm-1006-fix-subcommands-like-init.8 - 2025-06-16
-
6.10.0-integration-fix-orm-1006-fix-subcommands-like-init.7 - 2025-06-13
-
6.10.0-integration-fix-orm-1006-fix-subcommands-like-init.6 - 2025-06-13
-
6.10.0-integration-fix-orm-1006-fix-subcommands-like-init.5 - 2025-06-13
-
6.10.0-integration-fix-orm-1006-fix-subcommands-like-init.4 - 2025-06-13
-
6.10.0-integration-fix-orm-1006-fix-subcommands-like-init.3 - 2025-06-13
-
6.10.0-integration-fix-orm-1006-fix-subcommands-like-init.2 - 2025-06-13
-
6.10.0-integration-fix-orm-1006-fix-subcommands-like-init.1 - 2025-06-12
-
6.10.0-integration-feat-skip-download-in-get-generators-2.1 - 2025-06-04
-
6.10.0-integration-engines-6-10-0-9-push-smusznrwrttt-246c08450a3b0e5cda95f7bf0b62234339c14834.1 - 2025-06-06
-
6.10.0-integration-engines-6-10-0-8-push-smusznrwrttt-a019c72b475a6e71f884e1d99abb283f4c54266a.1 - 2025-06-06
-
6.10.0-integration-engines-6-10-0-37-feat-adapter-mysql2-f08a5631f21ef1d59190236288d46f16dcb851b6.1 - 2025-06-13
-
6.10.0-integration-engines-6-10-0-35-feat-adapter-mysql2-54968c1a9947183f610650a29a0b231be7c4328a.1 - 2025-06-13
-
6.10.0-integration-engines-6-10-0-25-push-smusznrwrttt-0a6030d998e96384984d7e2e9792765f8eb176ad.1 - 2025-06-11
-
6.10.0-integration-engines-6-10-0-23-push-smusznrwrttt-d6e7e7f233778c7c76f69eec1500398294b2aea5.1 - 2025-06-11
-
6.10.0-integration-engines-6-10-0-22-push-smusznrwrttt-1c84ad2a98e5219c9c30c0c899ebae964747a8bf.1 - 2025-06-11
-
6.10.0-integration-engines-6-10-0-21-push-smusznrwrttt-10c1bd4bf65d10daf42d7faa2280a040211023e9.1 - 2025-06-11
-
6.10.0-integration-engines-6-10-0-20-push-smusznrwrttt-3b3a1971243008892b9714dccf9615b9e248da6f.1 - 2025-06-11
-
6.10.0-integration-engines-6-10-0-19-push-smusznrwrttt-8ad336477b58d8872b7b78157a7f026224fcbdbb.1 - 2025-06-10
-
6.10.0-integration-engines-6-10-0-18-push-smusznrwrttt-2f617e7b4b1cc1213e4f885eb37416ff9c6a7f3d.1 - 2025-06-10
-
6.10.0-integration-engines-6-10-0-17-push-smusznrwrttt-f2a094880d0c49e8c37fb38b96faa7ebe3b58aae.1 - 2025-06-10
-
6.10.0-integration-engines-6-10-0-16-push-smusznrwrttt-4f6fb0655d1433baae9f27995cd8b22d8e838d36.1 - 2025-06-10
-
6.10.0-integration-engines-6-10-0-15-push-smusznrwrttt-afbfdc879762708c5794e5a7ce72c67f1844f01b.1 - 2025-06-10
-
6.10.0-integration-engines-6-10-0-14-push-smusznrwrttt-f611a4c4bbe7cf1f24e10f2514574b061d14bdb8.1 - 2025-06-10
-
6.10.0-integration-engines-6-10-0-10-push-smusznrwrttt-04e7f91b2ba99c26561ab62566d82f309e664ecd.1 - 2025-06-06
-
6.10.0-dev.30 - 2025-06-17
-
6.10.0-dev.29 - 2025-06-17
-
6.10.0-dev.28 - 2025-06-17
-
6.10.0-dev.27 - 2025-06-17
-
6.10.0-dev.26 - 2025-06-17
-
6.10.0-dev.24 - 2025-06-16
-
6.10.0-dev.23 - 2025-06-16
-
6.10.0-dev.22 - 2025-06-16
-
6.10.0-dev.20 - 2025-06-13
-
6.10.0-dev.19 - 2025-06-12
-
6.10.0-dev.18 - 2025-06-12
-
6.10.0-dev.17 - 2025-06-12
-
6.10.0-dev.16 - 2025-06-12
-
6.10.0-dev.15 - 2025-06-11
-
6.10.0-dev.14 - 2025-06-10
-
6.10.0-dev.13 - 2025-06-10
-
6.10.0-dev.12 - 2025-06-10
-
6.10.0-dev.11 - 2025-06-10
-
6.10.0-dev.10 - 2025-06-10
-
6.10.0-dev.9 - 2025-06-09
-
6.10.0-dev.8 - 2025-06-09
-
6.10.0-dev.7 - 2025-06-06
-
6.10.0-dev.6 - 2025-06-06
-
6.10.0-dev.5 - 2025-06-06
-
6.10.0-dev.4 - 2025-06-06
-
6.10.0-dev.3 - 2025-06-06
-
6.10.0-dev.2 - 2025-06-06
-
6.10.0-dev.1 - 2025-06-05
-
6.9.0 - 2025-06-03
import { PrismaClient } from './generated/prisma'
- Persists your databases across
- Enables you to have multiple local Prisma Postgres instances running at the same time.
- Running
- Authenticate with the Prisma Console
- Create and delete remote Prisma Postgres instances
- View local Prisma Postgres instances
- View and edit data via an embedded Prisma Studio
- Visualize your database schema

-
6.9.0-integration-push-xtvzqtsrpwpk.3 - 2025-06-03
-
6.9.0-integration-push-xtvzqtsrpwpk.2 - 2025-06-03
-
6.9.0-dev.52 - 2025-06-03
-
6.9.0-dev.51 - 2025-06-03
-
6.9.0-dev.50 - 2025-06-03
-
6.9.0-dev.49 - 2025-06-03
-
6.9.0-dev.48 - 2025-06-03
-
6.9.0-dev.47 - 2025-06-03
-
6.9.0-dev.46 - 2025-06-03
-
6.9.0-dev.45 - 2025-06-03
-
6.9.0-dev.44 - 2025-06-03
-
6.9.0-dev.43 - 2025-06-02
-
6.9.0-dev.42 - 2025-05-30
-
6.9.0-dev.41 - 2025-05-30
-
6.9.0-dev.40 - 2025-05-30
-
6.9.0-dev.39 - 2025-05-30
-
6.9.0-dev.38 - 2025-05-30
-
6.9.0-dev.37 - 2025-05-29
-
6.9.0-dev.36 - 2025-05-28
-
6.9.0-dev.35 - 2025-05-28
-
6.9.0-dev.34 - 2025-05-28
-
6.9.0-dev.33 - 2025-05-28
-
6.9.0-dev.32 - 2025-05-28
-
6.9.0-dev.31 - 2025-05-28
-
6.9.0-dev.30 - 2025-05-27
-
6.9.0-dev.29 - 2025-05-27
-
6.9.0-dev.28 - 2025-05-27
-
6.9.0-dev.27 - 2025-05-27
-
6.9.0-dev.26 - 2025-05-26
-
6.9.0-dev.25 - 2025-05-23
-
6.9.0-dev.24 - 2025-05-23
-
6.9.0-dev.23 - 2025-05-23
-
6.9.0-dev.22 - 2025-05-22
-
6.9.0-dev.21 - 2025-05-22
-
6.9.0-dev.20 - 2025-05-22
-
6.9.0-dev.19 - 2025-05-22
-
6.9.0-dev.18 - 2025-05-21
-
6.9.0-dev.17 - 2025-05-21
-
6.9.0-dev.16 - 2025-05-21
-
6.9.0-dev.15 - 2025-05-21
-
6.9.0-dev.14 - 2025-05-21
-
6.9.0-dev.13 - 2025-05-21
-
6.9.0-dev.12 - 2025-05-20
-
6.9.0-dev.11 - 2025-05-20
-
6.9.0-dev.10 - 2025-05-20
-
6.9.0-dev.9 - 2025-05-19
-
6.9.0-dev.8 - 2025-05-19
-
6.9.0-dev.7 - 2025-05-19
-
6.9.0-dev.6 - 2025-05-19
-
6.9.0-dev.5 - 2025-05-19
-
6.9.0-dev.4 - 2025-05-16
-
6.9.0-dev.3 - 2025-05-16
-
6.9.0-dev.2 - 2025-05-15
-
6.9.0-dev.1 - 2025-05-15
-
6.8.2 - 2025-05-16
- #27195
from @prisma/client GitHub release notesToday, 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:// Required
provider = "prisma-client" // no
-jsat the end!output = "../src/generated/prisma"
// Optional
runtime = "nodejs"
moduleFormat = "esm"
generatedFileExtension = "ts"
importFileExtension = "ts"
}
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
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 #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.
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!
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.
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:model User {
id String @ default(uuid())
region String @ shardKey
}
// Multi-column shard key
model User {
id String @ default(uuid())
country String
customerId String
@@ shardKey([country, customerId])
}
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.
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:import { PrismaPg } from '@prisma/adapter-pg'
const adapter = new PrismaPg({ connectionString: env.DATABASE_URL })
const prisma = new PrismaClient({ adapter })
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!
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:
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: