- Fix homepage URL.
- Add constructor for custom controllers like RxDart Subject (see #21).
- Remove
new
keyword.
- Cleanup and update dependencies.
- 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.
- Fix Issue #13: Improve on() stream when no type is specified
- 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.
- 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: The EventBus constructor defaults to async instead of sync!!. This matches the constructor of the Dart Streams and an async event bus might also be the more common use case.
- BREAKING CHANGE: Removed LoggingEventBus. Reason is that logging can easily be implemented with a event listener that listens for all events and logs them.
- Update example.
- Update readme with new links.
- Update dependencies.
- Update to dart libraries 0.9.0.
- Fix issue #8: Add logging of events that flow through event bus
- Change default of SimpleEventBus to sync (same as factory in EventBus)
- Fix issue #6: Fire should accept null as data
- Update to new Dart SDK v0.5.13.1_r23552.
- Using Darts new Stream.broadcast() factory.
- Provide option for synchronous broadcasting of events.
- Update unit tests and example.
- Create demo page.
- Removed all occurrences of @override
- Change in README: contained wrong license (Apache instead of MIT).
- Remove import 'package:meta/meta.dart' in event_bus.dart as it is not needed and may cause an error if used as pub package.
- Minor change in README to fix image links.
- Initial Version.