unstale

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 init

@unstale/cli on npm

fs-extra 1112 changes

Fixes and other changes 12

  • Properly handles read errors, such as permission errors, in emptyDir methods.

    11.4.1release notes

  • Allows renaming filenames that differ only by Unicode normalization on APFS.

    11.4.1release notes

  • Creating a symlink when the destination already exists as a broken symlink now returns the proper EEXIST error.

    11.4.0release notes

  • Fixes handling of symlinked destination ancestors when copying.

    11.3.6release notes

  • Fixes handling of symlinked destination ancestors when moving.

    11.3.6release notes

  • Fixes identical file detection on Windows for ensureLink and ensureLinkSync.

    11.3.5release notes

  • Fixes identical file detection on Windows for ensureSymlink and ensureSymlinkSync.

    11.3.5release notes

  • Fixes error handling in timestamp preservation code.

    11.3.5release notes

  • Fixes a potential file descriptor leak when synchronous timestamp preservation encounters an error.

    11.3.5release notes

  • Calling ensureSymlink with a relative srcPath no longer fails when the symlink already exists.

    11.3.4release notes

  • Calling ensureSymlinkSync with a relative srcPath no longer fails when the symlink already exists.

    11.3.4release notes

  • Fixes copying a symlink when the destination is a symlink to the same target.

    11.3.3release notes

fs-extra 37 changes

Breaking changes 4

  • Removed support for setting the default spaces for JSON-writing methods.

    3.0.0release notes

  • When throws is false, filesystem errors are no longer thrown.

    3.0.0release notes

  • On Windows, cases that previously failed silently now throw an EBUSY error.

    3.0.0release notes

  • Now outputs minified JSON by default; set spaces to 2 to override.

    3.0.0release notes

New APIs and options 2

  • Added as a replacement for the deprecated fs.exists, with a normal error-first callback signature.

    3.0.0release notes

  • Added as an alias to fs.existsSync for completeness.

    3.0.0release notes

Behavior and default changes 1

  • Asynchronous native fs methods and fs-extra methods return a promise when no callback is passed.

    3.0.0release notes