diff --git a/CHANGELOG.md b/CHANGELOG.md index 44e1454..3055fe3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.2.0-nullsafety.3 - Feb 1, 2021 + +- `DistinctValueStream`: change return type of `Null get errorAndStackTrace` (previous is `Never`). +- Add `DistinctValueStreamExtensions`: easily access value and error. +- Add `distinctValue` extension method: convert a `Stream` to a single-subscription `DistinctValueStream`. + ## 1.2.0-nullsafety.2 - Jan 9, 2021 - **Breaking change**: Any errors from upstream and from `equals` callback will be not added to Stream. diff --git a/lib/src/distinct_value_stream.dart b/lib/src/distinct_value_stream.dart index d3e4893..2269d3b 100644 --- a/lib/src/distinct_value_stream.dart +++ b/lib/src/distinct_value_stream.dart @@ -21,7 +21,7 @@ abstract class DistinctValueStream extends NotReplayValueStream { ValueWrapper get valueWrapper; } -/// Extensions to access value and error easily. +/// Extensions to easily access value and error. extension DistinctValueStreamExtensions on DistinctValueStream { /// A flag that turns true as soon as at least one event has been emitted. /// Always returns `true`. diff --git a/pubspec.yaml b/pubspec.yaml index 33621bd..d8a3548 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: distinct_value_connectable_stream description: Distinct value connectable stream for RxDart, useful for BLoC pattern author: Petrus Nguyễn Thái Học -version: 1.2.0-nullsafety.2 +version: 1.2.0-nullsafety.3 homepage: https://github.com/hoc081098/distinct_value_connectable_stream.git repository: https://github.com/hoc081098/distinct_value_connectable_stream.git issue_tracker: https://github.com/hoc081098/distinct_value_connectable_stream/issues