6.4.0
Breaking Changes📦 prismaView on GitHub →
⚠ 1 breaking✨ 3 features🐛 1 fixes🔧 6 symbols
Summary
Prisma 6.4.0 introduces a TypeScript-based configuration file (Early Access), case-insensitive filtering for JSON data, and performance optimizations for CockroachDB migrations.
⚠️ Breaking Changes
- When using the new prisma.config.ts, the Prisma CLI no longer automatically loads environment variables from .env files. Users must manually load them using packages like dotenv.
Migration Steps
- To use the new configuration file, create a prisma.config.ts in your project root.
- Set 'earlyAccess: true' within the prisma.config.ts export.
- If migrating from .env files to prisma.config.ts, install 'dotenv' and manually call config() within the TS configuration file to maintain environment variable access.
✨ New Features
- Introduced TypeScript-based configuration via prisma.config.ts (Early Access), allowing for dynamic configuration and arbitrary code execution for settings like database URLs.
- Added case-insensitive mode support for JSON filters using the 'mode: insensitive' option with string_contains, string_starts_with, and string_ends_with.
- Improved CockroachDB migration performance by optimizing the migration engine.
🐛 Bug Fixes
- Fixed inefficiencies in the migration engine that were slowing down CockroachDB migrations.
🔧 Affected Symbols
prisma.config.tsfindManystring_containsstring_starts_withstring_ends_withmode