Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ Changelog tracking starts at **v0.12.0**, the first release cut after this conve

<!-- New release entries go here, newest first, each mirroring docs/releases/v<version>.md under a `## v<version>` header. -->

## v8.0.0-rc.8

The toolchain releases against `@prisma/cli-engine@0.3.0`, which now takes the Management API SDK as a peer dependency, and `migration plan` no longer plans silently from an empty database when migrations already exist.

The upgrade recipe for this hop: the [user recipe](https://github.com/prisma/prisma/tree/v8.0.0-rc.8/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.7-to-8.0.0-rc.8/).

### Breaking changes

- **The engine peer moves to `@prisma/cli-engine@0.3.0`** — `@prisma/orm-toolchain` declares the unified CLI's engine as an exact peer, and this release peers 0.3.0 (up from 0.2.3). The engine's change: `@prisma/management-api-sdk` moves from a regular dependency to a peer dependency (`^1.55.0`), supplied by the `prisma` CLI shell at runtime. Installs assembled by the unified `prisma` CLI resolve one engine as before; a host that pins the engine itself must move to 0.3.0 and, if it runs the engine outside the CLI shell, install the SDK itself. ([prisma/prisma-cli#236](https://github.com/prisma/prisma-cli/pull/236))

### Features

- The `prisma-8` skill, auto-installed into every project by `prisma init`, now teaches agents the migration system's real model — plan-from-state with explicit baselines, not a linear chain — so agents stop producing full-create plans against real databases. ([#30123](https://github.com/prisma/prisma/pull/30123))

### Fixes

- `migration plan` refuses to plan from an empty database when the project already has migrations on disk, instead of silently producing a full-create package that fails against any real database. A structured error explains the situation; planning from baseline remains available as an explicit opt-in. ([#30122](https://github.com/prisma/prisma/pull/30122))
- Structured errors' `docsUrl` links now point at `docs.prisma.io/docs/orm/v8/...` instead of the pre-RC `orm/next/...` path. ([#30126](https://github.com/prisma/prisma/pull/30126))
- The language server now canonicalizes Windows file URIs, so schema files configured with Windows paths (`D:\project\next.prisma`) are recognized as part of the project. ([#30121](https://github.com/prisma/prisma/pull/30121))
- The `dev` dist-tag no longer goes stale after a release: a release push to `main` also publishes a `-dev.1` build of the new base, so `@dev` installs always resolve against the current release's engine pins. ([#30125](https://github.com/prisma/prisma/pull/30125))

## v8.0.0-rc.7

ORM collection pagination renames to `limit`/`offset`, and the toolchain releases against `@prisma/cli-engine@0.2.3`, the engine whose config loader ships the `prisma init` scaffold fixes from the unified CLI's rc line.
Expand Down
8 changes: 4 additions & 4 deletions apps/lsp-playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lsp-playground",
"version": "8.0.0-rc.7",
"version": "8.0.0-rc.8",
"private": true,
"type": "module",
"description": "Private dev playground: opens a PSL file in a browser Monaco editor wired to the Prisma Next language server for live diagnostics.",
Expand All @@ -23,7 +23,7 @@
"@codingame/monaco-vscode-textmate-service-override": "^25.1.2",
"@codingame/monaco-vscode-theme-defaults-default-extension": "^34.1.3",
"@codingame/monaco-vscode-theme-service-override": "^34.1.3",
"@prisma/orm-postgres": "workspace:8.0.0-rc.7",
"@prisma/orm-postgres": "workspace:8.0.0-rc.8",
"monaco-editor": "^0.56.0",
"monaco-languageclient": "^10.7.0",
"vscode": "npm:@codingame/monaco-vscode-extension-api@^25.1.2",
Expand All @@ -34,8 +34,8 @@
"ws": "^8.21.2"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@prisma/cli-engine": "0.3.0",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/node": "catalog:",
"@types/ws": "^8.5.13",
"puppeteer-core": "^25.4.0",
Expand Down
10 changes: 5 additions & 5 deletions apps/telemetry-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "telemetry-backend",
"version": "8.0.0-rc.7",
"version": "8.0.0-rc.8",
"private": true,
"type": "module",
"engines": {
Expand All @@ -22,16 +22,16 @@
"clean": "rm -rf dist coverage"
},
"dependencies": {
"@prisma/orm-postgres": "workspace:8.0.0-rc.7",
"@prisma/orm-postgres": "workspace:8.0.0-rc.8",
"arktype": "catalog:",
"evlog": "^2.24.0"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@prisma/cli-engine": "0.3.0",
"@prisma/compute-sdk": "^0.39.0",
"@prisma/management-api-sdk": "^1.56.0",
"@repo/test-utils": "workspace:8.0.0-rc.7",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@repo/test-utils": "workspace:8.0.0-rc.8",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/bun": "^1.2.18",
"@types/node": "catalog:",
"@types/pg": "catalog:",
Expand Down
20 changes: 20 additions & 0 deletions docs/releases/v8.0.0-rc.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# v8.0.0-rc.8

The toolchain releases against `@prisma/cli-engine@0.3.0`, which now takes the Management API SDK as a peer dependency, and `migration plan` no longer plans silently from an empty database when migrations already exist.

The upgrade recipe for this hop: the [user recipe](https://github.com/prisma/prisma/tree/v8.0.0-rc.8/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.7-to-8.0.0-rc.8/).

## Breaking changes

- **The engine peer moves to `@prisma/cli-engine@0.3.0`** — `@prisma/orm-toolchain` declares the unified CLI's engine as an exact peer, and this release peers 0.3.0 (up from 0.2.3). The engine's change: `@prisma/management-api-sdk` moves from a regular dependency to a peer dependency (`^1.55.0`), supplied by the `prisma` CLI shell at runtime. Installs assembled by the unified `prisma` CLI resolve one engine as before; a host that pins the engine itself must move to 0.3.0 and, if it runs the engine outside the CLI shell, install the SDK itself. ([prisma/prisma-cli#236](https://github.com/prisma/prisma-cli/pull/236))

## Features

- The `prisma-8` skill, auto-installed into every project by `prisma init`, now teaches agents the migration system's real model — plan-from-state with explicit baselines, not a linear chain — so agents stop producing full-create plans against real databases. ([#30123](https://github.com/prisma/prisma/pull/30123))

## Fixes

- `migration plan` refuses to plan from an empty database when the project already has migrations on disk, instead of silently producing a full-create package that fails against any real database. A structured error explains the situation; planning from baseline remains available as an explicit opt-in. ([#30122](https://github.com/prisma/prisma/pull/30122))
- Structured errors' `docsUrl` links now point at `docs.prisma.io/docs/orm/v8/...` instead of the pre-RC `orm/next/...` path. ([#30126](https://github.com/prisma/prisma/pull/30126))
- The language server now canonicalizes Windows file URIs, so schema files configured with Windows paths (`D:\project\next.prisma`) are recognized as part of the project. ([#30121](https://github.com/prisma/prisma/pull/30121))
- The `dev` dist-tag no longer goes stale after a release: a release push to `main` also publishes a `-dev.1` build of the new base, so `@dev` installs always resolve against the current release's engine pins. ([#30125](https://github.com/prisma/prisma/pull/30125))
12 changes: 6 additions & 6 deletions examples/bundle-size/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bundle-size",
"private": true,
"type": "module",
"version": "8.0.0-rc.7",
"version": "8.0.0-rc.8",
"engines": {
"node": ">=24"
},
Expand All @@ -22,16 +22,16 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-mongo": "workspace:8.0.0-rc.7",
"@prisma/orm-postgres": "workspace:8.0.0-rc.7",
"@prisma/orm-mongo": "workspace:8.0.0-rc.8",
"@prisma/orm-postgres": "workspace:8.0.0-rc.8",
"mongodb": "catalog:",
"pg": "catalog:"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@prisma/cli-engine": "0.3.0",
"@prisma/dev": "catalog:",
"@repo/test-utils": "workspace:8.0.0-rc.7",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@repo/test-utils": "workspace:8.0.0-rc.8",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@size-limit/file": "^12.1.0",
"@types/node": "catalog:",
"@types/pg": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions examples/bundle-size/src/mongo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "bundle-size-mongo",
"private": true,
"type": "module",
"version": "8.0.0-rc.7",
"version": "8.0.0-rc.8",
"description": "The Mongo half of the bundle-size example. Its own manifest because emission reads the nearest one to decide which package names generated files import, and this example measures two databases that must not name each other's facade.",
"dependencies": {
"@prisma/orm-mongo": "workspace:8.0.0-rc.7"
"@prisma/orm-mongo": "workspace:8.0.0-rc.8"
}
}
4 changes: 2 additions & 2 deletions examples/bundle-size/src/postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "bundle-size-postgres",
"private": true,
"type": "module",
"version": "8.0.0-rc.7",
"version": "8.0.0-rc.8",
"description": "The Postgres half of the bundle-size example. Its own manifest because emission reads the nearest one to decide which package names generated files import, and this example measures two databases that must not name each other's facade.",
"dependencies": {
"@prisma/orm-postgres": "workspace:8.0.0-rc.7"
"@prisma/orm-postgres": "workspace:8.0.0-rc.8"
}
}
8 changes: 4 additions & 4 deletions examples/mongo-blog-leaderboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-mongo": "workspace:8.0.0-rc.7",
"@prisma/orm-mongo": "workspace:8.0.0-rc.8",
"mongodb": "catalog:"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@prisma/cli-engine": "0.3.0",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/node": "catalog:",
"mongodb-memory-server": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"vitest": "catalog:"
},
"version": "8.0.0-rc.7"
"version": "8.0.0-rc.8"
}
12 changes: 6 additions & 6 deletions examples/mongo-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-extension-middleware-cache": "workspace:8.0.0-rc.7",
"@prisma/orm-mongo": "workspace:8.0.0-rc.7",
"@prisma/orm-extension-middleware-cache": "workspace:8.0.0-rc.8",
"@prisma/orm-mongo": "workspace:8.0.0-rc.8",
"mongodb": "catalog:",
"react": "^19.2.8",
"react-dom": "^19.2.8"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@repo/test-utils": "workspace:8.0.0-rc.7",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@prisma/cli-engine": "0.3.0",
"@repo/test-utils": "workspace:8.0.0-rc.8",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/node": "catalog:",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
Expand All @@ -38,5 +38,5 @@
"vite": "catalog:",
"vitest": "catalog:"
},
"version": "8.0.0-rc.7"
"version": "8.0.0-rc.8"
}
10 changes: 5 additions & 5 deletions examples/multi-extension-monorepo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "multi-extension-monorepo",
"version": "8.0.0-rc.7",
"version": "8.0.0-rc.8",
"private": true,
"type": "module",
"engines": {
Expand All @@ -15,12 +15,12 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-postgres": "workspace:8.0.0-rc.7"
"@prisma/orm-postgres": "workspace:8.0.0-rc.8"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@repo/test-utils": "workspace:8.0.0-rc.7",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@prisma/cli-engine": "0.3.0",
"@repo/test-utils": "workspace:8.0.0-rc.8",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/node": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
12 changes: 6 additions & 6 deletions examples/paradedb-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-extension-paradedb": "workspace:8.0.0-rc.7",
"@prisma/orm-postgres": "workspace:8.0.0-rc.7",
"@prisma/orm-extension-paradedb": "workspace:8.0.0-rc.8",
"@prisma/orm-postgres": "workspace:8.0.0-rc.8",
"arktype": "^2.2.2",
"dotenv": "^17.4.2",
"pg": "catalog:"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@repo/test-utils": "workspace:8.0.0-rc.7",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@prisma/cli-engine": "0.3.0",
"@repo/test-utils": "workspace:8.0.0-rc.8",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/node": "catalog:",
"@types/pg": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
},
"version": "8.0.0-rc.7"
"version": "8.0.0-rc.8"
}
8 changes: 4 additions & 4 deletions examples/prisma-8-cloudflare-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-postgres": "workspace:8.0.0-rc.7",
"@prisma/orm-postgres": "workspace:8.0.0-rc.8",
"arktype": "catalog:",
"pg": "catalog:",
"temporal-polyfill": "^1.0.4"
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "0.20.3",
"@cloudflare/workers-types": "5.20260804.1",
"@prisma/cli-engine": "0.2.3",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@prisma/cli-engine": "0.3.0",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/node": "catalog:",
"@types/pg": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"vitest": "^4.1.10",
"wrangler": "4.119.0"
},
"version": "8.0.0-rc.7"
"version": "8.0.0-rc.8"
}
8 changes: 4 additions & 4 deletions examples/prisma-8-demo-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-sqlite": "workspace:8.0.0-rc.7",
"@prisma/orm-sqlite": "workspace:8.0.0-rc.8",
"arktype": "^2.2.2",
"dotenv": "^17.4.2"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@prisma/cli-engine": "0.3.0",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:"
},
"version": "8.0.0-rc.7"
"version": "8.0.0-rc.8"
}
14 changes: 7 additions & 7 deletions examples/prisma-8-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-extension-middleware-cache": "workspace:8.0.0-rc.7",
"@prisma/orm-extension-pgvector": "workspace:8.0.0-rc.7",
"@prisma/orm-postgres": "workspace:8.0.0-rc.7",
"@prisma/orm-extension-middleware-cache": "workspace:8.0.0-rc.8",
"@prisma/orm-extension-pgvector": "workspace:8.0.0-rc.8",
"@prisma/orm-postgres": "workspace:8.0.0-rc.8",
"arktype": "^2.2.2",
"dotenv": "^17.4.2",
"pg": "catalog:",
"react": "^19.2.8",
"react-dom": "^19.2.8"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@prisma/cli-engine": "0.3.0",
"@prisma/dev": "catalog:",
"@repo/test-utils": "workspace:8.0.0-rc.7",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@repo/test-utils": "workspace:8.0.0-rc.8",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/node": "catalog:",
Expand All @@ -50,5 +50,5 @@
"vite": "catalog:",
"vitest": "catalog:"
},
"version": "8.0.0-rc.7"
"version": "8.0.0-rc.8"
}
12 changes: 6 additions & 6 deletions examples/prisma-8-postgis-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"lint": "biome check . --error-on-warnings"
},
"dependencies": {
"@prisma/orm-extension-postgis": "workspace:8.0.0-rc.7",
"@prisma/orm-postgres": "workspace:8.0.0-rc.7",
"@prisma/orm-extension-postgis": "workspace:8.0.0-rc.8",
"@prisma/orm-postgres": "workspace:8.0.0-rc.8",
"arktype": "^2.2.2",
"dotenv": "^17.4.2",
"leaflet": "^1.9.4",
Expand All @@ -33,9 +33,9 @@
"react-leaflet": "^5.0.0"
},
"devDependencies": {
"@prisma/cli-engine": "0.2.3",
"@repo/test-utils": "workspace:8.0.0-rc.7",
"@repo/tsconfig": "workspace:8.0.0-rc.7",
"@prisma/cli-engine": "0.3.0",
"@repo/test-utils": "workspace:8.0.0-rc.8",
"@repo/tsconfig": "workspace:8.0.0-rc.8",
"@types/leaflet": "^1.9.22",
"@types/node": "catalog:",
"@types/pg": "catalog:",
Expand All @@ -45,5 +45,5 @@
"typescript": "catalog:",
"vitest": "catalog:"
},
"version": "8.0.0-rc.7"
"version": "8.0.0-rc.8"
}
Loading
Loading