- Reduce the released npm package size.
- Don't normalize events for Windows or it might lose essential events.
- Fix the functionality of the
.close()method before watcher is ready.
- Add an extra flag for skipping sub-directories inside filter function.
- Fix
ERR_FEATURE_UNAVAILABLE_ON_PLATFORMerror for Node v14.
- Types: Allow watching multiple files.
- Detect temporary editor files more wisely in order to avoid side effects on Windows.
- Add TypeScript support.
- Fix race condition of
fs.existsandfs.stat. - Prevent redundant events on Windows when creating file/directory.
Special thanks to Timo Tijhof
- Drop support for node < 6.0
- Add
readyevent for the watcher. - Lots of bug fixed.
- Fix function detection.
- Emit
closeevent after calling.close(). - Don't emit any events after close.
- Change default
delayto 200ms.
- Fix async function detection.
- Add
delayoption and set default to 100ms.
- Fix recursive watch with filter option.
- Remove duplicate events from a composed watcher.
- Accept Buffer filename.
- Add support for
encodingoption.
- The
filteroption can be of either Function or RegExp type.
- The
recursiveoption is default to befalse. - The callback function will always provide an event name.
- Returns a fs.FSWatcher like object.