Skip to content

Releases: lerna/lerna

7.0.1

13 Jun 08:59
Compare
Choose a tag to compare

7.0.1 (2023-06-13)

Bug Fixes

  • core: reset nx daemon after command finishes (#3726) (c0de66a)

7.0.0

08 Jun 13:19
Compare
Choose a tag to compare

7.0.0 (2023-06-08)

BREAKING CHANGES

After updating we strongly recommend running lerna repair in your project. This will migrate your lerna.json to the latest and greatest and remove any outdated options.

As this is a major release there are a few breaking changes to be aware of, which may or may not affect your lerna repos, depending on how you are using the tool.

  • node v14 support is dropped because it is end of life

When a node version becomes end of life (EOL) it means that it does not receive any updates or maintenance whatsoever, even if critical security vulnerabilities have been uncovered.

We strongly encourage all folks here to keep up with the maintenance LTS version of Node at an absolute minimum:

https://github.com/nodejs/release#release-schedule

NOTE: Due to an oversight, we initially forgot to formally remove this from the engines field. This was corrected in patch 7.3.1

  • legacy package management commands have been removed

We no longer include the bootstrap, add, and link commands by default. We strongly recommend using your package manager (npm, yarn, pnpm) for package management related concerns such as installing and linking dependencies.

There will not be any active work done on these commands and you should look to migrate as soon as possible.

For full context how why we made this change and how you can migrate your projects, please read our detailed guide here: https://lerna.js.org/docs/legacy-package-management

  • Workspaces are used by default and useWorkspaces has been removed

We now use your package manager's workspaces configuration by default in order to resolve packages for lerna to operate on. If you wish to customize the packages that lerna will operate on, you can still use a packages property in your lerna.json just as you did before, but there is no longer any need for a useWorkspaces flag. If the packages property is present, lerna will use that, otherwise it will try and read your workspaces configuration.

Running lerna repair will automatically remove useWorkspaces from your lerna.json for you.

NOTE: If you are using pnpm as your package manager, it is important to set "npmClient": "pnpm" in your lerna.json so that lerna knows to look for a pnpm-workspaces.yaml file and not just check your root package.json.

  • lerna init can no longer be run on an existing lerna repo

It was a confusing behavior that lerna init could be run on an existing lerna repo and would attempt to coerce its setup to something closer to a fresh repo, so we have removed this behavior and lerna will hard error if it detects the directory is already initialized.

You can run lerna repair at any time to update your configuration to the latest and greatest.

  • long deprecated options have been removed

The following options (on the left of the => in each case) have been deprecated for many years (since before we took over stewardship of the project) and have finally been removed. If you are using them in your lerna.json all you need to do is run lerna repair and it will automatically migrate you to their modern equivalent. If you are passing them in on the command line, you will need to update your usage as follows:

  • --includeFilteredDependencies => --includeDependencies
  • --includeFilteredDependents => --includeDependents
  • --githubRelease => --createRelease=github
  • --skipGit => --push=false --gitTagVersion=false
  • --repoVersion => [positional bump]
  • --cdVersion => [positional bump]
  • --npmTag => --distTag
  • --ignore => --ignoreChanges

Features

  • add migration for adding $schema, increase some strictness (73ceac3)
  • publish: support custom directory per-package (#3699) (9da575e)
  • init: support --dryRun flag and preview file system changes

Bug Fixes

  • bump cosmiconfig to v8 (#3701) (898923d)
  • ensure repair command not blocked by config validation (e237d58)
  • improve github client missing env var error (ce4b352)
  • internal cli.js should not be bundled (53d73c6)
  • migration building/publishing issues (27bf800)
  • publish: use correct version in log messages (#3702) (4be9188)
  • share project data when nesting commands (#3709) (53e71e4)
  • support nx 16.3.1+ (#3707) (647dbb5)

7.0.0-alpha.0

10 May 12:43
Compare
Choose a tag to compare
7.0.0-alpha.0 Pre-release
Pre-release

7.0.0-alpha.0 (2023-05-10)

Features

  • core: convert commands to use nx project graph instead of legacy package graph (#3667) (8e813c4)
  • do not include bootstrap, add, link commands by default (#3658) (487d475)

BREAKING CHANGES

  • We no longer include the bootstrap, add, and link commands by default. We strongly recommend using your package manager (npm, yarn, pnpm) for package management related concerns such as installing and linking dependencies.

If you want to temporarily continue to use those commands in v7 you can do so by installing the @lerna/legacy-package-management package at the same version as your lerna version.

There will not be any active work done on these commands and you should look to migrate as soon as possible, please check out https://lerna.js.org for further guidance.

6.6.2

04 May 18:51
Compare
Choose a tag to compare

6.6.2 (2023-05-04)

Bug Fixes

  • deps: bump pacote to latest to remove install warning (#3624) (7c34521)
  • remove non-functional schema properties starting with "no" (#3645) (43c2a48)
  • run: only use run-one when not passing multiple scripts (#3620) (9db1572)

Features

  • publish: support npm provenance (9c8bb4e)

6.6.1

24 Mar 18:18
Compare
Choose a tag to compare

6.6.1 (2023-03-24)

Bug Fixes

  • build-metadata reference in lerna schema (e2349ad)
  • deps: update to rimraf v4, remove path-exists (#3616) (2f2ee2a)
  • ensure rimraf bin dir can always be resolved (#3614) (0fe5faf)
  • handle trailing commas and comments in lerna.json files (#3603) (b826398)
  • lerna schema type for contents should be string (1625757)
  • publish: use updated version with pnpm workspaces (#3606) (cd7ad21)

6.6.0

23 Mar 09:06
Compare
Choose a tag to compare

6.6.0 (2023-03-23)

Bug Fixes

  • correct links to command docs (#3598) (b90b684)
  • publish: ensure zero exit code when EWORKINGTREE warning occurs (#3327) (9c00a33)
  • update troubleshooting.md typo (#3581) (a174cd7)
  • update arborist package to get rid of deprecated warning (#3559) (aff38a7)
  • version: handle deps property missing due to outdated lockfile (#3549) (fdbbab9)
  • version: update yarn lock for versions of yarn >= 2.0.0 (#3555) (ce2ceca)

Features

  • add @lerna/legacy-package-management package (#3602) (4a03dd5)
  • version: add user-defined build metadata to bumped packages (#2880) (0b0e2a6)

6.5.1

14 Feb 10:12
Compare
Choose a tag to compare

6.5.1 (2023-02-14)

Bug Fixes

  • add missing dependency on js-yaml (187f480)

6.5.0

13 Feb 17:02
Compare
Choose a tag to compare

6.5.0 (2023-02-13)

Bug Fixes

  • create: normalize quotes and indents in generated test and lib files (#3529) (ad39fe2)
  • repair: re-enable repair generators (#3497) (510c3e9)

Features

  • publish: add --include-private option for testing private packages (#3503) (fa1f490)
  • publish: recover from network failure (#3513) (f03ee3e)
  • run: allow multiple script targets to be triggered at once (#3527) (937b02a)

v6.4.1

12 Jan 19:37
Compare
Choose a tag to compare

6.4.1 (2023-01-12)

Bug Fixes

v6.4.0

05 Jan 18:28
Compare
Choose a tag to compare

6.4.0 (2023-01-05)

Bug Fixes

  • run: add explicit nx dependency (#3486) (7e39397)
  • version: recognize .prettierignore when formatting files (#3482) (4e2c7a9)

Features

  • create: support relative path from root as lerna create location (#3478) (82825ce)
  • watch: Add lerna watch command (#3466) (008b995)