Prisma v8.0.0-rc.21
This prerelease adds enum-value rename and deletion planning for Postgres and SQLite, introduces public MySQL migration packages, and unifies MongoDB contract processing across TypeScript, PSL, and Prisma 6 sources. It also changes client error behavior and several contract APIs, with upgrade recipes documenting breaking changes and required follow-up steps.
Applications and extensions upgrading to this prerelease may need code and contract updates, especially if they use MongoDB contract APIs, enum migrations, or synchronous error handling.
Use the rc.20-to-rc.21 app or extension upgrade recipe and run `prisma contract emit` after upgrading.
- 01Follow the app or extension upgrade recipe for rc.20 to rc.21; the release also notes that the rc.18 and rc.19 upgrade guides have been fixed.
- 02After upgrading, run `prisma contract emit` once so extension-stamped contracts match the installed package version.
- 03For non-interactive enum removal or value changes, provide `--rename Status.ARCHIVED:Status.RETIRED` or `--delete Status.ARCHIVED` as appropriate.
- 04Update MongoDB code to pass a target pack to `mongoContract`, use `ContractInput`, and replace `MongoModelDefinition` with `ContractModel<MongoModelStorage>`.
- 05For Prisma 6 schemas whose duplicate indexes are merged, run `prisma contract emit` and then `prisma db sign`.
try {
await db.transaction(work); // the returned promise rejects; await it to catch the error
} catch (error) {
handle(error);
}# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.