Skip to content

0.27.5

Compare
Choose a tag to compare
@hoc081098 hoc081098 released this 16 Jul 11:24
· 97 commits to master since this release
e13dad0

https://pub.dev/packages/rxdart/versions/0.27.5

Bug fixes

  • Fix issue #683: Throws runtime type error when using extension
    methods on a Stream<R> but its type annotation is Stream<T>, R is a subtype of T
    (covariance issue with StreamTransformer).

    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
    via streamTransformer.bind(stream) to avoid this issue.

  • Fix concatEager: activeSubscription should be changed to next subscription.

Code refactoring

  • Change return type of pairwise to Stream<List<T>>.

What's Changed

New Contributors

Full Changelog: 0.27.4...0.27.5