Zum Inhalt springen
verdict:

Prisma 8.0.0-rc.4

preview

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
  1. # v8.0.0-rc.4
  2. 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.
  3. 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/).
  4. ## Breaking changes
  5. - **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))
  6. Before:
  7. ```ts
  8. // prisma-next.config.ts
  9. import { defineConfig } from '@prisma/orm-postgres/config';
  10. export default defineConfig({ contract: './contract.prisma', db: { connection: process.env['DATABASE_URL']! } });
  11. ```
  12. After:
  13. ```ts
  14. // prisma.config.ts
  15. import 'dotenv/config';
  16. import { definePrismaConfig } from '@prisma/cli-engine';
  17. import { defineConfig as ormConfig } from '@prisma/orm-postgres/config';
  18. export default definePrismaConfig({
  19. orm: ormConfig({ contract: './contract.prisma', db: { connection: process.env['DATABASE_URL']! } }),
  20. });
  21. ```
  22. ## Fixes
  23. - `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))
  24. - `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))

auf github ansehenimported 2026-09-28 über npm