Bun v1.1.13
Bun v1.1.13 fixes 97 bugs and adds `eval: true` for `node:worker_threads`, `URL.createObjectURL` for spawning TypeScript workers from Blobs, custom failure messages in `expect`, and five new `bun:test` matchers. Several fixes come with explanations of their cause. Concurrent `fetch` failures came from TCP FIN handling, now fixed by setting `SO_LINGER` to 0 to avoid TIME_WAIT socket exhaustion. A `Last-Modified` manifest-cache shortcut in `bun install` broke HTTP keep-alive and has been disabled. Stack-trace offsets were traced to how line and column numbers were read from JavaScriptCore. `crypto.pbkdf2` now uses BoringSSL instead of a JS polyfill, running about 30-40x faster than before and roughly 3x faster than Node.js. Other fixes cover semver parsing, npm manifest string deduplication and WebSocket server crashes.
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.0.30
Bun mediumAdept
Bun v1.0.30 fixes 27 bugs, including an 8x performance regression in Bun.serve() when a direct ReadableStream writes exactly one chunk in a single event-loop tick, introduced in v1.0.4. It adds a --conditions flag to bun build and the runtime for resolving package.json "exports" conditions such as react-server, plus expect.assertions() and expect.hasAssertions() in bun:test. Several crash causes are explained: a request-body Promise rejected after it was no longer pending, an incorrect JavaScriptCore tailcall intrinsic in require that broke Next.js, a TextEncoder.encode side-effects JIT bug, and uninitialized timer memory on Linux ARM64. Node.js compatibility fixes to node:stream event timing resolve hangs in prisma generate and node-fetch.
- Bun v1.0.22
Bun mediumAdept
Bun v1.0.22 fixes 29 bugs, most notably a `bun install` failure on Vercel. The parallel lifecycle-script change relied on `posix_spawn_file_actions_addchdir_np`, which needs glibc 2.29 while Vercel ships 2.26, and the failure went unchecked; a posix_spawn-like polyfill for Linux now handles it. New APIs include `performance.mark()`/`measure()` with `PerformanceObserver`, extra stdio pipes in `child_process` (groundwork for Playwright), Brotli decoding in `fetch` (now statically linked), `worker_threads` argv/execArgv, and new `bun:test` matchers. Performance changes make `Buffer.concat` 15–400% faster and `new Headers(object)` 10–15% faster, and fixes cover `console.table` emoji width, IPv6 binding on 0.0.0.0, and HTTP method casing.
- 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.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.