npm / fs-extra
fs-extra
What changed in fs-extra 3 to 11, from its official release notes, upgrade guides and advisories. Also covers @types/fs-extra. Sources checked 2026-11-30.
4 breaking2 new APIs and options1 behavior and defaults12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initfs-extra 1112 changes
Fixes and other changes 12
Properly handles read errors, such as permission errors, in emptyDir methods.
Allows renaming filenames that differ only by Unicode normalization on APFS.
Creating a symlink when the destination already exists as a broken symlink now returns the proper EEXIST error.
Fixes handling of symlinked destination ancestors when copying.
Fixes handling of symlinked destination ancestors when moving.
Fixes identical file detection on Windows for ensureLink and ensureLinkSync.
Fixes identical file detection on Windows for ensureSymlink and ensureSymlinkSync.
Fixes error handling in timestamp preservation code.
Fixes a potential file descriptor leak when synchronous timestamp preservation encounters an error.
Calling ensureSymlink with a relative srcPath no longer fails when the symlink already exists.
Calling ensureSymlinkSync with a relative srcPath no longer fails when the symlink already exists.
Fixes copying a symlink when the destination is a symlink to the same target.
fs-extra 37 changes
Breaking changes 4
Removed support for setting the default spaces for JSON-writing methods.
When throws is false, filesystem errors are no longer thrown.
On Windows, cases that previously failed silently now throw an EBUSY error.
Now outputs minified JSON by default; set spaces to 2 to override.
New APIs and options 2
Added as a replacement for the deprecated fs.exists, with a normal error-first callback signature.
Added as an alias to fs.existsSync for completeness.
Behavior and default changes 1
Asynchronous native fs methods and fs-extra methods return a promise when no callback is passed.