- Fix ESM build by using named
EventEmitter
export
- Fix published types
- Include TypeScript declaration file (
.d.ts
)
- Make sure we manually emit an event for a directory when one of its direct children is updated
- Internal rewrite in TypeScript
- Git tag is now the built version, for easier direct installation without the npm registry
- Rename
.files
to.paths
, as it contains directories, not just files - Include an additional
isNew
boolean in+
events, indicating whether this is a new or an updated file/directory - No longer call the
filter
function on the root watched directory - No longer include the root watched directory under the
''
in theMap
, nor emit+
events for it
- Rollup was erroneously added as a dependency and is now a dev dependency as it should be
- Add some more type checking
- Ignore
error
events fromFSWatcher
, as Windows seems to like emitting these sometimes
- Report directory stats and events
- Expose latest stats for all files and directories as
watch.files
- Expose pre-deletion stats for deleted files and directories as part of
-
event watch.init()
simply returns aPromise
resolving toundefined
now thatwatch.files
is available
- Initial release