Skip to content

Commit 421c79e

Browse files
Release 8.0.0-rc.39 on next: ORM rc.28 and Composer 0.41.2, so contract emit warns when it leaves the migration snapshot stale (#431)
## At a glance Merging this pull request publishes `prisma` and `@prisma/cli` 8.0.0-rc.39 under the `next` dist-tag ([versioning](https://github.com/prisma/prisma-cli/blob/main/docs/oss/versioning.md)). The release pins Prisma ORM 8.0.0-rc.28 and Composer 0.41.2 exactly. `npm install prisma` keeps getting rc.36 from `latest` until a maintainer promotes a newer release with `promote.yml`. rc.39 changes no CLI code. It ships ORM fixes found by upgrading two real applications to rc.38. ## What the new ORM and Composer releases fix - **`prisma contract emit` warns when it cannot update the migration snapshot.** The migration snapshot is the copy of the contract that `prisma db migrate` records in each database it creates. When emit cannot update it, a new database records out-of-date capabilities and later fails `prisma db verify`. Emit used to skip it without a word. That happened in our rc.38 upgrade check: the ORM's rc.25 to rc.26 upgrade script had left the snapshot's mutation-default references with key names from before ORM rc.13. Emit now warns with `MIGRATION.CONTRACT_SNAPSHOT_PROFILE_NOT_UPDATED`, naming the snapshot, the reason and what to do. That upgrade script now refuses such a snapshot and gives the command of the older script that renames the keys ([prisma/orm#31346](prisma/orm#31346)). - **Upgrades follow the newest instructions.** The ORM's upgrade instructions, written for coding agents, ship inside its packages. An agent upgrading from an older release used to read that release's copy, without later corrections. Now it downloads the newest release and follows the guides in it (same PR). - **`MIGRATION.SIGNATURE_NOT_IN_GRAPH` gives the right advice** for a database that an earlier ORM release migrated. It used to suggest `prisma db update`. It now points to the step of the rc.25 to rc.26 upgrade guide that says when to run `prisma db sign` (same PR). - **Composer 0.41.2 moves Composer to ORM rc.28** and changes no Composer code that ships. Its deploy guide now says an app's first deploy needs `PRISMA_REGION` ([prisma/composer#482](prisma/composer#482)). An application on rc.38 needs no code changes: the ORM's rc.27 to rc.28 upgrade guide has no entries. A project whose snapshot still has the old key names now sees the new warning from `contract emit`, and the warning says how to fix it. ## What changes in this pull request - `packages/cli/package.json` and `packages/prisma/package.json` pin every `@prisma/orm-*` package at 8.0.0-rc.28 and the three `@prisma/composer*` packages at 0.41.2. - `pnpm bump-version` set the root, `prisma`, `@prisma/cli`, the private workspace packages and the version the CLI's skill names to 8.0.0-rc.39. `@prisma/cli-engine` and `@prisma/compute` keep their own versions. The lockfile follows. ## Why `@prisma/cli-engine` stays at 0.10.4 ORM rc.28 and Composer 0.41.2 both require `@prisma/cli-engine` 0.10.4 exactly. So this release must not change what the engine publishes. In this pull request the engine's `package.json` changes only in its development dependencies, which are not published. ## Checked before merge - All `@prisma/orm-*` packages are on npm at 8.0.0-rc.28, and all `@prisma/composer*` packages at 0.41.2. `@prisma/composer-prisma-cloud` 0.41.2 requires ORM 8.0.0-rc.28 exactly, so the pins agree. - The lockfile holds one version of `@prisma/orm-toolchain`. - Typecheck and lint pass. So do the tests that check which ORM and Composer commands are mounted, and the tests of `CLI.SECOND_PACKAGE_COPY`, the refusal to run when two copies of a Prisma package are installed. ## After merge, before promotion rc.39 is installed from npm by its exact version and checked end to end: - a fresh Composer deploy, whose new database is migrated to the migration that the environment's ref names, and must pass `prisma db verify`; - an upgrade of a project deployed with rc.38. rc.39 is promoted to `latest` only if both pass. If either fails, it stays on `next` and the fix goes in the next release. ## Replaces #430 The release automation opened #430. It moves the ORM to rc.28 but leaves Composer at 0.41.1. Composer 0.41.1 requires ORM rc.27 exactly, so #430 would put two versions of `@prisma/orm-toolchain` in the lockfile. Agent: cobain-55 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c3b5228 commit 421c79e

10 files changed

Lines changed: 129 additions & 129 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prisma-cli",
3-
"version": "8.0.0-rc.38",
3+
"version": "8.0.0-rc.39",
44
"private": true,
55
"engines": {
66
"node": "^24.11.0 || >=26.0.0"

‎packages/cli-conformance/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@repo/cli-conformance",
33
"private": true,
4-
"version": "8.0.0-rc.38",
4+
"version": "8.0.0-rc.39",
55
"description": "Reusable conformance checks for the engine's consumers: import purity over built output, config-section validators that never throw, and verification of the tarballs a registry would receive. Depends on no package it checks.",
66
"type": "module",
77
"exports": {
@@ -24,7 +24,7 @@
2424
"test": "pnpm run typecheck && vitest run"
2525
},
2626
"devDependencies": {
27-
"@repo/tsconfig": "workspace:8.0.0-rc.38",
27+
"@repo/tsconfig": "workspace:8.0.0-rc.39",
2828
"@types/node": "^22.19.19",
2929
"es-module-lexer": "^2.1.0",
3030
"tsx": "^4.22.4",

‎packages/cli-engine/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
},
6060
"devDependencies": {
6161
"@prisma/management-api-sdk": "1.101.0",
62-
"@repo/cli-conformance": "workspace:8.0.0-rc.38",
63-
"@repo/tsconfig": "workspace:8.0.0-rc.38",
62+
"@repo/cli-conformance": "workspace:8.0.0-rc.39",
63+
"@repo/tsconfig": "workspace:8.0.0-rc.39",
6464
"@types/node": "^22.19.19",
6565
"ci-info": "^4.3.1",
6666
"tsdown": "^0.21.10",

‎packages/cli-telemetry/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@repo/cli-telemetry",
33
"private": true,
4-
"version": "8.0.0-rc.38",
4+
"version": "8.0.0-rc.39",
55
"description": "CLI telemetry child sender: the detached subprocess the engine hands a composed payload to, its system probes, and the POST",
66
"type": "module",
77
"sideEffects": [
@@ -35,7 +35,7 @@
3535
"@vercel/detect-agent": "^1.2.3"
3636
},
3737
"devDependencies": {
38-
"@repo/tsconfig": "workspace:8.0.0-rc.38",
38+
"@repo/tsconfig": "workspace:8.0.0-rc.39",
3939
"@types/node": "^22.19.19",
4040
"tsdown": "^0.21.10",
4141
"typescript": "^6.0.3",

‎packages/cli/package.json‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prisma/cli",
3-
"version": "8.0.0-rc.38",
3+
"version": "8.0.0-rc.39",
44
"description": "Command-line interface for the Prisma Developer Platform.",
55
"type": "module",
66
"bin": {
@@ -50,16 +50,16 @@
5050
"dependencies": {
5151
"@manypkg/tools": "^2.1.2",
5252
"@prisma/cli-engine": "workspace:0.10.4",
53-
"@prisma/composer": "0.41.1",
54-
"@prisma/composer-cli": "0.41.1",
55-
"@prisma/composer-prisma-cloud": "0.41.1",
53+
"@prisma/composer": "0.41.2",
54+
"@prisma/composer-cli": "0.41.2",
55+
"@prisma/composer-prisma-cloud": "0.41.2",
5656
"@prisma/compute-sdk": "0.47.0",
5757
"@prisma/management-api-sdk": "1.101.0",
58-
"@prisma/orm-family-sql": "8.0.0-rc.27",
59-
"@prisma/orm-framework": "8.0.0-rc.27",
60-
"@prisma/orm-postgres": "8.0.0-rc.27",
61-
"@prisma/orm-target-postgres": "8.0.0-rc.27",
62-
"@prisma/orm-toolchain": "8.0.0-rc.27",
58+
"@prisma/orm-family-sql": "8.0.0-rc.28",
59+
"@prisma/orm-framework": "8.0.0-rc.28",
60+
"@prisma/orm-postgres": "8.0.0-rc.28",
61+
"@prisma/orm-target-postgres": "8.0.0-rc.28",
62+
"@prisma/orm-toolchain": "8.0.0-rc.28",
6363
"@vercel/detect-agent": "^1.2.3",
6464
"better-result": "^2.9.2",
6565
"cross-spawn": "^7.0.6",
@@ -69,9 +69,9 @@
6969
},
7070
"devDependencies": {
7171
"@prisma/credentials-store": "^7.8.0",
72-
"@repo/cli-conformance": "workspace:8.0.0-rc.38",
73-
"@repo/cli-telemetry": "workspace:8.0.0-rc.38",
74-
"@repo/tsconfig": "workspace:8.0.0-rc.38",
72+
"@repo/cli-conformance": "workspace:8.0.0-rc.39",
73+
"@repo/cli-telemetry": "workspace:8.0.0-rc.39",
74+
"@repo/tsconfig": "workspace:8.0.0-rc.39",
7575
"@types/node": "^22.19.19",
7676
"@types/cross-spawn": "^6.0.6",
7777
"tsdown": "^0.21.10",

‎packages/compute/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"test": "vitest run"
4343
},
4444
"devDependencies": {
45-
"@repo/tsconfig": "workspace:8.0.0-rc.38",
45+
"@repo/tsconfig": "workspace:8.0.0-rc.39",
4646
"@types/node": "^22.19.19",
4747
"tsdown": "^0.21.10",
4848
"typescript": "^6.0.3",

‎packages/prisma/package.json‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prisma",
3-
"version": "8.0.0-rc.38",
3+
"version": "8.0.0-rc.39",
44
"description": "The Prisma CLI: one binary for the ORM, Composer, and the Prisma Developer Platform.",
55
"type": "module",
66
"bin": {
@@ -51,16 +51,16 @@
5151
"dependencies": {
5252
"@manypkg/tools": "^2.1.2",
5353
"@prisma/cli-engine": "workspace:0.10.4",
54-
"@prisma/composer": "0.41.1",
55-
"@prisma/composer-cli": "0.41.1",
56-
"@prisma/composer-prisma-cloud": "0.41.1",
54+
"@prisma/composer": "0.41.2",
55+
"@prisma/composer-cli": "0.41.2",
56+
"@prisma/composer-prisma-cloud": "0.41.2",
5757
"@prisma/compute-sdk": "0.47.0",
5858
"@prisma/management-api-sdk": "1.101.0",
59-
"@prisma/orm-family-sql": "8.0.0-rc.27",
60-
"@prisma/orm-framework": "8.0.0-rc.27",
61-
"@prisma/orm-postgres": "8.0.0-rc.27",
62-
"@prisma/orm-target-postgres": "8.0.0-rc.27",
63-
"@prisma/orm-toolchain": "8.0.0-rc.27",
59+
"@prisma/orm-family-sql": "8.0.0-rc.28",
60+
"@prisma/orm-framework": "8.0.0-rc.28",
61+
"@prisma/orm-postgres": "8.0.0-rc.28",
62+
"@prisma/orm-target-postgres": "8.0.0-rc.28",
63+
"@prisma/orm-toolchain": "8.0.0-rc.28",
6464
"@vercel/detect-agent": "^1.2.3",
6565
"better-result": "^2.9.2",
6666
"cross-spawn": "^7.0.6",
@@ -69,10 +69,10 @@
6969
"open": "^11.0.0"
7070
},
7171
"devDependencies": {
72-
"@prisma/cli": "workspace:8.0.0-rc.38",
72+
"@prisma/cli": "workspace:8.0.0-rc.39",
7373
"@prisma/credentials-store": "^7.8.0",
74-
"@repo/cli-telemetry": "workspace:8.0.0-rc.38",
75-
"@repo/tsconfig": "workspace:8.0.0-rc.38",
74+
"@repo/cli-telemetry": "workspace:8.0.0-rc.39",
75+
"@repo/tsconfig": "workspace:8.0.0-rc.39",
7676
"@types/node": "^22.19.19",
7777
"tsdown": "^0.21.10",
7878
"typescript": "^6.0.3",

‎packages/tsconfig/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@repo/tsconfig",
33
"private": true,
4-
"version": "8.0.0-rc.38",
4+
"version": "8.0.0-rc.39",
55
"description": "Base tsconfig providing package for the monorepo",
66
"license": "Apache-2.0",
77
"files": [

0 commit comments

Comments
 (0)