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

Split streams into more features #2491

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
1 change: 1 addition & 0 deletions features/async-iterable-streams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ spec: https://streams.spec.whatwg.org/#rs-asynciterator
group: streams
compat_features:
- api.ReadableStream.@@asyncIterator
- api.ReadableStream.values
1 change: 1 addition & 0 deletions features/async-iterable-streams.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ status:
firefox_android: "110"
compat_features:
- api.ReadableStream.@@asyncIterator
- api.ReadableStream.values
6 changes: 6 additions & 0 deletions features/readablestream-from.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: ReadableStream.from()
description: The `ReadableStream.from()` static method wraps iterable and async iterable objects, such as arrays or async generator functions, as a readable stream.
spec: https://streams.spec.whatwg.org/#rs-from
group: streams
compat_features:
- api.ReadableStream.from_static
10 changes: 10 additions & 0 deletions features/readablestream-from.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Generated from: readablestream-from.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
firefox: "117"
firefox_android: "117"
compat_features:
- api.ReadableStream.from_static
6 changes: 6 additions & 0 deletions features/readablestreambyobreader-read-min.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "ReadableStreamBYOBReader.read(): min option"
description: The `min` option for `ReadableStreamBYOBReader.read(view, options)` sets the minimum number of elements that must be available before the read request will fulfill.
spec: https://streams.spec.whatwg.org/#ref-for-dom-readablestreambyobreaderreadoptions-min%E2%91%A0
group: streams
compat_features:
- api.ReadableStreamBYOBReader.read.options_min_parameter
8 changes: 8 additions & 0 deletions features/readablestreambyobreader-read-min.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Generated from: readablestreambyobreader-read-min.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support: {}
compat_features:
- api.ReadableStreamBYOBReader.read.options_min_parameter
6 changes: 0 additions & 6 deletions features/streams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ compat_features:
- api.ReadableByteStreamController.desiredSize
- api.ReadableByteStreamController.enqueue
- api.ReadableByteStreamController.error
- api.ReadableStream.from_static
- api.ReadableStream.transferable
- api.ReadableStream.values
- api.ReadableStreamBYOBReader
- api.ReadableStreamBYOBReader.ReadableStreamBYOBReader
- api.ReadableStreamBYOBReader.cancel
- api.ReadableStreamBYOBReader.closed
- api.ReadableStreamBYOBReader.read
- api.ReadableStreamBYOBReader.read.options_min_parameter
- api.ReadableStreamBYOBReader.releaseLock
- api.ReadableStreamBYOBReader.releaseLock.reject_pending_read_request
- api.ReadableStreamBYOBRequest
Expand All @@ -52,15 +48,13 @@ compat_features:
- api.TransformStream
- api.TransformStream.TransformStream
- api.TransformStream.readable
- api.TransformStream.transferable
- api.TransformStream.writable
- api.TransformStreamDefaultController
- api.TransformStreamDefaultController.desiredSize
- api.TransformStreamDefaultController.enqueue
- api.TransformStreamDefaultController.error
- api.TransformStreamDefaultController.terminate
- api.WritableStream.close
- api.WritableStream.transferable
- api.WritableStreamDefaultController.signal
- api.WritableStreamDefaultWriter.WritableStreamDefaultWriter
- api.ByteLengthQueuingStrategy
Expand Down
30 changes: 0 additions & 30 deletions features/streams.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,6 @@ compat_features:
# firefox_android: "100"
- api.ReadableStreamDefaultReader.ReadableStreamDefaultReader

# baseline: false
# support:
# chrome: "87"
# chrome_android: "87"
# edge: "87"
# firefox: "103"
# firefox_android: "103"
- api.ReadableStream.transferable
- api.TransformStream.transferable
- api.WritableStream.transferable

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
Expand All @@ -278,28 +267,9 @@ compat_features:
- api.ReadableStreamBYOBRequest.respondWithNewView
- api.ReadableStreamBYOBRequest.view

# baseline: false
# support:
# chrome: "124"
# chrome_android: "124"
# edge: "124"
# firefox: "110"
# firefox_android: "110"
- api.ReadableStream.values

# baseline: false
# support:
# firefox: "102"
# firefox_android: "102"
- api.ReadableStreamBYOBReader.releaseLock.reject_pending_read_request
- api.ReadableStreamDefaultReader.releaseLock.reject_pending_read_request

# baseline: false
# support:
# firefox: "117"
# firefox_android: "117"
- api.ReadableStream.from_static

# baseline: false
# support: {}
- api.ReadableStreamBYOBReader.read.options_min_parameter
8 changes: 8 additions & 0 deletions features/transferable-streams.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Transferable streams
description: Streams are transferable objects, which can be moved between contexts such as workers.
spec: https://streams.spec.whatwg.org/#rs-transfer
group: streams
compat_features:
- api.ReadableStream.transferable
- api.TransformStream.transferable
- api.WritableStream.transferable
15 changes: 15 additions & 0 deletions features/transferable-streams.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated from: transferable-streams.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "87"
chrome_android: "87"
edge: "87"
firefox: "103"
firefox_android: "103"
compat_features:
- api.ReadableStream.transferable
- api.TransformStream.transferable
- api.WritableStream.transferable
6 changes: 6 additions & 0 deletions features/transformstream-transformer-cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "TransformStream: transformer.cancel method"
description: The `cancel` method of a `TransformStream` transformer cleans up resources when the readable side is cancelled or the writable side is aborted.
spec: https://streams.spec.whatwg.org/#dom-transformer-cancel
group: streams
compat_features:
- api.TransformStream.TransformStream.transformer_cancel
8 changes: 8 additions & 0 deletions features/transformstream-transformer-cancel.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Generated from: transformstream-transformer-cancel.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support: {}
compat_features:
- api.TransformStream.TransformStream.transformer_cancel
Loading