Skip to content

Commit 18fd718

Browse files
authored
chore(publish): prepare for v0.28.0-dev.0 (#734)
🔥
1 parent 35ef342 commit 18fd718

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
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+
142
## 0.27.7 (2022-11-16)
243

344
### Fixed

0 commit comments

Comments
 (0)