All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
For changes before version 2.2.0, please see the commit history
- ignoring the
objectify
option in wildcard mode (#265) @DigitalBrainJS - waitFor listeners leakage issue (#262) @DigitalBrainJS
- removed eval usage to avoid Content Security Policy issue (#259) @DigitalBrainJS
- increased emitter performance in wildcard mode @DigitalBrainJS
- Symbol events support for simple and wildcard emitters #201 @DigitalBrainJS
emitter.hasListeners
method #251 @DigitalBrainJSemitter.listenTo
&emitter.stopListeningTo
methods for listening to an external event emitter of any kind and propagate its events through itself using optional reducers/filters @DigitalBrainJS- async listeners for invoking handlers using setImmediate|setTimeout|nextTick (see
async
,promisify
andnextTicks
options for subscription methods) @DigitalBrainJS - Ability for subscription methods to return a listener object to simplify subscription management (see the
objectify
option) @DigitalBrainJS - micro optimizations for performance reasons @DigitalBrainJS
- Event name/reference normalization for the
this.event
property #162 @DigitalBrainJS - Bug with data arguments for
Any
listeners #254 @DigitalBrainJS emitter.eventNames
now supports wildcard emitters #214 @DigitalBrainJS
- emitter.getMaxListeners() & EventEmitter2.defaultMaxListeners() @DigitalBrainJS
- EventEmitter2.once for feature parity with EventEmitter.once @DigitalBrainJS
- #153 - global scope is no longer defaulted to the
window
variable, now supports workers. @DigitalBrainJS
waitFor
method to wait for events using promises @DigitalBrainJS
ignoreErrors
errors option in constructor @DigitalBrainJS
- Allow
removeAllListeners
to receiveundefined
as an argument. @majames
- Correct listeners and listenersAny typings @cartant
- Use process.emitWarning if it is available (new Node.js) @SimenB
- Fix for EventAndListener in typescript definition. @thisboyiscrazy
- New Node 6 APIs such as
prependListener
andeventNames
. @sebakerckhof
- Fixed
emitAsync
when usingonce
. @Moeriki
- Changed Typescript definition to take array of strings for event name. @thisboyiscrazy
- Typescript definition now uses
EventEmitter2
instead ofEventEmitter2.eitter
. @gitawego
- Typescript definition for
removeAllListeners
can take an array. @gitawego
- Added missing parameters for emitAsync in typescript definition. @stanleytakamatsu
- option to emit name of event that causes memory leak warning. @kwiateusz
- component.json and bower.json got updated with latest version. @kwiateusz
- missing globals in test suite got added in. @kwiateusz