Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Bun 6 min read Release mediumAdept

Bun v0.8.1

Bun v0.8.1 adds unix domain socket support to Bun.serve() via a new `unix` option and fixes a 2.8x request-body throughput regression from v0.8.0 (about 38.6k to 110k req/s). The regression came from microtasks not being drained after reading request bodies, which became unbalanced once v0.8.0 started draining HTTP-server microtasks per request. Other fixes cover reporting native memory for Headers, Blob and fetch() to the garbage collector, runtime inlining of statically failing require() calls that broke napi packages, a 24-byte metadata header leaking into inline sourcemaps under --inspect, stale package.json scripts in the binary lockfile, and node:http proxy URLs.

Related posts

  • Bun v1.0.4

    Bun mediumAdept

    Bun v1.0.4 fixes 62 bugs, adds server.requestIP() for retrieving a request's socket IP (not proxy headers), and supports esbuild-compatible virtual modules in runtime plugins via builder.module(). Bun.serve() now reports manually managed per-request memory to JavaScriptCore's GC, cutting memory by up to ~50% (e.g. Fastify 267 MB to 114 MB after 800k requests). The default fetch() and bun install timeout rises from 30 seconds to 5 minutes between data chunks. The lockfile now stores workspace member versions, and fixes cover getaddrinfo fallback across all results, 3xx fetch hangs, and Node.js compatibility.

  • Bun v1.0.10

    Bun mediumAdept

    Bun v1.0.10 makes node:http 14% faster by building Node.js headers, rawHeaders and url strings directly in native code. The old path went through web-standard Headers objects and parsed absolute URLs twice. The change also fixes multiple Set-Cookie headers not reaching JavaScript and spurious errors on non-URL request targets like "*". Separately, Bun calls Linux syscalls directly but its Linux ARM64 error handling wrongly assumed libc errno, which caused bogus EBADF and install failures in Docker; that is now fixed. The release also fixes SQLite extension loading on macOS and a semver pre-release parsing crash in bun install.

  • Bun v1.0.31

    Bun mediumAdept

    Bun v1.0.31 adds `bun --print` (Node-compatible eval with top-level await, TypeScript and JSX), running code from stdin via `bun run -`, `bun add --trust` plus `bun pm untrusted`/`trust` for managing blocked postinstall scripts, and `fetch()`/`node:http` support for Unix and Linux abstract domain sockets. A 100% CPU bug in `Bun.spawn()` on pre-5.10 Linux kernels came from the SIGCHLD fallback never reading its eventfd, which also masked a broken signal handler; a CPU-time regression test now guards it. A build mistake that statically linked all of ICU on macOS, inflating the binary from 47.7 MB to 80.4 MB, is fixed. Streaming file I/O and process spawning were reimplemented to avoid blocking the main thread without a threadpool, alongside Node.js compatibility and bunx/install fixes.

  • Bun v1.0.30

    Bun mediumAdept

    Bun v1.0.30 fixes 27 bugs, including an 8x performance regression in Bun.serve() when a direct ReadableStream writes exactly one chunk in a single event-loop tick, introduced in v1.0.4. It adds a --conditions flag to bun build and the runtime for resolving package.json "exports" conditions such as react-server, plus expect.assertions() and expect.hasAssertions() in bun:test. Several crash causes are explained: a request-body Promise rejected after it was no longer pending, an incorrect JavaScriptCore tailcall intrinsic in require that broke Next.js, a TextEncoder.encode side-effects JIT bug, and uninitialized timer memory on Linux ARM64. Node.js compatibility fixes to node:stream event timing resolve hangs in prisma generate and node-fetch.

  • Bun v1.3.9

    Bun mediumAdept

    Bun v1.3.9 adds `bun run --parallel` and `--sequential` for running package.json scripts with prefixed output across workspaces, along with Node-compatible HTTP/2 connection upgrades via `net.Server`, `Symbol.dispose` support for test mocks, `NO_PROXY` handling for explicit proxies, `--cpu-prof-interval`, and ESM bytecode in `--compile`. A JavaScriptCore upgrade brings SIMD-accelerated RegExp prefix search on ARM64 and x86_64, JIT compilation of fixed-count parenthesized subpatterns (~3.9x faster), DFG/FTL intrinsics for `startsWith`, `Set/Map#size` (2.2-2.7x) and `trim`, and rope-returning `String#replace`. Fixes include SIGILL crashes on ARMv8.0 CPUs caused by mimalloc LSE atomics, a chunked-encoding request smuggling bug, and keep-alive hangs for proxy-style requests.

The quest for software engineering knowledge.

Look:
Layout: