# prisma/release
Prisma v8.0.0-rc.13
importance: highbreakingmigrationfeatureprerelease
This release enhances MongoDB compatibility with Postgres, introduces new features like `prisma contract print`, and enforces stricter type handling in TypeScript contracts. It also includes several breaking changes related to contract defaults, cursor ordering, and Mongo codec paths.
affected
Developers using MongoDB, TypeScript contracts, or custom contract configurations are affected by these changes.
action
Follow the provided upgrade recipes and migration steps to ensure compatibility with this release.
release_signals
-Generated defaults in the contract now use `ref: { namespace, entry, field }` instead of `ref: { namespace, table, column }`.
-Literal `.default(value)` in TypeScript contracts must match the codec's input type.
-`cursor()` now throws an error for non-plain column orders.
-Hand-written contract sources in `prisma.config.ts` must declare their `format`.
-Mongo codec subpaths moved from the adapter to the target.
+MongoDB schema can declare `Int64`, `Decimal128`, `Binary`, `Json`, and `Bson` fields.
+ORM client can order by a related row's column, relation count, and with explicit null placement.
+New `prisma contract print` command writes any configured contract as Prisma 8 PSL.
migration_steps5 steps
- 01Run `prisma contract emit` after upgrading to update contract defaults.
- 02Rewrite imports in `contract.d.ts` for Mongo codec subpaths.
- 03Ensure literal defaults in TypeScript contracts match the codec's input type.
- 04Declare `format` in hand-written contract sources.
- 05Re-emit contracts and update Mongo-related imports.
code_snippet
Before:
```ts
createdAt: field.dateTime().default('2024-01-01T00:00:00Z'),
views: field.bigint().default(1),
```
After:
```ts
createdAt: field.temporal.timestamptzString().default('2024-01-01T00:00:00Z'),
views: field.bigint().default(1n),
```# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.