Skip to content

Commit

Permalink
3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jul 22, 2020
1 parent 2789456 commit 6f7f7db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions History.md
@@ -1,3 +1,9 @@
# 3.2.0

- Add `events.once` from Node.js 11.13.0.

To use this function, Promises must be supported in the environment. Use a polyfill like `es6-promise` if you support older browsers.

# 3.1.0 (2020-01-08)

`events` now matches the Node.js 11.12.0 API.
Expand Down
7 changes: 4 additions & 3 deletions Readme.md
Expand Up @@ -2,9 +2,9 @@

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

> `events` currently matches the **Node.js 11.12.0** API.
> `events` currently matches the **Node.js 11.13.0** API.
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`.

Expand Down Expand Up @@ -34,7 +34,7 @@ ee.emit('message', 'hello world')

## API

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

## Contributing

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

[MIT](./LICENSE)
[node.js docs]: https://nodejs.org/dist/v11.13.0/docs/api/events.html
3 changes: 1 addition & 2 deletions package.json
@@ -1,7 +1,6 @@
{
"name": "events",
"id": "events",
"version": "3.1.0",
"version": "3.2.0",
"description": "Node's event emitter for all engines.",
"keywords": [
"events",
Expand Down

0 comments on commit 6f7f7db

Please sign in to comment.