Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.
Last release 2 days ago
25 Aug 2026
Ships fairly regularly
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
3 versions withdrawn
withdrawn after publishing
7 years old
10652 releases Β· first in 2020
Release timeline
10652 releases since 2020Releases
- 6.7.0-dev.3224 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.3124 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.3023 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2923 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2823 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2722 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2622 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2517 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2416 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2316 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2215 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2115 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.2015 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1915 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1815 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1715 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1615 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1514 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1414 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1314 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1214 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1111 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.1011 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.911 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.810 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.710 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.610 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.510 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.410 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.39 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.29 Apr 2025pre-release
Nothing published for this version
- 6.7.0-dev.19 Apr 2025pre-release
Nothing published for this version
- 6.6.08 Apr 2025
Release notes
Open source β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.Note: The
prisma-clientgenerator is currently in Early Access and will likely have some breaking changes in the next releases.Here are the main differences:
- Requires an
outputpath; no βmagicβ generation intonode_modulesany more - Supports ESM and CommonJS via the
moduleFormatfield - Outputs plain TypeScript that's bundled just like the rest of your application code
Here's how you can use the new
prisma-clientgenerator in your Prisma schema:// prisma/schema.prisma generator client { provider = "prisma-client" // no `-js` at the end output = "../src/generated/prisma" // `output` is required moduleFormat = "esm" // or `"cjs"` for CommonJS }In your application, you can then import the
PrismaClientconstructor (and anything else) from the generated folder:// src/index.ts import { PrismaClient } from './generated/prisma/client'β οΈ 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:# .gitignore ./src/generated/prismaπ 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 schema
Note: Support for
prisma migrate devandprisma migrate deploywill come very soon!To 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:import path from 'node:path' import type { PrismaConfig } from 'prisma' import { PrismaD1HTTP } from '@prisma/adapter-d1' // import your .env file import 'dotenv/config' type Env = { CLOUDFLARE_D1_TOKEN: string CLOUDFLARE_ACCOUNT_ID: string CLOUDFLARE_DATABASE_ID: string } export default { earlyAccess: true, schema: path.join('prisma', 'schema.prisma'), migrate: { async adapter(env) { return new PrismaD1HTTP({ CLOUDFLARE_D1_TOKEN: env.CLOUDFLARE_D1_TOKEN, CLOUDFLARE_ACCOUNT_ID: env.CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_DATABASE_ID: env.CLOUDFLARE_DATABASE_ID, }) }, }, } satisfies PrismaConfig<Env>With that setup, you can now execute schema changes against your D1 instance by running:
npx prisma db pushπ 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:
- tell your AI agent to create new DB instances
- design your data model
- chat through a database migration
β¦ and much more.
To get started, add this snippet to the MCP configuration of your favorite AI tool and get started:
{ "mcpServers": { "Prisma": { "command": "npx", "args": ["-y", "prisma", "mcp"] } } }π 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:npx prisma init --prompt "Simple habit tracker application"For everyone, following social media trends, we also created an alias called
--vibefor you πnpx prisma init --vibe "Cat meme generator"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:import { createClient } from '@libsql/client' import { PrismaLibSQL } from '@prisma/adapter-libsql' import { PrismaClient } from '@prisma/client' // Old way of using driver adapters (before 6.6.0) const driver = createClient({ url: env.LIBSQL_DATABASE_URL, authToken: env.LIBSQL_DATABASE_TOKEN, }) const adapter = new PrismaLibSQL(driver) const prisma = new PrismaClient({ adapter })6.6.0 and later
As of this release, you instantiate the driver adapter directly with the options of your preferred JS-native driver.:
import { PrismaLibSQL } from '@prisma/adapter-libsql' import { PrismaClient } from '../prisma/prisma-client' const adapter = new PrismaLibSQL({ url: env.LIBSQL_DATABASE_URL, authToken: env.LIBSQL_DATABASE_TOKEN, }) const prisma = new PrismaClient({ adapter })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:
- pass the the
--schemaoption to your Prisma CLI command (e.g.prisma migrate dev --schema ./prisma/schema) - set the
prisma.schemafield inpackage.json:// package.json { "prisma": { "schema": "./schema" } } - set the
schemaproperty inprisma.config.ts:import path from 'node:path' import type { PrismaConfig } from 'prisma' export default { earlyAccess: true, schema: path.join('prisma', 'schema'), } satisfies PrismaConfig<Env>
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:# `migrations` and `schema.prisma` are on the same level . βββ migrations βββ models β βββ posts.prisma β βββ users.prisma βββ schema.prismaSee 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.
- Requires an
- 6.6.0-integration-refactor-schema-path-less-migrate-class.114 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-ytsqyomrunkq.12 Apr 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-yrztmmmwtryl.18 Apr 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.1424 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.1324 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.1221 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.1121 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.1021 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.921 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.821 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.721 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.621 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.521 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.420 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.320 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.220 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-xmzqvqxpztks.120 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.1031 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.929 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.829 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.729 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.629 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.529 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.429 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.329 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.229 Mar 2025pre-release
Nothing published for this version
- 6.6.0-integration-push-spwsqpvywlkl.129 Mar 2025pre-release
Nothing published for this version