unstale

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

@unstale/cli 0.2.1 on npm

@prisma/generator 79 changes

Breaking changes 8

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

    7.0.0upgrade guide

  • The generator output field is required, and Prisma Client is no longer generated in node_modules by default.

    7.0.0upgrade guide

  • migrate dev and db push no longer run prisma generate automatically; run it explicitly to generate Prisma Client.

    7.0.0upgrade guide

  • This Prisma-specific environment variable has been removed.

    7.0.0upgrade guide

  • This Prisma-specific environment variable has been removed.

    7.0.0upgrade guide

  • This Prisma-specific environment variable has been removed.

    7.0.0upgrade guide

  • This Prisma-specific environment variable has been removed.

    7.0.0upgrade guide

  • This Prisma-specific environment variable has been removed.

    7.0.0upgrade guide

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.

    7.0.0upgrade guide

@prisma/generator 68 changes

Breaking changes 6

  • async, await, and using can no longer be used as model names.

    6.0.0upgrade guide

  • Generated types for Bytes fields now use Uint8Array instead of Buffer; update code that relies on Buffer-typed fields.

    6.0.0upgrade guide

  • 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.

    6.0.0upgrade guide

  • 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.

    6.0.0upgrade guide

  • For PostgreSQL full-text search, replace the fullTextSearch preview feature with fullTextSearchPostgres.

    6.0.0upgrade guide

  • Prisma ORM v6 requires TypeScript 5.1.0 or later.

    6.0.0upgrade guide

Behavior and default changes 2

  • The fullTextIndex feature is generally available, so remove it from previewFeatures in the Prisma schema.

    6.0.0upgrade guide

  • The fullTextSearch feature is generally available for MySQL, so remove it from previewFeatures in the Prisma schema.

    6.0.0upgrade guide