Skip to content

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

Bun 12 min read Release mediumAdept

Bun v1.2.21

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.

Assumes: JavaScript runtimesnpm packages

Related posts

  • Bun v1.2.19

    Bun mediumAdept

    Bun v1.2.19 adds pnpm-style isolated installs (`--linker=isolated`) for monorepos, `bun update --interactive`, `bun pm pkg` for editing package.json, `bun why` for tracing dependency chains, and a fixed dependency-group priority order. `Bun.sql` now pipelines PostgreSQL queries automatically, making it up to ~5x faster under high concurrency, and a new `--sql-preconnect` flag warms the connection at startup. Windows standalone executables now embed code in a dedicated `.bun` PE section so they can be Authenticode-signed. Smaller changes include avoiding Zig memcpy page faults (1ms faster startup, 3MB less RAM), SIMD comment scanning, better dead-code elimination, and test runner improvements.

  • Bun v1.1.14

    Bun mediumAdept

    Bun v1.1.14 fixes 63 bugs and adds `bun patch`, which clones a dependency out of the global cache for local edits and saves the changes as a standard diff under `patches/` that `bun install` applies automatically. `bun:sqlite` gains `query.as(Class)` for prototype-based result mapping without constructors, a `strict` mode for unprefixed bindings, `run()` returning `changes` and `lastInsertRowid`, and `safeIntegers` for 64-bit BigInt results. `BUN_CONFIG_VERBOSE_FETCH=curl` logs fetch and node:http traffic as copy-pasteable curl commands. Other fixes cover bun install exit codes and workspace `--production` handling, Windows terminal state, and WebSocket over TLS with large payloads.

  • Bun v1.2.22

    Bun mediumAdept

    Bun v1.2.22 adds async stack traces that include awaited caller frames, a fast path making postMessage and structuredClone up to ~240x faster for plain objects of primitives, and Bun.YAML.stringify. The release fixes interactive /dev/tty reads after stdin closes and improves Bun.SQL's MySQL adapter with affectedRows and lastInsertRowid, corrected TINYINT and BIT type mapping, TLS, and mysql_native_password auth. It also fixes several Postgres driver bugs. Bundler and minifier changes cover new-expression and typeof-undefined minification, an onEnd plugin hook, jsxSideEffects and --keep-names, alongside Node compatibility additions (monitorEventLoopDelay, closeIdleConnections), RFC 6455 WebSocket subprotocol negotiation and Redis database selection via URL.

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

    Bun mediumAdept

    Bun v1.2.3 adds a zero-config frontend dev server (run `bun ./index.html` or glob multiple HTML files) with hot reloading and bundling, plus a built-in `routes` option for Bun.serve() with typed path params so frontend and backend run in one process. Bun.SQL gains the PostgreSQL simple query protocol via `.simple()`, a `prepare: false` option for PgBouncer transaction mode, array support, enforced tagged-template calls to prevent SQL injection, and fixes for idle timeouts, ReadyForQuery handling, memory leaks and TLS modes. WebAssembly startup and memory improve because JavaScriptCore's new IPInt interpreter runs Wasm in place instead of converting it to bytecode. Node.js compatibility also improves for Buffer, Node-API and node:fs in single-file executables.

The quest for software engineering knowledge.

Look:
Layout: