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.

Issues with usage around updateInternalDependencies config option

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
Andaristcommented, Oct 7, 2021

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.

0reactions
Andaristcommented, Oct 12, 2021

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.

Read more comments on GitHub >

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

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