npm / lerna
lerna
What changed in lerna 3 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-20.
45 breaking1 deprecations14 new APIs and options4 behavior and defaults3 tooling17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initlerna 1016 changes
Breaking changes 6
Choose whether a stale remote in CI causes an error or is skipped; the default is error.
Configure whether a stale remote in CI causes an error or is skipped; the default is error.
Lerna now uses current conventional-changelog APIs instead of the deprecated core stack; generated changelog output may differ, so custom presets should be verified.
Lerna is now shipped as ESM-only, changing how consumers load the package.
The lowest supported Node.js version is now 22.13.0; supported major versions are 22, 24, and 26.
Versioning and publishing now throw EBEHIND in CI when the checkout is behind the latest remote; previously this occurred only outside CI.
Tooling 1
Bun is now a supported package manager.
Fixes and other changes 9
Errors from failed prompts are now reported, making prompt failures visible to developers.
Fixes resolution of conventional-commits-filter when using --conventional-commits.
Uses colorize instead of an undeclared chalk dependency during initialization.
Keeps the modern writer template when a preset includes a legacy writer guard.
Skips unnecessary package managers during release.
Fixes a missing peer dependency in Lerna 10.
Changelog presets that expose only the ESM import condition are now supported.
OIDC trusted publishing on CircleCI is now supported.
Output from publish and postpublish lifecycle scripts is now shown.
lerna 97 changes
Breaking changes 2
The legacy package-management package has been formally removed; users of its commands should migrate to their package manager's workspaces feature.
Node.js v18 support is dropped; supported versions are ^20.19.0 || ^22.12.0 || >=24.0.0.
Tooling 2
Expanded the supported version range to include Nx v22.x.
Lerna now supports OIDC trusted publishing with no specification configuration required.
Fixes and other changes 3
lerna version supports ESM and the new v8+ conventional-changelog preset API.
A ./ prefix in workspace globs is normalized for package detection.
README file names are now populated on package.json during publish.
lerna 86 changes
Breaking changes 3
The package is no longer separately published; it will be officially deprecated on npm in the future.
The task runner now depends on nx v17, bringing further performance improvements.
Support for Node.js 16 is dropped because it is end of life.
Deprecations 1
Older packages under the @lerna/ scope have been marked as deprecated on npm to signal that they are no longer maintained.
New APIs and options 1
Adds an option to force patch bumps for non-breaking changes in premajor packages.
Behavior and default changes 1
Uses corepack for install when it is enabled.
lerna 720 changes
Breaking changes 16
This deprecated option was removed; provide the bump positionally instead.
This deprecated option was removed; use
--createRelease=githubinstead.This deprecated option was removed; use
--ignoreChangesinstead.This deprecated option was removed; use
--includeDependenciesinstead.This deprecated option was removed; use
--includeDependentsinstead.The legacy package management command is no longer included by default; use a package manager for package management concerns.
The legacy package management command is no longer included by default; use a package manager for package management concerns.
Running
lerna initin an already initialized repository now hard errors instead of attempting to coerce its setup.The legacy package management command is no longer included by default; use a package manager for package management concerns.
Node.js 14 support was dropped because it is end of life.
This deprecated option was removed; use
--distTaginstead.This deprecated option was removed; provide the bump positionally instead.
A migration adds
$schemato configuration and increases some strictness.This deprecated option was removed; use
--push=false --gitTagVersion=falseinstead.The
useWorkspacesflag has been removed;lerna repairautomatically removes it fromlerna.json.Lerna now uses the package manager's workspaces configuration by default to resolve packages, unless a
packagesproperty is present inlerna.json.
New APIs and options 3
lerna initsupports--dryRunto preview file system changes.Set
npmClienttopnpmso Lerna looks forpnpm-workspaces.yamlrather than checking only the rootpackage.json.Publishing now supports a custom directory for each package.
Fixes and other changes 1
The repair command is no longer blocked by configuration validation.
lerna 66 changes
Breaking changes 1
The command delegates to the Nx-powered task-runner by default instead of the legacy task-runner.
New APIs and options 4
Run this command to interactively generate workspace configuration for script outputs and task relationships.
Run code migrations and codemods to update workspace configuration to current best practices, including removing explicit
"useNx": truereferences.Set this option to false to disable automatic loading of
.envfiles.Set
useNxto false in lerna.json to opt in to the legacy task-runner implementation.
Behavior and default changes 1
The modern task-runner automatically loads
.envfiles forlerna runby default.
lerna 53 changes
Breaking changes 2
Node v10.x and v12.x are no longer supported; upgrade to a newer LTS release.
Lerna now invokes npm lifecycle scripts using @npmcli/run-script instead of npm-lifecycle; their APIs differ significantly, so this may cause breaking changes.
Fixes and other changes 1
Lerna workspaces no longer have dependency deprecation warnings.
lerna 411 changes
Breaking changes 9
The ambiguous prompt export confirm has been removed; use promptConfirmation instead.
The ambiguous prompt export input has been removed; use promptTextInput instead.
The makePredicate() export has been removed; callers are responsible for memoization.
Node v6.x and v8.x are no longer supported; the minimum supported version is v10.18.0.
lazy is now a static method of Package rather than a named export.
Use promptConfirmation in place of the ambiguous confirm export.
Use promptSelectOne in place of the ambiguous select export.
Use promptTextInput in place of the ambiguous input export.
The ambiguous prompt export select has been removed; use promptSelectOne instead.
Behavior and default changes 1
The default GitHub branch used by create is now main.
Fixes and other changes 1
Import handles empty patches better.
lerna 315 changes
Breaking changes 6
Package names emitted to stdout no longer have a
-prefix, and private packages are hidden by default.The default output no longer shows version strings or private packages.
Publishing now validates npm registry and package access prerequisites.
--no-verifyis no longer passed to git commit by default; commit-hook behavior is controlled by--commit-hooks.During prereleases,
--preidnow defaults toalpha, yielding results such as1.0.1-alpha.0.lerna versionis split fromlerna publish.
New APIs and options 6
Explicit and implicit relative file specifiers are supported.
A new alias resembles the old
lerna lsoutput and includes each package's relative path.A new alias provides a shortcut for the
--longoption.The new option aids piping command output.
An npmPack export is added.
A tarball property is added.
Behavior and default changes 1
Lerna runs npm pack before npm publish, improving the package packing experience.
Fixes and other changes 2
Relative file specifiers are now computed using POSIX paths.
Imports generated from a test file use the filename without its scope.