0.28.0-dev.0
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
lastEventOrNullgetter toValueStream, which returns the last emitted event (either data/value or error event), ornull. - Add
isLastEventValue,isLastEventErroranderrorAndStackTraceOrNullextension getters toValueStream, to check the kind of the last emitted event is data/value or error. - Update documentation.
- Add
-
ReplayStream:
- Add
errorAndStackTracestoReplayStream, which returns a list of emittedErrorAndStackTraces.
- Add
-
Rename
NotificationandKindto better reflect their purpose, and to avoid confusion with Flutter's Notification class.- Rename
NotificationtoStreamNotificationNotification.onDatatoStreamNotification.data.Notification.onDonetoStreamNotification.done.Notification.onErrortoStreamNotification.error.
- Rename
KindtoNotificationKindKind.onDatatoNotificationKind.data.Kind.onErrortoNotificationKind.error.Kind.onDonetoNotificationKind.done.
- Introduce
DataNotification,ErrorNotificationandDoneNotificationas the subclasses ofStreamNotification. - Convert
isOnData,isOnError,isOnDone,requireDatato extension getters onStreamNotification, they are now namedisData,isError,isDoneandrequireDataValue. - Add extensions on
StreamNotification:dataValueOrNull,requireErrorAndStackTrace,errorAndStackTraceOrNullgetters andwhenmethod.
- 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 https://github.com/ReactiveX/rxdart/pull/704
- improve
Notification.toString(), add tests for Notifications by @hoc081098 in https://github.com/ReactiveX/rxdart/pull/703 - fix example on README by @wurikiji in https://github.com/ReactiveX/rxdart/pull/712
- Create .github/dependabot.yml by @hoc081098 in https://github.com/ReactiveX/rxdart/pull/714
- update example github_search by @hoangchungk53qx1 in https://github.com/ReactiveX/rxdart/pull/717
- Fix lints and accept Dart SDK versions above 3.0 by @hoc081098 in https://github.com/ReactiveX/rxdart/pull/721
- feat(ValueStream): add lastEventOrNull, isLastEventValue, isLastEventError, errorAndStackTraceOrNull by @hoc081098 in https://github.com/ReactiveX/rxdart/pull/729
- refactor(utils): rename Notification to StreamNotification, Kind to NotificationKind by @hoc081098 in https://github.com/ReactiveX/rxdart/pull/731
- docs: update docs by @hoc081098 in https://github.com/ReactiveX/rxdart/pull/733
- chore(publish): prepare for v0.28.0-dev.0 by @hoc081098 in https://github.com/ReactiveX/rxdart/pull/734
New Contributors
- @wurikiji made their first contribution in https://github.com/ReactiveX/rxdart/pull/712
- @hoangchungk53qx1 made their first contribution in https://github.com/ReactiveX/rxdart/pull/717
Full Changelog: https://github.com/ReactiveX/rxdart/compare/0.27.7...0.28.0-dev.0