Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Releases: proc7ts/fun-events

Release 4.1.0

29 Mar 07:08
Compare
Choose a tag to compare

New Features

  • afterEventOf(...event) function construct an AfterEvent registrar always sending event.
  • 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

18 Mar 03:56
Compare
Choose a tag to compare

Packaging

  • Build CommonJS main module instead of UMD

Release 4.0.0

12 Mar 09:00
Compare
Choose a tag to compare

This is a rework of the API.

The exported symbols and interfaces are renamed:

  • Events are sent by EventSender and received by EventReceiver.
  • The EventKeeper keeps the last sent event.
  • The event receiver registrar function interfaces are called OnEvent and AfterEvent.
  • 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 becomes true 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

01 Mar 09:03
Compare
Choose a tag to compare

New Features

  • Add CachedEventProducer extending EventProducer and implementing CachedEventSource.
  • Build event producers from event sources with EventProducer.from() and CachedEventProducer.from() static methods.
  • Allow to sync with nested event sources using extended ValueTracker.by() and ValueSync.sync() methods.
  • Allow directional ValueSync synchronization with ValueTracker by passing optional direction argument to sync() method.

Release 3.2.1

17 Feb 08:16
Compare
Choose a tag to compare

Packaging

  • Drop browser bundle.
  • Do not minify bundles.
  • Make bundles terser-friendly.

Incompatible Changes

  • EventInterest.none is replaced with noEventInterest() function
  • EventSource.on is renamed to onEventKey
  • CachedEventSource.each is renamed to afterEventKey
  • StateUpdater is renamed to StateConsumer
  • StateUpdater namespace is removed
  • EventInterest is a class now and sgould be constructed with eventInterest() function

Release 3.1.1

02 Feb 09:32
Compare
Choose a tag to compare

API Changes

  • Laxed event source API.
    EventSource.on() and CachedEventSource.each() are just an event consumer registration methods, not necessarily an EventProducer implementations.

Release 3.1.0

01 Feb 06:30
Compare
Choose a tag to compare

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 implementing EventProducer.

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

13 Jan 10:34
Compare
Choose a tag to compare

Fixes

  • Update documentation with the latest changes
  • DomEventDispatcher: Remove DOM elements-specific signatures

Release 3.0.0

10 Jan 05:06
Compare
Choose a tag to compare

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

23 Dec 04:30
59d1627
Compare
Choose a tag to compare

Packaging

  • Main module is ES6 now