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 TextEncoderStream and TextDecoderStream transform streams #149

Merged
merged 18 commits into from
Aug 29, 2018

Commits on Jul 18, 2018

  1. Add TextEncoderStream and TextDecoderStream transform streams

    Integrate with the streams standard by adding TextEncoderStream and
    TextDecoderStream transform streams to the standard. These enable
    binary<>text conversions on a ReadableStream using the `pipeThrough()`
    method (see https://streams.spec.whatwg.org/#rs-pipe-through).
    
    A TextEncoderStream object can be used to transform a stream of strings
    to a stream of bytes in UTF-8 encoding. A TextDecoderStream object can
    be used to transform a stream of bytes in the encoding passed to the
    constructor to strings.
    
    There is a prollyfill and tests for the new functionality at
    https://github.com/GoogleChromeLabs/text-encode-transform-prollyfill.
    
    Closes whatwg#72.
    ricea committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    2756504 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2018

  1. General fixes

    * Remove unnecessary link-defaults
    * Make headers sentence case
    * Linkify GenericTransformStream
    * Indicate the GenericTransformStream's *transform* is a
      TransformStream.
    * Add [INFRA] to the reference to the Infra Standard.
    ricea committed Aug 3, 2018
    Configuration menu
    Copy the full SHA
    886d920 View commit details
    Browse the repository at this point in the history
  2. Make FooAttributes mixins fully own their "slots"

    Remove the encoding, ignore BOM flag and error mode slots from
    TextDecoder and TextDecoderStream and reference the versions in
    TextDecoderAttributes instead.
    
    Also remove the "transform" slot from TextDecoderStream and
    TextEncoderStream and reference GenericTransformStream's version
    instead.
    ricea committed Aug 3, 2018
    Configuration menu
    Copy the full SHA
    3b912b3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f04369c View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2018

  1. Configuration menu
    Copy the full SHA
    6a65ad5 View commit details
    Browse the repository at this point in the history
  2. Never enqueue an empty chunk

    ricea committed Aug 7, 2018
    Configuration menu
    Copy the full SHA
    343e148 View commit details
    Browse the repository at this point in the history
  3. Share the "serialize stream" algorithm

    Rename TextXcoderAlgorithms to TextXcoderCommon and move the "serialize
    stream" from TextDecoder to TextDecoderCommon so that it can be shared
    sanely with TextDecoderStream.
    ricea committed Aug 7, 2018
    Configuration menu
    Copy the full SHA
    6623b0b View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2018

  1. Configuration menu
    Copy the full SHA
    0e64bf8 View commit details
    Browse the repository at this point in the history
  2. Translate exceptions from "copy bytes" into rejections

    We no longer have explicit language rejecting detached buffers, however
    the "get a copy of the buffer source" algorithm will throw exceptions
    for them. Convert those exception to rejections to get the effect of the
    check.
    ricea committed Aug 8, 2018
    Configuration menu
    Copy the full SHA
    407d85d View commit details
    Browse the repository at this point in the history
  3. Add missing period.

    ricea committed Aug 8, 2018
    Configuration menu
    Copy the full SHA
    60854d8 View commit details
    Browse the repository at this point in the history
  4. address various nits

    annevk committed Aug 8, 2018
    Configuration menu
    Copy the full SHA
    e5b36e1 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2018

  1. Remove no-longer-needed ECMASCRIPT refs section

    Also stop explicitly importing "transform stream" as it is now exported
    from the streams standard.
    ricea committed Aug 9, 2018
    Configuration menu
    Copy the full SHA
    12b5161 View commit details
    Browse the repository at this point in the history
  2. Add one missing word "object"

    ricea committed Aug 9, 2018
    Configuration menu
    Copy the full SHA
    dd65b39 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    66aaab3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    af33687 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2018

  1. formatting nits

    annevk committed Aug 10, 2018
    Configuration menu
    Copy the full SHA
    29fdba4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    256a138 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2018

  1. more nits

    annevk committed Aug 14, 2018
    Configuration menu
    Copy the full SHA
    b9dfb01 View commit details
    Browse the repository at this point in the history