Socket
Socket
Sign inDemoInstall

mini-signals

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2Next

2.0.0

Diff

Changelog

Source

2.0.0 (2023-03-29)

  • .add is now type safe. The type of the listener is checked against the type variable in the constructor as well as an optional "flavor".
  • .add now returns a node reference instead of a object. The returned node cannot be removed directly; it must be from the signal using MiniSignal#detach.
  • .once has been removed. Use .add instead with a call to .detach in the callback.
  • The thisArg parameter has been removed from .add. Use .add with a call to .bind or (preferred) use an arrow function with a closure.
  • .dispatch now throws an error if the signal is already dispatching.
  • .detach now throws an error if node reference was not generated from the signal.
hypercubed
published 2.0.0-2 •

hypercubed
published 2.0.0-1 •

hypercubed
published 2.0.0-0 •

hypercubed
published 1.2.0 •

Changelog

Source

1.2.0 (2017-09-11)

  • Added TS typings
hypercubed
published 1.1.1 •

Changelog

Source

1.1.1 (2016-02-07)

  • Remove once listeners before calling, prevents loops
hypercubed
published 1.1.0 •

Changelog

Source

1.1.0 (2015-11-03)

  • Added optional thisArg on MiniSignal#add and MiniSignal#once
  • Added MiniSignal#has
  • MiniSignal#detach now checks if node bound to itself
hypercubed
published 1.0.2 •

hypercubed
published 1.0.1 •

hypercubed
published 0.0.8 •

2Next
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc