primus/eventemitter3
### [`v5.0.0`](https://togithub.com/primus/eventemitter3/releases/tag/5.0.0)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.7...5.0.0)
### Breaking changes
- The `umd` directory has been renamed to `dist` and the `eventemitter3.min.js`
bundle to `eventemitter3.umd.min.js` ([#252](https://togithub.com/primus/eventemitter3/issues/252)).
- Importing the module with the TypeScript-specific
`import EventEmitter = require('eventemitter3')` syntax is no longer
supported ([#252](https://togithub.com/primus/eventemitter3/issues/252)).
### Features
- Added ESM support ([#252](https://togithub.com/primus/eventemitter3/issues/252)).
### [`v4.0.7`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.7)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.6...4.0.7)
### Bug fixes
- Refined types to improve extends behavior ([#234](https://togithub.com/primus/eventemitter3/issues/234)).
### [`v4.0.6`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.6)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.5...4.0.6)
### Bug fixes
- Fixed TypeScript type definitions ([#232](https://togithub.com/primus/eventemitter3/issues/232)).
### [`v4.0.5`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.5)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.4...4.0.5)
### Bug fixes
- Fixed TypeScript type definitions ([#231](https://togithub.com/primus/eventemitter3/issues/231)).
### [`v4.0.4`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.4)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.3...4.0.4)
### Bug fixes
- Fixed compatibility with TypeScript 3.9 ([#226](https://togithub.com/primus/eventemitter3/issues/226)).
### [`v4.0.3`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.3)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.2...4.0.3)
### Bug fixes
- Fixed regressions introduced in version 4.0.1 and 4.0.2 ([#224](https://togithub.com/primus/eventemitter3/issues/224)).
### [`v4.0.2`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.2)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.1...4.0.2)
### Bug fixes
- Fixed regressions introduced in version 4.0.1 ([#223](https://togithub.com/primus/eventemitter3/issues/223)).
### [`v4.0.1`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.1)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.0...4.0.1)
### Bug fixes
- Improved TypeScript type definitions ([#219](https://togithub.com/primus/eventemitter3/issues/219)).
### [`v4.0.0`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.0)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/3.1.2...4.0.0)
### Breaking changes
- TypeScript type definitions now require TypeScript 3.
### [`v3.1.2`](https://togithub.com/primus/eventemitter3/releases/tag/3.1.2)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/3.1.1...3.1.2)
### Bug fixes
- Revert "\[ts] Improve `ListenerFn` interface ([#193](https://togithub.com/primus/eventemitter3/issues/193))" ([`0843125`](https://togithub.com/primus/eventemitter3/commit/08431250)).
### [`v3.1.1`](https://togithub.com/primus/eventemitter3/releases/tag/3.1.1)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/3.1.0...3.1.1)
### Bug fixes
- The `ListenerFn` interface has been updated to support async functions ([#193](https://togithub.com/primus/eventemitter3/issues/193)).
### [`v3.1.0`](https://togithub.com/primus/eventemitter3/releases/tag/3.1.0)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/3.0.1...3.1.0)
### Features
- A source map is now included in the `umd` folder of the npm package ([`a053f61`](https://togithub.com/primus/eventemitter3/commit/a053f61)).
- TypeScript type definitions have been updated to add the ability to specify
supported events ([#159](https://togithub.com/primus/eventemitter3/issues/159)).
### [`v3.0.1`](https://togithub.com/primus/eventemitter3/releases/tag/3.0.1)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/3.0.0...3.0.1)
### Bug fixes
- Fixed TypeScript type definitions ([#135](https://togithub.com/primus/eventemitter3/issues/135)).
### [`v3.0.0`](https://togithub.com/primus/eventemitter3/releases/tag/3.0.0)
[Compare Source](https://togithub.com/primus/eventemitter3/compare/2.0.3...3.0.0)
### Breaking changes
- `EventEmitter.prototype.listeners()` always returns an array. Use `EventEmitter.prototype.listenerCount()` for existence checking.
- `EventEmitter.prototype.setMaxListeners()` has been removed. It was a noop and documented as not supported.
- Bower and Component are no longer supported.
### Features
- Added `EventEmitter.prototype.listenerCount()`.
### [`v2.0.3`](https://togithub.com/primus/eventemitter3/releases/tag/2.0.3): UMD bundle
[Compare Source](https://togithub.com/primus/eventemitter3/compare/2.0.2...2.0.3)
The npm package now contains a minified UMD bundle.
### [`v2.0.2`](https://togithub.com/primus/eventemitter3/releases/tag/2.0.2): TypeScript definitions
[Compare Source](https://togithub.com/primus/eventemitter3/compare/2.0.1...2.0.2)
This release ships with TypeScript type definitions. Thanks to [@delta62](https://togithub.com/delta62), [@Stubb0rn](https://togithub.com/Stubb0rn), and [@roblav96](https://togithub.com/roblav96) who helped making this release possible!
### [`v2.0.1`](https://togithub.com/primus/eventemitter3/releases/tag/2.0.1): ES6 import
[Compare Source](https://togithub.com/primus/eventemitter3/compare/2.0.0...2.0.1)
This release comes with a minor fix that allows `EventEmitter` to be imported as module namespace in ES6-compatible environments.
```js
import { EventEmitter } from 'eventemitter3';
```
### [`v2.0.0`](https://togithub.com/primus/eventemitter3/releases/tag/2.0.0): Performance improvements
[Compare Source](https://togithub.com/primus/eventemitter3/compare/1.2.0...2.0.0)
This release comes with some nice optimizations which make `2.0.0` our fastest release ever. If you are curious you can see the results of our benchmarks here: https://github.com/primus/eventemitter3/blob/master/benchmarks/README.md.
#### Breaking changes
The reason for the major version bump is that there is a small breaking change.
With `eventemitter3@<2.0.0` you could inherit from the `EventEmitter` class without calling the super constructor.
```js
var EventEmitter = require('eventemitter3');
function MyEmitter() {}
MyEmitter.prototype = Object.create(EventEmitter.prototype, {
constructor: { value: MyEmitter }
});
```
With `eventemitter3@2.0.0` this no longer works. Super constructor invocation is required.
```js
var EventEmitter = require('eventemitter3');
function MyEmitter() {
EventEmitter.call(this);
}
MyEmitter.prototype = Object.create(EventEmitter.prototype, {
constructor: { value: MyEmitter }
});
```
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^1.1.1
->^5.0.0
Release Notes
primus/eventemitter3
### [`v5.0.0`](https://togithub.com/primus/eventemitter3/releases/tag/5.0.0) [Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.7...5.0.0) ### Breaking changes - The `umd` directory has been renamed to `dist` and the `eventemitter3.min.js` bundle to `eventemitter3.umd.min.js` ([#252](https://togithub.com/primus/eventemitter3/issues/252)). - Importing the module with the TypeScript-specific `import EventEmitter = require('eventemitter3')` syntax is no longer supported ([#252](https://togithub.com/primus/eventemitter3/issues/252)). ### Features - Added ESM support ([#252](https://togithub.com/primus/eventemitter3/issues/252)). ### [`v4.0.7`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.7) [Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.6...4.0.7) ### Bug fixes - Refined types to improve extends behavior ([#234](https://togithub.com/primus/eventemitter3/issues/234)). ### [`v4.0.6`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.6) [Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.5...4.0.6) ### Bug fixes - Fixed TypeScript type definitions ([#232](https://togithub.com/primus/eventemitter3/issues/232)). ### [`v4.0.5`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.5) [Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.4...4.0.5) ### Bug fixes - Fixed TypeScript type definitions ([#231](https://togithub.com/primus/eventemitter3/issues/231)). ### [`v4.0.4`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.4) [Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.3...4.0.4) ### Bug fixes - Fixed compatibility with TypeScript 3.9 ([#226](https://togithub.com/primus/eventemitter3/issues/226)). ### [`v4.0.3`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.3) [Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.2...4.0.3) ### Bug fixes - Fixed regressions introduced in version 4.0.1 and 4.0.2 ([#224](https://togithub.com/primus/eventemitter3/issues/224)). ### [`v4.0.2`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.2) [Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.1...4.0.2) ### Bug fixes - Fixed regressions introduced in version 4.0.1 ([#223](https://togithub.com/primus/eventemitter3/issues/223)). ### [`v4.0.1`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.1) [Compare Source](https://togithub.com/primus/eventemitter3/compare/4.0.0...4.0.1) ### Bug fixes - Improved TypeScript type definitions ([#219](https://togithub.com/primus/eventemitter3/issues/219)). ### [`v4.0.0`](https://togithub.com/primus/eventemitter3/releases/tag/4.0.0) [Compare Source](https://togithub.com/primus/eventemitter3/compare/3.1.2...4.0.0) ### Breaking changes - TypeScript type definitions now require TypeScript 3. ### [`v3.1.2`](https://togithub.com/primus/eventemitter3/releases/tag/3.1.2) [Compare Source](https://togithub.com/primus/eventemitter3/compare/3.1.1...3.1.2) ### Bug fixes - Revert "\[ts] Improve `ListenerFn` interface ([#193](https://togithub.com/primus/eventemitter3/issues/193))" ([`0843125`](https://togithub.com/primus/eventemitter3/commit/08431250)). ### [`v3.1.1`](https://togithub.com/primus/eventemitter3/releases/tag/3.1.1) [Compare Source](https://togithub.com/primus/eventemitter3/compare/3.1.0...3.1.1) ### Bug fixes - The `ListenerFn` interface has been updated to support async functions ([#193](https://togithub.com/primus/eventemitter3/issues/193)). ### [`v3.1.0`](https://togithub.com/primus/eventemitter3/releases/tag/3.1.0) [Compare Source](https://togithub.com/primus/eventemitter3/compare/3.0.1...3.1.0) ### Features - A source map is now included in the `umd` folder of the npm package ([`a053f61`](https://togithub.com/primus/eventemitter3/commit/a053f61)). - TypeScript type definitions have been updated to add the ability to specify supported events ([#159](https://togithub.com/primus/eventemitter3/issues/159)). ### [`v3.0.1`](https://togithub.com/primus/eventemitter3/releases/tag/3.0.1) [Compare Source](https://togithub.com/primus/eventemitter3/compare/3.0.0...3.0.1) ### Bug fixes - Fixed TypeScript type definitions ([#135](https://togithub.com/primus/eventemitter3/issues/135)). ### [`v3.0.0`](https://togithub.com/primus/eventemitter3/releases/tag/3.0.0) [Compare Source](https://togithub.com/primus/eventemitter3/compare/2.0.3...3.0.0) ### Breaking changes - `EventEmitter.prototype.listeners()` always returns an array. Use `EventEmitter.prototype.listenerCount()` for existence checking. - `EventEmitter.prototype.setMaxListeners()` has been removed. It was a noop and documented as not supported. - Bower and Component are no longer supported. ### Features - Added `EventEmitter.prototype.listenerCount()`. ### [`v2.0.3`](https://togithub.com/primus/eventemitter3/releases/tag/2.0.3): UMD bundle [Compare Source](https://togithub.com/primus/eventemitter3/compare/2.0.2...2.0.3) The npm package now contains a minified UMD bundle. ### [`v2.0.2`](https://togithub.com/primus/eventemitter3/releases/tag/2.0.2): TypeScript definitions [Compare Source](https://togithub.com/primus/eventemitter3/compare/2.0.1...2.0.2) This release ships with TypeScript type definitions. Thanks to [@delta62](https://togithub.com/delta62), [@Stubb0rn](https://togithub.com/Stubb0rn), and [@roblav96](https://togithub.com/roblav96) who helped making this release possible! ### [`v2.0.1`](https://togithub.com/primus/eventemitter3/releases/tag/2.0.1): ES6 import [Compare Source](https://togithub.com/primus/eventemitter3/compare/2.0.0...2.0.1) This release comes with a minor fix that allows `EventEmitter` to be imported as module namespace in ES6-compatible environments. ```js import { EventEmitter } from 'eventemitter3'; ``` ### [`v2.0.0`](https://togithub.com/primus/eventemitter3/releases/tag/2.0.0): Performance improvements [Compare Source](https://togithub.com/primus/eventemitter3/compare/1.2.0...2.0.0) This release comes with some nice optimizations which make `2.0.0` our fastest release ever. If you are curious you can see the results of our benchmarks here: https://github.com/primus/eventemitter3/blob/master/benchmarks/README.md. #### Breaking changes The reason for the major version bump is that there is a small breaking change. With `eventemitter3@<2.0.0` you could inherit from the `EventEmitter` class without calling the super constructor. ```js var EventEmitter = require('eventemitter3'); function MyEmitter() {} MyEmitter.prototype = Object.create(EventEmitter.prototype, { constructor: { value: MyEmitter } }); ``` With `eventemitter3@2.0.0` this no longer works. Super constructor invocation is required. ```js var EventEmitter = require('eventemitter3'); function MyEmitter() { EventEmitter.call(this); } MyEmitter.prototype = Object.create(EventEmitter.prototype, { constructor: { value: MyEmitter } }); ```Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.