Socket
Socket
Sign inDemoInstall

@socket.io/component-emitter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socket.io/component-emitter - npm Package Versions

3.1.2

Diff

Changelog

Source

3.1.2 (2024-04-26)

Bug Fixes

  • point towards the CommonJS types (e6aa1a3)
darrachequesne
published 3.1.1 •

Changelog

Source

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".

darrachequesne
published 4.0.0 •

Changelog

Source

4.0.0 (2022-11-22)

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");
  }
}
darrachequesne
published 3.1.0 •

Changelog

Source

3.1.0 (2022-04-17)

Features

darrachequesne
published 3.0.0 •

Changelog

Source

3.0.0 (2021-10-14)

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"

1.3.0 / 2018-04-15

  • removed bower support
  • expose emitter on exports
  • prevent de-optimization from using arguments

1.2.1 / 2016-04-18

  • enable client side use

1.2.0 / 2014-02-12

  • prefix events with $ to support object prototype method names

1.1.3 / 2014-06-20

  • republish for npm
  • add LICENSE file

1.1.2 / 2014-02-10

  • package: rename to "component-emitter"
  • package: update "main" and "component" fields
  • Add license to Readme (same format as the other components)
  • created .npmignore
  • travis stuff

1.1.1 / 2013-12-01

  • fix .once adding .on to the listener
  • docs: Emitter#off()
  • component: add .repo prop

1.1.0 / 2013-10-20

  • add .addEventListener() and .removeEventListener() aliases

1.0.1 / 2013-06-27

  • add support for legacy ie

1.0.0 / 2013-02-26

  • add .off() support for removing all listeners

0.0.6 / 2012-10-08

  • add this._callbacks initialization to prevent funky gotcha

0.0.5 / 2012-09-07

  • fix Emitter.call(this) usage

0.0.3 / 2012-07-11

  • add .listeners()
  • rename .has() to .hasListeners()

0.0.2 / 2012-06-28

  • fix .off() with .once()-registered callbacks
darrachequesne
published 2.0.0 •

Changelog

Source

3.0.0 (2021-10-14)

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"

1.3.0 / 2018-04-15

  • removed bower support
  • expose emitter on exports
  • prevent de-optimization from using arguments

1.2.1 / 2016-04-18

  • enable client side use

1.2.0 / 2014-02-12

  • prefix events with $ to support object prototype method names

1.1.3 / 2014-06-20

  • republish for npm
  • add LICENSE file

1.1.2 / 2014-02-10

  • package: rename to "component-emitter"
  • package: update "main" and "component" fields
  • Add license to Readme (same format as the other components)
  • created .npmignore
  • travis stuff

1.1.1 / 2013-12-01

  • fix .once adding .on to the listener
  • docs: Emitter#off()
  • component: add .repo prop

1.1.0 / 2013-10-20

  • add .addEventListener() and .removeEventListener() aliases

1.0.1 / 2013-06-27

  • add support for legacy ie

1.0.0 / 2013-02-26

  • add .off() support for removing all listeners

0.0.6 / 2012-10-08

  • add this._callbacks initialization to prevent funky gotcha

0.0.5 / 2012-09-07

  • fix Emitter.call(this) usage

0.0.3 / 2012-07-11

  • add .listeners()
  • rename .has() to .hasListeners()

0.0.2 / 2012-06-28

  • fix .off() with .once()-registered callbacks
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc