Skip to content

Commits

Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Sep 30, 2023

  1. TransformStream cleanup using transformer.cancel

    Add a "cancel" hook to "Transformer". This allows users to perform resource cleanup when the readable side of the TransformStream is cancelled, or the writable side is aborted.
    
    To preserve existing behavior, when the readable side is cancelled with a reason, the writable side is always immediately aborted with that same reason. The same is true in the reverse case. This means that the status of both sides is always either "closed", "erroring", or "erroring" when the "cancel" hook is called.
    
    "flush" and "cancel" are never both called. As per existing behavior, when the writable side is closed the "flush" hook is called. If the readable side is cancelled while a promise returned from "flush" is still pending, "cancel" is not called. In this scenario the readable side ends up in the "errored" state, while the writable side ends up in the "closed" state.
    lucacasonato committed Sep 30, 2023
    Copy the full SHA
    007d729 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Copy the full SHA
    449df68 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. Review Draft Publication: August 2023

    domenic authored and annevk committed Aug 22, 2023
    Copy the full SHA
    14b4707 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. Copy the full SHA
    f780e1f View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Add ReadableStream.from(asyncIterable)

    This static method takes an async iterable and returns a ReadableStream pulling chunks from that async iterable. Sync iterables (including arrays and generators) are also supported, since GetIterator() already has all the necessary handling to adapt a sync iterator into an async iterator.
    
    Closes #1018.
    MattiasBuelens committed Jun 8, 2023
    Copy the full SHA
    8d7a0bf View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Meta: update WPT tests to ToT

    We skip two test files until the test infra and the spec/ref implementation gets updated.
    
    Co-authored-by: Mattias Buelens <[email protected]>
    youennf and MattiasBuelens committed Jun 7, 2023
    Copy the full SHA
    058f290 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. Use an AbortController instead of signaling abort on AbortSignal

     - Replace WritableStreamDefaultController's [[signal]] with
       [[AbortController]], using the controller's signal where [[signal]]
       was used. Signal abort on [[abortController]] rather than the
       [[signal]].
     - Remove the note about specs not signaling abort on the
       WritableStream's signal, since this won't be possible once
       AbortSignal's "signal abort" no longer exported.
    shaseley committed May 31, 2023
    Copy the full SHA
    eba8c79 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2023

  1. Update raw video explainer according proposed spec PR

    The "transfer" stream type has been renamed to "owning". Change
    streams-for-raw-video-explainer.md to match.
    youennf committed May 8, 2023
    Copy the full SHA
    cf7670a View commit details
    Browse the repository at this point in the history
  2. Tweak other-specification advice on AbortSignal usage

    Follows whatwg/dom#1152, which will remove the "follow" operation. Also changes the "should not" to "must not".
    shaseley committed May 8, 2023
    Copy the full SHA
    1222f88 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2023

  1. Add an other-specs abstraction to pull from bytes

    Helps with whatwg/fetch#1610.
    
    Co-authored-by: Domenic Denicola <[email protected]>
    saschanaz and domenic committed Apr 5, 2023
    Copy the full SHA
    2942e89 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2023

  1. Review Draft Publication: February 2023

    annevk authored and domenic committed Feb 20, 2023
    Copy the full SHA
    b45c0c5 View commit details
    Browse the repository at this point in the history
  2. Editorial: reference constructor steps instead of constructor operation

    Also make the fetch() reference more precise.
    annevk committed Feb 20, 2023
    Copy the full SHA
    3d63a7b View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2022

  1. Remove promises from "read all bytes"

    This makes it easier for other specifications that use this algorithm, such as Fetch, to use streams while interfacing less directly with the JavaScript engine.
    
    Helps with whatwg/fetch#1568. Helps with #1178.
    noamr committed Dec 13, 2022
    Copy the full SHA
    f894acd View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2022

  1. Copy the full SHA
    839a5a6 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2022

  1. Copy the full SHA
    0fac034 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2022

  1. Discuss async/parallel processing of written/transformed chunks

    See WICG/serial#165. This ends up adding two pieces of advice:
    
    * One about how producers should wait on the promise returned by writer.write(), and how underlying sinks and transformers can use their promise return values to control that.
    
    * One about how specification authors should avoid reading from chunks in parallel.
    domenic committed Sep 6, 2022
    Copy the full SHA
    cdffad6 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2022

  1. Copy the full SHA
    eb1769c View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2022

  1. Fix IDL validity by removing ReadableStreamBYOBReadResult

    In #1214, ReadableStreamBYOBReadResult was changed to have a value property of type `(ArrayBufferView or undefined) value`, since it is possible for the value to be undefined.
    
    However, the Web IDL specification says that is invalid IDL:
    
    > undefined must not be used as the type of an argument in any circumstance (in
    > an operation, callback function, constructor operation, etc), or as the type
    > of a dictionary member, whether directly or in a union. Instead, use an
    > optional argument or a non-required dictionary member.
    >
    
    https://webidl.spec.whatwg.org/#idl-undefined
    
    So this instead removes ReadableStreamBYOBReadResult entirely, in favor of a renamed ReadableStreamDefaultReadResult, which has type any for its value.
    mgaudet committed Apr 18, 2022
    Copy the full SHA
    e9355ce View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2022

  1. Meta: export "high water mark"

    Used, e.g., in WebTransport.
    dontcallmedom committed Feb 24, 2022
    Copy the full SHA
    9538b77 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2022

  1. Copy the full SHA
    cc936c1 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2022

  1. Meta: roll web platform tests

    This includes tests for interaction between autoAllocateChunkSize and respondWithNewView, which were merged in web-platform-tests/wpt#32757. The reference implementation already passes them.
    MattiasBuelens committed Feb 9, 2022
    Copy the full SHA
    ac3dca9 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2022

  1. Copy the full SHA
    3a0cfd6 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2022

  1. Use (ArrayBufferView or undefined) for ReadableStreamBYOBReadResult

    The standard returns an ReadableStreamBYOBReadResult with an undefined
    value, and the tests rely on this, but it wasn't permitted by the IDL. Fix the IDL
    to match the actual behaviour.
    
    Closes whatwg/webidl#1094.
    saschanaz committed Feb 2, 2022
    Copy the full SHA
    5fc90be View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Expose APIs everywhere

    Ms2ger committed Jan 24, 2022
    Copy the full SHA
    5afb0e0 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    590ec82 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2022

  1. Ensure pipeTo() releases its reader correctly

    The user agent is allowed to use a default reader or a BYOB reader for the pipe, but we were always calling ReadableStreamDefaultReaderRelease in the finalize steps. This commit fixes the algorithm to we should use the appropriate release abstract operation corresponding to the chosen reader.
    
    This was broken in d5f92d9.
    MattiasBuelens committed Jan 18, 2022
    Copy the full SHA
    908cedd View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Add missing controller argument

    Missed in d5f92d9.
    crowlKats committed Jan 14, 2022
    Copy the full SHA
    3c6b8b3 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2022

  1. Copy the full SHA
    5c9a34c View commit details
    Browse the repository at this point in the history
  2. Reject pending reads when releasing a reader

    Currently, reader.releaseLock() throws an error if there are still pending read requests. However, in #1103 we realized that it would be more useful if we allowed releasing a reader while there are still pending reads, which would reject those reads instead. The user can then acquire a new reader to receive those chunks.
    
    For readable byte streams, we also discard pull-into descriptors corresponding to (now rejected) read-into requests. However, we must retain the first pull-into descriptor, since the underlying byte source may still be using it through controller.byobRequest. Instead, we mark this descriptor as "detached", such that when we invalidate this BYOB request (as a result of controller.enqueue() or byobRequest.respond()), the bytes from this descriptor are pushed into the stream's queue and used to fulfill read requests from a future reader.
    
    This also allows expressing pipeTo()'s behavior more accurately. Currently, it "cheats" by calling ReadableStreamReaderGenericRelease directly without checking if [[readRequests]] is empty. With the proposed changes, we can safely release the reader when the pipe finishes (even if there's a pending read), and be sure that any unread chunks can be read by a future reader or pipe.
    MattiasBuelens committed Jan 13, 2022
    Copy the full SHA
    d5f92d9 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2022

  1. Fix documentation for underlying source cancel() errors

    See nodejs/node#41048. This spells out the motivation for the difference between cancel and close/abort while we're here.
    domenic committed Jan 6, 2022
    Copy the full SHA
    53282dd View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2021

  1. Explainer for "transferring ownership streams"

    As discussed at last WebRTC/WHATWG Streams meeting, we are converging on a potential solution for VideoFrame handling in streams. This explainer is the first step towards a more formal solution.
    youennf committed Dec 16, 2021
    Copy the full SHA
    7f7d68b View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. Copy the full SHA
    cf4508d View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2021

  1. Copy the full SHA
    21a81c6 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2021

  1. Editorial: fix readable/writable file stream examples

    * Use `fileHandle.close()` to close a FileHandle
    * Pass a view to `fileHandle.read()`, since it doesn't accept an ArrayBuffer
    * Pass `position` to `fileHandle.read()` instead of relying on implicit file positioning
    dubiousjim committed Nov 29, 2021
    Copy the full SHA
    44190d1 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. Copy the full SHA
    5885d94 View commit details
    Browse the repository at this point in the history
Older