npm / @prisma/generator
@prisma/generator
What changed in @prisma/generator 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
14 breaking2 behavior and defaults1 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@prisma/generator 79 changes
Breaking changes 8
Generated TypeScript enum values use schema names rather than mapped database values, matching Prisma ORM v6 behavior.
The generator output field is required, and Prisma Client is no longer generated in node_modules by default.
migrate dev and db push no longer run prisma generate automatically; run it explicitly to generate Prisma Client.
This Prisma-specific environment variable has been removed.
This Prisma-specific environment variable has been removed.
This Prisma-specific environment variable has been removed.
This Prisma-specific environment variable has been removed.
This Prisma-specific environment variable has been removed.
Tooling 1
Use the new prisma-client generator provider, which uses the Rust-free client; prisma-client-js is planned for removal in a future release.
@prisma/generator 68 changes
Breaking changes 6
async, await, and using can no longer be used as model names.
Generated types for Bytes fields now use Uint8Array instead of Buffer; update code that relies on Buffer-typed fields.
On PostgreSQL, implicit many-to-many relation tables now use a primary key on columns A and B instead of a unique index; the next migration includes ALTER TABLE statements for these tables.
Prisma ORM v6 requires Node.js 18.18.0, 20.9.0, or 22.11.0; Node.js 16, 17, 19, and 21 are not officially supported.
For PostgreSQL full-text search, replace the fullTextSearch preview feature with fullTextSearchPostgres.
Prisma ORM v6 requires TypeScript 5.1.0 or later.
Behavior and default changes 2
The fullTextIndex feature is generally available, so remove it from previewFeatures in the Prisma schema.
The fullTextSearch feature is generally available for MySQL, so remove it from previewFeatures in the Prisma schema.