Skip to content

Releases: marcojakob/dart-event-bus

v2.0.1

23 Sep 10:59
Compare
Choose a tag to compare
  • Update environment dependency to support up to Dart v3.

v2.0.0

04 Mar 17:50
ac8027b
Compare
Choose a tag to compare

Migrate to null safety.

v1.1.0

27 Mar 22:39
Compare
Choose a tag to compare
  • Add constructor for custom controllers like RxDart Subject (see #21).
  • Remove new keyword.

v1.0.3

13 Feb 23:09
Compare
Choose a tag to compare
  • Cleanup and update dependencies.

v1.0.0

06 Jul 11:38
Compare
Choose a tag to compare
  • Migrate to Dart 2.
  • BREAKING CHANGE: The on method now has a generic type. The type must be passed as a type argument instead of a method parameter. Change myEventBus.on(MyEventType) to myEventBus.on<MyEventType>().
  • BREAKING CHANGE: Every EventBus is now hierarchical so that listeners will also receive events of subtypes of the specified type. This is exactly the way that HierarchicalEventBus worked. So HierarchicalEventBus has been removed. Use the normal EventBus instead.

v0.4.1

13 May 19:45
Compare
Choose a tag to compare
  • Fix Issue #13: Improve on() stream when no type is specified

v0.4.0

03 May 18:07
Compare
Choose a tag to compare
  • BREAKING CHANGE: Moved the HierarchicalEventBus to a separate library to
    be able to remove dart:mirrors from the normal EventBus.
    Users of the hierarchical event bus must import event_bus_hierarchical.dart
    and replace the use of the factory constructor EventBus.hierarchical() with
    the HierarchicalEventBus constructor.

v0.3.0

08 Sep 13:33
Compare
Choose a tag to compare
  • BREAKING CHANGE: Changed and simplified the EventBus API. We can now dispatch
    any Dart object as an event. Before, we had to create an EventType for every
    type of event we wanted to fire. Now we can use any class as an event.
    Listeners can (optionally) filter events by that class.
  • Added a way to create a hierarchical event bus that filters events by
    class and their subclasses. This currently only works with classes
    extending other classes and not with implementing an interface.
    We might have to wait for
    https://code.google.com/p/dart/issues/detail?id=20756 to enable interfaces.
  • BREAKING CHANGE: Default to async mode instead of sync. This now matches the
    of the Dart streams.
  • BREAKING CHANGE: Removed LoggingEventBus. Reason is that logging can easily
    be implemented with a event listener that listens for all events and logs
    them.

v0.2.4

11 Nov 10:04
Compare
Choose a tag to compare

Update to dart libraries 0.9.0

v0.2.3

16 Sep 21:35
Compare
Choose a tag to compare
  • Fix issue #8: Add logging of events that flow through event bus