Skip to content

Releases: socketio/emitter

3.1.2

26 Apr 05:33
8a2ece1
Compare
Choose a tag to compare

Bug Fixes

  • point towards the CommonJS types (e6aa1a3)

Links

3.1.1

10 Apr 14:54
c68478d
Compare
Choose a tag to compare

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

4.0.0

22 Nov 13:21
4810bd7
Compare
Choose a tag to compare

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

17 Apr 21:23
ab6a6d4
Compare
Choose a tag to compare

Features

Diff: 3.0.0...3.1.0

3.0.0

17 Apr 21:23
cd703fe
Compare
Choose a tag to compare

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