@socket.io/component-emitter
Advanced tools
Changelog
3.1.1 (2024-04-10)
This release contains a rework of the dual CommonJS/ES packages. Instead of relying on the .mjs
file extension, which causes some problems, we will use two package.json
files, one with "type": "commonjs"
and the other with "type": "module"
.
Changelog
3.0.0 (2021-10-14)
// before
import Emitter from "@socket.io/component-emitter"
// after
import { Emitter } from "@socket.io/component-emitter"
exports
arguments
$
to support object prototype method names.repo
prop.addEventListener()
and .removeEventListener()
aliases.off()
support for removing all listenersthis._callbacks
initialization to prevent funky gotchaEmitter.call(this)
usage.listeners()
.has()
to .hasListeners()
.off()
with .once()
-registered callbacksChangelog
3.0.0 (2021-10-14)
// before
import Emitter from "@socket.io/component-emitter"
// after
import { Emitter } from "@socket.io/component-emitter"
exports
arguments
$
to support object prototype method names.repo
prop.addEventListener()
and .removeEventListener()
aliases.off()
support for removing all listenersthis._callbacks
initialization to prevent funky gotchaEmitter.call(this)
usage.listeners()
.has()
to .hasListeners()
.off()
with .once()
-registered callbacks