note: die Zusammenfassung und die Release Notes sind auf Englisch
note: keine Zusammenfassung für dieses ältere Release
Wir fassen die neueren Releases zusammen. Die originalen Release Notes dieser Version stehen hier unten.
release-notesgithub.com/prisma/orm · 36 Zeilen
- # v8.0.0-rc.4
- The transition period for the old ORM config is over, and two fixes land for the consolidated `prisma` CLI stack. Most projects created before rc.2 need the config migration below; projects scaffolded by rc.2+ `init` need nothing.
- The upgrade recipe for this hop: the [user recipe](https://github.com/prisma/prisma/tree/v8.0.0-rc.4/skills/prisma-next-upgrade/upgrades/8.0.0-rc.3-to-8.0.0-rc.4/).
- ## Breaking changes
- - **The deprecated config fallbacks are gone** — the CLI no longer reads `prisma-next.config.ts` and no longer accepts the flat (un-nested) config shape; both now fail loudly instead of warning. The only config read is `prisma.config.ts` in the envelope shape, and the workspace `prisma-next` binary is retired — the unified CLI runs the ORM commands at the top level. Rename the file, wrap your ORM options in `definePrismaConfig({ orm: ormConfig({ … }) })`, and keep `import 'dotenv/config'` if your config reads `process.env`. See the [user recipe](https://github.com/prisma/prisma/tree/v8.0.0-rc.4/skills/prisma-next-upgrade/upgrades/8.0.0-rc.3-to-8.0.0-rc.4/) for the exact rewrite. ([#30058](https://github.com/prisma/prisma/pull/30058))
- Before:
- ```ts
- // prisma-next.config.ts
- import { defineConfig } from '@prisma/orm-postgres/config';
- export default defineConfig({ contract: './contract.prisma', db: { connection: process.env['DATABASE_URL']! } });
- ```
- After:
- ```ts
- // prisma.config.ts
- import 'dotenv/config';
- import { definePrismaConfig } from '@prisma/cli-engine';
- import { defineConfig as ormConfig } from '@prisma/orm-postgres/config';
- export default definePrismaConfig({
- orm: ormConfig({ contract: './contract.prisma', db: { connection: process.env['DATABASE_URL']! } }),
- });
- ```
- ## Fixes
- - `contract emit` no longer crashes after writing its artifacts when the project root is a relative path — `validateContractDeps()` resolves the root before handing it to Node's `createRequire()`, which requires an absolute path. ([#30064](https://github.com/prisma/prisma/pull/30064))
- - `init` scaffolds `definePrismaConfig`, the current name for the config marker in `@prisma/cli-engine` 0.2.0, instead of the deprecated `defineConfig` alias. ([#30064](https://github.com/prisma/prisma/pull/30064))