Change8

v8.0.0-rc.7

Breaking Changes
📦 prismaView on GitHub →
2 breaking🐛 1 fixes🔧 3 symbols

Summary

This release renames ORM pagination methods from `take`/`skip` to `limit`/`offset` and updates the engine peer dependency to `@prisma/cli-engine@0.2.3`.

⚠️ Breaking Changes

  • ORM pagination is now `limit`/`offset` instead of `take`/`skip`. The old names `.take(n)` and `.skip(n)` have been removed. Use `.offset(n)` and `.limit(n)` instead. This applies to SQL and Mongo ORM collections, including relation refinements and grouped SQL collections. Mongo's lower-level query builder still supports `.skip(n)` as it maps to the native `$skip` pipeline stage.
  • The engine peer dependency has moved to `@prisma/cli-engine@0.2.3`. If you pin the engine version yourself, you must update to 0.2.3. Installs using the unified `prisma` CLI will resolve the correct engine version automatically.

Migration Steps

  1. Rename `.take(n)` to `.limit(n)` in your ORM collection queries.
  2. Rename `.skip(n)` to `.offset(n)` in your ORM collection queries.
  3. If you pin the engine version, update it to `@prisma/cli-engine@0.2.3`.

🐛 Bug Fixes

  • The `prisma init` scaffold fixes from the unified CLI's rc line are now included in the toolchain releases against `@prisma/cli-engine@0.2.3`.

Affected Symbols