Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Update lerna in package.json from ^2.4.0 to 3.20.2 #617

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependencies[bot]
Copy link

@dependencies dependencies bot commented Jan 3, 2020

Overview

The following dependencies have been updated by dependencies.io:

  • lerna in package.json from "^2.4.0" to "3.20.2"

Details

lerna

This dependency is located in package.json and was updated from "^2.4.0" to "3.20.2".

3.0.0

Bug Fixes

  • add: Always use POSIX paths when computing relative file: specifiers (ffe354f)
  • add: Support explicit & implicit relative file: specifiers (41f231f)
  • create: Use filename without scope when generating imports from test file (acfd48b)
  • publish: Improve npm pack experience (627cfc2)

Features

BREAKING CHANGES

  • changed: The package names emitted to stdout are no longer prefixed by a "- ", and private packages are no longer displayed by default.

  • list: The default output of lerna ls no longer shows version strings or private packages.

  • The new alias lerna la resembles the old output, with the addition of relative path to the package

  • The new alias lerna ll is a shortcut for the new --long option

  • A new --parseable option has been added to aid magical piping incantations

    • --preid now defaults to "alpha" during prereleases:

    The previous default for this option was undefined, which led to an awkward "1.0.1-0" result when passed to semver.inc().

    The new default "alpha" yields a much more useful "1.0.1-alpha.0" result. Any previous prerelease ID will be preserved, just as it was before.

  • --no-verify is no longer passed to git commit by default, but controlled by the new --commit-hooks option:

    The previous behavior was too overzealous, and the new option operates exactly like the corresponding npm version option of the same name.

    As long as your pre-commit hooks are properly scoped to ignore changes in package.json files, this change should not affect you. If that is not the case, you may pass --no-commit-hooks to restore the previous behavior.

3.0.1

Bug Fixes

  • publish: Allow unpublished packages to pass access verification (3a7348c)

3.0.0 (2018-08-10)

Bug Fixes

  • add: Always use POSIX paths when computing relative file: specifiers (ffe354f)
  • add: Support explicit & implicit relative file: specifiers (41f231f)
  • create: Use filename without scope when generating imports from test file (acfd48b)
  • publish: Improve npm pack experience (627cfc2)

Features

BREAKING CHANGES

  • changed: The package names emitted to stdout are no longer prefixed by a "- ", and private packages are no longer displayed by default.

  • list: The default output of lerna ls no longer shows version strings or private packages.

  • The new alias lerna la resembles the old output, with the addition of relative path to the package

  • The new alias lerna ll is a shortcut for the new --long option

  • A new --parseable option has been added to aid magical piping incantations

    • --preid now defaults to "alpha" during prereleases:

    The previous default for this option was undefined, which led to an awkward "1.0.1-0" result when passed to semver.inc().

    The new default "alpha" yields a much more useful "1.0.1-alpha.0" result. Any previous prerelease ID will be preserved, just as it was before.

  • --no-verify is no longer passed to git commit by default, but controlled by the new --commit-hooks option:

    The previous behavior was too overzealous, and the new option operates exactly like the corresponding npm version option of the same name.

    As long as your pre-commit hooks are properly scoped to ignore changes in package.json files, this change should not affect you. If that is not the case, you may pass --no-commit-hooks to restore the previous behavior.

3.0.0-rc.0 (2018-07-27)

Bug Fixes

  • changed: Clarify early exit log message (b132c3a)
  • cli: Pass global defaults into option factory instead of yargs.config() (cf4008a), closes #1449
  • command: Prevent premature resolution during tests from nested commands (151363f)
  • core/package: Serialize hosted git URLs with original protocol/shorthand (60ff432), closes #1499
  • project: Report syntax errors in root package.json (f674f35), closes #1452
  • publish: Add default description 'npm' for --npm-client (649048c)
  • publish: Avoid fs-extra warning on 32-bit machines (e908d23)
  • publish: Do not leave unstaged changes with --skip-git (2d497ed)
  • publish: Exit early when publishing w/o commits (#1453) (6cbae35), closes #773
  • publish: Pass --repo-version argument through semver.valid() (272e9f1), closes #1483
  • publish: Update lerna.json version after root preversion lifecycle (7b3817c), closes #1495
  • tests: Special handling for Windows CI issues (#1441) (1a01125)

Code Refactoring

  • collect-updates: Make argument signature explicit (e6ba19f)
  • command: Do not store raw packages list as instance property (32a211a)

Features

  • Add description from --help summary [skip ci] (9b65d8e)
  • Count packages affected in command summary logging (5f5e585)
  • publish: Ensure published packages contain a LICENSE file (#1465) (5863564), closes #1213
  • Upgrade to fs-extra 6 (079d873)
  • add: Add --exact option to lerna add (#1478) (346d156), closes #1470
  • cli: Upgrade to Yargs 12 (7899ab8)
  • command: Remove .defaultOptions() from option resolution stack (2b27a54)
  • ls: Log number of packages listed (855fff6)
  • package-graph: Add rawPackageList getter (0ad5faf)
  • project: Move collect-packages into getPackages() method (06b88d4)
  • publish: Add --require-scripts option to opt-in to raw JS lifecycle scripts (054392b)
  • publish: Add --amend flag (#1422) (ef5f0db)
  • run-lifecycle: Encapsulate npm-conf with createRunner() factory (488f98d)

BREAKING CHANGES

  • publish: External $PKGDIR/scripts/{pre,post}publish.js lifecycles are now opt-in instead of automatic. Pass --require-scripts explicitly to restore previous functionality.
  • collect-updates: Instead of an opaque command instance, distinct positional arguments are required.
  • command: this.packages no longer exists in Command subclasses, use this.packageGraph.rawPackageList

3.0.0-beta.21 (2018-05-12)

Bug Fixes

  • child-process: Prevent duplicate logs when any package-oriented execution fails (d3a8128)

3.0.0-beta.20 (2018-05-07)

Features

3.0.0-beta.19 (2018-05-03)

Bug Fixes

  • add: Configure --dev as boolean option (#1390) (75b91bd)
  • collect-updates: Derive most recent tag from annotated tags only (90df646)
  • collect-updates: Remove redundant short-circuit (#1406) (2bcdd35)
  • publish: Include all packages during global major bump (#1391) (9cebed1), closes #1383

Features

  • project: Map deprecated config to new namespaces (4da6318)

BREAKING CHANGES

  • collect-updates: Lightweight tags are no longer included when detecting changes since the last release.

3.0.0-beta.18 (2018-04-24)

Bug Fixes

  • cli: Exit immediately when error is caught (5b01599), closes #1384
  • diff: Diff since last release in branch, not most recent global tag (9879fef)
  • git-utils: Pass --no-verify to git push (#1376) (0b88ffb), closes #1366
  • git-utils: Pass --follow-tags to git push (6907e90)

Features

  • collect-updates: Copy remaining git utilities into module (cb9c19d)
  • command: Move GitUtilities.isInitialized into class method (abecfcc)
  • diff: Move diff-only git utilities (47dc0e2)
  • Remove core/git-utils package (48096c4)
  • filters: Add --include-filtered-dependents flag (#1393) (2838260)
  • git-utils: Devolve getCurrentSHA() to consumers (ecbc1d3)
  • git-utils: Devolve getShortSHA() to consumers (95d179d)
  • import: Inline GitUtilities.getWorkspaceRoot() (925080e)
  • init: Inline GitUtilities.init() (6e401e1)
  • publish: Move publish-only git utilities (5594749)

BREAKING CHANGES

  • cli: Previously, lerna would accept --scope and --ignore options where they were not intended,
    despite logging the unexpected arguments correctly. This would result in the commands continuing to run with unexpected configuration.

Going forward, lerna will exit non-zero immediately upon encountering these errors.

  • @lerna/git-utils is gone. Don't use it.
  • collect-updates: GitUtilities is going away soon.
  • diff: Don't use GitUtilities.
  • git-utils: Don't use GitUtilities!
  • git-utils: Don't use GitUtilities.
  • import: GitUtilities.getWorkspaceRoot no longer exists. You shouldn't be using GitUtilities.
  • init: GitUtilities.init() no longer exists. You shouldn't be using GitUtilities.
  • command: GitUtilities.isInitialized no longer exists. You shouldn't be using GitUtilities.
  • publish: Many named exports of GitUtilities are no longer provided. Don't use GitUtilities, it's a bad pattern.

3.0.0-beta.17 (2018-04-13)

Bug Fixes

  • bootstrap: Pass npm-conf to feature predicate instead of directly reading process.env (b4af3c9)
  • bootstrap: Pluralize log text (#1232) (5c74760)
  • package: Resolve correct relative spec (ec2b8f5)

Features

  • add: Use directory globs to filter targeted packages (39fa7b6)
  • link: Add 'convert' subcommand to aid migration to local file: specifiers (f59bf3c)

BREAKING CHANGES

  • add: lerna add now only supports adding one dependency at a time. It is much more valuable to filter by directory globs, anyway.

3.0.0-beta.16 (2018-04-10)

Bug Fixes

  • import: Rebase patch copies, too (f6bae80)

3.0.0-beta.15 (2018-04-09)

Bug Fixes

  • project: Pin --exact require-from-string v2.0.1 to avoid integrity error with v2.0.2 (32a38ad)
  • publish: Allow tag check to fail with strong warning (#1355) (f5268cd)

Features

  • bootstrap: Use npm ci with --ci option (#1360) (d7e33c6)
  • conventional-commits: Support local file presets (a1bff40)

3.0.0-beta.14 (2018-04-03)

Bug Fixes

  • create: Actually publish the module data helper (4775cc4)
  • logging: Log failures from package scripts once, not twice (436cfe1)
  • publish: Ensure optionalDependencies are updated during publish to registry (559b731)

3.0.0-beta.13 (2018-03-31)

Bug Fixes

  • child-process: Do not merge lines of streaming stderr (59dc2d4), closes #994
  • Use ValidationError instead of Error (bea6bc3)
  • run: Exit early when no packages contain the targeted lifecycle (c8a5526)

Features

  • Enable progress bars only when necessary (b766c83)

3.0.0-beta.12 (2018-03-30)

Bug Fixes

  • create: Silently ignore missing builtin npmrc (1523520), closes #1353
  • npm-conf: Replace env vars even in config keys (3c9a5de)

Features

  • package: Add serialize() method (fdec3ac)
  • package: Add Map-like get/set methods, remove raw json getter (707d1f0)
  • project: Merge package and packageJson into manifest (9a47ff7)
  • Add --no-prefix for streaming output (#1352) (36c1fad)

BREAKING CHANGES

  • package: The Package class no longer provides direct access to the JSON object
    used to construct the instance. Map-like get()/set(val) methods are
    available to modify the internal representation.

3.0.0-beta.11 (2018-03-29)

Bug Fixes

  • exec: Clarify --no-bail option (6e4c6fd)
  • publish: Write temporary annotations once, not repeatedly (6abae76)

Features

  • bootstrap: Inherit stdio during root-only install (fd8c391)
  • bootstrap: Short-circuit when local file: specifiers are detected in the root (d8a8f03)
  • child-process: Allow exec() opts.stdio override (fd84013)
  • npm-install: Allow opts.stdio override (4ba5e74)
  • Execute atomic publish lifecycle during lerna publish (#1348) (45efa24)
  • Support optionalDependencies (b73e19d), closes #121
  • npm-run-script: Accept opts.reject (7c5a791)
  • run: Add --no-bail option (893fcc8), closes #1351

3.0.0-beta.10 (2018-03-27)

Bug Fixes

  • add: Use bootstrap factory, not handler (dbfc891)

Features

  • commands: Delay require of command instantiation (a1284f3)
  • project: Inherit configuration with yargs-like "extends" (0b28ef5), closes #1281

BREAKING CHANGES

  • commands: The default export of command packages is now a factory, not the subclass (which is now a named export).

3.0.0-beta.9 (2018-03-24)

Bug Fixes

  • filter-options: Move include/exclude validation into filter-packages (503251d)
  • git-utils: Remove unused methods, stop mocking tests (3e00d7a)
  • publish: Split --skip-* properly, leave working tree clean (5b4b2c9)

Features

  • command: Remove legacy config handling (d305a38)
  • command: Rename this.repository -> this.project (43e98a0)
  • project: Normalize config.commands -> config.command (24e55e3)
  • project: Use cosmiconfig to locate and read lerna.json (b8c2789)

BREAKING CHANGES

  • publish: Previously, gitHead annotations were leftover if --skip-npm was passed,
    despite no actual requirement for that property when no publishing is going on.

Now, all publish-related operations are truly skipped with --skip-npm,
and all git commit/push-related operations are skipped with --skip-git.
Passing --skip-npm will now also always push to remote, which represents
a breaking change from 2.x behavior.

Thanks KingScooty for raising the issue!

  • command: lerna.json bootstrapConfig and publishConfig namespaces are no longer honored.
    These config blocks should be moved to command.bootstrap and command.publish, respectively.

3.0.0-beta.8 (2018-03-22)

Bug Fixes

  • add: Support tag and version specifiers (5df0fc8), closes #1306
  • create: Skip repository property when git remote is missing (98c8be6)

Features

  • init: Improve ex-nihilo output (7b80e07)
  • npm-conf: Add get/setCredentialsByURI() methods (ad20d8a)
  • utils: Add "vendored" npm-conf (9c24a25)
  • utils: Add lerna/map-to-registry (ce72828)

3.0.0-beta.7 (2018-03-20)

Bug Fixes

  • cli: Retrieve correct version (bb2c5e8)

3.0.0-beta.6 (2018-03-19)

Note: Version bump only for package lerna

3.0.0-beta.5 (2018-03-19)

Bug Fixes

  • bootstrap: Move --hoist/--nohoist coerce into class (8877aa0), closes #1337

3.0.0-beta.4 (2018-03-19)

Bug Fixes

  • clean-stack: Try to avoid causing errors during error cleanup (89f9d3b)
  • Respect durable hoist configuration (2081640), closes #1325
  • Use correct instance property override (9249221)

Features

3.0.0-beta.3 (2018-03-15)

Bug Fixes

  • utils: Use safe relative path when calling git diff (#1323) (619c477)
  • ci option should not be visible in help output (580b2d5)
  • fs-extra dependency is a caret range, not exact (81556d0)

Features

  • Check for upstream changes before attempting to publish (#1317) (cef0a69)
  • cli: Set config.ci from env var (5452293)
  • global-options: Add hidden ci option (86a4d65)
  • Upstream changes warn in CI, throw locally (4de055d), closes #1177 #1317
  • publish: Add logging when --skip-git or --skip-npm are passed (#1319) (8eef9ff)

3.0.0-beta.2 (2018-03-10)

Bug Fixes

  • Move @lerna/has-dependency-installed into commands/bootstrap/lib (c09ccbd)

Features

  • Rename @lerna/fs-utils => @lerna/rimraf-dir (30451ed)
  • Replace @lerna/fs-utils dependency with fs-extra (9c35a86)
  • Replace @lerna/match-package-name with multimatch (423f82c)
  • filter-packages: Simplify method signature (47e1c86)

BREAKING CHANGES

  • filter-packages: The parameters to filterPackages() have changed:
    • Two lists (include, exclude) have replaced the destructured config object

3.0.0-beta.1 (2018-03-09)

Bug Fixes

  • conventional-commits: output version bump message closer to version heading (64916d6)
  • filter-options: require a git repo when using --since (d21b66e), closes #822
  • init: lerna init does not, in fact, require git (d1d69c7)
  • publish: Checkout manifest changes serially (ce4a4b1)
  • publish: default root manifest name when missing (a504d7e), closes #1305
  • publish: guard against undefined tag (d8ce253), closes #1311
  • publish: Respect pkg.publishConfig.tag (04b256a), closes #1311
  • publish: work around yarn "link:" intransigency (ddfb517)

Features

  • collect-packages: simplify signature (39170cf)
  • diff: filter diff output with --ignore-changes (c27c2e0)
  • filter-options: Exclude private packages with --no-private (6674d18)

BREAKING CHANGES

  • collect-packages: Formerly a config object, it is now two parameters, only the first of
    which (rootPath) is required. The second parameter is a list of package
    location globs, defaulting to lerna's default of ["packages/*"].

v3.0.0-beta.0 (2018-03-07)

This is the first lerna release published by lerna itself. πŸŽ‰

πŸ’₯ Breaking Change

  • #1307 Convert lerna/lerna into a lerna-based monorepo. (evocateur)

  • Rename lerna publish flag --ignore to --ignore-changes (8c92956)

    This resolves previous ambiguity as to what exactly was intended by the "ignore" config for lerna publish,
    which was not intended to be identical to the filtering option --ignore.

    The old option will still work when found in lerna.json config, but it is recommended to migrate to the
    new option name to ensure future compatibility.

πŸš€ Enhancement

  • #1310 Add gitHead property to package.json before publish. (evocateur)

Committers: 1

v3.0.0-alpha.3 (2018-03-03)

πŸ› Bug Fix

  • #1302 Use npm-lifecycle to run solitary lifecycle phases. (evocateur)

πŸ’… Polish

  • #1300 Disable all non-error logging when stdout is piped. (evocateur)

Committers: 1

v3.0.0-alpha.2 (2018-03-02)

πŸ› Bug Fix

  • Sort packages correctly (2ead3107)
  • Don't resolve relative links in private packages (04760f38)

πŸ’… Polish

  • Disable progress in commands that only output lists (e91c9f2c)

v3.0.0-alpha.1 (2018-02-28)

πŸ’₯ Breaking Change

🏠 Internal

Committers: 1

v3.0.0-alpha.0 (2018-02-14)

πŸ’₯ Breaking Change

πŸš€ Enhancement

πŸ› Bug Fix

πŸ“ Documentation

  • #1248 Document another potential cause of git initialization failure. (fritz-c)
  • #1250 Add guide for debugging Jest tests with VS Code. (millermatt)

🏠 Internal

Committers: 9

v2.7.2 (2018-01-16)

πŸš€ Enhancement

πŸ› Bug Fix

Committers: 2

v2.7.1 (2018-01-16)

πŸ› Bug Fix

  • #1194 Treat 'lerna run test' like any other command. (tkrotoff)
  • #1199 Fix import command so it works if Lerna root is a subdir of git root. (RoystonS)
  • #1204 Avoid interactive prompt during yarn publish. (evocateur)

Committers: 3

v2.7.0 (2018-01-12)

πŸš€ Enhancement

πŸ› Bug Fix

  • #1187 Completely ignore peerDependencies during publish. (evocateur)
  • #1193 Throw error when lerna.json or package.json have invalid syntax. (evocateur)

πŸ“ Documentation

🏠 Internal

Committers: 7

v2.6.0 (2018-01-08)

Happy 2018! πŸŽ‰

πŸš€ Enhancement

πŸ› Bug Fix

  • #1134 Normalize path used for git add in respect to OS/environment. (zenflow)
  • #1129 Throw error in bootstrap when Yarn workspaces is misconfigured. (evocateur)
  • #1101 Set chmod for linked binaries. (marionebl)
  • #1112 Use all packages locations when resetting canary changes. (jwickens)
  • #1115 Keep non-patch subject parts when importing repository. (koenpunt)

πŸ“ Documentation

Committers: 10

v2.5.1 (2017-11-01)

A quick bugfix for an overlooked case in lerna add.

πŸ› Bug Fix

Committers: 1

v2.5.0 (2017-11-01)

A new command (lerna add), new flags for bootstrap and link commands, and a much-improved experience when publishing "final" releases after a series of prereleases!

πŸš€ Enhancement

  • #1069 Implement lerna add <pkg>[version] [--dev]. (marionebl)
  • #1077 Republish prereleased packages during subsequent non-prerelease publish. (spudly)
  • #1078 Generate root changelog in fixed mode. (ZauberNerd)
  • #1081 Warn during bootstrap when two or more packages have the same package.json name. (amfio)
  • #1082 Add --force-local to link command. (jiverson)
  • #1087 Add --reject-cycles to bootstrap, logging packages when found. (mitchhentges)

πŸ› Bug Fix

πŸ“ Documentation

🏠 Internal

  • #1080 Add test for skipping empty patches during import --flatten. (gyoshev)
  • #1092 Make integration tests less flaky on Windows. (evocateur)

Committers: 11

v2.4.0 (2017-10-05)

I inadvertently made lerna bootstrap --hoist really slow in v2.3.0, so that's fixed. Big thanks to all the contributors!

πŸš€ Enhancement

πŸ› Bug Fix

  • #1044 Throw publish validation errors before version selection. (evocateur)
  • #1047 Remove git requirement from link command. (jiverson)
  • #1051 When hoisting, only install with --global-style in leaf nodes, not root. (evocateur)
  • #1054 Set process.exitCode instead of calling process.exit(code). (evocateur)

πŸ’… Polish

πŸ“ Documentation

Committers: 4

v2.3.1 (2017-10-03)

This is what happens when you forget to pull from upstream before publishing.

πŸ’… Polish

Committers: 1

v2.3.0 (2017-10-03)

New options for lerna import and lerna publish, set --loglevel from lerna.json, and more!

πŸš€ Enhancement

  • #1019 Add --flatten option to use when merge conflicts cannot be imported. (dmaksimovic)
  • #1026 Add --allow-branch option to restrict publish to designated branches. (FaHeymann)
  • #1029 Call version lifecycle scripts during publish. (cwmoo740)
  • #1030 Add runScriptSync for use in version lifecycle methods. (cwmoo740)

πŸ› Bug Fix

πŸ“ Documentation

🏠 Internal

  • #1038 Rename npmPublishAsPrerelease to npmPublish to avoid confusion. (Hypnosphi)

Committers: 7

v2.2.0 (2017-09-15)

A new command, tweaks to logging and init scaffolding, and documentation!

πŸš€ Enhancement

πŸ“ Documentation

  • #985 Update installation instructions to match lerna init behavior. (sapegin)
  • #1011 Add shield example to README.md. (mfix22)

Committers: 5

v2.1.2 (2017-08-29)

More bugfixes, plus support for the prepare lifecycle script found in npm 4+.

πŸš€ Enhancement

  • #979 Run "prepare" lifecycle script during bootstrap. (Andarist)

πŸ› Bug Fix

  • #992 Fix --conventional-commits recommending already released version. (jezzay)
  • #993 Fix silly level log output for --conventional-commits. (jezzay)
  • #996 Only diff package locations, not the entire repository. (evocateur)

🏠 Internal

Committers: 3

v2.1.1 (2017-08-28)

A quick bugfix release to restore a broken lerna publish --canary, as reported in #989. Many thanks to all who pitched in to identify the issue!

πŸ› Bug Fix

  • #990 Use yargs parser in unit tests for greater fidelity. (evocateur)

Committers: 1

v2.1.0 (2017-08-24)

πŸš€ Enhancement

  • #922 Support --conventional-commits in fixed versioning mode. (jezzay)
  • #960 Improve support for semver prerelease identifiers when publishing. (shawnbot)

πŸ› Bug Fix

πŸ“ Documentation

  • #921 Fixed spelling mistake in a comment for Command.js. (dlmr)
  • #978 Add root package.json and CI setup sections to FAQ. (Andarist)
  • #981 Add troubleshooting info for GitHub lightweight tags. (jezzay)

🏠 Internal

  • #934 Platform independent integration tests. (jezzay)
  • #946 Swallow promise rejection in registerChild as it is handled via callback. (viliusl)
  • #973 Update LICENSE. (yanca018)

Committers: 11

v2.0.0 (2017-07-06)

πŸŽ‰ It's happening! πŸŽ‰

πŸ’₯ Breaking Change

  • #904 Improved --canary functionality. (Craga89)
    --canary now bumps the generated version to the next semver minor, and accepts a value (e.g. --canary=beta) to override the default "alpha" tag.

πŸš€ Enhancement

  • #899 Support Yarn workspaces to replace bootstrap command. (bestander)
  • #834 Pass extra arguments to npmClient during bootstrap. (xaka)
  • #873 Add root path dir environment variable to lerna run. (yisraelx)
  • #822 Add --since flag to all commands that accept --scope. (treshugart)
  • #806 Allow custom yarn mutex from lerna.json config. (ChristopheVandePoel)
  • #868 lerna run: Don't error if no scoped packages are matched. (ricky)
  • #835 Flag for exec to bail upon child execution error. (rsolomon)

πŸ› Bug Fix

  • #857 Print n/a when a package has no version key.. (ben-eb)
  • #897 Run yarn in non-interactive mode. (tricoder42)
  • #898 Fix issue where Yargs default would override durable options. (treshugart)
  • #846 Do not log private packages as published. (evocateur)
  • #845 Preserve tag summary with lerna publish --message. (evocateur)
  • #844 All CLI options should be configurable in lerna.json. (evocateur)

πŸ“ Documentation

🏠 Internal

Committers: 15

v2.0.0-rc.5 (2017-05-22)

This is the last release candidate.

We need to fix #789 before we can release v2.0.0. All contributions are appreciated!

πŸ’₯ Breaking Change

  • #807 Change exit codes for updated and publish. (koddsson)

    It is now possible to run lerna publish in CI unconditionally, only publishing when changes are actually detected, and never failing when it decides to not publish anything.

    Previously:

    • lerna publish when there are no updates to publish would throw an error
    • lerna updated when there are no updates would exit 0, making it ineffective as a chained filter (e.g., lerna updated && lerna publish)

    Now:

    • lerna publish when there are no updates is a no-op, exiting successfully with a helpful log message
    • lerna updated when there are no updates will exit non-zero (but not throw an error), enabling it to be an effective filter

πŸš€ Enhancement

  • #726 Add --only-updated option to exec and run subcommands. (jameslnewell)

    When executing a script or command, only run the script or command on packages that have been updated since the last release. A package is considered "updated" using the same rules as lerna updated.

    lerna exec --only-updated -- ls -la
    lerna run --only-updated test
    • #795 Add --parallel flag to lerna exec. (evocateur)

      With this flag, lerna exec will run the command in all filtered packages
      in parallel, completely ignoring concurrency and topological sorting.

      # transpile modules in all packages as changes occur
      lerna exec -- babel src -d lib -w
      
      # transpile watched modules only in package-foo
      lerna exec --scope package-foo -- babel src -d lib -w

      It is advised to constrain the scope of the command when running with this
      flag, as spawning dozens of subprocesses may be harmful to your shell's
      equanimity (or maximum file descriptor limit, for example). YMMV

  • #796 Add --parallel flag to lerna run. (evocateur)

    This allows simpler invocation of watch scripts, with the caveat that concurrency and topological sorting are completely ignored. This is generally the intention when calling lerna run watch and other similar script targets, hence the additional flag.

    # the following commands are equivalent
    lerna run watch --concurrency=1000 --stream
    lerna run watch --parallel

    Package filtering (--scope and --ignore) is still available when this new flag is being used, and it is advised to narrow the scope of parallel execution when you have more than a dozen packages or so (YMMV).

  • #803 Skip git repo check by default in Commands which do not rely on git. (noherczeg)

  • #824 Add json output to ls and updated commands. (ricky)

    When run with --json, lerna updated and lerna ls will return an array of objects in the following format:

    [
      {
        "name": "package",
        "version": "1.0.0",
        "private": false
      }
    ]
  • #829 Prefix piped streams with rotating colors. (evocateur)

πŸ› Bug Fix

🏠 Internal

Committers: 6

v2.0.0-rc.4 (2017-04-27)

Now with less bugs! The --hoist flag works again, among other rc.3 bugfixes, and our logging is much more detailed now.

πŸ’₯ Breaking Change

πŸš€ Enhancement

πŸ› Bug Fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant