Changelog

oven-sh/bun · · 5 commits

Proxy env updates and a blob fix land

Bun now honors runtime proxy env changes in fetch, fixes a consumed-body blob crash, and ships broad doc polish plus ANSI perf work.

fetch() now sees runtime proxy env changes (cirospaciari7922fd8)

process.env.NO_PROXY, HTTP_PROXY, and HTTPS_PROXY updates now take effect on the next fetch() call instead of being stuck at startup values. This closes a real consistency gap between JS env mutations and Zig-side proxy resolution, and it extends the fix to worker-thread sharing so runtime changes stay visible across the VM.

Consumed body now rejects correctly in ReadableStream.blob() (robobun17bd6cb)

Calling blob() on a stream whose underlying response body has already been consumed now returns a rejected promise with ERR_BODY_ALREADY_USED instead of hitting an assertion failure. That turns a crashy host-function contract violation into a proper error path for already-used bodies.

Faster ANSI/string-width parsing (Jarred-Sumner4760d78)

Bun sped up stripANSI, stringWidth, and shared ANSI parsing helpers with SIMD and parsing-path optimizations. The benchmark harness was also expanded to cover more real-world ANSI, OSC, emoji, and CJK cases, which should make the performance gains easier to validate.

Docs copy polish across runtime and CSS guides (robobune7f2bfd, robobundb0f775)

Large-scale wording cleanup made the docs more concise, active, and consistent across many pages. A couple of repeated phrases and awkward lines in shell/CSS docs were also tightened up.

Other misc changes

  • Docs voice/clarity edits across 70+ files
  • Minor wording fixes in CSS and shell docs