Skip to content

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

Bun 11 min read Release mediumAdept

Bun v1.2.6

Bun v1.2.6 fixes 74 bugs and rewrites more of node:crypto (Cipheriv/Decipheriv, DiffieHellman, ECDH, randomBytes) in native code on BoringSSL, with benchmarks showing AES-256-GCM going from ~1.15 ms to ~3.5 µs per iteration and scrypt from 365 ms to 47 ms. node:http compatibility work makes Express 9% and Fastify 5.4% faster. Other changes include hkdf and prime functions, initial node:test support backed by bun:test, a timeout option for Bun.spawn, PostgreSQL connections over Unix sockets in Bun.SQL, vm.compileFunction, module.children, and many Node.js compatibility fixes.

Assumes: Node.js APIs

Related posts

  • Bun v1.2.5

    Bun mediumAdept

    Bun v1.2.5 fixes 75 bugs, adds 69 passing Node.js tests, and nearly rewrites its Node-API implementation, which now passes 98% of Node's js-native-api suite. The Node-API work gives each module its own napi_env, adds null-pointer error handling and detects module API versions. node:crypto Sign/Verify are reimplemented in C++ on BoringSSL (about 34x faster), and Hash/Hmac are now native. The release also adds Bun.CSRF, CSS modules, a Svelte plugin and a rewritten HMR system with import.meta.hot.accept, along with many node:net, timers and child_process compatibility fixes.

  • Bun v0.2.2

    Bun mediumAdept

    Bun v0.2.2 adds a TCP/TLS socket API for clients and servers. It defines callbacks once per server rather than per socket, and a TCP echo server runs 24% faster than in Node. The release also implements WebCrypto, which lets libraries such as jose run, along with fs.createReadStream and better Node.js stream support, Bun.peek for synchronously reading already-settled promises, and an official Homebrew tap. Bug fixes include a transpiler fix for default-plus-named imports of builtin modules, now rewritten to import.meta.require, and several segfault fixes.

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

    Bun mediumAdept

    Bun v1.1.32 adds Node's one-shot crypto.hash() (backed by Bun.CryptoHasher.hash()) and fixes 7 bugs. The most notable fix addresses a require(esm) regression that broke Vite configs in "type": "module" projects. Bun now patches JavaScriptCore module namespace objects so __esModule can be set to true without reintroducing the wrapper object that broke spread and JSON.stringify. Other fixes cover Next.js 15 startup warnings caused by read-only node:crypto exports, a debugger connection regression, and crashes from HMAC with BoringSSL-unsupported algorithms and from invalid TLS certificates in Bun.serve().

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

The quest for software engineering knowledge.

Look:
Layout: