Bun v0.6.3
Bun v0.6.3 adds the node:vm module for running code in controlled JavaScript contexts and fixes node:tls and node:http so socket.io and mongodb authentication work. bun test gains test.todo(), toBeCloseTo(), per-test timeouts and lifecycle hooks via --preload. The release fixes several bundler race conditions and minifier bugs, plus two fetch() memory leaks caused by strongly held Promise<Response> references. It also includes a breaking change: ServerWebSocket.publish() now excludes the sender by default, and WebSockets can deliver binary messages as Node Buffers.
Related posts
- Bun v0.7.0
Bun mediumAdept
Bun v0.7.0 focuses on Node.js compatibility: it can now run `vite dev` (experimentally, via `bun --bun` to override the node shebang), supports Web `Worker` threads with `postMessage` and `structuredClone()`, and implements `AsyncLocalStorage` from `node:async_hooks` as a step toward Next.js support. Other additions include a `--smol` flag that shrinks and slows growth of the JavaScriptCore heap for memory-constrained environments, `bun test --bail`, `Bun.readableStreamToFormData()`, `serialize`/`deserialize` in `bun:jsc`, WebSocket ping/pong with `nodebuffer` as the default binaryType, and many `node:tls` TLSSocket methods. Fixes include a Response memory leak that cut peak memory in a benchmark from 292 MB to 49 MB, base64url hash output matching Node.js, and module resolution ordering for dual CJS/ESM packages like graphql.
- 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 v0.2.1
Bun mediumAdept
Bun.serve() gains built-in server-side WebSocket support powered by uWebSockets, with a server.upgrade(req) call that handles the Sec-WebSocket-Key check automatically. RegExp lookbehind assertions, needed by packages like Discord.js, now work through a fallback Oniguruma engine: the transpiler rewrites such regex literals into Bun.OnigurumaRegExp until JavaScriptCore supports them natively. Smaller changes include a Date header on HTTP responses, performance.timeOrigin, DOMJIT bindings for ServerWebSocket send/publish methods, and fixes for an HTTP memory leak, a buffered-response memory aliasing bug and WebSocket client pong handling.
- Bun v1.2.20
Bun mediumAdept
Bun v1.2.20 fixes 141 issues and cuts idle CPU usage by no longer over-scheduling the garbage collector. AbortSignal.timeout is 40x faster because it now shares setTimeout's implementation. bun install migrates yarn.lock v1 files automatically, and bun:test adds return-value matchers, Vitest-compatible expectTypeOf and mock.clearAllMocks. Other changes include automatic ETag/304 handling for Bun.serve static routes, Windows long-path support via an application manifest, streaming WebAssembly compilation, recursive workspace support in bun outdated and bun update, and many crash fixes across Node compatibility, the bundler, the dev server and Bun.SQL.
- Bun v1.3.4
Bun mediumAdept
Bun 1.3.4 adds the URLPattern Web API (passing 408 Web Platform Tests), Jest-style fake timers in bun:test, custom proxy headers in fetch() and a %j console format specifier. It also fixes three separate bugs that stopped http.Agent keepAlive from reusing connections, including case-sensitive header parsing that violated RFC 7230. Standalone executables built with --compile no longer load tsconfig.json or package.json at runtime unless you opt back in with new flags. Other changes update bun:sqlite to SQLite 3.51.1, tighten chunk-terminator validation per RFC 9112, and fix many fuzzer-found crashes in Buffer, FFI, Node.js compatibility and Windows behaviour.