Repository navigation
Release 8.0.0-rc.37: Prisma ORM 8.0.0-rc.26, Composer 0.41.0, and adds prisma migration ref policy - #420
Merged
Conversation
…-postgres's new peers ORM main adds 'migration ref policy set|show|delete' and makes @prisma/orm-postgres name @prisma/orm-family-sql and @prisma/orm-target-postgres as peers. Mount the three commands with a group description, list the two peers in both manifests at the toolchain's version, follow them in update-product-versions, and exempt them from the install-age quarantine like the other ORM packages. Needs the ORM release after 8.0.0-rc.25: on rc.25 the three commands do not exist. The release pull request moves the pins in the same change. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…clean lockfile - The policy group card matches the ORM's: no deploy claim. The parent 'migration ref' card now says refs name environments and declare policies. - Tests cover every ORM package that follows the toolchain, and check that every product package the shell pins is watched and exempt from the install-age quarantine. - release-automation.md describes how a product's new command lands. - pnpm-lock.yaml regenerated from main's, without unrelated re-resolution. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
- The quarantine test reads minimumReleaseAgeExclude's own entries, so a commented-out exemption fails it. - The doc's procedure says to rebuild the lockfile from main's and to check the Composer release's ORM peers; its table names which package names which peer. - Comments state the real condition for sharing the toolchain's version: the ORM publishes these packages together. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
wmadden-electric
added a commit
to prisma/orm
that referenced
this pull request
Dec 2, 2026
…m a level promotion The docs and the publish.yml comment no longer cite prisma/prisma-cli#420: Composer and the CLI each have their own publish-then-promote change, prisma/composer#473 and a CLI pull request still to be opened. ADR 330 calls the tag step moving latest, so promotion keeps meaning a move up a level; the other docs and the skills say promotion to latest. ADR 330 records the token alternatives and no longer says releases before 8.0 went under latest, and its index row names the decision. supply-chain.md says only the token job runs from main, "Who can publish" gives the first-publish exception, and the shipped upgrade references say latest is the newest release promoted to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…de/follow-orm-composer-main Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io> # Conflicts: # docs/oss/release-automation.md
Pin the ORM packages to 8.0.0-rc.26 and the Composer packages to 0.41.0 exactly, and bump the release to 8.0.0-rc.37. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
commit: |
… only reads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
prisma migration ref policy from the next ORM release, and restore dev publishingprisma migration ref policy
wmadden-electric
marked this pull request as ready for review
December 2, 2026 08:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
At a glance
Merging this pull request publishes
prismaand@prisma/cli8.0.0-rc.37 under thenextdist-tag. It pins Prisma ORM 8.0.0-rc.26 and Composer 0.41.0 exactly.npm install prismakeeps getting rc.36 until a maintainer promotes rc.37 tolatestwithpromote.yml.The release adds three commands from ORM rc.26:
prisma migration ref policy set,showanddelete. They record how an environment's database may change:A ref is a named environment, such as
production. It points to the contract (the schema description) that its database should be at. The ref's policies say how that database may change:migrate), throughdb update(reconcile), or both;tightensmeans the new policy allows less than the old one. The commands only edit the ref's file.Why the commands and the pins land together
The ORM and Composer ship their commands as packages, and the CLI mounts each command: it adds the command to
prisma's command tree by its path. The commands come from the ORM, so they exist only from rc.26.The two halves cannot land apart:
check:grammartest fails when the ORM contributes a command the CLI does not mount. So a release with only the new pins fails. Theupdate-product-versions.ymlworkflow opened exactly that pull request when the products published (Release 8.0.0-rc.37: follow the products' released versions: @prisma/orm-toolchain 8.0.0-rc.25 -> 8.0.0-rc.26; @prisma/orm-framework 8.0.0-rc.25 -> 8.0.0-rc.26 #422). It is closed in favour of this one.Dev builds of the CLI use the ORM's dev build, which already has the commands, so every dev publish from
mainhas failed atcheck:grammarsince 2026-11-27. This merge removes that failure.ORM rc.26 also changes
@prisma/orm-postgres: it now names@prisma/orm-family-sqland@prisma/orm-target-postgresas peer dependencies, where it used to install them itself. The CLI installs@prisma/orm-postgresfor Composer's Prisma Cloud deploy target (@prisma/composer-prisma-cloud). So the CLI now lists those two packages itself, pinned to the same version as the rest of the ORM. Otherwise the package manager would choose their versions.What changes
packages/cli/src/cli.tsmounts the three commands and gives themigration ref policygroup its help text. The tests that list every mounted command name them.e2e-coverage.test.tsexcludes them from the rule that every command needs a real-API test, for the reason every ORM command has: they never call the management API.packages/cliandpackages/prismapin every@prisma/orm-*package at 8.0.0-rc.26, including the two new ones, and the three Composer packages at 0.41.0.pnpm bump-versionset every package to 8.0.0-rc.37.scripts/update-product-versions.mjsopens the CLI's release pull request when a product publishes. It now sets the two new packages to the version of@prisma/orm-toolchain, like the other ORM packages.pnpm-workspace.yamlexempts them from pnpm's minimum release age, so a release less than a day old installs. New tests check that every ORM and Composer package the CLI pins is covered by both.docs/oss/release-automation.mdexplains how a product's new command reaches the CLI. This pull request follows that procedure.How it was checked
@prisma/orm-*packages are on npm at 8.0.0-rc.26, and all@prisma/composer*packages at 0.41.0.@prisma/composer-prisma-cloud@0.41.0requires ORM 8.0.0-rc.26, so its pins match these.mount-coverage,orm-mount,composer-mount,e2e-coverageandcli-command).orm init,contract emit,migration plan,migration ref set, the three policy commands,db migrate --to production,db update,db verify,db sign,db schema,contract inferandmigration status.latestunless both pass.Alternatives considered
Agent: cobain-55
🤖 Generated with Claude Code