0.28.0-dev.0
Pre-release
Pre-release
https://pub.dev/packages/rxdart/versions/0.28.0-dev.0
Feedback on this change appreciated as this is a dev release before 0.28.0 stable!
New
-
ValueStream:
- Add
lastEventOrNull
getter toValueStream
,
which returns the last emitted event (either data/value or error event), ornull
. - Add
isLastEventValue
,isLastEventError
anderrorAndStackTraceOrNull
extension getters toValueStream
, to check the kind of the last emitted event is data/value or error. - Update documentation.
- Add
-
ReplayStream:
- Add
errorAndStackTraces
toReplayStream
, which returns a list of emittedErrorAndStackTrace
s.
- Add
-
Rename
Notification
andKind
to better reflect their purpose,
and to avoid confusion with Flutter's Notification class.- Rename
Notification
toStreamNotification
Notification.onData
toStreamNotification.data
.Notification.onDone
toStreamNotification.done
.Notification.onError
toStreamNotification.error
.
- Rename
Kind
toNotificationKind
Kind.onData
toNotificationKind.data
.Kind.onError
toNotificationKind.error
.Kind.onDone
toNotificationKind.done
.
- Introduce
DataNotification
,ErrorNotification
andDoneNotification
as the subclasses ofStreamNotification
. - Convert
isOnData
,isOnError
,isOnDone
,requireData
to extension getters onStreamNotification
,
they are now namedisData
,isError
,isDone
andrequireDataValue
. - Add extensions on
StreamNotification
:dataValueOrNull
,requireErrorAndStackTrace
,errorAndStackTraceOrNull
getters andwhen
method.
- Rename
Changed
- Accept Dart SDK versions above 3.0.
Documentation
- Update and fix documentation.
- Fix README example (thanks to @wurikiji).
- Update Flutter example (thanks to @hoangchungk53qx1).
What's Changed
- docs(using): fix typo by @hoc081098 in #704
- improve
Notification.toString()
, add tests for Notifications by @hoc081098 in #703 - fix example on README by @wurikiji in #712
- Create .github/dependabot.yml by @hoc081098 in #714
- update example github_search by @hoangchungk53qx1 in #717
- Fix lints and accept Dart SDK versions above 3.0 by @hoc081098 in #721
- feat(ValueStream): add lastEventOrNull, isLastEventValue, isLastEventError, errorAndStackTraceOrNull by @hoc081098 in #729
- refactor(utils): rename Notification to StreamNotification, Kind to NotificationKind by @hoc081098 in #731
- docs: update docs by @hoc081098 in #733
- chore(publish): prepare for v0.28.0-dev.0 by @hoc081098 in #734
New Contributors
- @wurikiji made their first contribution in #712
- @hoangchungk53qx1 made their first contribution in #717
Full Changelog: 0.27.7...0.28.0-dev.0