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

ConcernFixedIndependent
Users matching compatible versionsEasy: use the same number everywhereNeeds a compatibility table or peer ranges
Meaning of a major bumpDiluted: a break in one package bumps allPrecise: only the broken package moves
Noise for usersReleases of unchanged packagesOnly real changes are released
ChangelogOne shared document is naturalOne per package
Inter-package rangesUsually exact or same-majorMust be maintained carefully
Release tooling complexityLowerHigher

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

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.

Related pages