Change8

v8.0.0-rc.2

Breaking Changes
📦 prismaView on GitHub →
4 breaking3 features🐛 3 fixes🔧 8 symbols

Summary

This release bumps the version to 8.0.0-rc.2, adopting `@prisma/cli-engine` 0.1.1 which introduces breaking changes in runtime host information and CI detection. It also includes fixes for the dev build counter and CLI output handling.

⚠️ Breaking Changes

  • Adoption of `@prisma/cli-engine` 0.1.1 is not source-compatible with 0.0.9. This requires changes in how the engine is interacted with.
  • The `Runtime.isCI` property has been removed from the engine. The engine now bundles `ci-info` and detects CI itself. Use `isCIOverride` if host-level forcing is required.
  • The `Runtime.host` property is now required and has a new structure: `{ runtime: { name, version }, platform, arch }`.
  • The `HostProcess` object now includes `version`, `versions`, `platform`, and `arch` properties, which are used by the bin adapter to build the `host` information.

Migration Steps

  1. Update the `@prisma/cli-engine` dependency to version 0.1.1.
  2. Adjust code that previously used `Runtime.isCI` to rely on the engine's internal CI detection or use `isCIOverride` if necessary.
  3. Update code that interacts with `Runtime.host` to match the new required structure: `{ runtime: { name, version }, platform, arch }`.
  4. Update code that uses `HostProcess` to account for the new `version`, `versions`, `platform`, and `arch` properties.

✨ New Features

  • The engine now bundles `ci-info` and detects CI itself, removing the need for `Runtime.isCI`.
  • Introduction of `Runtime.host` property for host process information.
  • Enhanced `HostProcess` with `version`, `versions`, `platform`, and `arch` properties.

🐛 Bug Fixes

  • The dev build counter was anchored on `@prisma/orm-toolchain` instead of `prisma-next` to prevent issues with publishing immutable versions.
  • The `cli-engine` 0.1.1 now correctly handles TTY streams, ensuring stdout mirroring is dropped when stdout is not a terminal, and the `contract emit` test has been updated to reflect this behavior by asserting on an empty stdout when stdout is the only terminal.
  • Fixed the dev build counter to correctly determine the version by anchoring it on a package that is still published (`@prisma/orm-toolchain`).

Affected Symbols