Bun v1.1.31
Bun v1.1.31 adds a node:http2 server and gRPC server support via @grpc/grpc-js, with node:http2 benchmarked at 128,879 req/s versus 52,785 req/s on Node v23 (2.4x). It also brings CA/cafile configuration for bun install, a --drop flag to strip calls like console.* at build or run time, Bun.inspect.table, iterable bun:sqlite queries, TC39 iterator helpers, Promise.try and a 9x faster Error.captureStackTrace. Node.js compatibility fixes cover Buffer.copyBytesFrom, Node-API edge cases, UV_THREADPOOL_SIZE, fs.open and an instanceof regression from a WebKit upgrade.
Related posts
- Bun 1.2
Bun mediumAdept
Bun 1.2 makes a major push on Node.js compatibility by porting thousands of files from the Node.js test suite into Bun's CI, with stubbed internal bindings and assertions on error name/code rather than message text. It adds a node:http2 server, node:dgram, node:cluster, a native rewrite of node:zlib with Brotli, V8 C++ addon API support implemented on JavaScriptCore, and V8 heap snapshots. It also introduces a native S3 client (Bun.s3) with presigned URLs, multipart writers and s3:// support in Bun.file and fetch, a built-in Postgres client (Bun.sql), and a text-based bun.lock lockfile. Claimed numbers include Express up to 3x faster than Node.js, HTTP/2 serving 2x faster, and S3 downloads 5x faster than @aws-sdk/client-s3.
- Bun v1.0.13
Bun mediumAdept
Bun v1.0.13 adds client support for the node:http2 module, which unblocks @grpc/grpc-js, and makes Vite 5 and Rollup 4 work by implementing process.report.getReport() for libc detection and fixing a transpiler bug with require() in ternaries. Files using ES5 `with` statements are now automatically treated as CommonJS instead of failing under strict mode. Bun.spawn now throws on macOS errors, because posix_spawn returns the error code directly rather than setting errno. The release also fixes a bun install regression and nondeterministic peer dependency resolution, and cuts per-module string allocations in CommonJS require, giving 7.9% fewer strings when loading Discord.js.
- 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.2.16
Bun mediumAdept
Bun v1.2.16 fixes 73 issues and adds 119 passing Node.js tests. Headline changes are serving files directly through Bun.serve routes, an install.linkWorkspacePackages bunfig option that installs workspace dependencies from the registry (useful in CI), bun outdated support for catalog dependencies, and Bun.hash.rapidhash. Node.js compatibility improves through a node:net rework, vm.SyntheticModule, an llhttp-backed HTTPParser binding and AbortController handling in timers/promises. The release also fixes memory leaks in N-API handle scopes and unread Bun.spawn stdio, plus assorted TLS, HTTP/2, CSS parser and Windows bugs.
- 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%.