Closed as-cii closed 7 years ago
After merging this I believe we should bump the major version in case someone is using PathWatcher
as an event emitter. In Atom we re-export only File
and Directory
and, since their interface hasn't changed as part of this pull request, I feel like we can be pretty confident that upgrading this module won't break any third party packages.
/cc: @nathansobo
👍
This pull request changes path watcher so that it can be required while generating the snapshot. To do so we have:
HandleWatcher
andPathWatcher
to stop using Node'sEventEmitter
and replace it withevent-kit
.binding.setCallback
call inside thewatch
function, so that we execute it just once the first timewatch
is called.