Change8

6.16.0

Breaking Changes
📦 prismaView on GitHub →
1 breaking6 features1 deprecations🔧 8 symbols

Summary

Prisma 6.16.0 marks the General Availability of the Rust-free ORM architecture and the new ESM-first 'prisma-client' generator, significantly reducing bundle sizes and improving type-checking performance.

⚠️ Breaking Changes

  • The 'Prisma.validator' utility has been removed from the new 'prisma-client' generator. Use the native TypeScript 'satisfies' keyword instead.

Migration Steps

  1. To opt-into the Rust-free ORM: Update the generator block in your schema with 'engineType = "client"' and 'provider = "prisma-client"'.
  2. Remove 'queryCompiler', 'driverAdapter' feature flags, and 'binaryTargets' from the Prisma schema if previously used.
  3. Install the appropriate driver adapter for your database (e.g., 'npm install @prisma/adapter-pg').
  4. Update PrismaClient instantiation to pass the driver adapter instance (e.g., 'new PrismaClient({ adapter })').
  5. For PostgreSQL extensions: Stop using the 'postgresqlExtensions' preview feature and switch to manual SQL migrations using 'prisma migrate dev --create-only'.

✨ New Features

  • Rust-free ORM and driver adapters are now Generally Available (GA), removing the Rust-based query engine in favor of a TypeScript-based architecture.
  • New ESM-first 'prisma-client' generator is now Generally Available (GA), allowing generation outside of node_modules and better runtime configuration.
  • Added a new './generated/prisma/browser' entrypoint for importing types in browser environments.
  • Rust-free Prisma ORM (Query Compiler) now supports Prisma Accelerate and Prisma Postgres.
  • Added OAuth app management in the Prisma Console under the 'Integrations' tab.
  • Significant type check performance optimizations for better editor DX and faster auto-completion.

🔧 Affected Symbols

PrismaClientPrisma.validatorprisma-clientprisma-client-jsPrismaPg@prisma/adapter-pgengineTypepostgresqlExtensions

⚡ Deprecations

  • The 'postgresqlExtensions' Preview feature is deprecated. Users should now manage extensions via manual SQL in migrations using 'prisma migrate dev --create-only'.