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

Prepare for Uint8List SDK breaking change #1

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

Conversation

tvolkert
Copy link

@tvolkert tvolkert commented Jul 6, 2019

A recent change to the Dart SDK updated HttpClientResponse
to implement Stream<Uint8List> rather than implementing
Stream<List<int>>.

This forwards-compatible change updates calls to
Stream.transform(StreamTransformer) to instead call the
functionally equivalent StreamTransformer.bind(Stream)
API, which puts the stream in a covariant position and
thus causes the SDK change to be non-breaking.

dart-lang/sdk#36900

A recent change to the Dart SDK updated `HttpClientResponse`
to implement `Stream<Uint8List>` rather than implementing
`Stream<List<int>>`.

This forwards-compatible chnage updates calls to
`Stream.transform(StreamTransformer)` to instead call the
functionally equivalent `StreamTransformer.bind(Stream)`
API, which puts the stream in a covariant position and
thus causes the SDK change to be non-breaking.

dart-lang/sdk#36900
@tvolkert
Copy link
Author

tvolkert commented Jul 7, 2019

ping @IntelX

@tvolkert
Copy link
Author

@jwashin are you the right person to review and merge this?

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