patch+minor changesets resulting in major version bump
See original GitHub issueAffected Packages
pkg:cli
Problem
Somehow minor
changes are resulting in a major version bump. If you look at the PR being updated at: https://github.com/ianstormtaylor/slate/pull/4156 — prior to adding a few minor
changesets it was correctly putting the next versions at 0.61.4
, but now it says 1.0.0
despite no changesets listing major
changes.
I’m worried to merge it now for what it will do.
Edit: I think this may be similar to https://github.com/atlassian/changesets/issues/524, but I don’t quite understand exactly what is going on here in the first place.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
patch+minor changesets resulting in major version bump #555
4 , but now it says 1.0.0 despite no changesets listing major changes. I'm worried to merge it now for what it will...
Read more >To bump major or minor, you can either update the VERSION ...
To bump major or minor, you can either update the VERSION file manually and reset patch to zero. Or you can use the...
Read more >Ditching manual releases with Changesets - Dimitrios Lytras
Let's start by adding the CLI package that helps us with the version bumping, and another one to enrich our changelog with more...
Read more >Automatic semantic versioning (bonus: with release notes!)
Learn how to configure automatic semantic versioning based on the pull request description. With automated release notes as a bonus!
Read more >7. Releasing and versioning - Python Packages
Manual version bumping#. Once you've decided what the new version of your package will be (i.e., are you making a patch, minor, or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Im on mobile and its 5am so i cant confirm in full - but yes, probably the reason is the same as in other issue.
At the beginning Changesets wanted to play safe - lifting the some burden from the users but it turns out that this is just not what people expect (hence the extra unsafe flag that might become the default or smth in the next major version)
Imagine this:
From what I understand this is reasoning behind this behavior but i was not around when it was introduced so i might also miss some context
Doesn’t npm7, which is aware of peer dependencies, make not bumping the dependent to a new major more reasonable? If an in-range update is required, npm will do it.
This is still very fuzzy in my mind to be honest, as it depends on how the user declared/installed the peer dependency. It works with a caret, may not work for others.