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

Add streams #990

Merged
merged 3 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions feature-group-definitions/streams.dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Generated from: streams.yml
# Do not edit this file by hand. Edit the source file instead!

name: Streams
description: The streams API creates, composes, and consumes continuously generated data.
spec: https://streams.spec.whatwg.org/
caniuse: streams
status:
baseline: low
baseline_low_date: 2022-06-28
support:
chrome: "59"
chrome_android: "59"
edge: "79"
firefox: "102"
firefox_android: "102"
safari: "14.1"
safari_ios: "14.5"
# The compat features list produces a different status than caniuse. Caniuse
# notes partial support on the following:
#
# - Writable streams
# - `pipe` and `pipeTo` methods
# - BYOB support
#
# BYOB support appears to be a separate feature, so we omit
# `ReadableStreamBYOBReader` and `ReadableStreamBYOBRequest` from the feature
# list. Otherwise, this list attempts to match caniuse. To do this, we must
# ignore several interfaces, see "later support" comment below.
compat_features:
- api.ByteLengthQueuingStrategy
- api.ByteLengthQueuingStrategy.ByteLengthQueuingStrategy
- api.ByteLengthQueuingStrategy.highWaterMark
- api.ByteLengthQueuingStrategy.size
- api.CountQueuingStrategy
- api.CountQueuingStrategy.CountQueuingStrategy
- api.CountQueuingStrategy.highWaterMark
- api.CountQueuingStrategy.size
- api.ReadableStream
- api.ReadableStream.ReadableStream
- api.ReadableStream.cancel
- api.ReadableStream.getReader
- api.ReadableStream.locked
- api.ReadableStream.pipeThrough
- api.ReadableStream.pipeTo
- api.ReadableStream.tee
- api.WritableStream
- api.WritableStream.WritableStream
- api.WritableStream.abort
- api.WritableStream.getWriter
- api.WritableStream.locked
- api.WritableStreamDefaultController
- api.WritableStreamDefaultController.error
- api.WritableStreamDefaultWriter
- api.WritableStreamDefaultWriter.abort
- api.WritableStreamDefaultWriter.close
- api.WritableStreamDefaultWriter.closed
- api.WritableStreamDefaultWriter.desiredSize
- api.WritableStreamDefaultWriter.ready
- api.WritableStreamDefaultWriter.releaseLock
- api.WritableStreamDefaultWriter.write
# TODO: Later support
# - api.ReadableStreamDefaultController
# - api.ReadableStreamDefaultController.close
# - api.ReadableStreamDefaultController.desiredSize
# - api.ReadableStreamDefaultController.enqueue
# - api.ReadableStreamDefaultController.error
# - api.ReadableStreamDefaultReader
# - api.ReadableStreamDefaultReader.cancel
# - api.ReadableStreamDefaultReader.closed
# - api.ReadableStreamDefaultReader.read
# - api.ReadableStreamDefaultReader.releaseLock
# - api.TransformStream
# - api.TransformStream.TransformStream
# - api.TransformStream.readable
# - api.TransformStream.writable
# - api.TransformStreamDefaultController
# - api.TransformStreamDefaultController.desiredSize
# - api.TransformStreamDefaultController.enqueue
# - api.TransformStreamDefaultController.error
# - api.TransformStreamDefaultController.terminate
# - api.WritableStream.close
# - api.WritableStreamDefaultWriter.WritableStreamDefaultWriter

# TODO: consider BYOB feature
# - api.ReadableStreamBYOBReader
# - api.ReadableStreamBYOBReader.ReadableStreamBYOBReader
# - api.ReadableStreamBYOBReader.cancel
# - api.ReadableStreamBYOBReader.closed
# - api.ReadableStreamBYOBReader.read
# - api.ReadableStreamBYOBReader.releaseLock
# - api.ReadableStreamBYOBRequest
# - api.ReadableStreamBYOBRequest.respond
# - api.ReadableStreamBYOBRequest.respondWithNewView
# - api.ReadableStreamBYOBRequest.view

# TODO: consider abortable stream feature
# - api.WritableStreamDefaultController.signal
85 changes: 85 additions & 0 deletions feature-group-definitions/streams.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Streams
description: The streams API creates, composes, and consumes continuously generated data.
spec: https://streams.spec.whatwg.org/
caniuse: streams
# The compat features list produces a different status than caniuse. Caniuse
# notes partial support on the following:
#
# - Writable streams
# - `pipe` and `pipeTo` methods
# - BYOB support
#
# BYOB support appears to be a separate feature, so we omit
# `ReadableStreamBYOBReader` and `ReadableStreamBYOBRequest` from the feature
# list. Otherwise, this list attempts to match caniuse. To do this, we must
# ignore several interfaces, see "later support" comment below.
compat_features:
- api.ByteLengthQueuingStrategy
- api.ByteLengthQueuingStrategy.ByteLengthQueuingStrategy
- api.ByteLengthQueuingStrategy.highWaterMark
- api.ByteLengthQueuingStrategy.size
- api.CountQueuingStrategy
- api.CountQueuingStrategy.CountQueuingStrategy
- api.CountQueuingStrategy.highWaterMark
- api.CountQueuingStrategy.size
- api.ReadableStream
- api.ReadableStream.ReadableStream
- api.ReadableStream.cancel
- api.ReadableStream.getReader
- api.ReadableStream.locked
- api.ReadableStream.pipeThrough
- api.ReadableStream.pipeTo
- api.ReadableStream.tee
- api.WritableStream
- api.WritableStream.WritableStream
- api.WritableStream.abort
- api.WritableStream.getWriter
- api.WritableStream.locked
- api.WritableStreamDefaultController
- api.WritableStreamDefaultController.error
- api.WritableStreamDefaultWriter
- api.WritableStreamDefaultWriter.abort
- api.WritableStreamDefaultWriter.close
- api.WritableStreamDefaultWriter.closed
- api.WritableStreamDefaultWriter.desiredSize
- api.WritableStreamDefaultWriter.ready
- api.WritableStreamDefaultWriter.releaseLock
- api.WritableStreamDefaultWriter.write

# TODO: Later support
# - api.ReadableStreamDefaultController
# - api.ReadableStreamDefaultController.close
# - api.ReadableStreamDefaultController.desiredSize
# - api.ReadableStreamDefaultController.enqueue
# - api.ReadableStreamDefaultController.error
# - api.ReadableStreamDefaultReader
# - api.ReadableStreamDefaultReader.cancel
# - api.ReadableStreamDefaultReader.closed
# - api.ReadableStreamDefaultReader.read
# - api.ReadableStreamDefaultReader.releaseLock
# - api.TransformStream
# - api.TransformStream.TransformStream
# - api.TransformStream.readable
# - api.TransformStream.writable
# - api.TransformStreamDefaultController
# - api.TransformStreamDefaultController.desiredSize
# - api.TransformStreamDefaultController.enqueue
# - api.TransformStreamDefaultController.error
# - api.TransformStreamDefaultController.terminate
# - api.WritableStream.close
# - api.WritableStreamDefaultWriter.WritableStreamDefaultWriter

# TODO: consider BYOB feature
# - api.ReadableStreamBYOBReader
# - api.ReadableStreamBYOBReader.ReadableStreamBYOBReader
# - api.ReadableStreamBYOBReader.cancel
# - api.ReadableStreamBYOBReader.closed
# - api.ReadableStreamBYOBReader.read
# - api.ReadableStreamBYOBReader.releaseLock
# - api.ReadableStreamBYOBRequest
# - api.ReadableStreamBYOBRequest.respond
# - api.ReadableStreamBYOBRequest.respondWithNewView
# - api.ReadableStreamBYOBRequest.view

# TODO: consider abortable stream feature
# - api.WritableStreamDefaultController.signal
Loading