Bun v1.2.19
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.
Related posts
- 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.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.
- 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.1.4
Bun mediumAdept
Bun v1.1.4 adds `bun --filter` for running workspace scripts in parallel across a monorepo using glob patterns, and makes `bun install` reinstalls up to 50% faster (1.54x on a 450 MB node_modules) by moving deletion of old package files to a separate thread. It also fixes a CI race where child dependencies could install before their parent finished, and stops aliased packages from being installed twice. bun:sqlite gains `using` support for automatic cleanup, `fileControl`, `close(throwOnError)` and closing on garbage collection, plus a fix for duplicate column names in JOINs. Other fixes cover a Web Streams memory leak that affected Next.js, TLS 1.2 renegotiation for fetch() clients, Node.js `fs` semantics and several Windows issues.
- 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.