0.27.5
https://pub.dev/packages/rxdart/versions/0.27.5
Bug fixes
-
Fix issue #683: Throws runtime type error when using extension
methods on aStream<R>
but its type annotation isStream<T>
,R
is a subtype ofT
(covariance issue withStreamTransformer
).Stream<num> s1 = Stream<int>.fromIterable([1, 2, 3]); // throws "type 'SwitchMapStreamTransformer<num, num>' is not a subtype of type 'StreamTransformer<int, num>' of 'streamTransformer'" s1.switchMap((v) => Stream.value(v)); Stream<int?> s2 = Stream<int>.fromIterable([1, 2, 3]); // throws "type 'SwitchMapStreamTransformer<int?, int?>' is not a subtype of type 'StreamTransformer<int, int?>' of 'streamTransformer'" s2.switchMap((v) => Stream.value(v));
Extension methods were previously implemented via
stream.transform(streamTransformer)
, now
viastreamTransformer.bind(stream)
to avoid this issue. -
Fix
concatEager
:activeSubscription
should be changed to next subscription.
Code refactoring
- Change return type of
pairwise
toStream<List<T>>
.
What's Changed
- Fix ConcatEagerStream bug by @Stitch-Taotao in #682
- Fix #683 by @hoc081098 in #684
- refactor(pairwise): change return type of pairwise to Stream<List> by @hoc081098 in #685
- Update CHANGELOG.md by @hoc081098 in #686
- prepare for v0.27.5 by @hoc081098 in #688
New Contributors
- @Stitch-Taotao made their first contribution in #682
Full Changelog: 0.27.4...0.27.5