|
1 | 1 | # Changelog
|
2 | 2 |
|
3 |
| -## Version 0.4.1 (2015-05-13) |
| 3 | +## Version 1.0.0 (2018-07-06) |
| 4 | + |
| 5 | +- Migrate to Dart 2. |
| 6 | +- 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>()`. |
| 7 | +- 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. |
4 | 8 |
|
5 |
| -* Fix Issue #13: Improve on() stream when no type is specified |
| 9 | +## Version 0.4.1 (2015-05-13) |
6 | 10 |
|
| 11 | +- Fix Issue #13: Improve on() stream when no type is specified |
7 | 12 |
|
8 | 13 | ## Version 0.4.0 (2015-05-03)
|
9 | 14 |
|
10 |
| -* BREAKING CHANGE: Moved the `HierarchicalEventBus` to a separate library to |
11 |
| - be able to remove `dart:mirrors` from the normal `EventBus`. |
| 15 | +- BREAKING CHANGE: Moved the `HierarchicalEventBus` to a separate library to |
| 16 | + be able to remove `dart:mirrors` from the normal `EventBus`. |
12 | 17 | Users of the hierarchical event bus must import `event_bus_hierarchical.dart`
|
13 | 18 | and replace the use of the factory constructor `EventBus.hierarchical()` with
|
14 | 19 | the `HierarchicalEventBus` constructor.
|
15 | 20 |
|
16 |
| - |
17 | 21 | ## Version 0.3.0 (2014-09-08)
|
18 | 22 |
|
19 |
| -* BREAKING CHANGE: Changed and simplified the EventBus API. We can now dispatch |
| 23 | +- BREAKING CHANGE: Changed and simplified the EventBus API. We can now dispatch |
20 | 24 | any Dart object as an event. Before, we had to create an EventType for every
|
21 |
| - type of event we wanted to fire. Now we can use any class as an event. |
| 25 | + type of event we wanted to fire. Now we can use any class as an event. |
22 | 26 | Listeners can (optionally) filter events by that class.
|
23 |
| -* Added a way to create a **hierarchical event bus** that filters events by |
24 |
| - class and their subclasses. This currently only works with classes |
25 |
| - **extending** other classes and not with **implementing** an interface. |
26 |
| - We might have to wait for |
| 27 | +- Added a way to create a **hierarchical event bus** that filters events by |
| 28 | + class and their subclasses. This currently only works with classes |
| 29 | + **extending** other classes and not with **implementing** an interface. |
| 30 | + We might have to wait for |
27 | 31 | https://code.google.com/p/dart/issues/detail?id=20756 to enable interfaces.
|
28 |
| -* BREAKING CHANGE: The EventBus constructor defaults to **async instead of |
29 |
| - sync**!!. This matches the constructor of the Dart Streams and an async event |
| 32 | +- BREAKING CHANGE: The EventBus constructor defaults to **async instead of |
| 33 | + sync**!!. This matches the constructor of the Dart Streams and an async event |
30 | 34 | bus might also be the more common use case.
|
31 |
| -* BREAKING CHANGE: Removed LoggingEventBus. Reason is that logging can easily |
| 35 | +- BREAKING CHANGE: Removed LoggingEventBus. Reason is that logging can easily |
32 | 36 | be implemented with a event listener that listens for all events and logs
|
33 | 37 | them.
|
34 | 38 |
|
35 |
| - |
36 | 39 | ## Version 0.2.5 (2014-09-03)
|
37 | 40 |
|
38 |
| -* Update example. |
39 |
| -* Update readme with new links. |
40 |
| -* Update dependencies. |
41 |
| - |
| 41 | +- Update example. |
| 42 | +- Update readme with new links. |
| 43 | +- Update dependencies. |
42 | 44 |
|
43 | 45 | ## Version 0.2.4 (2013-11-11)
|
44 | 46 |
|
45 |
| -* Update to dart libraries 0.9.0. |
46 |
| - |
| 47 | +- Update to dart libraries 0.9.0. |
47 | 48 |
|
48 | 49 | ## Version 0.2.3 (2013-09-16)
|
49 | 50 |
|
50 |
| -* Fix issue #8: Add logging of events that flow through event bus |
51 |
| - |
| 51 | +- Fix issue #8: Add logging of events that flow through event bus |
52 | 52 |
|
53 | 53 | ## Version 0.2.2 (2013-09-16)
|
54 | 54 |
|
55 |
| -* Change default of SimpleEventBus to sync (same as factory in EventBus) |
56 |
| - |
| 55 | +- Change default of SimpleEventBus to sync (same as factory in EventBus) |
57 | 56 |
|
58 | 57 | ## Version 0.2.1 (2013-07-01)
|
59 | 58 |
|
60 |
| -* Fix issue #6: Fire should accept null as data |
61 |
| - |
| 59 | +- Fix issue #6: Fire should accept null as data |
62 | 60 |
|
63 | 61 | ## Version 0.2.0 (2013-06-06)
|
64 | 62 |
|
65 |
| -* Update to new Dart SDK v0.5.13.1_r23552. |
66 |
| -* Using Darts new Stream.broadcast() factory. |
67 |
| -* Provide option for synchronous broadcasting of events. |
68 |
| -* Update unit tests and example. |
69 |
| -* Create demo page. |
70 |
| - |
71 |
| - |
72 |
| -## Version 0.1.3 (2013-05-19) |
| 63 | +- Update to new Dart SDK v0.5.13.1_r23552. |
| 64 | +- Using Darts new Stream.broadcast() factory. |
| 65 | +- Provide option for synchronous broadcasting of events. |
| 66 | +- Update unit tests and example. |
| 67 | +- Create demo page. |
73 | 68 |
|
74 |
| -* Removed all occurrences of @override |
| 69 | +## Version 0.1.3 (2013-05-19) |
75 | 70 |
|
| 71 | +- Removed all occurrences of @override |
76 | 72 |
|
77 | 73 | ## Version 0.1.2 (2013-05-17)
|
78 | 74 |
|
79 |
| -* Change in README: contained wrong license (Apache instead of MIT). |
80 |
| -* Remove import 'package:meta/meta.dart' in event_bus.dart as it is not needed |
| 75 | +- Change in README: contained wrong license (Apache instead of MIT). |
| 76 | +- Remove import 'package:meta/meta.dart' in event_bus.dart as it is not needed |
81 | 77 | and may cause an error if used as pub package.
|
82 | 78 |
|
83 |
| - |
84 | 79 | ## Version 0.1.1 (2013-04-29)
|
85 | 80 |
|
86 |
| -* Minor change in README to fix image links. |
87 |
| - |
| 81 | +- Minor change in README to fix image links. |
88 | 82 |
|
89 | 83 | ## Version 0.1.0 (2013-04-29)
|
90 | 84 |
|
91 |
| -* Initial Version. |
| 85 | +- Initial Version. |
0 commit comments