Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency rxdart to ^0.27.0 - abandoned #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented May 11, 2021

Mend Renovate

This PR contains the following updates:

Package Type Update Change
rxdart dependencies minor ^0.16.6 -> ^0.27.0

Release Notes

ReactiveX/rxdart

v0.27.7

Compare Source

Fixed
  • Subject
    • Only call onAdd and onError if the subject is not closed.
      This ensures BehaviorSubject and ReplaySubject do not update their values after they have been closed.

    • 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.

    • Change return type of ReplaySubject<T>.stream to ReplayStream<T>.

    • Internal refactoring of Subject.addStream.

v0.27.6

Compare Source

  • Rx.using/UsingStream: resourceFactory can now return a Future.
    This allows for asynchronous resource creation.

  • Rx.range/RangeStream: ensure RangeStream is only listened to once.

v0.27.5

Compare Source

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>>.

v0.27.4

Compare Source

Bug fixes
  • withLatestFrom should iterate over Iterable<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

v0.27.3

Compare Source

Bug fixes
  • flatMap now creates inner Streams lazily.
  • combineLatest, concat, concatEager, forkJoin, merge, race, zip iterate over Iterable<Stream>s only once
    when the stream is listened to.
  • Disallow mixing autoConnect, connect and refCount together, only one of them should be used.
Features
  • Introduce AbstractConnectableStream, base class for the ConnectableStream implementations.
  • Improve CompositeSubscription (thanks to @​BreX900)
    • CompositeSubscription's dispose, clear, and remove methods 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.add will throw a StateError instead of a String if this composite was disposed.
Documentation
  • Fix Connectable examples.
  • Update Web example to null safety.
  • Fix Flutter example: SearchResultItem.fromJson type error (thanks to @​WenYeh)
Code refactoring
  • Simplify takeLast implementation.
  • Migrate from pedantic to lints and flutter_lints.
  • Refactor BehaviorSubject, ReplaySubject implementations by using "Sentinel object"s instead of ValueWrappers.

v0.27.2

Compare Source

Bug fixes
  • onErrorReturnWith now does not drop the remaining data events after the first error.
  • Disallow changing handlers of ConnectableStreamSubscription.
Features
  • Add delayWhen operator.
  • Add optional parameter maxConcurrent to flatMap.
  • groupBy
    • Rename GroupByStream to GroupedStream.
    • Add optional parameter durationSelector, which used to determine how long each group should exist.
  • ignoreElements
    • Remove @deprecated annotation (ignoreElements should not be marked as deprecated).
    • Change return type to Stream<Never>.
Documentation
Code refactoring
  • Refactoring Stream Transformers, using Stream.multi internally.

v0.27.1

Compare Source

  • Bugfix: ForkJoinStream throws Null check operator used on a null value when using nullable-type.
  • Bugfix: delay operator
    • Pause and resume properly.
    • Cancel all timers after it has been cancelled.

v0.27.0

Compare Source

  • BREAKING: ValueStream
    • Remove ValueStreamExtensions.
    • ValueStream.valueWrapper becomes
      • value.
      • valueOrNull.
      • hasValue.
    • ValueStream.errorAndStackTrace becomes
      • error.
      • errorOrNull.
      • hasError.
      • stackTrace.
    • Add skipLast/SkipLastStreamTransformer (thanks @​HannibalKcc).
    • Update scan: change seed to required param.
    • Add StackTrace param to recoveryFn when using OnErrorResumeStreamTransformer/onErrorResume/onErrorReturnWith.
    • Internal refactoring ConnectableStream.

v0.26.0

Compare Source

  • 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.
      • streamFactory now accepts non-nullable StackTrace argument.
    • Update ValueStream.requireValue and ValueStream.requireError: throws actual error or a StateError,
      instead of throwing "Null check operator used on a null value" error.

v0.25.0

Compare Source

  • Sync behavior when using publishValueSeeded.
    • ValueStream, ReplayStream: exposes stackTrace along with the error:
      • Change ValueStream.error to ValueStream.errorAndStackTrace.
      • Change ReplayStream.errors to ReplayStream.errorAndStackTraces.
      • Merge Notification.error and Notification.stackTrace into Notification.errorAndStackTrace.
    • Bugfix: debounce/debounceTime unnecessarily kept too many elements in queue.

v0.24.1

Compare Source

  • 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

v0.24.0

Compare Source

  • 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

v0.23.1

Compare Source

  • Fix API doc links in README

v0.23.0

Compare Source

  • Extension Methods replace Observable class!
    • 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 Rx class.
      • Remove Observable.just, use Stream.value
      • Remove Observable.error, use Stream.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 -> ValueStream
        • ReplayObservable -> ReplayStream
        • ConnectableObservable -> ConnectableStream
        • ValueConnectableObservable -> ValueConnectableStream
        • ReplayConnectableObservable -> 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 ofType method, use whereType instead
      • Deprecated concatMap, use standard Stream asyncExpand.
      • Removed AsObservableFuture, MinFuture, MaxFuture, and WrappedFuture
        • This removes asObservable method in chains
        • Use default asStream method from the base Future class instead.
        • min and max now implemented directly on the Stream class

v0.22.6

Compare Source

  • Bugfix: When listening multiple times to aBehaviorSubject that starts with an Error,
    it emits duplicate events.
    • Linter: public_member_api_docs is now used, we have added extra documentation
      where required.

v0.22.5

Compare Source

  • Bugfix: DeferStream created Stream too early
    • Bugfix: TimerStream created Timer too early

v0.22.4

Compare Source

  • Bugfix: switchMap controller no longer closes prematurely

v0.22.3

  • Bugfix: whereType failing in Flutter production builds only

v0.22.2

  • Bugfix: When using a seeded BehaviorSubject and adding an Error,
    upon listening, the BehaviorSubject emits null instead of the last Error.
    • Bugfix: calling cancel after a switchMap can cause a NoSuchMethodError.
    • Updated Flutter example to match the latest Flutter release
    • Observable.withLatestFrom is now expanded to accept 2 or more Streams
      thanks to Petrus Nguyễn Thái Học (@​hoc081098)!
    • Deprecates ofType in favor of whereType, drop TypeToken.

v0.22.1+1

Compare Source

v0.22.1

Compare Source

Fixes following issues:

  • Erroneous behavior with scan and BehaviorSubject.
  • Bug where flatMap would cancel inner subscriptions in pause/resume.
  • Updates to make the current "pedantic" analyzer happy.

v0.22.0

Compare Source

This version includes refactoring for the backpressure operators:

  • Breaking Change: debounce is now split into debounce and debounceTime.
  • Breaking Change: sample is now split into sample and sampleTime.
  • Breaking Change: throttle is now split into throttle and throttleTime.

v0.21.0

Compare Source

  • Breaking Change: BehaviorSubject now has a separate factory constructor seeded()
    This allows you to seed this Subject with a null value.
    • Breaking Change: BehaviorSubject will now emit an Error, if the last event was also an Error.
      Before, when an Error occurred before a listen, the subscriber would not be notified of that Error.
      To refactor, simply change all occurences of BehaviorSubject(seedValue: value) to BehaviorSubject.seeded(value)
    • Added the groupBy operator
    • Bugix: doOnCancel: will now await the cancel result, if it is a Future.
    • Removed: bufferWithCount, windowWithCount, tween
      Please use bufferCount and windowCount, tween is removed, because it never was an official Rx spec.
    • Updated Flutter example to work with the latest Flutter stable.

v0.20.0

  • Breaking Change: bufferCount had buggy behavior when using startBufferEvery (was skip previously)
    If you were relying on bufferCount with skip greater than 1 before, then you may have noticed
    erroneous behavior.
    • Breaking Change: repeat is 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.
    • mapTo is a new operator, which works just like map, 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> and a combiner that takes a List when any source emits a change.
      • adds combineLatestList / zipList which allows you to take in an Iterable<Stream> and emit a Observable<List> with the values. Just a convenience factory if all you want is the list!
      • 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

v0.19.0

  • Breaking Change: Subjects onCancel function now returns void instead of Future to properly comply with the StreamController signature.
    • 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 connect method 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 publishValue or shareValue
    • ReplayObservable: A new interface that allows you to get the values emitted by an Observable.
      • Implemented by ReplaySubject
      • Convert normal observables into ReplayObservables via publishReplay or shareReplay

v0.18.1

  • Add retryWhen operator. Thanks to Razvan Lung (@​long1eu)! This can be used for custom retry logic.

v0.18.0

  • Breaking Change: remove retype method, deprecated as part of Dart 2.
  • Add flatMapIterable

v0.17.0

  • Breaking Change: stream property on Observable is now private.
    • Avoids API confusion
    • Simplifies Subject implementation
    • Require folks who are overriding the stream property to use a super constructor instead
  • Adds proper onPause and onResume handling for amb/race, combineLatest, concat, concat_eager, merge and zip
  • Add switchLatest operator
  • Add errors and stacktraces to RetryError class
  • Add onErrorResume and onErrorRetryWith operators. These allow folks to return a specific stream or value depending on the error that occurred.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate
Copy link
Author

renovate bot commented Mar 24, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@renovate renovate bot changed the title Update dependency rxdart to ^0.27.0 Update dependency rxdart to ^0.27.0 - abandoned Aug 15, 2023
@renovate
Copy link
Author

renovate bot commented Aug 15, 2023

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant