Skip to content

[Snyk] Upgrade fs-extra from 9.1.0 to 11.3.6#18

Open
mhill-os wants to merge 3 commits into
masterfrom
snyk-upgrade-a0ae7470722099caf46bbaed9d205338
Open

[Snyk] Upgrade fs-extra from 9.1.0 to 11.3.6#18
mhill-os wants to merge 3 commits into
masterfrom
snyk-upgrade-a0ae7470722099caf46bbaed9d205338

Conversation

@mhill-os

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to upgrade fs-extra from 9.1.0 to 11.3.6.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 14 versions ahead of your current version.

  • The recommended version was released 22 days ago.

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.

Release notes
Package name: fs-extra from fs-extra GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • 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 upgrade PRs.

For more information:

@mhill-os

Copy link
Copy Markdown
Author

Merge Risk: High

This major version upgrade of fs-extra from 9.x to 11.x introduces significant breaking changes, including API modifications and dropped support for older Node.js versions.

Key Breaking Changes:

  • fs.read() & fs.write() Promises (v10.0.0): The promisified versions of fs.read() and fs.write() now return an object ({ buffer, bytesRead } or { buffer, bytesWritten }) instead of just the buffer. Code using these promises must be updated to access the buffer from the returned object.
  • Node.js Version Support: Support for older, end-of-life Node.js versions has been removed. While not explicitly stated for each release, the library follows a pattern of dropping Node versions with major updates. Users on older Node.js runtimes (likely below Node.js 12) will need to upgrade their environment.
  • move() Behavior (v10.0.0): The move() function will now throw an error if the destination path is a subdirectory of the source path.
  • ESM and exports field (v11.0.0): The package now includes an exports field in package.json to improve ESM support, which can affect module resolution in some build tools and TypeScript projects.

Recommendation:
Due to the changes in the promise API for read() and write(), a careful review of the code is required. Search your codebase for promise-based calls to these functions (.then() or await) and update them to handle the new object return structure. Verify your Node.js runtime version is compatible.

Source: CHANGELOG.md

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

@mhill-os

mhill-os commented Jul 21, 2026

Copy link
Copy Markdown
Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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