rxdart_ext 0.3.0
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
lastEventOrNullforNotReplayValueStreamandStateStream.
- Implement
-
single:
RxSingles.using- Convert all required positional parameters to required named parameters.
- The
disposeris now called after the future returned fromStreamSubscription.cancelcompletes.
- Remove
Single.fromStreamconstructor, useSingle.unsafeFromStreaminstead.
-
Docs: update broken doc link (thanks to @dungngminh).
0.2.9 Apr 20, 2023 #
- operators:
- Fix
doOnoperator. Related issue: rxdart#683.
- Fix
0.2.8 Jan 26, 2023 #
-
single:
- Fix
Single.unsafeFromStreamdocs
- Fix
-
state_stream:
- Introduce
MutableStateStream<T>. StateSubject<T>now implementsMutableStateStream<T>.- Introduce extension methods on
MutableStateStream<T>:update().getAndUpdate().updateAndGet().
- Introduce
-
Several docs and example improvements.
0.2.7 Nov 21, 2022 #
-
single:
- Add
RxSingles.using. - Add
RxSingles.forkJoin3..forkJoin9andRxSingles.forkJoinList. - Deprecate
Single.fromStream, introduceSingle.unsafeFromStream.
- Add
-
state_stream:
- Internal refactoring of
StateSubject, fixStateSubject.addStream. ValueStreamController.sinknow processes events correctly.
- Internal refactoring of
-
Subject.streamnow returns a read-onlyStream. Previously,Subject.streamwas identical to theSubject, so we could add events to it, for example:(subject.stream as Sink<T>).add(event). This behavior is now disallowed, and will throw aTypeErrorif attempted. UseSubject.sink/Subjectitself for adding events. -
Several docs and example improvements.
0.2.6 Oct 26, 2022 #
-
single:
- Add
Single.toEitherSingle(). - Add
Single.flatMapEitherSingle().
- Add
-
Update docs.
0.2.5 Jul 27, 2022 #
- state_stream:
StateSubject.streamnow returns aStateStream.- Update docs for
StateSubjectandStateStream.
0.2.4 Jul 24, 2022 #
- Fix
StateStream.select5..select9: miss passingequalsparam.
0.2.3 Jul 24, 2022 #
- Update
rxdartto^0.27.5. - Fix: remove
@internalonStateStream.asBroadcastStateStreamextension method. Stream.toSingleSubscriptionStream()now returns a newStreamevery call instead of the input stream even if it's a single-subscription Stream.
0.2.2 Jun 1, 2022 #
- Revert
pathto^1.8.0(becauseflutter_testfrom Flutter sdk (>= 2.5.0) depends on path1.8.0or1.8.1).
0.2.1 Jun 1, 2022 #
-
Update
rxdartto0.27.4. -
Update
pathto1.8.2. -
operators:
- Remove
Stream.whereNotNull()(moved torxdart 0.27.4as standard operator: mapNotNull). - Remove
Stream.mapNotNull()(moved torxdart 0.27.4as standard operator: whereNotNull).
- Remove
0.2.0 Mar 23, 2022 #
-
utils:
- Add
DisposableMixin. This mixin adds an easy option to dispose Streams without having to store aStreamSubscriptionvariable. (Thanks to Jop Middelkamp). - Add
Equalitytypedef.
- Add
-
state_stream:
- Rename
StateStream.defaultEqualstoStateStream.defaultEquality. - Add
StateStreamselectors (SelectorsStateStreamExtensions):StateStream.select,StateStream.select2toStateStream.select9andStateStream.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,select2toselect9,selectManyfunctions, 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.
- Rename
0.1.3 Nov 23, 2021 #
- Update
rxdartto0.27.3. - Refactor
NotReplayValueConnectableStreamandStateConnectableStreamby usingrxdart' sAbstractConnectableStream. - Add
StateStream.asBroadcastStateStreamextension method. - Add
Future<void> delay(int milliseconds)function.
0.1.2 Sep 11, 2021 #
- Update dependencies
rxdartto0.27.2metato1.7.0
- Split into multiple libraries:
not_replay_value_streamoperatorssinglestate_streamutilsrxdart_ext: includes all the above.
- utils: Add
Sink<void>.addNull()extension. - state_stream:
- Add
StateStream - Add
StateSubject. - Add
StateConnectableStream,Stream.publishState(),Stream.shareState().
- Add
- single: Add
Single.retry(). - operators:
- Add
Stream.doneOnError(). - Add
Stream.flatMapBatches(). - Add
Stream.flatMapBatchesSingle().
- Add
- Internal: migrated from
pedantictolints.
0.1.1 Jul 8, 2021 #
- Stable release: see change logs of
0.1.1-dev.xversions.- Add
Singletype. - Operators refactoring.
- Add
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()toStream<Never>. - Refactor
Single- Add
Single.fromStream. - Remove
Single.zip2(move toRxSingles). - Add operators
debug.doOnCancel.doOnData.doOnError.doOnListen.onErrorResumeNextSingle.onErrorResumeSingle.onErrorReturn.onErrorReturnWith.
- Add
RxSingleszip2.forkJoin2.
- Add
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
doOnextension. - Update dependencies to latest version.
0.0.1-nullsafety.7 Feb 8, 2021 #
- Add
whereNotNull. - Update
ignoreElementsandignoreErrors. - Update
ForwardingSinkMixin. - Rename
ListenNullStreamExtensiontoCollectStreamExtension. - Update docs.
0.0.1-nullsafety.6 Jan 31, 2021 #
- Enhance
debugoperator: prints current stacktrace, including location, line and member if not provide the identifier (ie. it isnull).
0.0.1-nullsafety.5 Jan 31, 2021 #
- Added
ValueStreamController: like a single-subscriptionStreamControllerexcept the stream of this controller is a single-subscriptionNotReplayValueStream. - Added
toNotReplayValueStreamextension: converts aStreamto a single-subscriptionNotReplayValueStream.
0.0.1-nullsafety.4 Jan 23, 2021 #
- Now, return type of
collectisStreamSubscription<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.
