Releases: socketio/emitter
Releases · socketio/emitter
3.1.2
3.1.1
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"
.
Links
- Diff: 4.0.0...3.1.1
4.0.0
BREAKING CHANGES
emitReserved()
is renamed to _emitReserved()
in order to enable proper mangling.
New syntax:
import { Emitter } from "@socket.io/component-emitter";
class MyEmitter extends Emitter {
foo() {
this._emitReserved("input");
}
}
Diff: 3.1.0...4.0.0
3.1.0
3.0.0
Features
- add support for typed events (84397cb)
BREAKING CHANGES
- we now use a named export instead of a default export
// before
import Emitter from "@socket.io/component-emitter"
// after
import { Emitter } from "@socket.io/component-emitter"
Diff: 2.0.0...3.0.0