Releases: marcojakob/dart-event-bus
Releases · marcojakob/dart-event-bus
v2.0.1
v2.0.0
Migrate to null safety.
v1.1.0
v1.0.3
- Cleanup and update dependencies.
v1.0.0
- 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. ChangemyEventBus.on(MyEventType)
tomyEventBus.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 thatHierarchicalEventBus
worked. SoHierarchicalEventBus
has been removed. Use the normalEventBus
instead.
v0.4.1
v0.4.0
- BREAKING CHANGE: Moved the
HierarchicalEventBus
to a separate library to
be able to removedart:mirrors
from the normalEventBus
.
Users of the hierarchical event bus must importevent_bus_hierarchical.dart
and replace the use of the factory constructorEventBus.hierarchical()
with
theHierarchicalEventBus
constructor.
v0.3.0
- 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
Update to dart libraries 0.9.0