Skip to content

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

Bun 11 min read Release mediumAdept

Bun v0.8.0

Bun v0.8.0 adds a debugger via WebKit's Inspector Protocol (`--inspect` with a web UI at debug.bun.sh), a `bun update` command, streaming `fetch()` response bodies, and true streaming of ReadableStream responses in `Bun.serve()`, which previously buffered them. `node:tty` ReadStream/WriteStream and `process.stdin.setRawMode()` now work, unblocking interactive prompt libraries such as inquirer, and SvelteKit and the Nuxt dev server now run. Other changes include Jest `test.each`/`describe.each`, a SIMD-optimized `Buffer.toString("hex")` that is 40x faster, and a fix for a DOMJIT crash in Buffer functions introduced by a JavaScriptCore upgrade. For fast streaming, `type: "direct"` ReadableStreams are still recommended for now.

Related posts

  • Bun v0.2.0

    Bun mediumAdept

    Bun v0.2.0 adds `bun --hot` for server-side hot reloading that preserves global state and in-flight HTTP requests, `Bun.spawn`/`Bun.spawnSync` for process spawning with flexible stdin sources and ReadableStream output, and streaming request bodies in `Bun.serve`. Memory use for `Bun.serve` drops 2.7x+ after fixing how Request/Response/Blob memory was reported to JavaScriptCore's garbage collector, and an event loop bug fix makes `bun:test` far faster for network tests. Breaking changes: CLI arguments after the script are passed through verbatim, and `process.version` now reports a fake Node.js version for npm compatibility.

  • Bun v1.3.12

    Bun mediumAdept

    Bun v1.3.12 adds Bun.WebView, a built-in headless browser automation API with WebKit and Chrome (CDP) backends. It dispatches OS-level trusted input events and waits for elements to be actionable, Playwright-style. Other additions are terminal Markdown rendering via `bun ./file.md` and Bun.markdown.ansi(), an in-process Bun.cron() scheduler that never overlaps runs and fires in UTC, and async stack traces for native APIs. The release also fixes UDP ICMP error handling and truncation detection, aligns unix socket lifecycle with Node.js, and embeds standalone Linux executables in an ELF section so execute-only binaries work. A JavaScriptCore upgrade brings `using` declarations and JIT improvements, and benchmarks show URLPattern up to 2.3x faster, SIMD-accelerated stripANSI/stringWidth up to ~11x faster, and faster bun build on low-core machines.

  • Bun v1.2.12

    Bun mediumAdept

    Bun v1.2.12 adds a `--console` flag (and `development.console` option in `Bun.serve()`) that streams browser console.log/error output to the terminal over the existing HMR WebSocket, prefixed with `[browser]`. The frontend dev server's memory use drops from 272 MB to 150 MB in a React hot-reload benchmark through sourcemap-related architecture changes, and startup is 30μs faster. Node.js compatibility gains include vm `cachedData` support, `net.BlockList`, http Agent fixes and 98.4% of Node's timers tests passing, plus WHATWG-conformant TextDecoder fixes and a fix for global postinstall scripts with trustedDependencies.

  • Bun v0.8.1

    Bun mediumAdept

    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.

  • Bun v1.2.18

    Bun mediumAdept

    Bun v1.2.18 fixes 52 issues and adds ReadableStream .text()/.json()/.bytes()/.blob(), ReadableStream stdin for Bun.spawn, permessage-deflate compression for the WebSocket client, and Math.sumPrecise. Large fetch() and S3 uploads now apply backpressure, pausing stream reads while the socket is busy so memory stays flat, and S3 writer.flush() resolves after each part uploads. Native addon performance improves: napi_create_buffer skips zero-initialization for about 30% faster large allocations, and sliced strings are no longer cloned. Node.js compatibility work includes reporting as Node v24.3.0, fs.glob matching directories by default, and http2 remoteSettings and net error-handling fixes.

The quest for software engineering knowledge.

Look:
Layout: