npm / eventemitter3
eventemitter3
What changed in eventemitter3 3 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
7 breaking2 new APIs and options1 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initeventemitter3 57 changes
Breaking changes 3
The umd directory was renamed to dist, changing the directory name developers use to locate the distribution.
The minified bundle was renamed from eventemitter3.min.js to eventemitter3.umd.min.js.
Importing the module with TypeScript's
import EventEmitter = require('eventemitter3')syntax is no longer supported.
New APIs and options 1
ESM support was added, allowing developers to use the module as an ES module.
Fixes and other changes 3
Restored TypeScript type definitions to their pre-5.0.2 state.
Fixed TypeScript type definitions.
Fixed type definitions for ESM imports.
eventemitter3 41 changes
Breaking changes 1
TypeScript type definitions now require TypeScript 3.
eventemitter3 35 changes
Breaking changes 3
Bower is no longer supported.
Component is no longer supported.
EventEmitter.prototype.setMaxListeners() has been removed; it was a noop and documented as not supported.
New APIs and options 1
Added EventEmitter.prototype.listenerCount() for checking whether listeners exist.
Behavior and default changes 1
EventEmitter.prototype.listeners() always returns an array; use listenerCount() for existence checking.