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
lastEventOrNull
forNotReplayValueStream
andStateStream
.
- Implement
-
single:
RxSingles.using
- Convert all required positional parameters to required named parameters.
- The
disposer
is now called after the future returned fromStreamSubscription.cancel
completes.
- Remove
Single.fromStream
constructor, useSingle.unsafeFromStream
instead.
-
Docs: update broken doc link (thanks to @dungngminh).
0.2.9 - Apr 20, 2023 #
- operators:
- Fix
doOn
operator. Related issue: rxdart#683.
- Fix
0.2.8 - Jan 26, 2023 #
-
single:
- Fix
Single.unsafeFromStream
docs
- 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..forkJoin9
andRxSingles.forkJoinList
. - Deprecate
Single.fromStream
, introduceSingle.unsafeFromStream
.
- Add
-
state_stream:
- Internal refactoring of
StateSubject
, fixStateSubject.addStream
. ValueStreamController.sink
now processes events correctly.
- Internal refactoring of
-
Subject.stream
now returns a read-onlyStream
. Previously,Subject.stream
was 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 aTypeError
if attempted. UseSubject.sink
/Subject
itself 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.stream
now returns aStateStream
.- Update docs for
StateSubject
andStateStream
.
0.2.4 - Jul 24, 2022 #
- Fix
StateStream.select5..select9
: miss passingequals
param.
0.2.3 - Jul 24, 2022 #
- Update
rxdart
to^0.27.5
. - Fix: remove
@internal
onStateStream.asBroadcastStateStream
extension method. Stream.toSingleSubscriptionStream()
now returns a newStream
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
(becauseflutter_test
from Flutter sdk (>= 2.5.0
) depends on path1.8.0
or1.8.1
).
0.2.1 - Jun 1, 2022 #
-
Update
rxdart
to0.27.4
. -
Update
path
to1.8.2
. -
operators:
- Remove
Stream.whereNotNull()
(moved torxdart 0.27.4
as standard operator: mapNotNull). - Remove
Stream.mapNotNull()
(moved torxdart 0.27.4
as 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 aStreamSubscription
variable. (Thanks to Jop Middelkamp). - Add
Equality
typedef.
- Add
-
state_stream:
- Rename
StateStream.defaultEquals
toStateStream.defaultEquality
. - Add
StateStream
selectors (SelectorsStateStreamExtensions
):StateStream.select
,StateStream.select2
toStateStream.select9
andStateStream.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
toselect9
,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.
- Rename
0.1.3 - Nov 23, 2021 #
- Update
rxdart
to0.27.3
. - Refactor
NotReplayValueConnectableStream
andStateConnectableStream
by usingrxdart
' sAbstractConnectableStream
. - Add
StateStream.asBroadcastStateStream
extension method. - Add
Future<void> delay(int milliseconds)
function.
0.1.2 - Sep 11, 2021 #
- Update dependencies
rxdart
to0.27.2
meta
to1.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()
.
- Add
- single: Add
Single.retry()
. - operators:
- Add
Stream.doneOnError()
. - Add
Stream.flatMapBatches()
. - Add
Stream.flatMapBatchesSingle()
.
- Add
- Internal: migrated from
pedantic
tolints
.
0.1.1 - Jul 8, 2021 #
- Stable release: see change logs of
0.1.1-dev.x
versions.- Add
Single
type. - 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
RxSingles
zip2
.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
doOn
extension. - Update dependencies to latest version.
0.0.1-nullsafety.7 - Feb 8, 2021 #
- Add
whereNotNull
. - Update
ignoreElements
andignoreErrors
. - Update
ForwardingSinkMixin
. - Rename
ListenNullStreamExtension
toCollectStreamExtension
. - 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 isnull
).
0.0.1-nullsafety.5 - Jan 31, 2021 #
- Added
ValueStreamController
: like a single-subscriptionStreamController
except the stream of this controller is a single-subscriptionNotReplayValueStream
. - Added
toNotReplayValueStream
extension: converts aStream
to a single-subscriptionNotReplayValueStream
.
0.0.1-nullsafety.4 - Jan 23, 2021 #
- Now, return type of
collect
isStreamSubscription<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.