- Fix: add export to interface #128 (by @multivoltage)
- Catch fs.watch exceptions #125 (by @campersau )
- Fix can't listener error event on incorrect file/directory #123 (by @leijuns)
- Fixed the type definition of callback function. (by @xieyuheng)
- Optimization to the guard function. (by @wmertens)
- Switched to Github Actions for CI.
- 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_PLATFORM
error 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.exists
andfs.stat
. - Prevent redundant events on Windows when creating file/directory.
Special thanks to Timo Tijhof
- Drop support for node < 6.0
- Add
ready
event for the watcher. - Lots of bug fixed.
- Fix function detection.
- Emit
close
event after calling.close()
. - Don't emit any events after close.
- Change default
delay
to 200ms.
- Fix async function detection.
- Add
delay
option and set default to 100ms.
- Fix recursive watch with filter option.
- Remove duplicate events from a composed watcher.
- Accept Buffer filename.
- Add support for
encoding
option.
- The
filter
option can be of either Function or RegExp type.
- The
recursive
option is default to befalse
. - The callback function will always provide an event name.
- Returns a fs.FSWatcher like object.