event_bus
A simple Event Bus using Dart Streams for decoupling applications
2.0.1
275K downloads/mo
#720 most downloaded on pub.dev
marcojakob/dart-event-bus
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 3.6 years
Most releases are documented
notes for 18 of 23 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
23 releases · first in 2013
0 releases in the last 12 months
see the full history below
Release timeline
23 releases · Apr 2013 to Sep 2024Releases
latest 23-
2.0.123 Sep 2024 -
2.0.004 Mar 2021 -
1.1.121 Jan 2020 -
1.1.027 Mar 2019Release notes
Open source →- Add constructor for custom controllers like RxDart Subject (see #21).
- Remove
newkeyword.
Release notes
Open source →- Add constructor for custom controllers like RxDart Subject (see #21).
- Remove
newkeyword.
-
1.0.313 Feb 2019 -
1.0.213 Feb 2019Nothing published for this version
-
1.0.107 Jul 2018Nothing published for this version
-
1.0.006 Jul 2018Release notes
Open source →- Migrate to Dart 2.
- BREAKING CHANGE: The
onmethod 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
EventBusis now hierarchical so that listeners will also receive events of subtypes of the specified type. This is exactly the way thatHierarchicalEventBusworked. SoHierarchicalEventBushas been removed. Use the normalEventBusinstead.
Release notes
Open source →- Migrate to Dart 2.
- BREAKING CHANGE: The
onmethod 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
EventBusis now hierarchical so that listeners will also receive events of subtypes of the specified type. This is exactly the way thatHierarchicalEventBusworked. SoHierarchicalEventBushas been removed. Use the normalEventBusinstead.
-
0.4.113 May 2015 -
0.4.003 May 2015Release notes
Open source →- BREAKING CHANGE: Moved the
HierarchicalEventBusto a separate library to
be able to removedart:mirrorsfrom the normalEventBus.
Users of the hierarchical event bus must importevent_bus_hierarchical.dart
and replace the use of the factory constructorEventBus.hierarchical()with
theHierarchicalEventBusconstructor.
Release notes
Open source →- BREAKING CHANGE: Moved the
HierarchicalEventBusto a separate library to be able to removedart:mirrorsfrom the normalEventBus.
Users of the hierarchical event bus must importevent_bus_hierarchical.dartand replace the use of the factory constructorEventBus.hierarchical()with theHierarchicalEventBusconstructor.
- BREAKING CHANGE: Moved the
-
0.3.008 Sep 2014Release notes
Open source →- 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.
Release notes
Open source →- 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.
- BREAKING CHANGE: Changed and simplified the EventBus API. We can now dispatch
-
0.3.0+108 Sep 2014Nothing published for this version
-
0.3.0+208 Sep 2014Nothing published for this version
-
0.3.0+309 Mar 2015Nothing published for this version
-
0.2.411 Nov 2013 -
0.2.316 Sep 2013 -
0.2.216 Sep 2013 -
0.2.101 Jul 2013 -
0.2.006 Jun 2013Release notes
Open source →- 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.
-
0.1.319 May 2013 -
0.1.217 May 2013Release notes
Open source →- 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.
-
0.1.129 Apr 2013 -
0.1.029 Apr 2013