Gozala/events
### [`v3.3.0`](https://togithub.com/Gozala/events/blob/master/History.md#330)
[Compare Source](https://togithub.com/Gozala/events/compare/v3.2.0...v3.3.0)
- Support EventTarget emitters in `events.once` from Node.js 12.11.0.
Now you can use the `events.once` function with objects that implement the EventTarget interface. This interface is used widely in
the DOM and other web APIs.
```js
var events = require('events');
var assert = require('assert');
async function connect() {
var ws = new WebSocket('wss://example.com');
await events.once(ws, 'open');
assert(ws.readyState === WebSocket.OPEN);
}
async function onClick() {
await events.once(document.body, 'click');
alert('you clicked the page!');
}
```
### [`v3.2.0`](https://togithub.com/Gozala/events/blob/master/History.md#320)
[Compare Source](https://togithub.com/Gozala/events/compare/v3.1.0...v3.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.
Configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box.
This PR contains the following updates:
^3.0.0
->^3.1.0
Release Notes
Gozala/events
### [`v3.3.0`](https://togithub.com/Gozala/events/blob/master/History.md#330) [Compare Source](https://togithub.com/Gozala/events/compare/v3.2.0...v3.3.0) - Support EventTarget emitters in `events.once` from Node.js 12.11.0. Now you can use the `events.once` function with objects that implement the EventTarget interface. This interface is used widely in the DOM and other web APIs. ```js var events = require('events'); var assert = require('assert'); async function connect() { var ws = new WebSocket('wss://example.com'); await events.once(ws, 'open'); assert(ws.readyState === WebSocket.OPEN); } async function onClick() { await events.once(document.body, 'click'); alert('you clicked the page!'); } ``` ### [`v3.2.0`](https://togithub.com/Gozala/events/blob/master/History.md#320) [Compare Source](https://togithub.com/Gozala/events/compare/v3.1.0...v3.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.Configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.