Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Bun 9 min read Release mediumAdept

Bun v1.1.11

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.

Related posts

  • Bun v0.1.12

    Bun mediumAdept

    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.

  • Bun v1.2.10

    Bun mediumAdept

    Bun v1.2.10 is mostly a bugfix release (33 fixes). It fixes a pathological setImmediate slowdown when non-timer I/O was pending (a 100-iteration loop drops from 74s to 4ms), which makes next build about 10% faster on macOS, and caches the 34 HTTP method strings so request.method no longer allocates. It also patches Zig standard library call sites that weren't propagating syscall and libc errors, and moves the Docker images to Debian Bookworm. Other fixes cover test.failing with done callbacks, spawnSync test timeouts, the Redis client idle timeout (now 0 by default), bytecode compilation with 'bun' imports, a Next.js ERR_HTTP_SOCKET_ASSIGNED regression, node:crypto setAAD, and N-API finalizer timing.

  • 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.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.7

    Bun mediumAdept

    Bun v1.0.7 fixes 59 bugs and adds support for optional peer dependencies in `bun install`, so packages marked optional in `peerDependenciesMeta` are no longer installed unless the root project lists them. Notable fixes include sorting registry versions before semver matching (some registries don't return them in order), a non-deterministic `bun.lockb` on Linux, a napi memory leak caused by a refcount starting at 1, `child_process` IPC reliability, and a Docker "port in use" error fixed by falling back from IPv6 to IPv4 binding. The build system is also moving from a large Makefile to cmake and ninja ahead of regular Windows builds.

The quest for software engineering knowledge.

Look:
Layout: