6.14.0
Breaking Changes📦 prismaView on GitHub →
⚠ 1 breaking✨ 4 features🐛 3 fixes⚡ 1 deprecations🔧 6 symbols
Summary
Prisma 6.14.0 re-introduces @unique attributes for SQL views in Preview and removes the long-deprecated prisma.$use middleware method. The release also focuses on type performance improvements and stability fixes for the upcoming Prisma 7 engine changes.
⚠️ Breaking Changes
- Removed middleware from Prisma Client (the prisma.$use method). You must now use Prisma Client extensions instead.
Migration Steps
- Replace any usage of prisma.$use (middleware) with Prisma Client extensions.
- If using the metrics Preview feature, plan for its removal in Prisma 7.
- Update Prisma schema to use @unique on views if relationships or cursor-based pagination are required for those views.
✨ New Features
- Re-introduced @unique attribute for SQL views (Preview), enabling relationships, findUnique queries, cursor-based pagination, and implicit ordering.
- Improved type performance for faster editor responsiveness and auto-complete.
- Increased robustness of the Management API for Prisma Postgres (Early Access).
- Added the ability to revoke OAuth tokens for third-party applications in the Prisma Console.
🐛 Bug Fixes
- Fixed issues related to the new prisma-client generator and queryCompiler Preview feature.
- Fixed regressions related to Prisma Config.
- Addressed type performance issues that caused lagging auto-complete.
🔧 Affected Symbols
prisma.$use@uniqueprisma-clientqueryCompilermetricsUserPostStats⚡ Deprecations
- The metrics Preview feature is now deprecated and will be removed in Prisma 7.