@sec-ant/readable-stream is a tiny, zero-dependency, spec-compliant async iterator polyfill/ponyfill for Web ReadableStream. It lets developers consume a ReadableStream as an AsyncIterable, and also construct a ReadableStream from an AsyncIterable or Iterable, with options for side-effect-free (ponyfill) or drop-in (polyfill) usage.
Project status
- Actively maintained: the latest update and upstream push were on 2026-10-24, five days before the stated current date.
- The update history is irregular, with a long gap between October 2024 and April 2026, followed by updates in April, May, and October 2026. A regular cadence is not established.
AI summary generated
Recent updates
v0.7.1
v0.7.1 improves iterable-to-stream conversion and async iterator cancellation, validation, typing, and receiver handling. It also adds substantial browser compatibility and benchmark infrastructure and refreshes the development toolchain.
BreakingFeaturesv0.7.0
v0.7.0 focuses on TypeScript surface-area fixes for the ReadableStream async iterator ponyfill/polyfill. It also updates package metadata so type definitions resolve under more TS moduleResolution modes, and it standardizes the global async iterator types used by both ponyfill and polyfill.
Breakingv0.6.1
v0.6.1 is a patch release that primarily upgrades dependencies and adjusts the CI/publishing flow to use OIDC for NPM publishing. The code diff shows additional non-noted changes to build output configuration, testing scripts/CI wiring, and several repository toolchain settings.
v0.6.0
v0.6.0 is a small release focused on updating iterator-related TypeScript types to remain compatible with TypeScript 5.6 strict iterator checks. In practice, it adjusts the declared types for ReadableStream async iteration so they align with newer TS lib.dom expectations.
v0.5.0
v0.5.0 primarily refactors the `asyncIterator` ponyfill API, changing how consumers pass a `ReadableStream` into the function. The repository also updates development tooling and CI workflows, including several dependency bumps and some script/workflow behavior changes.
Breakingv0.4.1
v0.4.1 is a patch release focused on correcting the package entry points. It updates the package.json main and module fields so module resolution points at the actual built files under dist/index/.
v0.4.0
v0.4.0 is a breaking redesign of the library API, accompanied by a restructuring of the codebase. The release also changes how ponyfill entry points are exported, which may require updating existing imports and integration points.
Breaking