Bun v1.4.4
Bun v1.4.4 adds `bun fmt`, a built-in Prettier-compatible formatter ported from Prettier and oxc_formatter that reads existing Prettier/oxfmt configs and covers more than 20 languages.
Bun v1.4.4 adds `bun fmt`, a built-in Prettier-compatible formatter ported from Prettier and oxc_formatter that reads existing Prettier/oxfmt configs and covers more than 20 languages.
Bun v1.4.3 adds `bun check`, a TypeScript type checker ported from typescript-go that passes all 51,210 of TypeScript 7.0.2's conformance tests and runs 3x to 6.4x faster than tsc 7 with 2.2x to 4.9x less memory.
Bun v1.4.2 is a patch release fixing two v1.4.1 regressions: a `bun build` renaming bug that made nested `var` collide with a `let` (breaking Elysia builds or silently miscomputing), and an `AsyncLocalStorage` leak where timers or promises created in `store.exit()` or nested `run()` kept outer store values alive.
Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements.
Bun 1.4 adds 1,517 newly passing Node.js test-suite tests, fixes over 2,900 issues, and rewrites Bun from Zig to Rust.
Bun, a 535k-line Zig JavaScript runtime, was mechanically ported to Rust over 11 days using about 50 continuously running Claude Code workflows.
Bun v1.3.14 adds Bun.Image, a built-in, sharp-compatible image pipeline that benchmarks 1.2–1.4× faster than sharp on resize/encode thanks to fixed-point SIMD resize kernels and JPEG IDCT downscaling.
Bun v1.3.13 adds per-file test isolation (--isolate), parallel test workers with work stealing (--parallel), CI sharding (--shard=M/N), and git-aware test selection (--changed) built on the import graph. bun install now streams tarballs to disk while downloading, cutting memory 17x in a large repo, and the isolated linker drops a peer-heavy monorepo install from 20.5s to 2.4s.
Bun v1.3.12 adds Bun.WebView, a built-in headless browser automation API with WebKit and Chrome (CDP) backends.
Bun v1.3.11 adds Bun.cron, a cross-platform API that registers OS-level cron jobs (crontab, launchd, Task Scheduler) and parses cron expressions, plus Bun.sliceAnsi, an ANSI- and grapheme-aware string slicer that replaces slice-ansi and cli-truncate using a SIMD ASCII fast path and single-pass streaming.
Bun v1.3.10 replaces its npm-based REPL with a native Zig REPL that supports top-level await, imports, history and tab completion.
Bun v1.3.9 adds `bun run --parallel` and `--sequential` for running package.json scripts with prefixed output across workspaces, along with Node-compatible HTTP/2 connection upgrades via `net.Server`, `Symbol.dispose` support for test mocks, `NO_PROXY` handling for explicit proxies, `--cpu-prof-interval`, and ESM bytecode in `--compile`.
Bun v1.3.8 adds Bun.markdown, a built-in CommonMark-compliant Markdown parser written in Zig as a port of md4c.
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.
Bun v1.3.6 adds a built-in Bun.Archive API for creating and extracting tar/gzip archives, a native Bun.JSONC parser, and new Bun.build options for esbuild-compatible metafiles, virtual in-memory files, local cross-compile executables and React Fast Refresh.
Bun v1.3.5 adds a Bun.Terminal API that attaches pseudo-terminals to subprocesses spawned with Bun.spawn, so programs like vim, htop and interactive shells can run with a real TTY on Linux and macOS.
Bun 1.3.4 adds the URLPattern Web API (passing 408 Web Platform Tests), Jest-style fake timers in bun:test, custom proxy headers in fetch() and a %j console format specifier.
Bun 1.3.2 restores hoisted installs as the default for existing workspaces and adds a lockfile configVersion field so future default changes don't break existing projects.
Bun v1.3.1 makes `bun build` up to 2x faster for symlink-heavy projects (isolated linker, pnpm).
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 v1.2.23 fixes 119 issues. It adds automatic migration from pnpm-lock.yaml and pnpm workspaces to bun.lock, `--cpu`/`--os` filtering of optionalDependencies, and Pub/Sub in the built-in Redis client. bun test gains `test.concurrent`/`describe.concurrent` (default max 20 concurrent tests), `--randomize` with reproducible seeds, chained qualifiers, stricter CI behaviour and a rewritten execution order aligned with Vitest.
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.
Bun's package manager installs dependencies roughly 7× faster than npm, 4× faster than pnpm and 17× faster than yarn because it treats installation as a systems programming problem: the bottleneck on modern NVMe hardware is system call and thread-coordination overhead, not I/O wait. strace benchmarks show bun making ~166k syscalls versus ~1M for npm and ~4M for yarn, with almost no futex contention, because its Zig code calls the kernel directly instead of going through Node's libuv thread pool.
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.
Bun v1.2.21 makes postMessage(string) between workers nearly independent of string size, up to 500x faster with ~22x less peak memory on 3 MB strings (593 ns vs 326,290 ns in 1.2.20).
Bun v1.2.20 fixes 141 issues and cuts idle CPU usage by no longer over-scheduling the garbage collector.
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 v1.2.18 fixes 52 issues and adds ReadableStream .text()/.json()/.bytes()/.blob(), ReadableStream stdin for Bun.spawn, permessage-deflate compression for the WebSocket client, and Math.sumPrecise.
Bun v1.2.17 adds ahead-of-time bundling for HTML imports in server code, so `bun build --target=bun` or `--compile` can produce a full-stack build or a single self-contained executable with no runtime bundling.
Bun v1.2.16 fixes 73 issues and adds 119 passing Node.js tests.
Bun v1.2.15 adds `bun audit`, which checks dependencies in bun.lock against the same advisory endpoint npm audit uses, and `bun pm view` for inspecting npm package metadata.
Bun v1.2.14 adds dependency catalogs to `bun install`, letting monorepos define shared versions once in the root package.json and reference them with the `catalog:` protocol, which is rewritten to concrete versions on publish.
Bun v1.2.13 fixes 17 bugs and improves Node.js compatibility, adding worker_threads environmentData, a process 'worker' event, and stability fixes for workers and --hot mode.
Bun v1.2.12 adds a `--console` flag (and `development.console` option in `Bun.serve()`) that streams browser console.log/error output to the terminal over the existing HMR WebSocket, prefixed with `[browser]`.
Bun v1.2.11 fixes 62 bugs and adds process.ref/process.unref, util.parseArgs negative options (allowNegative) with process.argv defaulting, and a BUN_INSPECT_PRELOAD environment variable equivalent to --preload.
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.
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.
Bun implements V8's writeHeapSnapshot API, so heap snapshots can be loaded and diffed in Chrome DevTools, where a steadily growing Delta column reveals leaks. bun:jsc's heapStats also reports per-type object counts, including objects protected from GC.
Bun v1.2.8 fixes 18 bugs, headlined by a one-line NAPI fix: napi_create_double no longer encodes every value as a double in JavaScriptCore, which makes node-sdl about 100x faster.
Bun v1.2.7 adds built-in cookie handling: Bun.serve() exposes a Map-like request.cookies that is parsed lazily on first access and automatically emits the right Set-Cookie headers when modified, with standalone Bun.Cookie and Bun.CookieMap classes for use outside the server.
Bun v1.2.6 fixes 74 bugs and rewrites more of node:crypto (Cipheriv/Decipheriv, DiffieHellman, ECDH, randomBytes) in native code on BoringSSL, with benchmarks showing AES-256-GCM going from ~1.15 ms to ~3.5 µs per iteration and scrypt from 365 ms to 47 ms. node:http compatibility work makes Express 9% and Fastify 5.4% faster.
Bun v1.2.5 fixes 75 bugs, adds 69 passing Node.js tests, and nearly rewrites its Node-API implementation, which now passes 98% of Node's js-native-api suite.
Bun v1.2.4 makes Bun.build up to 60% faster on macOS by using a dedicated I/O threadpool for file operations on macOS and Windows machines with more than 3 logical CPUs, which reduces filesystem contention.
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 v1.2.2 fixes 38 bugs and cuts idle JavaScript memory usage by 10–30% (28% for Next.js, 11% for Elysia).
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.
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.
Bun v1.1.44 adds experimental HTML imports (behind --experimental-html) so Bun.serve() can bundle and serve frontend apps on demand alongside API routes, with no hot module reloading yet.