unstale

npm / chokidar

chokidar

What changed in chokidar 3 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

13 breaking3 deprecations3 new APIs and options3 performance1 behavior and defaults1 tooling26 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

chokidar 639 changes

Breaking changes 7

  • Errors from add() are emitted as error events instead of unhandled rejections.

    6.0.0release notes

  • Defaults to false with polling; an explicitly provided value is preserved.

    6.0.0release notes

  • Closing is terminal: add() now throws once closing has started, so construct a new watcher instead.

    6.0.0release notes

  • Returns a null-prototype object, allowing a watched directory named __proto__ to be listed; use Object.hasOwn() rather than hasOwnProperty() on the result.

    6.0.0release notes

  • Is no longer applied to directories above a path passed to watch() or add(), allowing missing paths to be watched through their parent; other entries remain filtered.

    6.0.0release notes

  • Requires Node.js 22.22 or later.

    6.0.0release notes

  • The constructor throws TypeError for invalid backend, atomic, depth, awaitWriteFinish, or polling interval options.

    6.0.0release notes

Deprecations 3

  • Remains available as a deprecated alias for pollingBinaryInterval; the new name wins when both are given.

    6.0.0release notes

  • Remains available as a deprecated alias for pollingInterval; the new name wins when both are given.

    6.0.0release notes

  • Remains available as a deprecated alias for backend: 'polling'.

    6.0.0release notes

New APIs and options 3

  • Adds backend selection with auto as the default, plus native, native-recursive, and polling choices.

    6.0.0release notes

  • Replaces binaryInterval as the binary-file polling interval option; when both names are given, the new name wins.

    6.0.0release notes

  • Replaces interval as the polling interval option; when both names are given, the new name wins.

    6.0.0release notes

Performance 1

  • Replaces fs.watchFile with Chokidar-owned polling loops shared across watchers at the fastest requested interval.

    6.0.0release notes

Fixes and other changes 25

  • Fixes watching an array of absolute file paths.

    6.0.0release notes

  • Unchanged files under directory activity no longer produce duplicate add events.

    6.0.0release notes

  • Fixes changes not being detected after the second save.

    6.0.0release notes

  • A change to one file under Deno no longer reports change for every file.

    6.0.0release notes

  • The newest differing change is replayed when the throttling window closes instead of being discarded.

    6.0.0release notes

  • Backend callbacks are treated as invalidations and confirmed against the filesystem before events are emitted, so the final state after a burst of changes matches the filesystem.

    6.0.0release notes

  • Fixes spurious unlink and unlinkDir events for every entry when watching a filesystem root.

    6.0.0release notes

  • Ignored files and directories are no longer watched in WSL.

    6.0.0release notes

  • Re-watching a path now honors ignoreInitial.

    6.0.0release notes

  • Fixes UNKNOWN errors from fs.watch on macOS sockets that prevented watching /var/run.

    6.0.0release notes

  • Watching a missing nested path no longer stops its parent directory's subtree from being watched.

    6.0.0release notes

  • Fixes EISDIR errors during the initial scan of network drives.

    6.0.0release notes

  • Files created between scanning a newly added directory and registering its watch are no longer missed.

    6.0.0release notes

  • Persistent watching no longer stops after a watched directory is removed.

    6.0.0release notes

  • Fixes a 100% CPU loop when the working directory containing a relatively watched file is deleted.

    6.0.0release notes

  • Relative ignored strings now resolve against cwd or the process working directory.

    6.0.0release notes

  • A symlink target passing through a regular file no longer disables watching its directory or prevents ready.

    6.0.0release notes

  • Removed files are reported as unlink instead of unlinkDir.

    6.0.0release notes

  • Fixes unwatching a deleted watched directory on Windows.

    6.0.0release notes

  • Native handles are shared across watchers and opened per directory rather than per file, fixing EBADF errors when watching many files on macOS.

    6.0.0release notes

  • Replacing a watched directory with a file of the same name no longer hangs the process.

    6.0.0release notes

  • Any path passed to watch() or add() is awaited from its nearest existing parent, so deletion followed by recreation is reported.

    6.0.0release notes

  • Files are detected even when their directory did not exist before watching.

    6.0.0release notes

  • Fixes false change events on Windows when many sibling files are written.

    6.0.0release notes

  • Fixes renaming a watched directory containing subdirectories on Windows.

    6.0.0release notes

chokidar 53 changes

Breaking changes 2

  • The package is ESM-only, so developers can no longer consume it as CommonJS.

    5.0.0release notes

  • The minimum supported Node.js version is v20.19.

    5.0.0release notes

Fixes and other changes 1

  • Types are more precise, improving the type information available to developers.

    5.0.0release notes

chokidar 45 changes

Breaking changes 3

  • Bundled fsevents was removed.

    4.0.0release notes

  • Glob support was removed, so developers can no longer use glob patterns with chokidar.

    4.0.0release notes

  • The minimum Node.js requirement is now v14+.

    4.0.0release notes

Behavior and default changes 1

Tooling 1

  • Emitted types are more precise, improving the type information available to developers.

    4.0.0release notes

chokidar 33 changes

Breaking changes 1

Performance 2