Skip to content

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

Bun 7 min read Release mediumAdept

Bun v0.6.8

Bun v0.6.8 adds a built-in Bun.password API for argon2 (default) and bcrypt password hashing. It is built on Zig's std.crypto.pwhash and encodes the algorithm and parameters into PHC or Modular Crypt Format strings, so verify needs no extra metadata. bun:test gains mock(), spyOn, a jest.fn/jest.spyOn polyfill and toMatchObject, with mock creation benchmarked at roughly 80x faster than Jest. Other changes include a breaking bun:sqlite .values() change to return [] instead of null, an experimental WebSocket inspector speaking the WebKit debugger protocol, and fixes for CJS/ESM interop detection in lodash-es, the RegExp v flag and workspace lifecycle scripts.

Related posts

  • Bun v1.2.6

    Bun mediumAdept

    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.

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

    Bun mediumAdept

    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.

  • Bun v1.2.21

    Bun mediumAdept

    Bun v1.2.21 extends Bun.SQL into a unified, zero-dependency client for MySQL/MariaDB (via a driver written in Zig), SQLite and PostgreSQL using the same tagged-template API. It also adds native YAML import and parsing, Bun.secrets for OS credential stores (Keychain, libsecret, Windows Credential Manager), and a pluggable security scanner hook for bun install. Performance changes include 500x faster postMessage for strings, SIMD-accelerated Bun.stripANSI (6-57x faster than strip-ansi), lockfile-only installs that fetch only manifests, and no idle CPU wakeups in Bun.serve. Bun.build can now compile standalone executables programmatically, and the release fixes a batch of Node.js and N-API compatibility issues.

  • Bun v1.0.12

    Bun mediumAdept

    Bun v1.0.12 fixes 24 bugs and adds `bun -e` for evaluating inline scripts (with TypeScript, JSX and top-level await), `--env-file` for choosing which .env files to load, `server.url`, `import.meta.env`, and `expect.unreachable()` in bun:test. Macros can now import builtin modules like node:fs and node:child_process at bundle time, and `mock.module` now handles default exports and re-exports. Two fixes include root-cause explanations: a bun:sqlite `.get()` hang came from a wrong JavaScriptCore JSType tag that misled the DFG JIT, and a `require()` crash came from source code being garbage collected before an exception was thrown. As a result, Bun's debug builds now run JavaScriptCore with assertions enabled.

The quest for software engineering knowledge.

Look:
Layout: