unstale

npm / prisma

prisma

What changed in prisma 6 to 7, from its official release notes, upgrade guides and advisories. Also covers @prisma/client. Sources checked 2026-10-17.

93 breaking8 security3 deprecations61 new APIs and options8 performance29 behavior and defaults12 tooling88 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.0 on npm

prisma 7283 changes

Breaking changes 91

  • Automatically batched calls now reject every missing record with P2025 instead of resolving later misses to undefined.

    7.10.0release notes

  • PostgreSQL deadlocks with SQLSTATE 40P01 are now reported as P2034 transaction write conflicts.

    7.10.0release notes

  • Previously unhandled SQLite result codes now become typed database errors instead of raw driver errors.

    7.10.0release notes

  • Invalid Date values now throw PrismaClientValidationError instead of a generic error.

    7.10.0release notes

  • db pull, db push, and migrate dev now report a consistent datasource error for empty or generator-only schemas.

    7.10.0release notes

  • The complete SQLITE_BUSY family now maps to socket timeout errors while preserving numeric extended result codes where available.

    7.10.0release notes

  • Destructive Prisma commands are refused when an AI agent is detected unless the user gives explicit consent.

    7.9.0release notes

  • Invalid Date values now fail fast with a validation error instead of being serialized as null.

    7.9.0release notes

  • The migrate-reset tool is removed from the prisma mcp server because resetting a database is destructive.

    7.9.0release notes

  • Unmapped driver-adapter database errors now surface as PrismaClientKnownRequestError with the original code and message.

    7.9.0release notes

  • A rolled-back migration still present on disk is now reported as unapplied instead of up to date.

    7.9.0release notes

  • Invalid Date values now fail fast with a validation error instead of being serialized as null.

    7.9.0release notes

  • The XOR type helper now rejects primitive values at compile time instead of accepting values that fail at runtime.

    7.9.0release notes

  • Savepoint operations now silently no-op with debug logging instead of executing SQL statements.

    7.8.0release notes

  • AccelerateEngine has been removed; Accelerate now uses RemoteExecutor.

    7.0.0release notes

  • The adapter setting has been removed from Prisma config.

    7.0.0release notes

  • The BinaryEngine and its long-running executable binary mode have been removed.

    7.0.0release notes

  • Driver adapters inherit connection pool settings from the underlying Node.js database driver, which may differ from Prisma ORM v6 defaults.

    7.0.0upgrade guideupgrade guide

  • DataProxyEngine has been removed.

    7.0.0release notes

  • datasource.directUrl has been removed as unnecessary.

    7.0.0release notes

  • datasource.url is now configured in the Prisma config file instead of schema.prisma.

    7.0.0release notesupgrade guide

  • Migration connections previously supplied through directUrl must now be supplied as url in prisma.config.ts.

    7.0.0upgrade guide

  • Creating Prisma Client now requires a driver adapter for all databases.

    7.0.0upgrade guideupgrade guide

  • For prisma-client-js, the edge runtime path now uses /edge instead of /wasm.

    7.0.0release notes

  • The engine setting with js or classic values has been removed from Prisma config.

    7.0.0release notes

  • The Prisma CLI no longer automatically loads environment variables; developers must load them explicitly.

    7.0.0release notesupgrade guideupgrade guide

  • Prisma ORM now ships as an ES module, requiring projects to configure package and TypeScript module settings.

    7.0.0upgrade guideupgrade guide

  • The react-native generator runtime value has been removed.

    7.0.0release notes

  • The LibraryEngine and its Node-API client engine mode have been removed.

    7.0.0release notes

  • Generated TypeScript enum values use schema names instead of mapped database values, matching Prisma ORM v6 behavior.

    7.0.0upgrade guideupgrade guide

  • The deprecated metrics preview feature has been fully removed.

    7.0.0release notesupgrade guideupgrade guide

  • MongoDB is not supported in Prisma 7; MongoDB users should remain on Prisma 6.

    7.0.0release notesupgrade guideupgrade guide

  • Node.js 20.19.0 is the minimum supported version for Prisma ORM v7.

    7.0.0upgrade guideupgrade guide

  • Generated Client runtime and project types now require an output path in schema.prisma.

    7.0.0release notesupgrade guideupgrade guide

  • The prisma package.json block for schema and seed configuration has been removed.

    7.0.0release notes

  • Projects consuming Prisma ORM as ESM need to set the package type to module.

    7.0.0upgrade guide

  • Prisma Postgres projects now use the @prisma/adapter-pg driver adapter when constructing Prisma Client.

    7.0.0upgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_CLI_QUERY_ENGINE_TYPE was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_CLIENT_ENGINE_TYPE was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_CLIENT_NO_RETRY was removed.

    7.0.0release notesupgrade guideupgrade guide

  • prisma-client-js users using output must install this runtime utilities package.

    7.0.0release notes

  • Generated Prisma Client must now be imported from the configured custom output path.

    7.0.0upgrade guideupgrade guide

  • The --schema flag was removed; the schema path must be configured in prisma.config.ts.

    7.0.0upgrade guideupgrade guide

  • The --url flag was removed; the database connection must be configured in prisma.config.ts.

    7.0.0upgrade guideupgrade guide

  • The --local-d1 flag has been removed; local D1 uses config datasource settings instead.

    7.0.0release notes

  • The undocumented --url flag has been removed from prisma db pull.

    7.0.0release notes

  • The --skip-generate flag was removed from prisma db push.

    7.0.0upgrade guideupgrade guide

  • Database seeding must now be invoked explicitly with prisma db seed.

    7.0.0upgrade guideupgrade guide

  • Prisma no longer runs generate implicitly after installation or migration.

    7.0.0release notesupgrade guideupgrade guide

  • The --accelerate flag has been removed from prisma generate.

    7.0.0release notes

  • The --allow-no-models flag has been removed from prisma generate.

    7.0.0release notes

  • The --data-proxy flag has been removed from prisma generate.

    7.0.0release notes

  • The Prisma-specific environment variable PRISMA_GENERATE_DATAPROXY was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_GENERATE_IN_POSTINSTALL was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The --no-engine flag has been removed from prisma generate.

    7.0.0release notes

  • The Prisma-specific environment variable PRISMA_GENERATE_NO_ENGINE was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_GENERATE_SKIP_AUTOINSTALL was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The deprecated prisma introspect command has been removed.

    7.0.0release notes

  • The --skip-generate flag was removed from prisma migrate dev.

    7.0.0upgrade guideupgrade guide

  • The --skip-seed flag was removed from prisma migrate dev.

    7.0.0upgrade guideupgrade guide

  • The --from-schema-datasource option was removed and replaced by --from-config-datasource.

    7.0.0upgrade guideupgrade guide

  • The local D1 diff flags were removed and replaced by config datasource flags.

    7.0.0release notes

  • The schema-datamodel diff flags were removed and replaced by the corresponding schema flags.

    7.0.0release notes

  • The schema-datasource diff flags were removed and replaced by config datasource flags.

    7.0.0release notes

  • The URL diff flags were removed and replaced by config datasource flags.

    7.0.0release notes

  • The --from-url option was removed and replaced by --from-config-datasource.

    7.0.0upgrade guideupgrade guide

  • The --shadow-database-url option was removed; configure the shadow database URL in prisma.config.ts.

    7.0.0upgrade guideupgrade guide

  • The --to-schema-datasource option was removed and replaced by --to-config-datasource.

    7.0.0upgrade guideupgrade guide

  • The --to-url option was removed and replaced by --to-config-datasource.

    7.0.0upgrade guideupgrade guide

  • prisma migrate reset no longer automatically runs seed scripts.

    7.0.0upgrade guide

  • The Prisma-specific environment variable PRISMA_MIGRATE_SKIP_GENERATE was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_MIGRATE_SKIP_SEED was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_QUERY_ENGINE_BINARY was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_QUERY_ENGINE_LIBRARY was removed.

    7.0.0release notesupgrade guideupgrade guide

  • Prisma migrate no longer runs seed implicitly.

    7.0.0release notesupgrade guideupgrade guide

  • The Prisma-specific environment variable PRISMA_SKIP_POSTINSTALL_GENERATE was removed.

    7.0.0release notesupgrade guideupgrade guide

  • The client middleware API has been removed; Client Extensions are the replacement.

    7.0.0upgrade guideupgrade guide

  • prisma.config.ts is now required for projects performing introspection or migration.

    7.0.0release notes

  • The driver adapter name changed from PrismaBetterSQLite3 to PrismaBetterSqlite3.

    7.0.0release notes

  • Creating PrismaClient now requires either a driver adapter or accelerateUrl.

    7.0.0release notes

  • PrismaClient no longer accepts the datasources option.

    7.0.0release notes

  • PrismaClient no longer accepts the datasourceUrl option.

    7.0.0release notes

  • Calling PrismaClient without constructor arguments is no longer supported.

    7.0.0release notes

  • Calling PrismaClient with an empty options object is no longer supported.

    7.0.0release notes

  • The driver adapter name changed from PrismaD1HTTP to PrismaD1Http.

    7.0.0release notes

  • The driver adapter name changed from PrismaLibSQL to PrismaLibSql.

    7.0.0release notes

  • The driver adapter name changed from PrismaNeonHTTP to PrismaNeonHttp.

    7.0.0release notes

  • ReactNativeEngine has been removed.

    7.0.0release notes

  • Invalid SSL certificates are no longer ignored by default when Prisma ORM v7 uses node-pg.

    7.0.0upgrade guideupgrade guide

  • TypeScript 5.4.0 is the minimum supported version for Prisma ORM v7.

    7.0.0upgrade guideupgrade guide

  • Hardcoded URL validation was removed; users must avoid sensitive information in config files.

    7.0.0release notes

Security 8

  • Deserialized Bytes values now own standalone ArrayBuffers instead of exposing unrelated contents from Node.js's shared Buffer pool.

    7.10.0release notes

  • The AI-agent safety checkpoint now also covers interactive confirmations involving data-loss warnings.

    7.10.0release notes

  • The AI-agent safety checkpoint now covers interactive confirmations involving data-loss warnings, not only invocations using --accept-data-loss.

    7.10.0release notes

  • Studio now binds to 127.0.0.1 and restricts browser origins, preventing network clients or malicious websites from accessing database endpoints.

    7.10.0release notes

  • Resolves a security advisory in a transitive Prisma CLI dependency to prevent false positives from security scanners; no urgent action is required.

    7.9.1release notes

  • The Prisma Platform credentials file and directory now use restrictive permissions so OAuth tokens are not world-readable.

    7.9.0release notes

  • The AI safety checkpoint now also guards db push --accept-data-loss.

    7.9.0release notes

  • Potential vulnerabilities in installed Prisma CLI dependencies are fixed.

    7.0.1release notes

Deprecations 3

  • The datasource directUrl field is deprecated and should be configured in Prisma Config.

    7.0.0upgrade guide

  • Datasource connection fields are deprecated in the schema and should be configured in Prisma Config.

    7.0.0upgrade guide

  • The older prisma-client-js provider is deprecated and will be removed in a future Prisma ORM release.

    7.0.0upgrade guideupgrade guide

New APIs and options 52

  • Result-extension compute callbacks receive the current model name as a typed second argument, preserved across composed extensions.

    7.10.0release notes

  • The MariaDB adapter accepts an existing mariadb pool, with optional disposal through disposeExternalPool.

    7.10.0release notes

  • A compatibility package enables Prisma 7 CLI and configuration alongside Prisma 8 in the same project.

    7.10.0release notes

  • The Prisma 7 executable is available as prisma7 for version-specific commands such as generate, migrate dev, and db push.

    7.10.0release notes

  • Prisma 7 now prefers version-specific configuration files, allowing its configuration to coexist with Prisma 8 configuration files.

    7.10.0release notes

  • Prisma Studio can visualize Prisma Next migration history with timelines, schema diffs, SQL statements, and model changes.

    7.9.0release notes

  • Prisma now provides shell tab completions for commands, subcommands, options, flags, and option values.

    7.9.0release notes

  • Prisma Compute is available in public beta for deploying long-lived TypeScript applications near Prisma Postgres.

    7.9.0release notes

  • prisma init installs the Prisma agent skills catalog in freshly scaffolded projects, with an option to opt out.

    7.9.0release notes

  • Studio adds a dedicated stream browser with aggregations, diagnostics, routing-key browsing, and WAL-history handoff.

    7.9.0release notes

  • Studio adds an optional Queries view backed by query-insights snapshots.

    7.9.0release notes

  • Adds fine-grained control over the query plan cache, including disabling it with 0.

    7.8.0release notes

  • New interactive command sequences Prisma Postgres setup, including initialization, linking, dependency installation, migration, generation, and seeding.

    7.7.0release notes

  • Supports supplying an API key for non-interactive bootstrapping in CI.

    7.7.0release notes

  • Supports supplying a database identifier for non-interactive bootstrapping in CI.

    7.7.0release notes

  • Supports selecting a starter template when bootstrapping a project.

    7.7.0release notes

  • Prisma Studio can copy one or more rows as CSV or Markdown.

    7.6.0release notes

  • Prisma Studio can generate SQL statements from natural-language requests using AI.

    7.6.0release notes

  • Prisma Studio can use natural language and AI to generate SQL statements for database inspection.

    7.6.0release notes

  • Prisma Studio supports editing multiple cells and prompts users to save or discard changes.

    7.6.0release notes

  • The constructor now accepts connection strings directly for improved ergonomics.

    7.6.0release notes

  • Adds a command that connects a local project to a Prisma Postgres database.

    7.6.0release notes

  • Allows custom prepared statement name generation so users can leverage pg statement caching.

    7.6.0release notes

  • Adds a constructor option to choose between text and binary protocols.

    7.6.0release notes

  • Studio in Console now supports AI-generated filters.

    7.5.0release notes

  • Prisma Studio adds a cmd+k command palette for performing most actions by keyboard.

    7.5.0release notes

  • Prisma Studio now supports searching across database tables and cells.

    7.5.0release notes

  • Prisma Studio now allows selecting multiple database cells at once.

    7.5.0release notes

  • Prisma Studio filtering now includes an option to use raw SQL filters.

    7.5.0release notes

  • Prisma Studio adds an SQL sidebar tab for running raw SQL queries against database data.

    7.5.0release notes

  • Interactive transaction clients can now use $transaction to create nested transactions.

    7.5.0release notes

  • Supports a where argument on field-level @unique declarations for partial indexes.

    7.4.1release notes

  • Adds partial index support behind the partialIndexes preview feature for PostgreSQL, SQLite, SQL Server, and CockroachDB.

    7.4.0release notes

  • The client generator supports fast and small query compiler builds; fast is the default, while small reduces size with a speed tradeoff.

    7.3.0release notes

  • Adds a -url flag for more flexible connection configuration.

    7.2.0release notes

  • Adds a -url flag for more flexible connection configuration.

    7.2.0release notes

  • Adds a -url flag for more flexible connection configuration.

    7.2.0release notes

  • Adds a SQL commenter plugin to support query insights metadata.

    7.2.0release notes

  • Adds a PrismaClient option for configuring SQL commenter plugins that append metadata to SQL queries.

    7.1.0release notes

  • Adds query tag plugins and async-context helpers for attaching arbitrary metadata to queries.

    7.1.0release notes

  • Adds a plugin that appends W3C Trace Context metadata for distributed tracing correlation.

    7.1.0release notes

  • Adds a plugin type for creating custom SQL commenter metadata plugins.

    7.1.0release notes

  • datasource.shadowDatabaseUrl is now configured in the Prisma config file.

    7.0.0release notesupgrade guide

  • The D1 adapter provides listLocalDatabases to configure local D1 database connections.

    7.0.0release notes

  • The @map attribute can now be used on enum members to set their runtime values.

    7.0.0release notes

  • NODE_EXTRA_CA_CERTS can configure database certificate authorities for Prisma ORM v7.

    7.0.0upgrade guide

  • SQLite projects can use the @prisma/adapter-better-sqlite3 driver adapter.

    7.0.0upgrade guide

  • Prisma Studio can inspect a remote database using the --url flag.

    7.0.0release notes

  • Prisma Studio can inspect remote databases by passing a --url flag.

    7.0.0release notes

  • Prisma Config is now the default place for configuring database URLs, schema location, migrations, and seed scripts.

    7.0.0upgrade guideupgrade guide

  • A serverless client library supports edge runtimes, streaming results, pipelined queries, parameterized SQL, transactions, and batch operations.

    7.0.0release notes

  • A serverless client library supports edge and serverless runtimes, streaming results, pipelining queries, and transactions.

    7.0.0release notes

Performance 8

  • Fluent-relation field maps are now built lazily and linearly; non-fluent queries no longer construct them.

    7.10.0release notes

  • Field maps are constructed lazily and in linear time, and non-fluent queries no longer build them, reducing ordinary query setup overhead.

    7.10.0release notes

  • Query plans now eagerly perform one unconditional database operation and synchronously interpret remaining pure operations while keeping cached plans immutable.

    7.10.0release notes

  • Plans with one unconditional database operation are evaluated eagerly and remaining pure plan steps are interpreted synchronously; cached plans remain immutable.

    7.10.0release notes

  • Restoring the OmitOpts generic default lets tsc reuse cached type instantiations, reducing type-checking time on large schemas.

    7.9.0release notes

  • Prisma Client now caches compiled query plans for repeated query shapes, reducing compiler overhead and event loop contention.

    7.4.0release notes

  • Raw queries can bypass the query compiler and interpreter infrastructure, sending them directly to the driver adapter to reduce overhead.

    7.3.0release notes

  • The new prisma-client provider uses the Rust-free client, with faster queries, smaller bundles, and fewer deployment resources.

    7.0.0upgrade guide

Behavior and default changes 27

  • MariaDB connection strings now support bracketed IPv6 addresses.

    7.10.0release notes

  • MySQL connection strings now support bracketed IPv6 addresses.

    7.10.0release notes

  • Remote query events now share matching spans and traces, record errors as span exceptions, and continue logging when tracing is unavailable.

    7.10.0release notes

  • Prisma Postgres Serverless now prefers named constraints and falls back to parsed field names for unique violations.

    7.10.0release notes

  • Chunked statements now execute atomically in a transaction and roll back if a later chunk fails.

    7.10.0release notes

  • Version output now includes the resolved Prisma CLI package path, helping diagnose global-versus-local installation issues.

    7.10.0release notes

  • JSON version output now includes the resolved Prisma CLI package path.

    7.10.0release notes

  • Without an explicit config option, Prisma 7 searches version-specific config locations before falling back to existing prisma.config.* files.

    7.10.0release notes

  • Windows engine binaries are cached in a stable user-level directory instead of a cwd-relative node_modules cache.

    7.9.0release notes

  • Freshly scaffolded projects receive version-relevant Prisma agent skills, and installation is best-effort.

    7.9.0release notes

  • Missing driver adapter errors now include a copy-pasteable example and a link to the driver adapters documentation.

    7.9.0release notes

  • MariaDB statement caching is disabled by default to address a reported leak.

    7.6.0release notes

  • Prisma schema parsing now streams with automatic fallback for extremely large intermediate strings exceeding V8 limits.

    7.6.0release notes

  • SQL databases now support nested transaction rollbacks through savepoints, including rollback of inner transactions when an outer transaction fails.

    7.5.0release notes

  • Allows a missing datasource URL and validates it only when needed.

    7.4.1release notes

  • Interactive transactions can now batch multiple queries.

    7.4.1release notes

  • Surfaces DataMapperError as a user-facing error for clearer, more actionable error reporting.

    7.2.0release notes

  • Tailors generated setup based on whether the runtime is Bun or another JavaScript runtime.

    7.2.0release notes

  • @opentelemetry/api is treated as an external dependency during instrumentation, preventing duplicate copies in applications.

    7.1.0release notes

  • Reports an additional error when constructing PrismaClient without configuration arguments.

    7.1.0release notes

  • The engines check is relaxed so Node.js 25+ users can adopt Prisma, although Node.js 25+ is not considered stable.

    7.0.1release notes

  • prisma db seed now shows an informative message when no migrations.seed command is configured.

    7.0.1release notes

  • Prisma Studio now sorts tables alphabetically.

    7.0.1release notes

  • Prisma Studio warns when the SQLite file does not exist.

    7.0.1release notes

  • Prisma Accelerate now serves as a dedicated caching layer while Prisma Postgres provides connection pooling natively.

    7.0.0release notes

  • With native Prisma Postgres pooling, Prisma Accelerate now serves as a dedicated caching layer.

    7.0.0release notes

  • The Rust-free ESM Prisma Client is now the default provider for new projects.

    7.0.0release notesupgrade guide

Tooling 10

  • Generation can offer a one-time, opt-in installation of Prisma's agent skills, with environment skips, a timeout, and no generation failure.

    7.10.0release notes

  • Studio's Query Details view now provides copy actions.

    7.9.0release notes

  • Studio SQL execution, linting, and navigation now resolve unqualified identifiers against the selected schema.

    7.9.0release notes

  • Prisma Studio links records to related records in referenced tables for easier database traversal.

    7.6.0release notes

  • Relaxes the version constraint to ^8.16.0 for compatibility with newer PostgreSQL type definitions.

    7.6.0release notes

  • @types/pg is now a direct adapter-pg dependency, improving the out-of-the-box TypeScript experience.

    7.5.0release notes

  • Adds support for object expressions and object members in the schema reformatter.

    7.4.1release notes

  • Prisma Studio now supports Deno >= 1.4 <2.2 and Bun >= 1.

    7.0.1release notes

  • The Prisma CLI now includes the new Prisma Studio with relationship visualization and remote database inspection.

    7.0.0release notes

  • TypeScript projects need bundler module resolution to consume Prisma's ES modules.

    7.0.0upgrade guide

Fixes and other changes 84

  • Combining chunked results containing hundreds of thousands of rows no longer causes call-stack overflows.

    7.10.0release notes

  • CLI commands tolerate corrupt, unreadable, or unwritable state files through reinitialization, atomic writes, and in-memory fallback.

    7.10.0release notes

  • Date values created in other JavaScript realms, including iframes, jsdom, and vm contexts, are now handled correctly.

    7.10.0release notes

  • Interactive transaction cleanup during disconnect now handles transactions whose driver-level startup is still in progress.

    7.10.0release notes

  • Invalid Date values now throw PrismaClientValidationError instead of a generic error.

    7.10.0release notes

  • Fluent relation queries now work when relation fields are named select or include.

    7.10.0release notes

  • Rendering very large parameter lists and combining huge chunked results no longer causes call-stack overflows.

    7.10.0release notes

  • Rendering very large parameter lists no longer causes call-stack overflows.

    7.10.0release notes

  • The prisma-client generator now infers module format from the nearest package.json type for node16 and nodenext projects.

    7.10.0release notes

  • Nested-write unique constraint errors now identify the violating model, including models using @@map and @@schema.

    7.10.0release notes

  • PostgreSQL RESTRICT violations with SQLSTATE 23001 are now reported as P2003 with an available field or constraint name.

    7.10.0release notes

  • The PostgreSQL adapter now preserves database constraint names in P2002 unique constraint violations.

    7.10.0release notes

  • Cleanup failures after transaction timeout or backend termination no longer become unhandled promise rejections.

    7.10.0release notes

  • Uint8Array values created in other JavaScript realms, including iframes, jsdom, and vm contexts, are now handled correctly.

    7.10.0release notes

  • Timed-out interactive transactions now issue ROLLBACK before returning connections to the pool, preventing leaked transaction state.

    7.9.0release notes

  • PostgreSQL primary-key constraint renames are rendered as separate ALTER TABLE statements to avoid multi-change migration errors.

    7.9.0release notes

  • Setting nullable Bytes fields to null now sends VarBinary parameters instead of implicitly typed nvarchar values.

    7.9.0release notes

  • Reading Bytes columns no longer emits Node.js DEP0005 deprecation warnings.

    7.9.0release notes

  • Reading Bytes columns no longer emits Node.js DEP0005 deprecation warnings.

    7.9.0release notes

  • P2022 errors now parse quoted and unquoted PostgreSQL column names, including identifiers containing spaces.

    7.9.0release notes

  • Schema-loading commands no longer hang on symlink cycles or report duplicate files reached through alternate paths.

    7.9.0release notes

  • PostgreSQL introspection now preserves sequence defaults returned in schema-qualified form.

    7.8.0release notes

  • Corrects the P2029 database parameter limit check so over-limit queries are handled accurately.

    7.8.0release notes

  • PostgreSQL JSON list equality filters no longer panic or emit invalid ::jsonb casts.

    7.8.0release notes

  • Enum values with custom database names are now parameterized correctly.

    7.8.0release notes

  • Case-insensitive JSON field filtering now works correctly with mode: insensitive.

    7.8.0release notes

  • Migration replay now supports PostgreSQL CREATE INDEX CONCURRENTLY statements outside transaction blocks.

    7.8.0release notes

  • Corrects a misleading error message that referenced the removed --shadow-database-url flag.

    7.8.0release notes

  • Restores required SQL Server VARCHAR casts for parameterized values.

    7.8.0release notes

  • ColumnNotFound errors now correctly extract column names from quoted and unquoted PostgreSQL error messages.

    7.6.0release notes

  • createMany queries are no longer cached, avoiding cache bloat and potential Node.js crashes during bulk operations.

    7.6.0release notes

  • The new prisma-client generator now exports this groupBy payload type for TypeScript usage.

    7.6.0release notes

  • NowGenerator is lazy, avoiding synchronous Date calls that caused Next.js dynamic usage errors in cached components.

    7.6.0release notes

  • adapter-mariadb now uses the binary MySQL protocol, fixing lossy number conversions.

    7.5.0release notes

  • DateTime fields no longer return Invalid Date in some cases when using unixepoch-ms timestamps.

    7.5.0release notes

  • Cursor-based pagination now works correctly with @db.Date columns.

    7.5.0release notes

  • Partial index predicate comparison now handles quoted and unquoted identifiers correctly, preventing needless index recreation.

    7.5.0release notes

  • Partial unique indexes are excluded from DMMF unique metadata, preventing incorrect findUnique input type generation.

    7.5.0release notes

  • Manual partial indexes are preserved when the partialIndexes preview feature is disabled, avoiding unnecessary migration drops and additions.

    7.5.0release notes

  • Prisma.DbNull no longer serializes as an empty object in some bundled environments such as Next.js.

    7.5.0release notes

  • Fixed query plan mutation that caused cursor queries to break.

    7.4.2release notes

  • Fixed a case-insensitive IN filter regression.

    7.4.2release notes

  • Fixed MySQL joins that relied on non-strict equality.

    7.4.2release notes

  • Fixed a case-insensitive NOT IN filter regression.

    7.4.2release notes

  • Fixed partial index predicate comparison on PostgreSQL and MSSQL.

    7.4.2release notes

  • Updated text column detection to check for a binary collation.

    7.4.2release notes

  • Corrected relationJoins compatibility checks for MariaDB 8.x versions.

    7.4.2release notes

  • Fixed array parameter wrapping in push operations.

    7.4.2release notes

  • Fixed Uint8Array serialization in nested JSON fields.

    7.4.2release notes

  • Fixes a regression affecting cursor-based pagination when using parameterised values.

    7.4.1release notes

  • Adds missing JSON value deserialization for JSONB parameter fields.

    7.4.1release notes

  • Handles null values in type parsers for nullable columns.

    7.4.1release notes

  • Preserves Prisma.skip when query extension arguments are cloned.

    7.4.1release notes

  • Applies result extensions correctly to nested and fluent relations.

    7.4.1release notes

  • Prevents BigInt precision loss in JSON aggregation for MySQL and CockroachDB by casting BigInt values to text.

    7.4.0release notes

  • PostgreSQL migration scripts now permit usage of CREATE INDEX CONCURRENTLY in migrations.

    7.4.0release notes

  • Connection strings now properly URL-decode non-ASCII database names, preventing connection failures.

    7.4.0release notes

  • MSSQL connection string parsing now handles curly brace escaping for passwords containing special characters.

    7.4.0release notes

  • PlanetScale adapter now properly propagates silent transaction commit failures.

    7.4.0release notes

  • SQL Server adapter serializes commit and rollback operations to resolve EREQINPROG race condition errors.

    7.4.0release notes

  • Mapped enums revert to Prisma 6.19.0 behavior, so generated enum values no longer come from the value passed to @map.

    7.3.0release notes

  • Mapped enums again follow the v6.19.0 behavior instead of taking generated enum values from the value passed to @map.

    7.3.0release notes

  • The adapter pins a better-sqlite3 version to avoid an SQLite 3.51.0 bug; users should upgrade to v7.3.0.

    7.3.0release notes

  • The adapter pins a safer better-sqlite3 version to avoid an underlying SQLite 3.51.0 bug; users should upgrade to v7.3.0.

    7.3.0release notes

  • BigInt values in JSON aggregation are returned as JSON strings, preserving full precision when parsed in JavaScript.

    7.3.0release notes

  • BigInt values in JSON aggregation are returned as JSON strings, preserving full precision when parsed in JavaScript.

    7.3.0release notes

  • Improves Postgres adapter error handling for invalid-text-representation errors.

    7.2.0release notes

  • Fixes byte upsert behavior by removing a legacy byte-array representation path.

    7.2.0release notes

  • Prevents issues when multibyte UTF-8 characters are split across chunk boundaries during line processing.

    7.2.0release notes

  • Allows certain workflows to proceed even when URLs are undefined.

    7.2.0release notes

  • Emits machine-readable JSON cleanly to stdout without extra noise.

    7.2.0release notes

  • Resolves issues related to Studio connections, improving reliability for VS Code or language-server integrations.

    7.2.0release notes

  • Allows the env helper's type definition to work with interface-based generics without an index signature.

    7.1.0release notes

  • Treats the peer dependency as external during instrumentation to prevent duplicate bundled copies.

    7.1.0release notes

  • Fixes TypeScript issues involving client runtime utilities in pnpm monorepos.

    7.1.0release notes

  • Adds compatibility with Prisma 7 for the read-replicas extension.

    7.1.0release notes

  • The read-replicas extension now supports Prisma 7 and can be installed at its latest version.

    7.1.0release notes

  • Prisma updates the underlying better-sqlite3 version to fix a reported issue.

    7.0.1release notes

  • cockroachdb support is restored in the prisma-client-js generator.

    7.0.1release notes

  • The exit code regression affecting prisma migrate diff is fixed.

    7.0.1release notes

  • Prisma Studio no longer has collisions between user and internal columns when querying.

    7.0.1release notes

  • Prisma Studio fixes issue 1363.

    7.0.1release notes

  • The prisma.config.ts file must be placed at the project root.

    7.0.0upgrade guideupgrade guide

  • Prisma no longer shims WeakRef in Cloudflare Workers, avoiding unexpected memory leaks.

    7.0.0release notes

prisma 619 changes

Breaking changes 2

  • Prisma v7 preparation moves the generator provider from prisma-client-js to prisma-client.

    6.19.0release notes

  • Projects can define their datasource directly in prisma.config.ts; any datasource in schema.prisma is ignored.

    6.18.0release notes

New APIs and options 9

  • The datasource key is available in prisma.config.ts ahead of Prisma v7.

    6.19.0release notes

  • The engine key is available in prisma.config.ts ahead of Prisma v7.

    6.19.0release notes

  • Prisma Postgres connection strings can enable connection pooling with pool=true.

    6.19.0release notes

  • Unified Prisma Config is available for project configuration ahead of Prisma v7.

    6.19.0release notes

  • Prisma Postgres Console now shows total egress, average response size, and average query duration.

    6.18.0release notes

  • prisma.config.ts supports js or classic engine types, with classic required for Prisma v7.

    6.18.0release notes

  • A new env helper function can be imported from prisma/config for configuration values.

    6.18.0release notes

  • Prisma supports multiple instances configured with different providers.

    6.18.0release notes

  • prisma init now creates a prisma.config.ts file automatically for new projects.

    6.18.0release notes

Behavior and default changes 2

  • Naming conventions for fields and relation fields are aligned.

    6.19.0release notes

  • Bytes maps to Uint8Array depending on the TypeScript version.

    6.18.0release notes

Tooling 2

  • Generated client files now include Biome ignore comments.

    6.19.0release notes

  • The VS Code extension supports using a local Prisma Postgres database without logging in.

    6.19.0release notes

Fixes and other changes 4

  • Fixes Prisma Accelerate support in some edge runtime configurations when the @prisma/client/edge entrypoint is not being used.

    6.19.2release notes

  • Fixes incorrectly reported empty diffs caused by a diffing bug introduced in Prisma 6.13.1.

    6.19.1release notes

  • Dropping a model no longer appends the default schema to the migration.

    6.19.0release notes

  • An empty previewFeatures suggestion now results in an empty array value.

    6.19.0release notes