Skip to content

Commit 6f7f7db

Browse files
committed
3.2.0
1 parent 2789456 commit 6f7f7db

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

History.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 3.2.0
2+
3+
- Add `events.once` from Node.js 11.13.0.
4+
5+
To use this function, Promises must be supported in the environment. Use a polyfill like `es6-promise` if you support older browsers.
6+
17
# 3.1.0 (2020-01-08)
28

39
`events` now matches the Node.js 11.12.0 API.

Readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
> Node's event emitter for all engines.
44
5-
This implements the Node.js [`events`](http://nodejs.org/api/events.html) module for environments that do not have it, like browsers.
5+
This implements the Node.js [`events`][node.js docs] module for environments that do not have it, like browsers.
66

7-
> `events` currently matches the **Node.js 11.12.0** API.
7+
> `events` currently matches the **Node.js 11.13.0** API.
88
99
Note that the `events` module uses ES5 features. If you need to support very old browsers like IE8, use a shim like [`es5-shim`](https://www.npmjs.com/package/es5-shim). You need both the shim and the sham versions of `es5-shim`.
1010

@@ -34,7 +34,7 @@ ee.emit('message', 'hello world')
3434

3535
## API
3636

37-
See the [Node.js EventEmitter docs](http://nodejs.org/api/events.html). `events` currently matches the Node.js 11.12.0 API.
37+
See the [Node.js EventEmitter docs][node.js docs]. `events` currently matches the Node.js 11.13.0 API.
3838

3939
## Contributing
4040

@@ -46,3 +46,4 @@ If there is a difference in behaviour between Node.js's `events` module and this
4646
## License
4747

4848
[MIT](./LICENSE)
49+
[node.js docs]: https://nodejs.org/dist/v11.13.0/docs/api/events.html

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "events",
3-
"id": "events",
4-
"version": "3.1.0",
3+
"version": "3.2.0",
54
"description": "Node's event emitter for all engines.",
65
"keywords": [
76
"events",

0 commit comments

Comments
 (0)