Skip to content

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

Bun 10 min read Release mediumAdept

Bun v1.2.20

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.

Related posts

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

    Bun mediumAdept

    Bun v1.2.23 fixes 119 issues. It adds automatic migration from pnpm-lock.yaml and pnpm workspaces to bun.lock, `--cpu`/`--os` filtering of optionalDependencies, and Pub/Sub in the built-in Redis client. bun test gains `test.concurrent`/`describe.concurrent` (default max 20 concurrent tests), `--randomize` with reproducible seeds, chained qualifiers, stricter CI behaviour and a rewritten execution order aligned with Vitest. Other changes include Node.js compatibility fixes, `--use-system-ca`, Authenticode signature stripping for Windows compiled executables, a `jsx` config object in Bun.build, `sql.array` for Postgres arrays and top-level await fixes for cyclic modules.

  • Bun v1.1.26

    Bun mediumAdept

    Bun v1.1.26 adds a `bun outdated` subcommand listing dependencies with their next semver-matching and latest npm versions, plus an `idleTimeout` option (default still 10 seconds) and `subscriberCount(topic)` for Bun.serve()'s HTTP and WebSocket servers. The test runner now makes `test.only` skip other tests in the same file without the `--only` flag, fixes `expect.assertions(n)` in async tests, and fails rather than hangs when a `done`-callback test throws. Node.js compatibility fixes include preserving top-level "use strict" in CommonJS modules, correcting `util.inherits` and swapped `dns.resolveSrv` priority/weight fields, and fixing rare crashes in Buffer, fetch() and crypto.randomValues().

  • Bun v1.4.1

    Bun mediumAdept

    Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements. JavaScriptCore now discards JIT code after idle periods, sharply cutting RSS (Next.js SSR 222 MB to 142 MB), and Bun.serve gains HTTP/2 on the same port via ALPN with large throughput gains over node:http2. Buffer read/write methods are JIT-inlined (up to 9x faster), AsyncLocalStorage avoids per-await allocations, Bun.write streams response bodies to disk, and WebSocket gets pause/resume for TCP backpressure. fetch now verifies TLS against the URL hostname rather than the Host header, closing an insecure default. bun build tree-shakes through `export * as` and dynamic import(), shrinking zod bundles by about 79%.

The quest for software engineering knowledge.

Look:
Layout: