Skip to content

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

Bun 11 min read Release mediumAdept

Bun v1.1.21

Bun v1.1.21 fixes 72 bugs and speeds up gzip/deflate decompression in fetch() by 30% on Linux x64 by switching to libdeflate, which also speeds up the WebSocket server. A new --fetch-preconnect flag and fetch.preconnect() API open the DNS/TCP/TLS connection before user code runs, cutting a first request from about 52ms to 8ms in the shown example. Linker, compiler and LTO changes shrink the Linux binary by 4 MB to 92 MB and trim 1ms from startup. The bundler adds --packages=external and content-aware code-splitting hashes, alongside many Node.js compatibility and crash fixes.

Related posts

  • Bun v1.1.27

    Bun mediumAdept

    Bun v1.1.27 fixes 130 bugs and rewrites node:zlib in native code, roughly doubling streaming deflate/gzip throughput over v1.1.26 and beating Node 22 on streams, though sync compression still trails Node. It adds `bun pm pack` as an npm pack replacement and extends Bun.serve() with static routes, streaming request/response clone(), ReadableStream cancel on abort, per-request timeouts, and a faster buffered-body path (65k vs 29k req/s). Fixes explain several root causes: signal propagation in `bun run`, a strong Promise reference leaking memory in Request, and missing V8-style handle scopes in N-API, which let JavaScriptCore's stack-scanning GC free heap-allocated values early.

  • 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.

  • Bun v1.1.8

    Bun mediumAdept

    Bun v1.1.8 fixes 54 bugs and adds support for process.on("uncaughtException") and process.on("unhandledRejection"), Brotli compression in node:zlib (which also restores axios compatibility), and [Symbol.dispose] on Bun.spawn, Bun.serve, Bun.connect and Bun.listen for use with the `using` syntax. JSON.parse gets faster via JavaScriptCore improvements, a build-flag bug causing Illegal instruction crashes on older Windows CPUs is fixed, and numerous Node.js compatibility and crash fixes land across console, fs, net, http, os and bun install workspaces.

  • Bun v1.4.1

    Bun mediumAdept

    Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements. JavaScriptCore now discards JIT code after idle periods, sharply cutting RSS (Next.js SSR 222 MB to 142 MB), and Bun.serve gains HTTP/2 on the same port via ALPN with large throughput gains over node:http2. Buffer read/write methods are JIT-inlined (up to 9x faster), AsyncLocalStorage avoids per-await allocations, Bun.write streams response bodies to disk, and WebSocket gets pause/resume for TCP backpressure. fetch now verifies TLS against the URL hostname rather than the Host header, closing an insecure default. bun build tree-shakes through `export * as` and dynamic import(), shrinking zod bundles by about 79%.

  • Bun v1.2.11

    Bun mediumAdept

    Bun v1.2.11 fixes 62 bugs and adds process.ref/process.unref, util.parseArgs negative options (allowNegative) with process.argv defaulting, and a BUN_INSPECT_PRELOAD environment variable equivalent to --preload. Google's Highway SIMD library now selects the best SIMD implementation at runtime, narrowing the gap between baseline and non-baseline builds, and inline sourcemap lexing is ~40% faster. Node.js compatibility work covers a reimplemented node:crypto KeyObject hierarchy with structuredClone support, HTTP/2 option validation, TLSSocket allowHalfOpen semantics and readline/promises error propagation. Fixes also land for minifier dead-code elimination in comma expressions, DevServer crashes and the PostgreSQL flush method.

The quest for software engineering knowledge.

Look:
Layout: