Skip to content

feat!: Switch to WHATWG ReadableStream - #170

Merged
phated merged 3 commits into
mainfrom
phated/web-streams
Nov 19, 2026
Merged

phated merged 3 commits into
mainfrom
phated/web-streams

Conversation

@phated

@phated phated commented Nov 18, 2026

Copy link
Copy Markdown
Member

This switches the library to create a WHATWG ReadableStream using Node's built-in Web Streams ReadableStream.from(iterable).

This fundamentally changes the API of the stream interface (such as needing to use pipeThrough and pipeTo methods for building pipelines), but Node combines different types of streams automatically with the pipeline operator.

I've moved streamx to a devDep so we can keep it in the test matrix. I also needed to alter the tests so the stream utilities could vary by suite. I have also removed a couple of tests that don't apply to Web Streams because they have a much more restricted API surface.

Closes #162

@phated
phated requested a review from FotoVerite November 18, 2026 20:44
@phated phated self-assigned this Nov 18, 2026
@phated phated added this to v6 Nov 18, 2026
@github-project-automation github-project-automation Bot moved this to Todo in v6 Nov 18, 2026
@phated phated moved this from Todo to In Progress in v6 Nov 18, 2026

@FotoVerite FotoVerite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like the new function passing to suites, I really want to break it out to it's own package since we use it so many places.

@phated
phated merged commit c51fd0c into main Nov 19, 2026
5 checks passed
@phated
phated deleted the phated/web-streams branch November 19, 2026 18:32
@github-project-automation github-project-automation Bot moved this from In Progress to Done in v6 Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Remove streamx dependency

2 participants