Change8

7.6.0

📦 prismaView on GitHub →
9 features🐛 7 fixes🔧 11 symbols

Summary

The 7.6.0 release introduces significant enhancements to Prisma Studio, including Dark Mode, multi-cell editing, and AI-powered SQL generation. It also brings new CLI commands and improved driver adapter ergonomics and stability.

✨ New Features

  • Added a `prisma postgres link` command for connecting a local project to a Prisma Postgres database, starting the new `prisma postgres` command group.
  • Added a `statementNameGenerator` option to `@prisma/adapter-pg` to allow custom prepared statement name generation for leveraging `pg` statement caching.
  • Added support for using connection strings directly in the constructor for `@prisma/adapter-pg`.
  • Added a `useTextProtocol` option in the constructor for `@prisma/adapter-mariadb` to toggle between text and binary protocols.
  • Prisma Studio now features Dark Mode.
  • Prisma Studio now supports copying one or more rows as CSV or Markdown.
  • Prisma Studio now supports multi-cell editing.
  • Prisma Studio now links to related records when traversing back relations.
  • Prisma Studio now includes Generative SQL with AI to generate SQL statements from natural language.

🐛 Bug Fixes

  • Disabled caching of `createMany` queries in Prisma Client to prevent cache bloat and potential Node.js crashes during bulk operations.
  • Made `NowGenerator` lazy in Prisma Client to avoid synchronous `new Date()` calls, fixing Next.js "dynamic usage" errors in cached components.
  • Fixed missing export of `Get<Model>GroupByPayload` type in the new `prisma-client` generator.
  • Added streaming parsing with automatic fallback in the CLI to handle Prisma schemas producing extremely large intermediate strings (>500MB) that hit V8's string limits.
  • Relaxed the `@types/pg` version constraint to `^8.16.0` in `@prisma/adapter-pg` for compatibility with newer PostgreSQL type definitions.
  • Corrected error handling for `ColumnNotFound` errors in `@prisma/adapter-pg` to correctly extract column names from both quoted and unquoted PostgreSQL error messages.
  • Modified `@prisma/adapter-mariadb` to disable `mariadb` statement caching by default to address a reported leak.

Affected Symbols