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
27 changes: 8 additions & 19 deletions features/line-break.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ status:
chrome: "83"
chrome_android: "83"
edge: "83"
firefox: ≤72
firefox: "69"
firefox_android: "79"
safari: ≤13.1
safari_ios: ≤13.4
safari: "13"
safari_ios: "13"
compat_features:
# baseline: high
# baseline_low_date: 2020-07-28
Expand All @@ -34,12 +34,16 @@ compat_features:
# chrome: "58"
# chrome_android: "58"
# edge: "79"
# firefox: ≤72
# firefox: "69"
# firefox_android: "79"
# safari: "11"
# safari_ios: "11"
- css.properties.line-break.auto
- css.properties.line-break.loose
- css.properties.line-break.normal
- css.properties.line-break.strict

# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2020-07-28
# baseline_high_date: 2023-01-28
Expand All @@ -52,18 +56,3 @@ compat_features:
# safari: "13"
# safari_ios: "13"
- css.properties.line-break.anywhere

# baseline: high
# baseline_low_date: 2020-07-28
# baseline_high_date: 2023-01-28
# support:
# chrome: ≤83
# chrome_android: ≤83
# edge: ≤83
# firefox: ≤72
# firefox_android: "79"
# safari: ≤13.1
# safari_ios: ≤13.4
- css.properties.line-break.auto
- css.properties.line-break.loose
- css.properties.line-break.strict
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 allows you to wrap iterable and async iterable objects (for example, arrays or async generators) as a readable stream.
MattiasBuelens marked this conversation as resolved.
Show resolved Hide resolved
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)` allows you to specify the minimum number of elements that must be available before the read request will fulfill.
MattiasBuelens marked this conversation as resolved.
Show resolved Hide resolved
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
36 changes: 4 additions & 32 deletions features/streams.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ compat_features:
# safari_ios: "14.5"
- api.WritableStream.close

# baseline: low
# baseline: high
# baseline_low_date: 2022-06-28
# baseline_high_date: 2024-12-28
# support:
# chrome: "59"
# chrome_android: "59"
Expand All @@ -184,8 +185,9 @@ compat_features:
# safari_ios: "10.3"
- api.ReadableStream.pipeThrough

# baseline: low
# baseline: high
# baseline_low_date: 2022-06-28
# baseline_high_date: 2024-12-28
# support:
# chrome: "67"
# chrome_android: "67"
Expand Down Expand Up @@ -240,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 @@ -276,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
12 changes: 11 additions & 1 deletion features/svg.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,6 @@ compat_features:
- svg.elements.radialGradient.r
- svg.elements.radialGradient.spreadMethod
- svg.elements.script.type
- svg.elements.script.xlink_href
- svg.elements.style.media
- svg.elements.style.title
- svg.elements.style.type
Expand Down Expand Up @@ -1663,6 +1662,17 @@ compat_features:
- api.SVGImageElement.crossOrigin
- svg.elements.image.crossorigin

# baseline: false
# support:
# chrome: "1"
# chrome_android: "18"
# edge: "79"
# firefox: "1.5"
# firefox_android: "4"
# safari: "3"
# safari_ios: "2"
- svg.elements.script.xlink_href

# baseline: false
# support:
# chrome: "1"
Expand Down
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, allowing you to move them from one context to another (for example, to a worker).
MattiasBuelens marked this conversation as resolved.
Show resolved Hide resolved
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 allows you to clean up resources when the readable side is cancelled or the writable side is aborted.
MattiasBuelens marked this conversation as resolved.
Show resolved Hide resolved
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
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@eslint/js": "^9.17.0",
"@js-temporal/polyfill": "^0.4.4",
"@mdn/browser-compat-data": "^5.6.26",
"@mdn/browser-compat-data": "^5.6.27",
"@types/caniuse-lite": "^1.0.4",
"@types/diff": "^5.2.3",
"@types/node": "^18.19.68",
Expand Down
Loading