This repository has been archived by the owner on Sep 17, 2023. It is now read-only.
Releases: proc7ts/fun-events
Releases · proc7ts/fun-events
Release 4.1.0
New Features
afterEventOf(...event)
function construct anAfterEvent
registrar always sendingevent
.ValueTracker.clear()
function to unregister all value receivers.
Bug Fix
OnEvent.thru()
transforms and sends all events received during receiver registration.
Release 4.0.1
Packaging
- Build CommonJS main module instead of UMD
Release 4.0.0
This is a rework of the API.
The exported symbols and interfaces are renamed:
- Events are sent by
EventSender
and received byEventReceiver
. - The
EventKeeper
keeps the last sent event. - The event receiver registrar function interfaces are called
OnEvent
andAfterEvent
. - The DOM events receiver registrar function interface is called
OnDomEvent
.
The EventInterest
is able to inform on events exhausting. Its interface is extended:
- The
done
property becomestrue
when events exhausted. - The
whenDone()
method registers events exhausting callbacks. - The
off()
method now accepts an optional reason of interest lost. It always informs on event exhausting now.
Release 3.3.0
New Features
- Add
CachedEventProducer
extendingEventProducer
and implementingCachedEventSource
. - Build event producers from event sources with
EventProducer.from()
andCachedEventProducer.from()
static methods. - Allow to sync with nested event sources using extended
ValueTracker.by()
andValueSync.sync()
methods. - Allow directional
ValueSync
synchronization withValueTracker
by passing optionaldirection
argument tosync()
method.
Release 3.2.1
Packaging
- Drop browser bundle.
- Do not minify bundles.
- Make bundles terser-friendly.
Incompatible Changes
EventInterest.none
is replaced withnoEventInterest()
functionEventSource.on
is renamed toonEventKey
CachedEventSource.each
is renamed toafterEventKey
StateUpdater
is renamed toStateConsumer
StateUpdater
namespace is removedEventInterest
is a class now and sgould be constructed witheventInterest()
function
Release 3.1.1
API Changes
- Laxed event source API.
EventSource.on()
andCachedEventSource.each()
are just an event consumer registration methods, not necessarily anEventProducer
implementations.
Release 3.1.0
New Features
- Make
EventProducer.thru()
consumer last in chain. Such consumer may be called multiple times or not called at all. - Remove
EventArgs
as they are no longer used. - Introduce
EventNotifier
. A minimal event emitter implementation not implementingEventProducer
.
Breaking Changes
- Removed
EventArgs
interface. EventProducer.thru()
behaviour changed. E.g. the events may be filtered, or the same event consumer may be called multiple times per event.
v3.0.2
Release 3.0.0
New Features
- DOM events support
Breaking Changes
this
parameter is no longer supported by event consumers.- Changed generic signatures to always contain event and return types.
Release 2.2.0
Packaging
- Main module is ES6 now