PackageTrack

npm · #3669

@sec-ant/readable-stream

0.7.0Sec-ant/readable-stream

A tiny, zero-dependency yet spec-compliant asynchronous iterator polyfill/ponyfill for ReadableStreams.

Release timeline

12 releases since 2022
2023202420252026

Releases

  1. 0.7.04 May 2026
    Release notes2 sources agree

    Minor Changes

    • bf594cf: Fix TypeScript issues with the ponyfill (#66)
      • asyncIterator() now returns ReadableStreamAsyncIterator<R> instead of an internal interface that exposed a private unique symbol brand. The package provides a compatible global declaration for older TypeScript versions and merges with modern lib.dom.d.ts, so ponyfill and polyfill usage share the same iterator type surface.
      • Breaking type change: the unused TReturn generic parameter on asyncIterator() has been removed from the public signature. Runtime iterator.return(value) behavior remains spec-compliant and resolves with { done: true, value }, while the public type follows lib.dom's ReadableStreamAsyncIterator<T> shape.
      • Added a top-level types field and a typesVersions map mirroring every subpath in exports, so the package's type definitions can be resolved under classic moduleResolution: "node" in addition to node16 / nodenext / bundler.
      • The polyfill now installs ReadableStream.prototype.values and ReadableStream.prototype[Symbol.asyncIterator] with Web IDL-conformant descriptors (values is enumerable, [Symbol.asyncIterator] is not) and guarantees the two slots reference the same function object.
    Open source →
  2. 0.6.129 Apr 2026
    Release notes2 sources agree

    Patch Changes

    • bd69b3e: Bump deps and switch to OIDC publishing
    Open source →
  3. 0.6.08 Oct 2024
    Release notes

    Minor Changes

    • 3b16e97: Update iterator-related types to cope with typescript 5.6 changes. See this writeup and this PR.
    Open source →
    Release notes

    Minor Changes

    • 3b16e97: Update iterator-related types to cope with typescript 5.6 changes. See this writeup and this PR.
    Open source →
  4. 0.5.021 Jul 2024
    Release notes2 sources agree

    Minor Changes

    • 7cb5954: Refactor asyncIterator ponyfill API

      BREAKING: The asyncIterator from the ponyfill API is refactored, you should now use it like this:

      asyncIterator(readableStream);
      

      instead of

      asyncIterator.call(readableStream);
      
    Open source →
  5. 0.4.116 Mar 2024
    Release notes2 sources agree

    Patch Changes

    • 82a7030: Fix package.json main and module entry point.
    Open source →
  6. 0.4.016 Mar 2024withdrawn: incorrect main entry point is fixed in v0.4.1
    Release notes2 sources agree

    Minor Changes

    • 0398fc0: Restructure codebase and export ponyfill entry points.

      BREAKING CHANGE: The API is redesgined. Check REAMDE.md for details.

    Open source →
  7. 0.3.220 Jul 2023

    Nothing published for this version

  8. 0.3.120 Dec 2022

    Nothing published for this version

  9. 0.3.019 Dec 2022

    Nothing published for this version

  10. 0.2.018 Dec 2022

    Nothing published for this version

  11. 0.1.025 Nov 2022

    Nothing published for this version

  12. 0.0.124 Nov 2022

    Nothing published for this version