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

fix(deps): update dependency rxdart to ^0.28.0 #2172

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 14, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
rxdart dependencies minor ^0.27.4 -> ^0.28.0
rxdart dependencies minor ^0.27.0 -> ^0.28.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

ReactiveX/rxdart (rxdart)

v0.28.0

Compare Source

New
  • ValueStream:

    • Add lastEventOrNull getter to ValueStream,
      which returns the last emitted event (either data/value or error event), or null.
    • Add isLastEventValue, isLastEventError and errorAndStackTraceOrNull
      extension getters to ValueStream, to check the kind of the last emitted event is data/value or error.
    • Update documentation.
  • ReplayStream:

    • Add errorAndStackTraces to ReplayStream, which returns a list of emitted ErrorAndStackTraces.
  • Rename Notification and Kind to better reflect their purpose,
    and to avoid confusion with Flutter's Notification class.

    • Rename Notification to StreamNotification
      • Notification.onData to StreamNotification.data.
      • Notification.onDone to StreamNotification.done.
      • Notification.onError to StreamNotification.error.
    • Rename Kind to NotificationKind
      • Kind.onData to NotificationKind.data.
      • Kind.onError to NotificationKind.error.
      • Kind.onDone to NotificationKind.done.
    • Introduce DataNotification, ErrorNotification and DoneNotification as the subclasses of StreamNotification.
    • Convert isOnData, isOnError, isOnDone, requireData to extension getters on StreamNotification,
      they are now named isData, isError, isDone and requireDataValue.
    • Add extensions on StreamNotification: dataValueOrNull, requireErrorAndStackTrace, errorAndStackTraceOrNull getters and when method.
Changed
  • Accept Dart SDK versions above 3.0.

  • switchMap: when cancelling the previous inner subscription,
    switchMap will 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..combine9 to ForkJoinStream.join2..join9.

  • Breaking: Rx.using/UsingStream

    • Convert all required positional parameters to required named parameters.
    • The disposer is now called after the future returned from StreamSubscription.cancel completes.
Documentation

v0.27.7

Compare Source

https://pub.dev/packages/rxdart/versions/0.27.7
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.


What's Changed

Full Changelog: ReactiveX/rxdart@0.27.6...0.27.7

v0.27.6

Compare Source

https://pub.dev/packages/rxdart/versions/0.27.6
  • 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.


What's Changed

Full Changelog: ReactiveX/rxdart@0.27.5...0.27.6

v0.27.5

Compare Source

https://pub.dev/packages/rxdart/versions/0.27.5
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>>.

What's Changed
New Contributors

Full Changelog: ReactiveX/rxdart@0.27.4...0.27.5


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 these updates again.


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

This PR was generated by Mend Renovate. View the repository job log.

@provokateurin provokateurin enabled auto-merge June 14, 2024 12:15
@provokateurin provokateurin marked this pull request as draft June 26, 2024 17:51
auto-merge was automatically disabled June 26, 2024 17:51

Pull request was converted to draft

@renovate renovate bot force-pushed the renovate/rxdart-0.x branch from 1347d05 to 853faf9 Compare July 1, 2024 19:18
@renovate renovate bot force-pushed the renovate/rxdart-0.x branch 2 times, most recently from cf6a683 to 9eebb9e Compare July 21, 2024 11:18
@renovate renovate bot force-pushed the renovate/rxdart-0.x branch from 9eebb9e to 16afc53 Compare July 29, 2024 13:34
@renovate renovate bot force-pushed the renovate/rxdart-0.x branch from 16afc53 to e7ce50e Compare August 12, 2024 20:37
@provokateurin provokateurin marked this pull request as ready for review August 12, 2024 20:45
@provokateurin provokateurin merged commit 53c54ea into main Aug 12, 2024
8 checks passed
@provokateurin provokateurin deleted the renovate/rxdart-0.x branch August 12, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant