Closed renovate[bot] closed 1 year ago
Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 3.x
releases. But if you manually upgrade to 3.x
then Renovate will re-enable minor
and patch
updates automatically.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
This PR contains the following updates:
1.1.1
->3.3.0
Release Notes
Gozala/events (events)
### [`v3.3.0`](https://togithub.com/Gozala/events/blob/HEAD/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/HEAD/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. ### [`v3.1.0`](https://togithub.com/Gozala/events/blob/HEAD/History.md#310-2020-01-08) [Compare Source](https://togithub.com/Gozala/events/compare/v3.0.0...v3.1.0) `events` now matches the Node.js 11.12.0 API. - pass through return value in wrapped `emitter.once()` listeners Now, this works: ```js emitter.once('myevent', function () { return 1; }); var listener = emitter.rawListeners('myevent')[0] assert(listener() === 1); ``` Previously, `listener()` would return undefined regardless of the implementation. Ported from https://github.com/nodejs/node/commit/acc506c2d2771dab8d7bba6d3452bc5180dff7cf - Reduce code duplication in listener type check ([#67](https://togithub.com/Gozala/events/pull/67) by [@friederbluemle](https://togithub.com/friederbluemle)). - Improve `emitter.once()` performance in some engines ### [`v3.0.0`](https://togithub.com/Gozala/events/blob/HEAD/History.md#300-2018-05-25) [Compare Source](https://togithub.com/Gozala/events/compare/v2.1.0...v3.0.0) **This version drops support for IE8.** `events` no longer includes polyfills for ES5 features. If you need to support older environments, use an ES5 shim like [es5-shim](https://npmjs.com/package/es5-shim). Both the shim and sham versions of es5-shim are necessary. - Update to events code from Node.js 10.x - (semver major) Adds `off()` method - Port more tests from Node.js - Switch browser tests to airtap, making things more reliable ### [`v2.1.0`](https://togithub.com/Gozala/events/blob/HEAD/History.md#210-2018-05-25) [Compare Source](https://togithub.com/Gozala/events/compare/v2.0.0...v2.1.0) - add Emitter#rawListeners from Node.js v9.4 ### [`v2.0.0`](https://togithub.com/Gozala/events/blob/HEAD/History.md#200-2018-02-02) [Compare Source](https://togithub.com/Gozala/events/compare/v1.1.1...v2.0.0) - Update to events code from node.js 8.x - Adds `prependListener()` and `prependOnceListener()` - Adds `eventNames()` method - (semver major) Unwrap `once()` listeners in `listeners()` - copy tests from node.js Note that this version doubles the gzipped size, jumping from 1.1KB to 2.1KB, due to new methods and runtime performance improvements. Be aware of that when upgrading.Configuration
📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.