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

Commit 2b306d0

Browse files
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.0
1 parent 1b67bde commit 2b306d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"constants-browserify": "^1.0.0",
1616
"crypto-browserify": "^3.11.0",
1717
"domain-browser": "^1.1.1",
18-
"events": "^1.0.0",
18+
"events": "^2.0.0",
1919
"https-browserify": "^1.0.0",
2020
"os-browserify": "^0.3.0",
2121
"path-browserify": "0.0.0",

0 commit comments

Comments
 (0)