fix: prevent minor changeset from producing major bump in fixed group#831
Merged
fix: prevent minor changeset from producing major bump in fixed group#831
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Root cause: changesets' `onlyUpdatePeerDependentsWhenOutOfRange` defaults to false, which means ANY non-patch peer dependency bump triggers a major version bump for dependents. Combined with `workspace:*` (resolved to exact version), this caused minor bumps to escalate to major across the entire fixed group. Fix: 1. Add `onlyUpdatePeerDependentsWhenOutOfRange: true` to changeset config 2. Change internal peerDependencies from `workspace:*` to `workspace:^` so minor bumps stay within the semver-compatible range Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix incorrect major version bump in release process
fix: prevent minor changeset from producing major bump in fixed group
Feb 28, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts Changesets configuration and internal peerDependency ranges to prevent minor bumps from incorrectly escalating to major releases across the repo’s fixed group.
Changes:
- Enabled Changesets’
onlyUpdatePeerDependentsWhenOutOfRangevia___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCHto avoid major bumps unless peer ranges are truly violated. - Switched internal peerDependencies from
workspace:*toworkspace:^in affected packages so published peer ranges remain semver-compatible across minor updates. - Updated
ROADMAP.mdto reflect the release-process fix and current protocol version metadata.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.changeset/config.json |
Enables peer-dependent bumping behavior only when out of range, preventing fixed-group major cascades. |
packages/plugins/plugin-msw/package.json |
Changes internal runtime peerDependency to workspace:^. |
packages/plugins/plugin-dev/package.json |
Changes internal peerDependencies to workspace:^ to keep ranges compatible on minor bumps. |
packages/cli/package.json |
Changes internal core peerDependency to workspace:^. |
packages/adapters/express/package.json |
Changes internal runtime peerDependency to workspace:^. |
packages/adapters/fastify/package.json |
Changes internal runtime peerDependency to workspace:^. |
packages/adapters/hono/package.json |
Changes internal runtime peerDependency to workspace:^. |
packages/adapters/nestjs/package.json |
Changes internal runtime peerDependency to workspace:^. |
packages/adapters/nextjs/package.json |
Changes internal runtime peerDependency to workspace:^. |
packages/adapters/nuxt/package.json |
Changes internal runtime peerDependency to workspace:^. |
packages/adapters/sveltekit/package.json |
Changes internal runtime peerDependency to workspace:^. |
ROADMAP.md |
Documents the release-process fix and updates the “Last Updated” / “Current Version” fields. |
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.
A minor changeset for
@objectstack/specproduced a4.0.0release PR instead of3.1.0. Root cause:workspace:*peer deps resolve to exact versions in changesets, and the defaultonlyUpdatePeerDependentsWhenOutOfRange: falsetreats any non-patch peer dep bump as breaking — cascading a major through the entire fixed group.Changes
.changeset/config.json— EnableonlyUpdatePeerDependentsWhenOutOfRange: trueso peer dep bumps only trigger major when the new version actually leaves the compatible rangepackage.jsonfiles — Change internalworkspace:*→workspace:^in peerDependencies so minor bumps stay within^x.y.zrangeAffected packages
@objectstack/cli, all 7 adapter packages,plugin-dev,plugin-mswVerification
Simulated via
assembleReleasePlan()directly — all 35 fixed-group packages resolve to3.1.0.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.