rxdart_ext 0.3.0 copy "rxdart_ext: ^0.3.0" to clipboard
rxdart_ext: ^0.3.0 copied to clipboard

Some extension methods and classes built on top of RxDart - RxDart extension.

0.3.0 - Jun 16, 2024 #

  • Accept Dart SDK versions above 3.0 (sdk: '>=2.12.0 <4.0.0').

  • Only support rxdart: ^0.28.0.

  • state_stream and not_replay_value_stream:

    • Implement lastEventOrNull for NotReplayValueStream and StateStream.
  • single:

    • RxSingles.using
      • Convert all required positional parameters to required named parameters.
      • The disposer is now called after the future returned from StreamSubscription.cancel completes.
    • Remove Single.fromStream constructor, use Single.unsafeFromStream instead.
  • Docs: update broken doc link (thanks to @dungngminh).

0.2.9 - Apr 20, 2023 #

  • operators:

0.2.8 - Jan 26, 2023 #

  • single:

    • Fix Single.unsafeFromStream docs
  • state_stream:

    • Introduce MutableStateStream<T>.
    • StateSubject<T> now implements MutableStateStream<T>.
    • Introduce extension methods on MutableStateStream<T>:
      • update().
      • getAndUpdate().
      • updateAndGet().
  • Several docs and example improvements.

0.2.7 - Nov 21, 2022 #

  • single:

    • Add RxSingles.using.
    • Add RxSingles.forkJoin3..forkJoin9 and RxSingles.forkJoinList.
    • Deprecate Single.fromStream, introduce Single.unsafeFromStream.
  • state_stream:

    • Internal refactoring of StateSubject, fix StateSubject.addStream.
    • ValueStreamController.sink now processes events correctly.
  • Subject.stream now returns a read-only Stream. Previously, Subject.stream was identical to the Subject, so we could add events to it, for example: (subject.stream as Sink<T>).add(event). This behavior is now disallowed, and will throw a TypeError if attempted. Use Subject.sink/Subject itself for adding events.

  • Several docs and example improvements.

0.2.6 - Oct 26, 2022 #

  • single:

    • Add Single.toEitherSingle().
    • Add Single.flatMapEitherSingle().
  • Update docs.

0.2.5 - Jul 27, 2022 #

  • state_stream:
    • StateSubject.stream now returns a StateStream.
    • Update docs for StateSubject and StateStream.

0.2.4 - Jul 24, 2022 #

  • Fix StateStream.select5..select9: miss passing equals param.

0.2.3 - Jul 24, 2022 #

  • Update rxdart to ^0.27.5.
  • Fix: remove @internal on StateStream.asBroadcastStateStream extension method.
  • Stream.toSingleSubscriptionStream() now returns a new Stream every call instead of the input stream even if it's a single-subscription Stream.

0.2.2 - Jun 1, 2022 #

  • Revert path to ^1.8.0 (because flutter_test from Flutter sdk (>= 2.5.0) depends on path 1.8.0 or 1.8.1).

0.2.1 - Jun 1, 2022 #

  • Update rxdart to 0.27.4.

  • Update path to 1.8.2.

  • operators:

    • Remove Stream.whereNotNull() (moved to rxdart 0.27.4 as standard operator: mapNotNull).
    • Remove Stream.mapNotNull() (moved to rxdart 0.27.4 as standard operator: whereNotNull).

0.2.0 - Mar 23, 2022 #

  • utils:

    • Add DisposableMixin. This mixin adds an easy option to dispose Streams without having to store a StreamSubscription variable. (Thanks to Jop Middelkamp).
    • Add Equality typedef.
  • state_stream:

    • Rename StateStream.defaultEquals to StateStream.defaultEquality.
    • Add StateStream selectors (SelectorsStateStreamExtensions): StateStream.select, StateStream.select2 to StateStream.select9 and StateStream.selectMany.
      • Select a sub state slice from state stream. Inspirited by NgRx memoized selector
      • Selectors can compute derived data, to store the minimal possible state.
      • Selectors are efficient. A selector is not recomputed unless one of its arguments changes.
      • When using the select, select2 to select9, selectMany functions, keeps track of the latest arguments in which your selector function was invoked. Because selectors are pure functions, the last result can be returned when the arguments match without re-invoking your selector function. This can provide performance benefits, particularly with selectors that perform expensive computation. This practice is known as memoization.

0.1.3 - Nov 23, 2021 #

  • Update rxdart to 0.27.3.
  • Refactor NotReplayValueConnectableStream and StateConnectableStream by using rxdart' s AbstractConnectableStream.
  • Add StateStream.asBroadcastStateStream extension method.
  • Add Future<void> delay(int milliseconds) function.

0.1.2 - Sep 11, 2021 #

  • Update dependencies
    • rxdart to 0.27.2
    • meta to 1.7.0
  • Split into multiple libraries:
    • not_replay_value_stream
    • operators
    • single
    • state_stream
    • utils
    • rxdart_ext: includes all the above.
  • utils: Add Sink<void>.addNull() extension.
  • state_stream:
    • Add StateStream
    • Add StateSubject.
    • Add StateConnectableStream, Stream.publishState(), Stream.shareState().
  • single: Add Single.retry().
  • operators:
    • Add Stream.doneOnError().
    • Add Stream.flatMapBatches().
    • Add Stream.flatMapBatchesSingle().
  • Internal: migrated from pedantic to lints.

0.1.1 - Jul 8, 2021 #

  • Stable release: see change logs of 0.1.1-dev.x versions.
    • Add Single type.
    • Operators refactoring.

0.1.1-dev.3 - Jul 7, 2021 #

  • Add Single.asVoid.
  • Refactoring operators.

0.1.1-dev.2 - Jul 5, 2021 #

  • Add Single.mapTo.
  • Refactoring operators.

0.1.1-dev.1 - Jun 10, 2021 #

  • Change return type of Stream.ignoreElements() to Stream<Never>.
  • Refactor Single
    • Add Single.fromStream.
    • Remove Single.zip2 (move to RxSingles).
    • Add operators
      • debug.
      • doOnCancel.
      • doOnData.
      • doOnError.
      • doOnListen.
      • onErrorResumeNextSingle.
      • onErrorResumeSingle.
      • onErrorReturn.
      • onErrorReturnWith.
    • Add RxSingles
      • zip2.
      • forkJoin2.

0.1.1-dev.0 - May 14, 2021 #

  • Add Single.

0.1.0 - May 7, 2021 #

  • Support rxdart: ^0.27.0.
  • Add asVoid.

0.0.1 - Feb 28, 2021 #

  • Add doOn extension.
  • Update dependencies to latest version.

0.0.1-nullsafety.7 - Feb 8, 2021 #

  • Add whereNotNull.
  • Update ignoreElements and ignoreErrors.
  • Update ForwardingSinkMixin.
  • Rename ListenNullStreamExtension to CollectStreamExtension.
  • Update docs.

0.0.1-nullsafety.6 - Jan 31, 2021 #

  • Enhance debug operator: prints current stacktrace, including location, line and member if not provide the identifier (ie. it is null).

0.0.1-nullsafety.5 - Jan 31, 2021 #

  • Added ValueStreamController: like a single-subscription StreamController except the stream of this controller is a single-subscription NotReplayValueStream.
  • Added toNotReplayValueStream extension: converts a Stream to a single-subscription NotReplayValueStream.

0.0.1-nullsafety.4 - Jan 23, 2021 #

  • Now, return type of collect is StreamSubscription<T>.

0.0.1-nullsafety.3 - Jan 21, 2021 #

  • Added distinctBy.
  • Removed generic type of CollectStreamSubscription.

0.0.1-nullsafety.2 - Jan 08, 2021 #

  • Update dependency: rxdart: ^0.26.0-nullsafety.1.

0.0.1-nullsafety.1 - Dec 24, 2020 #

  • Fix missing exports.

0.0.1-nullsafety.0 - Dec 24, 2020 #

  • Initial version.
13
likes
145
pub points
90%
popularity
screenshot

Publisher

unverified uploader

Some extension methods and classes built on top of RxDart - RxDart extension.

Repository (GitHub)
View/report issues

Topics

#rxdart #reactive-programming #streams #observables #rx

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (license)

Dependencies

dart_either, meta, path, rxdart, stack_trace

More

Packages that depend on rxdart_ext