prisma breaking changes
Updated December 4, 2026
On this page
Latest version 7.10.1, released October 15, 2026. Source repository
Its 6.0.0 release drops Node.js 19, 21 and 23. Node.js end of life dates.
- From 6.18.0 to 7.10.1: 60 breaking changes in 6 versions.
- From 4.15.0 to 7.10.1: 139 breaking changes in 31 versions.
prisma 7.10.1 breaking changes
- Behavior changed
Prisma Migrate now stops with error P3025 when the shadow database URL points at the same database as the main database URL. Point the shadow database URL at a separate database. github.com
prisma 7.10.0 breaking changes
- Behavior changed
Studio's local HTTP server only listens on 127.0.0.1, rejects browser requests from origins other than its localhost Studio URL, and no longer sends wildcard CORS headers. Code that reaches Studio from other hosts or origins will be... github.com - Behavior changed
$queryRaw
Invalid Date values passed to $queryRaw or $executeRaw now throw PrismaClientValidationError instead of a generic error. Code that matches the old error type must check for the new one. github.com - Behavior changed
prisma db push
The AI-agent safety checkpoint now also applies to interactive prisma db push confirmations involving data-loss warnings, not only runs using --accept-data-loss. Agent-driven workflows may now stop at these prompts. github.com - Default changed
The prisma-client generator in TypeScript projects using module node16 or nodenext now picks the module format from the nearest package.json type, defaulting to CommonJS when absent. Projects whose output format changes may need to adjust... github.com - Configuration changed
Without an explicit --config option, Prisma 7 now looks for prisma7.config.* and .config/prisma7.* before falling back to prisma.config.*. If a prisma7 config file exists but fails to load, Prisma reports the error instead of falling back. github.com
prisma 7.9.0 breaking changes
- Behavior changed
Agent detection was broadened, so destructive commands are refused in more agent environments unless the user explicitly consents. github.com - Behavior changed
$executeRaw
Invalid Date values are now rejected with a validation error rather than silently serialized as null. github.com - Behavior changed
$queryRaw
Invalid Date values are now rejected with a validation error rather than silently serialized as null. github.com - Behavior changed
db push --accept-data-loss
When an AI agent is detected, db push with --accept-data-loss is now refused unless the user gives explicit consent. github.com - Behavior changed
PrismaClientKnownRequestError
Unmapped database errors from driver adapters are now thrown as PrismaClientKnownRequestError with code P2039, so catch blocks that handled them differently may need updating. github.com - Behavior changed
XOR
Code that passed primitive values such as data: 5 now fails type-checking. Such values were already rejected at runtime. github.com - Default changed
On Windows, engine binaries are now cached in %APPDATA%\Prisma instead of a cwd-relative node_modules\.cache directory. github.com
prisma 7.3.0 breaking changes
- Behavior changed
With relationJoins, BigInt columns are cast to text in JSON aggregation, so they arrive as JSON strings instead of numbers. Code that expects numeric BigInt values in these results must handle strings. github.com - Behavior changed
Generated enum values no longer come from the @map value introduced in 7.0. Code that relied on the 7.0 mapped enum values must be updated to match the reverted behavior. github.com
prisma 7.2.0 breaking changes
- Behavior changed
DataMapperError
DataMapperError is surfaced as a user-facing error for clearer error reporting, so code checking its error type may behave differently. github.com - Behavior changed
prisma init
prisma init tailors the generated setup depending on whether the runtime is Bun or another JavaScript runtime. github.com - Behavior changed
prisma version --json
Machine-readable JSON output is emitted cleanly to stdout without extra noise, so scripts parsing stdout may see different output. github.com
prisma 7.0.0 breaking changes
- Removed
Projects using MongoDB must stay on Prisma 6 because Prisma 7 does not support it. github.com - Removed
The CLI no longer detects Prisma v1 projects. github.com - Removed
AccelerateEngine
Accelerate now uses a RemoteExecutor instead. github.com - Removed
adapter
The adapter option in the config file is no longer supported. github.com - Removed
BinaryEngine
The long-running executable binary engine has been removed. github.com - Removed
DataProxyEngine
The data proxy engine has been removed. github.com - Removed
datasource.directUrl
This schema option is no longer needed and has been removed. github.com - Removed
engine
The engine option in the config file is no longer supported. github.com - Removed
generator.runtime
The react-native runtime value for the generator has been removed. github.com - Removed
LibraryEngine
The Node-API client engine has been removed. github.com
And 32 more in this version. Sign up to see every change
Older versions
26 older versions, each with its first changes. Sign up to see every change
Show 26 older versions
prisma 6.18.0 breaking changes
- Behavior changed
The generated type for Bytes fields now depends on the TypeScript version used, which can change types in existing code. github.com - Default changed
New projects created with prisma init get a prisma.config.ts file automatically. Existing projects are not affected, but new projects should review the generated config. github.com
And 1 more in this version.
prisma 6.16.3 breaking changes
- Behavior changed
Generated migrations no longer include the default schema (namespace) unless it is set explicitly in the schema file, restoring the pre-6.13.0 behaviour. Users relying on the 6.16.2 output may see different migration files. github.com
prisma 6.16.2 breaking changes
- Behavior changed
Combining Prisma Postgres URLs with driver adapters, which validation previously permitted, now produces an error saying they are mutually exclusive. Remove the driver adapter when using a Prisma Postgres URL. github.com
prisma 6.16.0 breaking changes
- Removed
Prisma.validator
The new prisma-client generator no longer provides Prisma.validator; use the TypeScript satisfies keyword instead. github.com
prisma 6.15.0 breaking changes
- Removed
deno-deploy
The deno-deploy runtime value was removed from the Prisma Client generator. Use runtime = "deno" instead. github.com - Removed
node
The node runtime value was removed from the Prisma Client generator. Use runtime = "nodejs" instead. github.com
And 2 more in this version.
prisma 6.14.0 breaking changes
- Removed
prisma.$use
The prisma.$use method (middleware), deprecated since v4.16.0, has been removed from Prisma Client. Use Prisma Client extensions instead. github.com
prisma 6.13.0 breaking changes
- Removed
earlyAccess
Prisma Config is now Generally Available, so the earlyAccess option is no longer needed and should be removed from prisma.config.ts. github.com - Behavior changed
Views in the Prisma schema can't use @id, @index or @unique anymore, and findUnique, cursor pagination, writes and relations involving views are disallowed. Remove those attributes and adjust code that relies on them. github.com
And 1 more in this version.
prisma 6.10.0 breaking changes
- Behavior changed
Imports from the new prisma-client generator output may need to change. Check the generators docs for the new import paths. github.com
prisma 6.9.0 breaking changes
- Default changed
prisma init
Running prisma init now uses local Prisma Postgres by default instead of the previous default. Code or scripts that rely on the old init behavior should pass the relevant option explicitly. github.com
prisma 6.8.0 breaking changes
- Removed
deno
The deno Preview feature is removed from the prisma-client-js generator. To use Prisma ORM with Deno, switch to the prisma-client generator with runtime = "deno". github.com
prisma 6.6.0 breaking changes
- Behavior changed
prismaSchemaFolder
If you relied on the implicit ./prisma/schema location, move your migrations folder from ./prisma/migrations to ./prisma/schema/migrations. github.com - Configuration changed
prismaSchemaFolder
When using the prismaSchemaFolder preview feature, the schema folder path must be given explicitly via the --schema option, the package.json prisma.schema field, or the schema property in prisma.config.ts. github.com
And 1 more in this version.
prisma 6.5.0 breaking changes
- Behavior changed
When a migrate command cannot be applied cleanly, Prisma ORM now exits with an error rather than asking to reset the database. To get the previous behavior, run prisma migrate reset directly. github.com
prisma 6.3.0 breaking changes
- Behavior changed
Fields inside a generator block are now sorted in a fixed order, so the first prisma db pull after upgrading may reorder them in your schema file. The order stays consistent after that. github.com
prisma 6.1.0 breaking changes
- Behavior changed
Some spans generated by Prisma Client changed, so trace monitoring that depends on the old span names may need updating. The prisma:engine:query and prisma:engine:response_json_serialization spans were added. github.com - Configuration changed
@opentelemetry/api is now a peer dependency instead of a regular dependency, so users must add it to their own dependencies. github.com
prisma 6.0.0 breaking changes
- Removed
Prisma ORM v6 no longer officially supports Node.js below 18.18.0, 19, 21 or 23. Upgrade Node.js to a supported version before upgrading Prisma. github.com - Removed
The minimum supported TypeScript version for Prisma ORM v6 is 5.1.0. Upgrade TypeScript if you use an older version. github.com
And 5 more in this version.
prisma 5.22.0 breaking changes
- Behavior changed
The spans of the tracing Preview feature were made compliant with OpenTelemetry Semantic Conventions for Database Client Calls, so span output may differ for code or tools that read it. github.com
prisma 5.20.0 breaking changes
- Configuration changed
strictUndefinedChecks
When the strictUndefinedChecks Preview feature is enabled, any explicitly undefined value in a query throws a runtime error. Use Prisma.skip to keep the previous behavior for optional parts of a query. github.com
prisma 5.17.0 breaking changes
- Behavior changed
queryRaw
The response format of queryRaw changed to reduce its average size, so code that depends on the exact shape of its results may need to be checked. github.com
prisma 5.16.0 breaking changes
- Renamed
<Model>OrderByWithRelationAndSearchRelevanceInput
With the fullTextSearch preview feature, the <Model>OrderByWithRelationAndSearchRelevanceInput TypeScript type is removed; use <Model>OrderByWithRelationInput instead. github.com - Behavior changed
prisma.schema
If both a prisma/schema folder and a prisma/schema.prisma file exist, Prisma now reports an error instead of silently ignoring the folder. Remove one of them. github.com
And 1 more in this version.
prisma 5.15.0 breaking changes
- Behavior changed
The release notes flag that Int switched to Int32 for MongoDB, which may change how existing Int fields are read and written. Check code and data that depend on the previous Int type. github.com
prisma 5.11.0 breaking changes
- Behavior changed
prisma.create
Nested create queries are batched into a single roundtrip instead of multiple INSERT queries; behavior of data written is the same but query shape changes. github.com
prisma 5.3.0 breaking changes
- Behavior changed
prisma.user.findMany
Prisma Client now returns an error when a Json field array contains an undefined value. Filter out undefined values or convert them to null before querying. github.com
prisma 5.2.0 breaking changes
- Behavior changed
PrismaClient
If the connection string starts with prisma://, Prisma Client now connects through Prisma Accelerate or Prisma Data Proxy automatically. Check that any prisma:// connection strings in your code are meant to use those services. github.com
prisma 5.0.0 breaking changes
- Removed
Prisma ORM 5 needs TypeScript 4.7 or later. Upgrade TypeScript if your project uses an earlier version. prisma.io - Removed
Prisma 5 requires Node.js 16.13.0 or later. Upgrade Node.js before upgrading Prisma. github.com
And 32 more in this version.
prisma 4.16.0 breaking changes
- Renamed
Prisma
The utilities used for authoring extensions moved their import path. Import Prisma from @prisma/client/extension instead of @prisma/client when writing extensions. github.com - Behavior changed
$executeRaw
The args passed to query extension callbacks for $executeRaw are now always a Sql instance rather than the raw input. Code that expects another shape must be updated. github.com
And 2 more in this version.
prisma 4.15.0 breaking changes
- Behavior changed
prisma generate
The VS Code extension now uses a new file system watcher to restart the TypeScript server after prisma generate; it is only available on Windows and Linux for now and needs Prisma CLI and extension 4.15.0 or higher. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.