npm / @nestjs/event-emitter
@nestjs/event-emitter
What changed in @nestjs/event-emitter 3 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
2 breaking5 new APIs and options1 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@nestjs/event-emitter 129 changes
Breaking changes 2
Imports from build internals are no longer resolvable; import from the package root instead.
The minimum Node.js version is now 20.19.0; older runtimes cannot require the package from a CommonJS app.
New APIs and options 5
The package root exports the metadata key written by @OnEvent, allowing custom decorators to produce listener metadata the loader understands.
The package root now re-exports EventEmitter2; ESM consumers should import it from this package rather than eventemitter2.
This public interface is now exported from the package root instead of requiring a deep import.
This public interface is now exported from the package root instead of requiring a deep import.
This public interface is now exported from the package root instead of requiring a deep import.
Behavior and default changes 1
A plain CommonJS Nest app can continue to load the package with require() on supported Node.js runtimes.
Fixes and other changes 1
Fixes EventEmitter2 being typed as any.
@nestjs/event-emitter 31 changes
Fixes and other changes 1
Request-scoped listeners inherit the request context id.