You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there exists a function, shouldBumpMajor. this is causing my minor release to be promoted to a major against expectation
it happens due to some sort of peerDependency check logic, which candidly, doesn't seem correct to me at all, especially that my peer is using workspace: syntax and all deps are linked. will report more.
Reacted by James Weston, Christian Kaisermann and Konstantin Shutkin
For anyone else that stumbles on this: I had, however, to replace the semver range of my peer dep for this to work. I had it like workspace:^ (using yarn@v4), which failed the semverSatisfies check from here. Changing it to workspace:^1 (adding the major range) made it work.
Reacted by Igor Kornilov, Mattias Buelens, Goestav, Samuel Andersson and Jens Ihrig
Activity
benmvp commentedon Jan 18, 2024
I think I'm having the issue you described. However, when I went to the PR I didn't see any
majorpatricklafrance commentedon Jan 30, 2024
I am experiencing the same thing.. a package went from 0.4 to 2.0 to 7.0 with minor bump 😅
cdaringe commentedon Feb 7, 2024
I did some debugging.
shouldBumpMajor. this is causing myminorrelease to be promoted to amajoragainst expectationpeerDependencycheck logic, which candidly, doesn't seem correct to me at all, especially that my peer is using workspace: syntax and all deps are linked. will report more.cdaringe commentedon Feb 7, 2024
Looks like the logic that put this in place is ~4 years old. #412
patricklafrance commentedon Feb 8, 2024
The issue that we are experiencing also seem to be caused by peer dependencies. Our current fix is to add to our config:
Which seems to work, but not ideal.
kaisermann commentedon Feb 29, 2024
This has helped me, thanks for the tip!
For anyone else that stumbles on this: I had, however, to replace the semver range of my peer dep for this to work. I had it like
workspace:^(using yarn@v4), which failed thesemverSatisfiescheck from here. Changing it toworkspace:^1(adding the major range) made it work.vicary commentedon Jul 19, 2024
We've had it the hard way, two major versions are published because of this.
We have always enabled
onlyUpdatePeerDependentsWhenOutOfRangebut the PR still did major pumps.changesets/action#381
fix: revert incorrect major pumps changesets/changesets#1279
DenisFrezzato commentedon Aug 21, 2024
I have the same issue: patching a dependency in a monorepo causes other packages that depend on the updated package to be major bumped.
sebastian-nowak commentedon Nov 24, 2024
It's a huge issue and it amazes me that a PR that adressess this is still in review for over a year 👎
sebastian-nowak commentedon Jun 3, 2025
I just ran into it too. Updated dependency added a
Patchlevel change in the changelog, but the package version got a major bump. Whaaaat 🤯pepsikat commentedon Jun 24, 2025
I have the same issue. @changesets/cli version 2.27.9