Bun 1.3
Bun 1.3 turns Bun into a full-stack JavaScript runtime. Bun.serve() now includes a built-in frontend dev server with HMR and React Fast Refresh, parameterized routing, and standalone executables for full-stack apps. Bun.SQL becomes a unified client for PostgreSQL, MySQL/MariaDB and SQLite, with Postgres additions such as the simple query protocol, prepare:false for PgBouncer, Unix sockets and sql.array. The release also adds a built-in Redis/Valkey client claimed to be 7.9x faster than ioredis, WebSocket subprotocol negotiation and permessage-deflate, workspace install features and Node.js compatibility fixes.
Related posts
- 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.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 1.2
Bun mediumAdept
Bun 1.2 makes a major push on Node.js compatibility by porting thousands of files from the Node.js test suite into Bun's CI, with stubbed internal bindings and assertions on error name/code rather than message text. It adds a node:http2 server, node:dgram, node:cluster, a native rewrite of node:zlib with Brotli, V8 C++ addon API support implemented on JavaScriptCore, and V8 heap snapshots. It also introduces a native S3 client (Bun.s3) with presigned URLs, multipart writers and s3:// support in Bun.file and fetch, a built-in Postgres client (Bun.sql), and a text-based bun.lock lockfile. Claimed numbers include Express up to 3x faster than Node.js, HTTP/2 serving 2x faster, and S3 downloads 5x faster than @aws-sdk/client-s3.
- Bun v0.5
Bun mediumAdept
Bun v0.5 adds npm workspaces support (installing the Remix monorepo in about 500ms, claimed 28x faster than npm), a Bun.dns lookup API backed by c-ares, node:readline, and socket support via node:net and node:tls that lets database drivers like Postgres.js, mysql2 and node-redis run for the first time. Performance changes include 10x faster Buffer instantiation by removing Object.setPrototypeOf from construction and 50x faster crypto.createHash by switching from pure JS to BoringSSL. Module resolution now ignores the package.json browser field and honors the node export condition, and the release adds HTTPS_PROXY support, custom WebSocket handshake headers, more Jest-compatible test APIs, and many bun install fixes.
- 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.