[Snyk] Security upgrade lerna from 3.0.0-rc.0 to 6.4.1#19
[Snyk] Security upgrade lerna from 3.0.0-rc.0 to 6.4.1#19MHxGH-ServiceAccount wants to merge 1 commit intomasterfrom
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MINIMATCH-15353389
|
The upgrade from Lerna v3 to v6 is a major undertaking with significant breaking changes. Lerna's stewardship was transferred to Nrwl (the creators of Nx), and its core functionality has been fundamentally re-architected. Key Breaking Changes:
Recommendation: This is a high-effort migration that will require significant changes to your repository's setup and CI/CD workflows.
Source: Lerna GitHub Releases, Lerna Documentation
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| }, | ||
| "dependencies": { | ||
| "lerna": "^3.0.0-rc.0" | ||
| "lerna": "^6.4.1" |
There was a problem hiding this comment.
Lerna 6 upgrade breaks release-canary script CLI flags
High Severity
Upgrading lerna to ^6.4.1 breaks the release-canary script, which uses --cd-version=prerelease and --npm-tag=canary. The --cd-version flag was removed in Lerna 3 stable (replaced by a positional argument like lerna publish prerelease), and --npm-tag was renamed to --dist-tag. These flags worked with 3.0.0-rc.0 but will fail silently or error out with Lerna 6.


Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):
package.jsonNote for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the
.yarn/cache/directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to runyarnto update the contents of the./yarn/cachedirectory.If you are not using zero-install you can ignore this as your flow should likely be unchanged.
Vulnerabilities that will be fixed with an upgrade:
SNYK-JS-MINIMATCH-15353389
Breaking Change Risk
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.
Note
Medium Risk
Dependency upgrade of
lernaacross multiple major versions may introduce breaking changes in release/publish workflows, even though the code diff is minimal.Overview
Upgrades the
lernadependency inpackage.jsonfrom^3.0.0-rc.0to^6.4.1to address a reported vulnerability in the dependency tree.No other scripts or configuration were changed; reviewers should validate
lerna publish/release workflows still behave as expected under the new major version.Written by Cursor Bugbot for commit a782413. This will update automatically on new commits. Configure here.