Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Enable v8 snapshot for this module - #119

Merged
as-cii merged 8 commits into
masterfrom
as-enable-snapshot
Mar 3, 2017
Merged

as-cii merged 8 commits into
masterfrom
as-enable-snapshot

Conversation

@as-cii

@as-cii as-cii commented Mar 1, 2017

Copy link
Copy Markdown
Contributor

This pull request changes path watcher so that it can be required while generating the snapshot. To do so we have:

  1. Changed HandleWatcher and PathWatcher to stop using Node's EventEmitter and replace it with event-kit.
  2. Moved the binding.setCallback call inside the watch function, so that we execute it just once the first time watch is called.

@as-cii
as-cii force-pushed the as-enable-snapshot branch from fcebe54 to 1ba64dc Compare March 1, 2017 10:19
@as-cii

as-cii commented Mar 1, 2017

Copy link
Copy Markdown
Contributor Author

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

@as-cii as-cii mentioned this pull request Mar 2, 2017
13 tasks done
@nathansobo

Copy link
Copy Markdown
Contributor

👍

@as-cii
as-cii merged commit d10b2c2 into master Mar 3, 2017
@as-cii
as-cii deleted the as-enable-snapshot branch March 3, 2017 11:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants