Skip to content

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

Bun 5 min read Release mediumAdept

Bun v0.6.13

Bun v0.6.13 adds Date mocking in bun test via setSystemTime, which affects Date.now(), new Date() and Intl.DateTimeFormat without mutating the Date object as Jest does. Buffer.toString("base64") is 10x faster, and node:tls and node:net fixes make the postgres package work over TLS and let nodemailer send mail. HTTP requests use 8 fewer bytes each because their boolean fields now live in a Zig packed struct. The release also fixes WebSocket zero-length messages and initial-payload ordering races, adds isUtf8/isAscii, and corrects Buffer.toString overloads, workspace: dependencies and empty env vars.

Related posts

  • Bun v1.1.16

    Bun mediumAdept

    Bun v1.1.16 fixes 41 bugs and adds lcov output for `bun test --coverage`, configurable in bunfig.toml. It also adds SSH-authenticated installs from private git repositories such as GitLab and Bitbucket, and a `--sourcemap=linked` option for `bun build`. Switching base64 decoding to simdutf makes `Buffer.from(string, "base64")` 6x–30x faster on large inputs. Other fixes cover N-API modules that reassign `module.exports`, `bun:sqlite` returning a wrong `changes` count from prepared statements, WebSocket error messages and crashes, and transpiler handling of non-ASCII and zero-width characters. Internally, Bun moved to Zig 0.13, which brings a WTF-16 path fix on Windows and a cross-platform `zig-check` build target.

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

  • Bun v0.6.3

    Bun mediumAdept

    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.

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

The quest for software engineering knowledge.

Look:
Layout: