PackageTrack
Sign in Get early access

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 2024
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 23
  1. 2.0.1 23 Sep 2024
    Release notes
    • Update environment dependency to support up to Dart v3.
    Open source →
    Release notes
    • Update environment dependency to support up to Dart v3.
    Open source →
  2. 2.0.0 04 Mar 2021
    Release notes

    Migrate to null safety.

    Open source →
    Release notes
    • Migrate to null safety.
    Open source →
  3. 1.1.1 21 Jan 2020
    Release notes
    • Fix homepage URL.
    Open source →
  4. 1.1.0 27 Mar 2019
    Release notes
    • Add constructor for custom controllers like RxDart Subject (see #21).
    • Remove new keyword.
    Open source →
    Release notes
    • Add constructor for custom controllers like RxDart Subject (see #21).
    • Remove new keyword.
    Open source →
  5. 1.0.3 13 Feb 2019
    Release notes
    • Cleanup and update dependencies.
    Open source →
    Release notes
    • Cleanup and update dependencies.
    Open source →
  6. 1.0.2 13 Feb 2019

    Nothing published for this version

  7. 1.0.1 07 Jul 2018

    Nothing published for this version

  8. 1.0.0 06 Jul 2018
    Release notes
    • 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.
    Open source →
    Release notes
    • 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.
    Open source →
  9. 0.4.1 13 May 2015
    Release notes
    • Fix Issue #13: Improve on() stream when no type is specified
    Open source →
    Release notes
    • Fix Issue #13: Improve on() stream when no type is specified
    Open source →
  10. 0.4.0 03 May 2015
    Release notes
    • 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.
    Open source →
    Release notes
    • 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.
    Open source →
  11. 0.3.0 08 Sep 2014
    Release notes
    • 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.
    Open source →
    Release notes
    • 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.
    Open source →
  12. 0.3.0+1 08 Sep 2014

    Nothing published for this version

  13. 0.3.0+2 08 Sep 2014

    Nothing published for this version

  14. 0.3.0+3 09 Mar 2015

    Nothing published for this version

  15. 0.2.4 11 Nov 2013
    Release notes

    Update to dart libraries 0.9.0

    Open source →
    Release notes
    • Update to dart libraries 0.9.0.
    Open source →
  16. 0.2.3 16 Sep 2013
    Release notes
    • Fix issue #8: Add logging of events that flow through event bus
    Open source →
  17. 0.2.2 16 Sep 2013
    Release notes

    Change default of SimpleEventBus to sync (same as factory in EventBus)

    Open source →
    Release notes
    • Change default of SimpleEventBus to sync (same as factory in EventBus)
    Open source →
  18. 0.2.1 01 Jul 2013
    Release notes
    • Fix issue #6: Fire should accept null as data
    Open source →
  19. 0.2.0 06 Jun 2013
    Release notes
    • 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.
    Open source →
  20. 0.1.3 19 May 2013
    Release notes
    • Removed all occurrences of @override
    Open source →
  21. 0.1.2 17 May 2013
    Release notes
    • 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.
    Open source →
  22. 0.1.1 29 Apr 2013
    Release notes
    • Minor change in README to fix image links.
    Open source →
  23. 0.1.0 29 Apr 2013
    Release notes
    • Initial Version.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive