Skip to content

[Snyk] Security upgrade del from 3.0.0 to 8.0.0#315

Open
rvu-snyk wants to merge 1 commit intomasterfrom
snyk-fix-5e5bbbc15d3d8428279c16f722143ab4
Open

[Snyk] Security upgrade del from 3.0.0 to 8.0.0#315
rvu-snyk wants to merge 1 commit intomasterfrom
snyk-fix-5e5bbbc15d3d8428279c16f722143ab4

Conversation

@rvu-snyk
Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
⚠️ Warning
Failed to update the package-lock.json, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Infinite loop
SNYK-JS-BRACEEXPANSION-15789759
  641  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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.

@rvu-snyk
Copy link
Copy Markdown
Author

Merge Risk: High

This is a major version upgrade from v3 to v8, introducing significant breaking changes that require code modifications and a modern Node.js environment.

Key Breaking Changes:

  • Node.js Requirement: The minimum required Node.js version has been increased to v18.0.0. The previous version, v3.0.0, was compatible with much older Node.js versions.
  • ESM Module: The package is now a pure ESM (ECMAScript Module). It can no longer be imported using require(). You must use import and be in an ESM-supported environment.
  • API Change (Named Exports): The package has moved from a default export to named exports. This requires changing how the function is imported and called.
    • Before (v3): const del = require('del'); await del(['file.js']);
    • After (v8): import { deleteAsync } from 'del'; await deleteAsync(['file.js']);
  • Path Separators: Paths with backward-slashes are no longer supported. This is a breaking change for Windows environments. Paths should be normalized to use forward-slashes, for example by using path.posix.join().

Recommendation:
This upgrade requires significant code changes. Developers must update their import statements to use ESM and the new named exports (deleteAsync and deleteSync). Additionally, ensure your project is running on Node.js v18 or later and that all file paths use forward-slashes.

Source: GitHub Releases

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants