You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upgrades for glob (v7 to v12) and rimraf (v2 to v6) introduce significant breaking changes to their APIs. Both libraries have removed support for the traditional callback-based signature (e.g., glob(pattern, (err, files) => ...) or rimraf(path, (err) => ...)) in favor of a Promise-based API. Any existing code in this project relying on callbacks—which was the standard for the older versions being replaced—will break at runtime. Additionally, tar v7 is now a pure ESM module, which will cause require('tar') to fail if this project is using CommonJS (as suggested by the devDependencies).
The upgraded versions of glob (v12), rimraf (v6), and tar (v7) all require a minimum Node.js version of 18 (with glob specifically requiring v18.20+ or v20.10+). However, the project's current environment appears to target Node.js 14, as indicated by @types/node": "^14.14.31" (line 151 in context). Merging these changes will cause the application to fail in environments running Node.js versions earlier than 18. To fix the reported vulnerabilities while maintaining legacy compatibility, consider updating to the lowest fixed major versions (e.g., glob v9 and ensuring tar is at 6.2.1).
"tar": "^7.5.8",
📚 Repository Context Analyzed
This review considered 1 relevant code sections from 1 files (average relevance: 0.93)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to fix 2 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-MINIMATCH-15309438
SNYK-JS-TAR-15307072
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:
🦉 Regular Expression Denial of Service (ReDoS)
🦉 Directory Traversal