Drop support for native Node Readable stream: require passing Node Web Streams (#1716)

Breaking change: all functions taking streams as inputs will now require passing Web Streams in Node.js . If given a native `stream.Readable` input, they will throw. The browser build is unaffected by this change.

Utils to convert from and to Web Streams in Node are available from v17,
see https://nodejs.org/api/stream.html#streamreadabletowebstreamreadable-options .
Previously, we automatically converted between Node native streams and custom, Web-like Readable streams.
This led to occasional issues.
This commit is contained in:
larabr
2024-01-26 17:52:29 +01:00
committed by GitHub
parent 591b9399a8
commit 99899d1d5c
11 changed files with 155 additions and 175 deletions

View File

@@ -20,6 +20,8 @@ jobs:
ref: main
path: main
- uses: actions/setup-node@v3
with:
node-version: '>=20.6.0'
- name: Run pull request time benchmark
run: cd pr && npm install && npm run --silent benchmark-time > benchmarks.txt && cat benchmarks.txt