Bun v1.2.9
Bun v1.2.9 adds Bun.redis, an experimental built-in Redis/Valkey client written from scratch in Zig with 66 wrapped commands and a raw send() fallback, benchmarked 45–85% faster than ioredis with auto-pipelining on batched GETs. It also adds ListObjectsV2 pagination to Bun.S3Client, libuv mutex/timing symbols for N-API addons, require.extensions, require.resolve paths, --preserve-symlinks and a maxBuffer option for spawn. A WebKit upgrade speeds up Array indexOf/includes on Int32 arrays (~5x) and Number.isFinite (~1.6x), and the release fixes Node compatibility regressions in node:http with AsyncLocalStorage, crypto Hmac/DiffieHellman/createCipheriv, napi_async_work cancellation and a GC edge case in node:fs.
Related posts
- Bun v1.2.10
Bun mediumAdept
Bun v1.2.10 is mostly a bugfix release (33 fixes). It fixes a pathological setImmediate slowdown when non-timer I/O was pending (a 100-iteration loop drops from 74s to 4ms), which makes next build about 10% faster on macOS, and caches the 34 HTTP method strings so request.method no longer allocates. It also patches Zig standard library call sites that weren't propagating syscall and libc errors, and moves the Docker images to Debian Bookworm. Other fixes cover test.failing with done callbacks, spawnSync test timeouts, the Redis client idle timeout (now 0 by default), bytecode compilation with 'bun' imports, a Next.js ERR_HTTP_SOCKET_ASSIGNED regression, node:crypto setAAD, and N-API finalizer timing.
- Bun v1.3.10
Bun mediumAdept
Bun v1.3.10 replaces its npm-based REPL with a native Zig REPL that supports top-level await, imports, history and tab completion. It also adds full TC39 stage-3 standard decorators, self-contained HTML output via `--compile --target=browser`, native Windows ARM64, and a global `--retry` flag for `bun test`. Bundler changes include barrel-file import optimization (automatic for `sideEffects: false` packages) and leaner module wrappers that cut 11% of heap objects on a large React app. Runtime changes include mTLS keepalive pooling, a JavaScriptCore upgrade (168x faster deep rope slicing, a faster `endsWith`), and structuredClone fast paths up to 25x faster for dense primitive arrays.
- 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 1.3
Bun mediumAdept
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.
- Bun v0.3.0
Bun mediumAdept
Bun v0.3.0 focuses on stability and Node.js/Web API compatibility, cutting memory use 3-5x under load by scheduling garbage collection in coordination with the event loop and speeding up TextEncoder.encodeInto() 3x via simdutf. New Node.js APIs include node:child_process, process stdio streams, Error.captureStackTrace and fs streams, alongside automatic npm package installs on import when no node_modules exists. Other additions are a native Next.js-style FileSystemRouter, console as an AsyncIterable for reading stdin, threadsafe bun:ffi callbacks, new bun:test matchers with a faster toEqual(), and a long list of fetch, spawn and crash fixes.