(none)
(none)
(none)
- Breaking: possible breaking change on imports, now exports
index.cjsandindex.mjs - Feature: Added
MiniSignalEmitter
- Feature: adding
.dispatchSerialand.dispatchParallel
.addis now type safe. The type of the listener is checked against the type variable in the constructor as well as an optional "flavor"..addnow returns a node reference instead of a object. The returned node cannot be removed directly; it must be from the signal usingMiniSignal#detach..oncehas been removed. Use.addinstead with a call to.detachin the callback.- The
thisArgparameter has been removed from.add. Use.addwith a call to.bindor (preferred) use an arrow function with a closure. .dispatchnow throws an error if the signal is already dispatching..detachnow throws an error if node reference was not generated from the signal.
- Added TS typings
- Remove once listeners before calling, prevents loops
`
- Added optional
thisArgonMiniSignal#addandMiniSignal#once - Added
MiniSignal#has MiniSignal#detachnow checks if node bound to itself