Issues with usage around updateInternalDependencies config option
See original GitHub issueAffected Packages
Hi Team, thanks for your great work on this project. I am facing some challenges in correctly configuring changesets, now I am not sure either its a bug or invalid configuration.
As per the documentations to manage dependent package versioning we are using updateInternalDependencies option. (updateInternalDependencies: patch)
Assume there are two packages pkg-a @version 1.0.0
and pkg-b @version 1.0.0
pkg-b
is dependent on pkg-a
After adding a patch version of pkg-a
, pkg-b
gets auto-updated to a patch version (desired flow: works correctly)
Problem
After adding a minor version of pkg-a
, pkb-b
get auto-updated to a major version (desired flow: should be updated to a minor version)
If you could guide me around same it would be really helpful.
Proposed solution
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Automatic Dependency Updates Within Monorepo · Issue #476
Because the packages that are being published get dependency ranges updates according to updateInternalDependencies setting.
Read more >changesets - Bountysource
I believe it's the cli package. Problem. I set up changesets in GitLab CI (one job on master that allows to create an...
Read more >I tried to change a git config, but it won't change. Instead it ...
Changing the setting can be useful for some special cases, but in ... so it you probably should use option 2 for settings...
Read more >changesets/config/CHANGELOG.md - json - UNPKG
The CDN for @changesets/config. ... Thanks [@Blasz](https://github.com/Blasz)! - Add new updateInternalDependencies config option to disable auto bumping of ...
Read more >Keeping up with dependencies like a boss - Pieter Vincken
What's the problem? What is Mend Renovate? Behind the curtains; How to setup; Tips and tricks; Why should I use it? Links ...
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
For the time being, u can use a config flag like here: https://github.com/statelyai/xstate/blob/5a0dd8d1196d44badbb371c3dfcc82c6abcfb7ce/.changeset/config.json#L17-L19
The idea was that within a monorepo it’s easy to forget that your consumers might depend on an older version of your package - since it’s a peer dep. So the current behavior guards you against breaking the contract with them. However, in practice, this makes you bump major versions of packages way more often than you’d like. It’s hard to strike a balance between both of those goals here (minimizing majors and making it safe for consumers) but we are going to have to reconsider how this works in the next major version and see if we have any alternatives.
It looks like a bug - to investigate any further I would have to get a minimal repro case, ideally in a form of a PR with a failing test case.