Change8

6.10.0

Breaking Changes
📦 prismaView on GitHub →
1 breaking7 features🐛 1 fixes1 deprecations🔧 9 symbols

Summary

Prisma 6.10.0 introduces Preview support for shard keys on PlanetScale and No-Rust engines for MS SQL Server, alongside significant performance boosts for Prisma Migrate and enhanced local Prisma Postgres management in VS Code.

⚠️ Breaking Changes

  • The entrypoint for the new 'prisma-client' generator has changed. You must update your application imports to match the new structure defined in the documentation.

Migration Steps

  1. If using the 'prisma-client' generator, update your application imports according to the new entrypoint specification.
  2. If using '@prisma/pg-worker', migrate your Cloudflare Workers implementation to use the 'pg' package.
  3. To use shard keys on PlanetScale, add 'shardKeys' to the 'previewFeatures' list in your Prisma schema.
  4. To remove Rust engines on MS SQL Server or PlanetScale, add 'queryCompiler' and 'driverAdapters' to 'previewFeatures' and use the respective driver adapter.

✨ New Features

  • Preview support for 'queryCompiler' on MS SQL Server and PlanetScale, allowing Prisma to run without Rust engines.
  • Support for shard keys on PlanetScale via new '@shardKey' and '@@shardKey' attributes (Preview).
  • New 'Push to Cloud' functionality in the VS Code extension to deploy local Prisma Postgres instances.
  • Support for managing multiple local Prisma Postgres instances in the VS Code database management UI.
  • Direct connection support for local Prisma Postgres instances, allowing usage with any ORM or tool via 'postgres://' connection strings.
  • Release of a remote MCP (Model Context Protocol) server for AI tools to manage Prisma Postgres instances.
  • New '@prisma/adapter-mssql' driver adapter.

🐛 Bug Fixes

  • Optimized 'prisma migrate dev' interactions with the shadow database, resulting in up to 2x speed improvements.

🔧 Affected Symbols

prisma-client@prisma/pg-worker@shardKey@@shardKeyqueryCompilershardKeysdriverAdapters@prisma/adapter-mssql@prisma/adapter-planetscale

⚡ Deprecations

  • The '@prisma/pg-worker' package is deprecated. Use the standard 'pg' package instead for Cloudflare Workers.