rxdart 0.28.0
rxdart: ^0.28.0 copied to clipboard
RxDart is an implementation of the popular ReactiveX api for asynchronous programming, leveraging the native Dart Streams api.
Changelog #
0.28.0 - 2024-06-14 #
New #
-
ValueStream:
- Add
lastEventOrNullgetter toValueStream, which returns the last emitted event (either data/value or error event), ornull. - Add
isLastEventValue,isLastEventErroranderrorAndStackTraceOrNullextension getters toValueStream, to check the kind of the last emitted event is data/value or error. - Update documentation.
- Add
-
ReplayStream:
- Add
errorAndStackTracestoReplayStream, which returns a list of emittedErrorAndStackTraces.
- Add
-
Rename
NotificationandKindto better reflect their purpose, and to avoid confusion with Flutter's Notification class.- Rename
NotificationtoStreamNotificationNotification.onDatatoStreamNotification.data.Notification.onDonetoStreamNotification.done.Notification.onErrortoStreamNotification.error.
- Rename
KindtoNotificationKindKind.onDatatoNotificationKind.data.Kind.onErrortoNotificationKind.error.Kind.onDonetoNotificationKind.done.
- Introduce
DataNotification,ErrorNotificationandDoneNotificationas the subclasses ofStreamNotification. - Convert
isOnData,isOnError,isOnDone,requireDatato extension getters onStreamNotification, they are now namedisData,isError,isDoneandrequireDataValue. - Add extensions on
StreamNotification:dataValueOrNull,requireErrorAndStackTrace,errorAndStackTraceOrNullgetters andwhenmethod.
- Rename
Changed #
-
Accept Dart SDK versions above 3.0.
-
switchMap: when cancelling the previous inner subscription,switchMapwill pause the outer subscription and and wait for the inner subscription to be completely canceled. It will then resume the outer subscription, and listen to the next inner Stream. Any errors from canceling the previous inner subscription will now be forwarded to the resulting Stream. -
Breaking: Rename
ForkJoinStream.combine2..combine9toForkJoinStream.join2..join9. -
Breaking:
Rx.using/UsingStream- Convert all required positional parameters to required named parameters.
- The
disposeris now called after the future returned fromStreamSubscription.cancelcompletes.
Documentation #
- Update and fix documentation.
- Fix README example (thanks to @wurikiji).
- Update Flutter example (thanks to @hoangchungk53qx1).
- Replace deprecated "dart pub run" with "dart run" (thanks to @tatsuyafujisaki).
0.28.0-dev.2 - 2024-03-30 #
Feedback on this change appreciated as this is a dev release before 0.28.0 stable!
Changed #
- Breaking: Rename
ForkJoinStream.combine2..combine9toForkJoinStream.join2..join9. - Breaking:
Rx.using/UsingStream- Convert all required positional parameters to required named parameters.
- The
disposeris now called after the future returned fromStreamSubscription.cancelcompletes.
0.28.0-dev.1 - 2024-01-27 #
Feedback on this change appreciated as this is a dev release before 0.28.0 stable!
Changed #
switchMap: when cancelling the previous inner subscription,switchMapwill pause the outer subscription and and wait for the inner subscription to be completely canceled. It will then resume the outer subscription, and listen to the next inner Stream. Any errors from canceling the previous inner subscription will now be forwarded to the resulting Stream.
Documentation #
- Replace deprecated "dart pub run" with "dart run" (thanks to @tatsuyafujisaki).
0.28.0-dev.0 - 2023-07-26 #
Feedback on this change appreciated as this is a dev release before 0.28.0 stable!
New #
-
ValueStream:
- Add
lastEventOrNullgetter toValueStream, which returns the last emitted event (either data/value or error event), ornull. - Add
isLastEventValue,isLastEventErroranderrorAndStackTraceOrNullextension getters toValueStream, to check the kind of the last emitted event is data/value or error. - Update documentation.
- Add
-
ReplayStream:
- Add
errorAndStackTracestoReplayStream, which returns a list of emittedErrorAndStackTraces.
- Add
-
Rename
NotificationandKindto better reflect their purpose, and to avoid confusion with Flutter's Notification class.- Rename
NotificationtoStreamNotificationNotification.onDatatoStreamNotification.data.Notification.onDonetoStreamNotification.done.Notification.onErrortoStreamNotification.error.
- Rename
KindtoNotificationKindKind.onDatatoNotificationKind.data.Kind.onErrortoNotificationKind.error.Kind.onDonetoNotificationKind.done.
- Introduce
DataNotification,ErrorNotificationandDoneNotificationas the subclasses ofStreamNotification. - Convert
isOnData,isOnError,isOnDone,requireDatato extension getters onStreamNotification, they are now namedisData,isError,isDoneandrequireDataValue. - Add extensions on
StreamNotification:dataValueOrNull,requireErrorAndStackTrace,errorAndStackTraceOrNullgetters andwhenmethod.
- Rename
Changed #
- Accept Dart SDK versions above 3.0.
Documentation #
- Update and fix documentation.
- Fix README example (thanks to @wurikiji).
- Update Flutter example (thanks to @hoangchungk53qx1).
0.27.7 - 2022-11-16 #
Fixed #
Subject-
Only call
onAddandonErrorif the subject is not closed. This ensuresBehaviorSubjectandReplaySubjectdo not update their values after they have been closed. -
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. -
Change return type of
ReplaySubject<T>.streamtoReplayStream<T>. -
Internal refactoring of
Subject.addStream.
-
0.27.6 - 2022-11-11 #
-
Rx.using/UsingStream:resourceFactorycan now return aFuture. This allows for asynchronous resource creation. -
Rx.range/RangeStream: ensureRangeStreamis only listened to once.
0.27.5 - 2022-07-16 #
Bug fixes #
-
Fix issue #683: Throws runtime type error when using extension methods on a
Stream<R>but its type annotation isStream<T>,Ris 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:activeSubscriptionshould be changed to next subscription.
Code refactoring #
- Change return type of
pairwisetoStream<List<T>>.
0.27.4 - 2022-05-29 #
Bug fixes #
withLatestFromshould iterate overIterable<Stream>only once when the stream is listened to.- Fix analyzer warnings when using
Dart 2.16.0.
Features #
- Add
mapNotNull/MapNotNullStreamTransformer. - Add
whereNotNull/WhereNotNullStreamTransformer.
Documentation #
- Fix grammar errors in code examples (thanks to @fzyzcjy).
- Update RxMarbles URL for
RaceStream(thanks to @Péter Ferenc Gyarmati).
0.27.3 - 2021-11-21 #
Bug fixes #
flatMapnow creates innerStreams lazily.combineLatest,concat,concatEager,forkJoin,merge,race,zipiterate overIterable<Stream>s only once when the stream is listened to.- Disallow mixing
autoConnect,connectandrefCounttogether, only one of them should be used.
Features #
- Introduce
AbstractConnectableStream, base class for theConnectableStreamimplementations. - Improve
CompositeSubscription(thanks to @BreX900)- CompositeSubscription's
dispose,clear, andremovemethods now return a completion future. - Fixed an issue where a stream not present in CompositeSubscription was canceled.
- Added the ability not to cancel the stream when it is removed from CompositeSubscription.
- CompositeSubscription implements
StreamSubscription. CompositeSubscription.addwill throw aStateErrorinstead of aStringif this composite was disposed.
- CompositeSubscription's
Documentation #
- Fix
Connectableexamples. - Update Web example to null safety.
- Fix
Flutterexample:SearchResultItem.fromJsontype error (thanks to @WenYeh)
Code refactoring #
- Simplify
takeLastimplementation. - Migrate from
pedantictolintsandflutter_lints. - Refactor
BehaviorSubject,ReplaySubjectimplementations by using "Sentinel object"s instead ofValueWrappers.
0.27.2 - 2021-09-03 #
Bug fixes #
onErrorReturnWithnow does not drop the remaining data events after the first error.- Disallow changing handlers of
ConnectableStreamSubscription.
Features #
- Add
delayWhenoperator. - Add optional parameter
maxConcurrenttoflatMap. groupBy- Rename
GroupByStreamtoGroupedStream. - Add optional parameter
durationSelector, which used to determine how long each group should exist.
- Rename
ignoreElements- Remove
@deprecatedannotation (ignoreElementsshould not be marked as deprecated). - Change return type to
Stream<Never>.
- Remove
Documentation #
- Update to
PublishSubject's docs (thanks to @AlexanderJohr).
Code refactoring #
- Refactoring Stream Transformers, using
Stream.multiinternally.
0.27.1 #
- Bugfix:
ForkJoinStreamthrowsNull check operator used on a null valuewhen using nullable-type. - Bugfix:
delayoperator- Pause and resume properly.
- Cancel all timers after it has been cancelled.
0.27.0 #
- BREAKING: ValueStream
- Remove
ValueStreamExtensions. ValueStream.valueWrapperbecomesvalue.valueOrNull.hasValue.
ValueStream.errorAndStackTracebecomeserror.errorOrNull.hasError.stackTrace.
- Remove
- Add
skipLast/SkipLastStreamTransformer(thanks @HannibalKcc). - Update
scan: changeseedto required param. - Add
StackTraceparam torecoveryFnwhen usingOnErrorResumeStreamTransformer/onErrorResume/onErrorReturnWith. - Internal refactoring
ConnectableStream.
0.26.0 #
- Stable, null-safe release.
- Add
takeLast(thanks @ThomasKliszowski). - Rework for
retry/retryWhen:- Removed
RetryError. retry: emits all errors if retry fails.retryWhen: emits original error, and error from factory if they are not identical.streamFactorynow accepts non-nullableStackTraceargument.
- Removed
- Update
ValueStream.requireValueandValueStream.requireError: throws actual error or aStateError, instead of throwing"Null check operator used on a null value"error.
0.26.0-nullsafety.1 #
- Breaking change:
ValueStream- Add
valueWrappertoValueStream. - Change
value,hasValue,errorandhasErrorto extension getters.
- Add
- Fixed some API example documentation (thanks @HannibalKcc).
throttle/throttleTimehave been optimised for performance.- Updated Flutter example to work with the latest Flutter stable.
0.26.0-nullsafety.0 #
- Migrate this package to null safety.
- Sdk constraints:
>=2.12.0-0 <3.0.0based on beta release guidelines.
0.25.0 #
- Sync behavior when using
publishValueSeeded. ValueStream,ReplayStream: exposesstackTracealong with theerror:- Change
ValueStream.errortoValueStream.errorAndStackTrace. - Change
ReplayStream.errorstoReplayStream.errorAndStackTraces. - Merge
Notification.errorandNotification.stackTraceintoNotification.errorAndStackTrace.
- Change
- Bugfix:
debounce/debounceTimeunnecessarily kept too many elements in queue.
0.25.0-beta3 #
- Bugfix:
switchMapdoesn't close after the last inner Stream closes. - Docs: updated URL for "Single-Subscription vs. Broadcast Streams" doc (thanks Aman Gupta).
- Add
FromCallableStream/Rx.fromCallable: allows you to create aStreamfrom a callable function. - Override
BehaviorSubject's built-in operators to correct replaying the latest value ofBehaviorSubject. - Bugfix: Source
StreamSubscriptiondoesn't cancel when cancellingrefCount,zip,merge,concatStreamSubscription. - Forward done event of upstream to
ConnectableStream.
0.25.0-beta2 #
- Internal refactoring Stream Transformers.
- Fixed
RetryStreamexample documentation. - Error thrown from
DeferStreamfactory will now be caught and converted toStream.error. doOnErrornow have strong type signature:Stream<T> doOnError(void Function(Object, StackTrace) onError).- Updated
ForkJoinStream:- When any Stream emits an error, listening still continues unless
cancelOnError: trueon the downstream. - Pause and resume Streams properly.
- When any Stream emits an error, listening still continues unless
- Added
UsingStream. - Updated
TimerStream: Pause and resume Timer when pausing and resuming StreamSubscription.
0.25.0-beta #
- stream transformations on a ValueStream will also return a ValueStream, instead of a standard broadcast Stream
- throttle can now be both leading and trailing
- better handling of empty Lists when using operators that accept a List as input
- error & hasError added to BehaviorSubject
- various docs updates
- note that this is a beta release, mainly because the behavior of transform has been adjusted (see first bullet) if all goes well, we'll release a proper 0.25.0 release soon
0.24.1 #
- Fix for BehaviorSubject, no longer emits null when using addStream and expecting an Error as first event (thanks yuvalr1)
- min/max have been optimised for performance
- Further refactors on our Transformers
0.24.0 #
- Fix throttle no longer outputting the current buffer onDone
- Adds endWith and endWithMany
- Fix when using pipe and an Error, Subjects would throw an Exception that couldn't be caught using onError
- Updates links for docs (thanks @renefloor)
- Fix links to correct marbles diagram for debounceTime (thanks @wheater)
- Fix flakiness of withLatestFrom test Streams
- Update to docs (@wheater)
- Fix withLatestFrom not pause/resume/cancelling underlying Streams
- Support sync behavior for Subjects
- Add addTo extension for StreamSubscription, use it to easily add a subscription to a CompositeSubscription
- Fix mergeWith and zipWith will return a broadcast Stream, if the source Stream is also broadcast
- Fix concatWith will return a broadcast Stream, if the source Stream is also broadcast (thanks @jarekb123)
- Adds pauseAll, resumeAll, ... to CompositeSubscription
- Additionally, fixes some issues introduced with 0.24.0-dev.1
0.24.0-dev.1 #
- Breaking: as of this release, we've refactored the way Stream transformers are set up.
Previous releases had some incorrect behavior when using certain operators, for example:
-
startWith (startWithMany, startWithError) would incorrectly replay the starting event(s) when using a broadcast Stream at subscription time.
-
doOnX was not always producing the expected results:
- doOnData did not output correct sequences on streams that were transformed multiple times in sequence.
- doOnCancel now acts in the same manner onCancel works on regular subscriptions, i.e. it will now be called when all active subscriptions on a Stream are cancelled.
- doOnListen will now call the first time the Stream is subscribed to, and will only call again after all subscribers have cancelled, before a new subscription starts.
To properly fix this up, a new way of transforming Streams was introduced.
Operators as of now use Stream.eventTransformed and we've refactored all operators to implement Sink instead.
-
- Adds takeWileInclusive operator (thanks to @hoc081098)
We encourage everyone to give the dev release(s) a spin and report back if anything breaks. If needed, a guide will be written to help migrate from the old behavior to the new behavior in certain common use cases.
Keep in mind that we tend to stick as close as we can to how normal Dart Streams work!
0.23.1 #
- Fix API doc links in README
0.23.0 #
- Extension Methods replace
Observableclass! - Please upgrade existing code by using the rxdart_codemod package
- Remove the Observable class. With extensions, you no longer need to wrap Streams in a [Stream]!
- Convert all factories to static constructors to aid in discoverability of Stream classes
- Move all factories to an
Rxclass. - Remove
Observable.just, useStream.value - Remove
Observable.error, useStream.error - Remove all tests that check base Stream methods
- Subjects and *Observable classes extend Stream instead of base Observable
- Rename *Observable to *Stream to reflect the fact they're just Streams.
ValueObservable->ValueStreamReplayObservable->ReplayStreamConnectableObservable->ConnectableStreamValueConnectableObservable->ValueConnectableStreamReplayConnectableObservable->ReplayConnectableStream
- All transformation methods removed from Observable class
- Transformation methods are now Extensions of the Stream class
- Any Stream can make use of the transformation methods provided by RxDart
- Observable class remains in place with factory methods to create different types of Streams
- Removed deprecated
ofTypemethod, usewhereTypeinstead - Deprecated
concatMap, use standard StreamasyncExpand. - Removed
AsObservableFuture,MinFuture,MaxFuture, andWrappedFuture- This removes
asObservablemethod in chains - Use default
asStreammethod from the baseFutureclass instead. minandmaxnow implemented directly on the Stream class
- This removes
0.23.0-dev.3 #
- Fix missing exports:
ValueStreamReplayStreamConnectableStreamValueConnectableStreamReplayConnectableStream
0.23.0-dev.2 #
- Remove the Observable class. With extensions, you no longer need to wrap Streams in a [Stream]!
- Convert all factories to static constructors to aid in discoverability of Stream classes
- Move all factories to an
Rxclass. - Remove
Observable.just, useStream.value - Remove
Observable.error, useStream.error - Remove all tests that check base Stream methods
- Subjects and *Observable classes extend Stream instead of base Observable
- Rename *Observable to *Stream to reflect the fact they're just Streams.
ValueObservable->ValueStreamReplayObservable->ReplayStreamConnectableObservable->ConnectableStreamValueConnectableObservable->ValueConnectableStreamReplayConnectableObservable->ReplayConnectableStream
0.23.0-dev.1 #
- Feedback on this change appreciated as this is a dev release before 0.23.0 stable!
- All transformation methods removed from Observable class
- Transformation methods are now Extensions of the Stream class
- Any Stream can make use of the transformation methods provided by RxDart
- Observable class remains in place with factory methods to create different types of Streams
- Removed deprecated
ofTypemethod, usewhereTypeinstead - Deprecated
concatMap, use standard StreamasyncExpand. - Removed
AsObservableFuture,MinFuture,MaxFuture, andWrappedFuture- This removes
asObservablemethod in chains - Use default
asStreammethod from the baseFutureclass instead. minandmaxnow implemented directly on the Stream class
- This removes
0.22.6 #
- Bugfix: When listening multiple times to a
BehaviorSubjectthat starts with an Error, it emits duplicate events. - Linter: public_member_api_docs is now used, we have added extra documentation where required.
0.22.5 #
- Bugfix: DeferStream created Stream too early
- Bugfix: TimerStream created Timer too early
0.22.4 #
- Bugfix: switchMap controller no longer closes prematurely
0.22.3 #
- Bugfix: whereType failing in Flutter production builds only
0.22.2 #
- Bugfix: When using a seeded
BehaviorSubjectand adding anError, upon listening, theBehaviorSubjectemitsnullinstead of the lastError. - Bugfix: calling cancel after a
switchMapcan cause aNoSuchMethodError. - Updated Flutter example to match the latest Flutter release
Observable.withLatestFromis now expanded to accept 2 or moreStreams thanks to Petrus Nguyễn Thái Học (@hoc081098)!- Deprecates
ofTypein favor ofwhereType, dropTypeToken.
0.22.1 #
Fixes following issues:
- Erroneous behavior with scan and
BehaviorSubject. - Bug where
flatMapwould cancel inner subscriptions inpause/resume. - Updates to make the current "pedantic" analyzer happy.
0.22.0 #
This version includes refactoring for the backpressure operators:
- Breaking Change:
debounceis now split intodebounceanddebounceTime. - Breaking Change:
sampleis now split intosampleandsampleTime. - Breaking Change:
throttleis now split intothrottleandthrottleTime.
0.21.0 #
- Breaking Change:
BehaviorSubjectnow has a separate factory constructorseeded()This allows you to seed this Subject with anullvalue. - Breaking Change:
BehaviorSubjectwill now emit anError, if the last event was also anError. Before, when anErroroccurred before alisten, the subscriber would not be notified of thatError. To refactor, simply change all occurences ofBehaviorSubject(seedValue: value)toBehaviorSubject.seeded(value) - Added the
groupByoperator - Bugix:
doOnCancel: will now await the cancel result, if it is aFuture. - Removed:
bufferWithCount,windowWithCount,tweenPlease usebufferCountandwindowCount,tweenis removed, because it never was an official Rx spec. - Updated Flutter example to work with the latest Flutter stable.
0.20.0 #
- Breaking Change: bufferCount had buggy behavior when using
startBufferEvery(wasskippreviously) If you were relying on bufferCount withskipgreater than 1 before, then you may have noticed erroneous behavior. - Breaking Change:
repeatis no longer an operator which simply repeats the last emitted event n-times, instead this is now an Observable factory method which takes a StreamFactory and a count parameter. This will cause each repeat cycle to create a fresh Observable sequence. mapTois a new operator, which works just likemap, but instead of taking a mapper Function, it takes a single value where each event is mapped to.- Bugfix: switchIfEmpty now correctly calls onDone
- combineLatest and zip can now take any amount of Streams:
- combineLatest2-9 & zip2-9 functionality unchanged, but now use a new path for construction.
- adds combineLatest and zipLatest which allows you to pass through an Iterable<Stream
- adds combineLatestList / zipList which allows you to take in an Iterable<Stream
- Constructors are provided by the Stream implementation directly
- Bugfix: Subjects that are transformed will now correctly return a new Observable where isBroadcast is true (was false before)
- Remove deprecated operators which were replaced long ago:
bufferWithCount,windowWithCount,amb,flatMapLatest
0.19.0 #
- Breaking Change: Subjects
onCancelfunction now returnsvoidinstead ofFutureto properly comply with theStreamControllersignature. - Bugfix: FlatMap operator properly calls onDone for all cases
- Connectable Observable: An observable that can be listened to multiple times, and does not begin emitting values until the
connectmethod is called - ValueObservable: A new interface that allows you to get the latest value emitted by an Observable.
- Implemented by BehaviorSubject
- Convert normal observables into ValueObservables via
publishValueorshareValue
- ReplayObservable: A new interface that allows you to get the values emitted by an Observable.
- Implemented by ReplaySubject
- Convert normal observables into ReplayObservables via
publishReplayorshareReplay
0.18.1 #
- Add
retryWhenoperator. Thanks to Razvan Lung (@long1eu)! This can be used for custom retry logic.
0.18.0 #
- Breaking Change: remove
retypemethod, deprecated as part of Dart 2. - Add
flatMapIterable
0.17.0 #
- Breaking Change:
streamproperty on Observable is now private.- Avoids API confusion
- Simplifies Subject implementation
- Require folks who are overriding the
streamproperty to use asuperconstructor instead
- Adds proper onPause and onResume handling for
amb/race,combineLatest,concat,concat_eager,mergeandzip - Add
switchLatestoperator - Add errors and stacktraces to RetryError class
- Add
onErrorResumeandonErrorRetryWithoperators. These allow folks to return a specific stream or value depending on the error that occurred.
0.16.7 #
- Fix new buffer and window implementation for Flutter + Dart 2
- Subject now implements the Observable interface
0.16.6 #
- Rework for
bufferandwindow, allow to schedule using a sampler - added
buffer - added
bufferFuture - added
bufferTest - added
bufferTime - added
bufferWhen - added
window - added
windowFuture - added
windowTest - added
windowTime - added
windowWhen - added
onCountsampler forbufferandwindow - added
onFuturesampler forbufferandwindow - added
onTestsampler forbufferandwindow - added
onTimesampler forbufferandwindow - added
onStreamsampler forbufferandwindow
0.16.5 #
- Renames
ambtorace - Renames
flatMapLatesttoswitchMap - Renames
bufferWithCounttobufferCount - Renames
windowWithCounttowindowCount
0.16.4 #
- Adds
bufferTimetransformer. - Adds
windowTimetransformer.
0.16.3 #
- Adds
delaytransformer.
0.16.2 #
- Fix added events to
sinkare not processed correctly bySubjects.
0.16.1 #
- Fix
dematerializemethod for Dart 2.
0.16.0+2 #
- Add
valuetoBehaviorSubject. Allows you to get the latest value emitted by the subject if it exists. - Add
valuestoReplayrSubject. Allows you to get the values stored by the subject if any exists.
0.16.0+1 #
- Update Changelog
0.16.0 #
- breaks backwards compatibility, this release only works with Dart SDK >=2.0.0.
- Removed old
castin favour of the now native Stream cast method. - Override
retypeto return anObservable.
0.15.1 #
- Add
exhaustMapmap to inner observable, ignore other values until that observable completes. - Improved code to be dartdevc compatible.
- Add upper SDK version limit in pubspec
0.15.0 #
- Change
debounceto emit the last item of the source stream as soon as the source stream completes. - Ensure
debouncedoes not keep open any addition async timers after it has been cancelled.
0.14.0+1 #
- Change
DoStreamTransformerto return aFutureon cancel for api compatibility.
0.14.0 #
- Add
PublishSubject(thanks to @pauldemarco) - Fix bug with
doOnXoperators where callbacks were fired too often
0.13.1 #
- Fix error with FlatMapLatest where it was not properly cancelled in some scenarios
- Remove additional async methods on Stream handlers unless they're shown to solve a problem
0.13.0 #
- Remove
calloperator /StreamTransformerentirely - Important bug fix: Errors thrown within any Stream or Operator will now be properly sent to the
StreamSubscription. - Improve overall handling of errors throughout the library to ensure they're handled correctly
0.12.0 #
- Added doOn* operators in place of
call. - Added
DoStreamTransformeras a replacement forCallStreamTransformer - Deprecated
callandCallStreamTransformer. Please use the appropriatedoOnXoperator / transformer. - Added
distinctUnique. Emits items if they've never been emitted before. Same as to Rx#distinct.
0.11.0 #
- !!!Breaking Api Change!!!
- Observable.groupBy has been removed in order to be compatible with the next version of the
Streamclass in Dart 1.24.0, which includes this method
- Observable.groupBy has been removed in order to be compatible with the next version of the
0.10.2 #
- BugFix: The new Subject implementation no longer causes infinite loops when used with ng2 async pipes.
0.10.1 #
- Documentation fixes
0.10.0 #
- Api Changes
- Observable
- Remove all deprecated methods, including:
observablefactory -- replaced by the constructornew Observable()combineLatest-- replaced by Strong-Mode versionscombineLatest2-combineLatest9zip-- replaced by Strong-Mode versionszip2-zip9
- Support
asObservableconversion from Future-returning methods. e.g.new Observable.fromIterable([1, 2]).first.asObservable() - Max and Min now return a Future of the Max or Min value, rather than a stream of increasing or decreasing values.
- Add
castoperator - Remove
ConcatMapStreamTransformer-- functionality is already supported byasyncExpand. Keep theconcatMapmethod as an alias.
- Remove all deprecated methods, including:
- Subjects
- BehaviourSubject has been renamed to BehaviorSubject
- The subjects have been rewritten and include far more testing
- In keeping with the Rx idea of Subjects, they are broadcast-only
- Observable
- Documentation -- extensive documentation has been added to the library with explanations and examples for each Future, Stream & Transformer.
- Docs detailing the differences between RxDart and raw Observables.
0.9.0 #
- Api Changes:
- Convert all StreamTransformer factories to proper classes
- Ensure these classes can be re-used multiple times
- Retry has moved from an operator to a constructor. This is to ensure the stream can be properly re-constructed every time in the correct way.
- Streams now properly enforce the single-subscription contract
- Convert all StreamTransformer factories to proper classes
- Include example Flutter app. To run it, please follow the instructions in the README.
0.8.3+1 #
- rename examples map to example
0.8.3 #
- added concatWith, zipWith, mergeWith, skipUntil
- cleanup of the examples folder
- cleanup of examples code
- added fibonacci example
- added search GitHub example
0.8.2+1 #
- moved repo into ReactiveX
- update readme badges accordingly
0.8.2 #
- added materialize/dematerialize
- added range (factory)
- added timer (factory)
- added timestamp
- added concatMap
0.8.1 #
- added never constructor
- added error constructor
- moved code coverage to codecov.io
0.8.0 #
- BREAKING: tap is replaced by call(onData)
- added call, which can take any combination of the following event methods: onCancel, onData, onDone, onError, onListen, onPause, onResume
0.7.1+1 #
- improved the README file
0.7.1 #
- added ignoreElements
- added onErrorResumeNext
- added onErrorReturn
- added switchIfEmpty
- added empty factory constructor
0.7.0 #
- BREAKING: rename combineXXXLatest and zipXXX to a numbered equivalent, for example: combineThreeLatest becomes combineLatest3
- internal refactoring, expose streams/stream transformers as a separate library
0.6.3+4 #
- changed ofType to use TypeToken
0.6.3+3 #
- added ofType
0.6.3+2 #
- added defaultIfEmpty
0.6.3+1 #
- changed concat, old concat is now concatEager, new concat behaves as expected
0.6.1 #
- Added concat
0.6.0 #
- BREAKING: startWith now takes just one parameter instead of an Iterable. To add multiple starting events, please use startWithMany.
- Added BehaviourSubject and ReplaySubject. These implement StreamController.
- BehaviourSubject will notify the last added event upon listening.
- ReplaySubject will notify all past events upon listening.
- DEPRECATED: zip and combineLatest, use their strong-type-friendly alternatives instead (available as static methods on the Observable class, i.e. Observable.combineThreeLatest, Observable.zipFour, ...)
0.5.1 #
- Added documentation (thanks to dustinlessard-wf)
- Fix tests breaking due to deprecation of expectAsync
- Fix tests to satisfy strong mode requirements
0.5.0 #
- As of this version, rxdart depends on SDK v1.21.0, to support the newly added generic method type syntax




