question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

patch+minor changesets resulting in major version bump

See original GitHub issue

Affected 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:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Andaristcommented, Apr 1, 2021

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:

  1. Add a feature to your pkg which is a peer dep
  2. Dont use it yet in a dependant
  3. After some months start using it
  4. Locally it works - tests run against the latest versions of your packages
  5. The next release is broken for your consumers since u forgot to bump the peer dep range

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

0reactions
alcuadradocommented, May 25, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found