# What changed in @prisma/internals

> 56 changes in @prisma/internals 6 to 7 from its official release notes, upgrade guides and advisories: 45 breaking, 5 deprecations, 3 new APIs and options. Each one cited. Sources checked 2026-10-20. HTML: https://unstale.sh/npm/@prisma/internals/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @prisma/internals 7

### Breaking changes

- Prisma ORM no longer loads environment variables by default; explicitly load them when calling the Prisma CLI. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The generator output field is required, and Prisma Client is no longer generated in node_modules by default. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Prisma ORM v7 does not yet support MongoDB; MongoDB projects should continue using Prisma ORM v6 for now. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Prisma ORM v7 requires Node 20.19.0 or later; Node 22.x is recommended. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Prisma ORM now ships as an ES module, so set the package type to module. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --schema flag has been removed; configure the database connection in prisma.config.ts instead. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --url flag has been removed; configure the database connection in prisma.config.ts instead. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- db push no longer runs prisma generate automatically; run prisma generate explicitly to generate Prisma Client. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --skip-generate flag has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Running migrate dev no longer automatically executes the seed script or runs prisma generate; seed and generation must be run explicitly. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --skip-generate flag has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --skip-seed flag has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --from-schema-datasource option has been removed and replaced by --from-config-datasource. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --from-url option has been removed and replaced by --from-config-datasource. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --shadow-database-url option has been removed; configure the shadow database URL in prisma.config.ts. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --to-schema-datasource option has been removed and replaced by --to-config-datasource. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The --to-url option has been removed and replaced by --to-config-datasource. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Running migrate reset no longer automatically executes the seed script. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- This Prisma-specific environment variable has been removed. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The client middleware API has been removed; use Client Extensions where possible. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Generated client imports must use the configured output path instead of importing PrismaClient from @prisma/client. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Creating a Prisma Client now requires a driver adapter for all databases. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Invalid SSL certificates are no longer ignored by default; configure certificates or set rejectUnauthorized to false to keep the previous behavior. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- TypeScript projects must configure their compiler to consume ES modules; the guide shows moduleResolution set to bundler. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Prisma ORM v7 requires TypeScript 5.4.0 or later; TypeScript 5.9.x is recommended. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)

### Deprecations

- The datasource directUrl field is deprecated; configure its value in prisma.config.ts, including for migrations. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The datasource shadowDatabaseUrl field is deprecated; configure it in Prisma Config. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- The datasource url field is deprecated; configure the database URL in Prisma Config. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Standalone Prisma Accelerate and hosted Prisma Postgres Accelerate connections are scheduled for retirement; users should transition to pooled TCP or the Prisma Postgres serverless driver, or remove Accelerate. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Use the new Rust-free client generator provider; prisma-client-js is slated for removal in a future release. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)

### New APIs and options

- Use --from-config-datasource to use the datasource configured in Prisma Config as the source. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Use --to-config-datasource to use the datasource configured in Prisma Config as the target. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)
- Prisma Config is now the default place to configure CLI database access, schema location, migration output, and seed scripts. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)

### Behavior and default changes

- Driver adapters use the underlying Node.js database driver's pool settings, which can differ from Prisma ORM v6 defaults and may require configuration to avoid timeouts. (7.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7)

## @prisma/internals 6

### Breaking changes

- async can no longer be used as a model name. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- await can no longer be used as a model name. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- Prisma v6 represents Bytes fields as Uint8Array instead of Buffer; update code that relies on Buffer types. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- PostgreSQL users of full-text search must use the new Preview feature flag instead of fullTextSearch. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- On PostgreSQL, Prisma changes the implicit relation table's unique index on A and B to a primary key, so the next migration will include ALTER TABLE statements for these relation tables. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- Prisma ORM v6 requires Node.js 18.18.0, 20.9.0, or 22.11.0 at minimum and does not officially support Node.js 16, 17, 19, or 21. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- NotFoundError is removed; handle PrismaClientKnownRequestError with code P2025 for findUniqueOrThrow() and findFirstOrThrow(). (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- Prisma ORM v6 raises the minimum supported TypeScript version to 5.1.0. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- using can no longer be used as a model name. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)

### Behavior and default changes

- The fullTextIndex feature is promoted to General Availability, so remove it from previewFeatures in the Prisma schema. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
- For MySQL, fullTextSearch is promoted to General Availability, so remove it from previewFeatures in the Prisma schema. (6.0.0) — [upgrade guide](https://www.prisma.io/docs/guides/upgrade-prisma-orm/v6)
