Commit 2b306d0
committed
Update events to v2
Matches the Node 8 API. v1 matched Node 4, and some new methods have
since been introduced (notably `prepend[Once]Listener`).
The major bump in `events` was because:
- There is a breaking change in the `listeners()` method regarding
`once()` listeners nodejs/node#6881
I think it's super unlikely to affect anyone, but there you go.
- The gzipped size almost doubled from 1.1KB to 2.1KB. It'll shrink a
bit because some patches have since landed in Node that remove some
code, but it'll still be bigger than it was because of the new
methods.
Deets:
https://github.com/Gozala/events/releases/tag/v2.0.01 parent 1b67bde commit 2b306d0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments