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

Bun v1.0.29 adds Bun.stringWidth, a Zig/SIMD-implemented drop-in replacement for the string-width npm package that handles ANSI codes, fullwidth characters, graphemes and emoji across Latin1, UTF-16 and UTF-8. Benchmarks show it running 48x to 137,623x faster than the package, about 6,756x for 500-char ASCII input. The release also adds expect().toBeOneOf() in bun:test and advanced redirects (2>&1, &>, 2>>) in Bun Shell. Fixes include a napi memory leak affecting Prisma (1720 MB to 275 MB), bcrypt verification of passwords over 72 characters (now SHA-512 prehashed consistently with hash), bunx update checks, and pre-release semver resolution in bun install.

Assumes: JavaScript runtimesnpm packages

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 v0.6.8

    Bun mediumAdept

    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.

  • Bun v1.2.1

    Bun mediumAdept

    Bun v1.2.1 fixes 32 bugs and adds S3 storage class support, X25519 key generation in crypto.generateKeyPair, Node's --zero-fill-buffers flag, indented inline snapshots in bun test, and a bunfig option to disable minification for HTML imports. The most technical change fixes GC memory accounting: WebKit reports a ref-counted string's cost as its byte length divided by its reference count, so Bun's Zig bindings, which briefly held an extra reference, under-reported string memory (a 64 KB file read reported as 32 KB). A new single-step createUTF8ForJS pattern avoids that extra reference. Other fixes cover fs.Stats and bigint fstat parity with Node, EINTR retries in fs reads and writes, a child_process spawn race, Worker reliability, and memory leaks in Bun.serve() and Bun.pathToFileURL caused by refcount mistakes.

  • Bun v1.3.7

    Bun mediumAdept

    Bun v1.3.7 upgrades JavaScriptCore, which brings faster async/await (35%), Array.from, padStart/padEnd, array.flat and better ARM64 codegen using ccmp/ccmn chains. It also speeds up Buffer.from() with arrays by up to 50% and Buffer.swap16/swap64 by 1.8x and 3.6x through CPU intrinsics. New APIs include Bun.wrapAnsi (33–88x faster than the wrap-ansi npm package), native JSON5 parsing and imports, and Bun.JSONL with streaming parseChunk. For diagnostics there is Markdown CPU and heap profile output, --heap-prof heap snapshots and the node:inspector Profiler API. Compatibility fixes cover header case preservation in fetch, S3 presign options, bun pm pack lifecycle scripts, Indic grapheme clustering and Next.js 16 timer internals.

  • Bun v1.1.7

    Bun mediumAdept

    Bun v1.1.7 fixes 28 bugs and adds glob patterns in package.json workspaces (via Bun.Glob), asymmetric matcher support in expect.extend's this.equals, and a working bunx --version. Several fixes come with root causes: a SIMD invalid memory access in Zig's std.mem.indexOfScalarPos crashing Windows startup, a misassumed 8-byte alignment of FILE_DIRECTORY_INFORMATION, threadlocal destructors running during std::quick_exit with live Workers, an uninitialized C++ integer corrupting stacktrace line numbers, and a memory leak from unread Bun.serve() request bodies since v1.0.30. Smaller changes include WebSocket close code 1015 on TLS failures, a ServerWebSocket shrink from 32 to 24 bytes, and adding clang-analyzer to CI.

The quest for software engineering knowledge.

Look:
Layout: