Bun v1.2.7
Bun v1.2.7 adds built-in cookie handling: Bun.serve() exposes a Map-like request.cookies that is parsed lazily on first access and automatically emits the right Set-Cookie headers when modified, with standalone Bun.Cookie and Bun.CookieMap classes for use outside the server. Bun's TypeScript declarations were rewritten to stop conflicting with Node.js and DOM types (e.g. Buffer vs Uint8Array iterator errors). The release also fixes a node:http crash regression, lowercase hash names in node:crypto, Set-Cookie array handling in node:http, undefined options in node:vm, and gives clearer errors when NAPI modules call unsupported libuv functions.
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 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.1.22
Bun mediumAdept
Bun v1.1.22 fixes 79 bugs and makes Express 3x faster than on Node.js through node:http improvements. Concurrent transpilation now works on Windows, so ES modules load up to 4x faster (lodash-es imports in 39ms vs 82ms before). Bun.serve() handles POST requests that ignore the body about 10% faster. Memory leaks around --hot reloading, garbage-collected modules, source maps and timers are fixed, and `bun build --compile` now supports zstd-compressed sourcemaps. The release also adds Uint8Array base64/hex methods, more Node.js compatibility APIs such as NODE_EXTRA_CA_CERTS and util.aborted, and bundler fixes for CommonJS and DCE annotations.
- 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.12
Bun mediumAdept
Bun v1.0.12 fixes 24 bugs and adds `bun -e` for evaluating inline scripts (with TypeScript, JSX and top-level await), `--env-file` for choosing which .env files to load, `server.url`, `import.meta.env`, and `expect.unreachable()` in bun:test. Macros can now import builtin modules like node:fs and node:child_process at bundle time, and `mock.module` now handles default exports and re-exports. Two fixes include root-cause explanations: a bun:sqlite `.get()` hang came from a wrong JavaScriptCore JSType tag that misled the DFG JIT, and a `require()` crash came from source code being garbage collected before an exception was thrown. As a result, Bun's debug builds now run JavaScriptCore with assertions enabled.