Bun v0.1.12
Bun v0.1.12 fixes stability problems in `bun install` that caused crashes or hangs roughly once per 80,000 cold package installs on Linux. Four bugs were behind them: a threadpool deadlock, an HTTP client suspend/resume bug, an empty-JSON crash, and DNS failure crashes. The fixes were a lock-free MPSC queue, eventfd/machport readiness notification instead of a futex, and an HTTP client rewrite on uSockets and getaddrinfo. `fetch()` now reaches 155,000 req/s on Linux x64, which is 24x Node v18.9 and 4.5x Deno. The release also adds `read` helpers to `bun:ffi`, with a breaking change to a 52-bit integer pointer representation via a WebKit DOMJIT change, picks up 2x faster `String.prototype.replace` from WebKit, and moves `crypto.getRandomValues` to BoringSSL.
Related posts
- Bun v1.1.11
Bun mediumAdept
Bun v1.1.11 fixes 36 bugs, makes `bun update` write changes to package.json (preserving semver ranges unless `--latest`), and fixes incorrect peer dependency hoisting in `bun install` that broke packages like ajv and expo. Timers were reimplemented: `setTimeout` throughput is 5x faster on Linux (648 ms vs 3454 ms for 2M calls, beating Node.js 22's 1182 ms), callbacks now receive a `Timeout` object as `this`, `setInterval` reschedules from callback start like Node, and returned promises are no longer awaited. Other fixes include a macOS kqueue bug that assumed events were either readable or writable but not both, UDP hangs, Windows build and DNS issues, several fuzzing-found crashes, and a breaking change making `bun test` exit 1 on uncaught errors between tests.
- Bun v1.1.13
Bun mediumAdept
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.
- 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.31
Bun mediumAdept
Bun v1.0.31 adds `bun --print` (Node-compatible eval with top-level await, TypeScript and JSX), running code from stdin via `bun run -`, `bun add --trust` plus `bun pm untrusted`/`trust` for managing blocked postinstall scripts, and `fetch()`/`node:http` support for Unix and Linux abstract domain sockets. A 100% CPU bug in `Bun.spawn()` on pre-5.10 Linux kernels came from the SIGCHLD fallback never reading its eventfd, which also masked a broken signal handler; a CPU-time regression test now guards it. A build mistake that statically linked all of ICU on macOS, inflating the binary from 47.7 MB to 80.4 MB, is fixed. Streaming file I/O and process spawning were reimplemented to avoid blocking the main thread without a threadpool, alongside Node.js compatibility and bunx/install fixes.
- Bun v1.1.34
Bun mediumAdept
Bun v1.1.34 fixes 64 bugs and adds Bun.randomUUIDv7() for sortable, database-friendly IDs, more aggressive garbage collection while idle in the event loop to cut memory in long-running processes, and Node-API type tagging (napi_type_tag_object/napi_check_object_type_tag) that unblocks tree-sitter. Secrets in bunfig.toml and .npmrc error logs are now redacted, and bun build --compile inlines process.versions.bun so native addons can be bundled statically. Fixes include ReadableStream spec issues pulled from WebKit, HTTP/1.1 header compliance via uWebSockets, an Amazon Linux 2 regression caused by a newer-glibc powf dependency (now guarded by a glibc 2.27 symbol test), and several bun install and Node.js compatibility bugs.