chunkwise.

Changelog

Versions follow semver. Anything that changes observable behaviour of an existing call is a major bump, including bug fixes, because downstream code often relies on the bug.

1.4.212 August 2026
  • fixZero-length sources no longer yield one empty chunk before closing.
  • fixthrottle stopped drifting on Windows, where timer resolution made the bucket refill early.
  • docsClarified that both ends of Range are inclusive.
1.4.127 June 2026
  • fixType declarations resolved incorrectly under moduleResolution: bundler.
1.4.019 June 2026
  • addreadAll accepts a limit and rejects with LimitExceededError.
  • addNode Readable inputs are accepted everywhere a ReadableStream was required.
  • perfchunkBy reuses one backing buffer, roughly halving allocations on large files.
1.3.04 April 2026
  • addSuffix ranges (bytes=-500) are parsed and clamped.
  • fixRanges starting past the end of the resource return null instead of an inverted range.
1.2.021 January 2026
  • addthrottle, built on a token bucket over accumulated bytes.
  • choreDropped the build-time dependency on esbuild; the package now has none at all.
1.1.08 November 2025
  • addformatContentRange.
  • docsBrowser examples using fetch and Response.body.
1.0.015 September 2025
  • breakNode 16 is no longer supported. WHATWG streams are assumed to be present.
  • breakparseRange returns null rather than throwing on unsatisfiable input.
  • addCommonJS build alongside ESM.
0.3.030 May 2025
  • addType declarations.
  • fixThe final chunk from chunkBy was padded with zeros instead of being emitted short.
0.1.011 March 2025
  • First public release: chunkBy and parseRange, extracted from an internal media service.