|
| 1 | +## 0.28.0-dev.0 (2023-07-26) |
| 2 | + |
| 3 | +Feedback on this change appreciated as this is a dev release before 0.28.0 stable! |
| 4 | + |
| 5 | +### New |
| 6 | + |
| 7 | +* ValueStream: |
| 8 | + * Add `lastEventOrNull` getter to `ValueStream`, |
| 9 | + which returns the last emitted event (either data/value or error event), or `null`. |
| 10 | + * Add `isLastEventValue`, `isLastEventError` and `errorAndStackTraceOrNull` |
| 11 | + extension getters to `ValueStream`, to check the kind of the last emitted event is data/value or error. |
| 12 | + * Update documentation. |
| 13 | + |
| 14 | +* ReplayStream: |
| 15 | + * Add `errorAndStackTraces` to `ReplayStream`, which returns a list of emitted `ErrorAndStackTrace`s. |
| 16 | + |
| 17 | +* Rename `Notification` and `Kind` to better reflect their purpose, |
| 18 | + and to avoid confusion with [Flutter's Notification class](https://api.flutter.dev/flutter/widgets/Notification-class.html). |
| 19 | + * Rename `Notification` to `StreamNotification` |
| 20 | + * `Notification.onData` to `StreamNotification.data`. |
| 21 | + * `Notification.onDone` to `StreamNotification.done`. |
| 22 | + * `Notification.onError` to `StreamNotification.error`. |
| 23 | + * Rename `Kind` to `NotificationKind` |
| 24 | + * `Kind.onData` to `NotificationKind.data`. |
| 25 | + * `Kind.onError` to `NotificationKind.error`. |
| 26 | + * `Kind.onDone` to `NotificationKind.done`. |
| 27 | + * Introduce `DataNotification`, `ErrorNotification` and `DoneNotification` as the subclasses of `StreamNotification`. |
| 28 | + * Convert `isOnData`, `isOnError`, `isOnDone`, `requireData` to extension getters on `StreamNotification`, |
| 29 | + they are now named `isData`, `isError`, `isDone` and `requireDataValue`. |
| 30 | + * Add extensions on `StreamNotification`: `dataValueOrNull`, `requireErrorAndStackTrace`, `errorAndStackTraceOrNull` getters and `when` method. |
| 31 | + |
| 32 | +### Changed |
| 33 | + |
| 34 | +* Accept Dart SDK versions above 3.0. |
| 35 | + |
| 36 | +### Documentation |
| 37 | + |
| 38 | +* Update and fix documentation. |
| 39 | +* Fix README example (thanks to [@wurikiji](https://github.com/wurikiji)). |
| 40 | +* Update Flutter example (thanks to [@hoangchungk53qx1](https://github.com/hoangchungk53qx1)). |
| 41 | + |
1 | 42 | ## 0.27.7 (2022-11-16)
|
2 | 43 |
|
3 | 44 | ### Fixed
|
|
0 commit comments