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

Rewrite streams #4842

Merged
merged 1 commit into from
Apr 22, 2020
Merged

Rewrite streams #4842

merged 1 commit into from
Apr 22, 2020

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Apr 22, 2020

This PR rewrites streams "from scratch" following patterns we wish to maintain in Deno. It is strongly aligned to the specification.

Currently it supports ReadableStream including ReadableByteStreamController but does not support ReadableStreamBYOBReader or WritableStream (and associated ReadableStream APIs that require a writable stream). This brings it parity with what was in streams before.

I've addressed a couple issues with our fetch() implementation that are not fully optimal, but significantly more work needs to be done there to clean that up properly.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big patch, I can't really review all of it. I view it as upgrading a dependency from sd-streams to Kitson's own streams written with Deno in mind - which is obviously preferable : ) In any case it's a lot less code, so that's good.

I'm slowly working on a rewrite to fetch, so I think I'll be interacting with this code in the near future.

LGTM. Thank you @kitsonk!

@ry ry merged commit 8bcfc03 into denoland:master Apr 22, 2020
SASUKE40 pushed a commit to SASUKE40/deno that referenced this pull request May 7, 2020
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.

None yet

2 participants