Fixed or Independent: How to Version Packages That Live Together
When one repository publishes several packages, you have to decide whether they share a version number. Lockstep ("fixed") versioning gives every package the same number on every release. Independent versioning bumps each package only when it changes. A middle path groups some packages together. Each choice changes how breaking changes reach users, so it deserves a deliberate decision rather than whatever the release tool defaulted to.
The approaches in brief
Fixed. A release bumps every package to the same version, even ones that did not change. Lerna calls this fixed mode, and it is its default; Changesets supports it through a "fixed" group. Users can tell at a glance which packages belong together: everything at 7.3.0 was built and tested together.
Independent. Each package carries its own version and changelog. A fix in the CLI package does not touch the core package's version. Lerna offers this as independent mode, and it is the natural default when each package records its own change files.
Linked or grouped. Some packages move together and the rest move independently. Changesets has "linked" packages, which share the highest bump type among those changed, and "fixed" groups, which always share a version.
Side by side
| Concern | Fixed | Independent |
|---|---|---|
| Users matching compatible versions | Easy: use the same number everywhere | Needs a compatibility table or peer ranges |
| Meaning of a major bump | Diluted: a break in one package bumps all | Precise: only the broken package moves |
| Noise for users | Releases of unchanged packages | Only real changes are released |
| Changelog | One shared document is natural | One per package |
| Inter-package ranges | Usually exact or same-major | Must be maintained carefully |
| Release tooling complexity | Lower | Higher |
How breaking changes behave under each
Take a hypothetical repository with packages core, cli and plugin-x. Suppose plugin-x must drop an option, a breaking change. Under fixed versioning all three go to the next major, and users of core alone see a major release that, for them, changes nothing. Some will spend time reading migration notes that do not apply to them; others learn to ignore majors from this project, which is worse.
Under independent versioning only plugin-x goes to the next major. Users of core are untouched. The cost appears elsewhere: plugin-x must declare which versions of core it works with, and if someone forgets to widen that range when core releases a major, installs start failing in the way described in our peer range scenario.
Verdict by use case
- A framework whose packages are always used together and are tested as a set: fixed. The shared number is useful information.
- A collection of loosely related utilities that users install one at a time: independent. Phantom majors would only confuse.
- A core plus a family of adapters: link or fix the core with its tightly coupled pieces, release adapters independently.
- Internal packages never published: often no versioning at all, since workspace links resolve them.
Practical notes
Whichever model you choose, write it in the repository's contributing guide so new maintainers do not change it by accident, and make the CI release job enforce it. Switching models later is possible, but switching from fixed to independent means version numbers will diverge permanently, which is worth a note in each package's README. For pipeline mechanics, see the monorepo release session notes.