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.
Bun v1.1.43 adds a first-class S3 client with a Blob/Response-style API that works against any S3-compatible store, experimental HTML bundling in bun build, V8-format heap snapshots generated from its JavaScriptCore fork, and new bun install options including --filter, --lockfile-only and --peer.
Bun v1.1.41 fixes 12 bugs and improves node:vm compatibility so JSDOM (runScripts, runInContext) and happy-dom work more reliably. bun build --compile gains Windows-only --windows-icon and --windows-hide-console flags, Bun.build adds throw: true, and bun install supports --omit=dev|optional|peer plus include/exclude in .npmrc and bunfig.toml.
Bun v1.1.40 fixes 14 bugs and adds an `install.saveTextLockfile` option in bunfig.toml so the text-based `bun.lock` format can be the default ahead of Bun v1.2.
Bun v1.1.39 introduces bun.lock, a JSONC text lockfile enabled via `bun install --save-text-lockfile`, replacing the hard-to-review binary bun.lockb and planned as the default in Bun v1.2.
Bun v1.1.39 introduces bun.lock, a human-readable text lockfile that improves git diffs and works with tools like Dependabot and Renovate, and makes cached bun install 30% faster.
Bun v1.1.37 fixes 62 bugs and adds realtime runtime error reporting in VSCode's Problems tab without a debugger, self-referencing package imports via the exports field, and npm_package_config_ and npm_lifecycle environment variables for bun run.
Bun v1.1.35 adds native Musl libc binaries for Alpine Linux, replacing a glibc compatibility shim.
Bun v1.1.34 fixes 64 bugs and adds Bun.randomUUIDv7() for sortable, database-friendly IDs, more aggressive garbage collection while idle in the event loop to cut memory in long-running processes, and Node-API type tagging (napi_type_tag_object/napi_check_object_type_tag) that unblocks tree-sitter.
Bun v1.1.33 fixes 8 bugs, mostly in `bun install`. The default maximum of simultaneous network connections drops from 256 to 64 to avoid install slowdowns, `optional = false` in bunfig.toml now actually skips optional dependencies, and failed optional-dependency postinstall scripts are ignored and their half-installed directories removed.
Bun v1.1.32 adds Node's one-shot crypto.hash() (backed by Bun.CryptoHasher.hash()) and fixes 7 bugs.
Bun v1.1.31 adds a node:http2 server and gRPC server support via @grpc/grpc-js, with node:http2 benchmarked at 128,879 req/s versus 52,785 req/s on Node v23 (2.4x).
Bun v1.1.30 adds an experimental CSS parser and bundler, a LightningCSS port rewritten from Rust to Zig.
Bun v1.1.29 adds N-API support to its `cc` C compilation feature, letting C code return JavaScript strings, objects and arrays, which also works for shared libraries loaded via `dlopen` in `bun:ffi`.
Bun v1.1.28 adds experimental `cc` in `bun:ffi`, which uses TinyCC to compile, link and relocate C in memory and generates inline wrappers that convert between JavaScriptCore values and C primitives with no dynamic dispatch.
Bun v1.1.28 fixes 40 bugs and adds compiling and running C directly from JavaScript to use native system libraries without a separate build step, a 30x faster `path.resolve`, and named pipe support on Windows.
Bun v1.1.27 fixes 130 bugs and rewrites node:zlib in native code, roughly doubling streaming deflate/gzip throughput over v1.1.26 and beating Node 22 on streams, though sync compression still trails Node.
Bun v1.1.26 adds a `bun outdated` subcommand listing dependencies with their next semver-matching and latest npm versions, plus an `idleTimeout` option (default still 10 seconds) and `subscriberCount(topic)` for Bun.serve()'s HTTP and WebSocket servers.
Bun v1.1.25 adds node:cluster support, which lets a pool of workers share one port via reusePort for multi-core HTTP throughput.
Bun v1.1.23 fixes 27 bugs and adds TextEncoderStream/TextDecoderStream, the TextDecoder stream option, Float16Array, and truncation of large arrays in console.log after 100 elements. console.log(string) is 50% faster: a single-string fast path that still needed extra writes for the newline and ANSI reset was dropped in favor of buffered writes.
Bun v1.1.22 fixes 79 bugs and makes Express 3x faster than on Node.js through node:http improvements.
Bun v1.1.21 fixes 72 bugs and speeds up gzip/deflate decompression in fetch() by 30% on Linux x64 by switching to libdeflate, which also speeds up the WebSocket server.
Bun v1.1.19 enables JavaScriptCore's FTL JIT on Windows for the first time in nine years, making Object.entries about 20% faster and cutting Array.map overhead roughly in half.
Bun v1.1.18 adds .npmrc support so bun install can use existing private registry and scoped package configuration, alongside package-lock.json migration.
Bun v1.1.17 fixes four bugs and makes two small macOS performance improvements.
Bun v1.1.16 fixes 41 bugs and adds lcov output for `bun test --coverage`, configurable in bunfig.toml.
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 v1.1.13 fixes 97 bugs and adds `eval: true` for `node:worker_threads`, `URL.createObjectURL` for spawning TypeScript workers from Blobs, custom failure messages in `expect`, and five new `bun:test` matchers.
Bun v1.1.11 fixes 36 bugs, makes `bun update` write changes to package.json (preserving semver ranges unless `--latest`), and fixes incorrect peer dependency hoisting in `bun install` that broke packages like ajv and expo.
Bun v1.1.10 fixes 20 bugs, makes uncached bun install on Windows about 2x faster, and cuts fetch() memory use by up to 2.8x by freeing response bodies sooner.
Bun v1.1.9 fixes 67 bugs and adds a subset of the Happy Eyeballs algorithm, so connections to dual-stack hosts (localhost, VPNs) race IPv4 and IPv6 addresses instead of failing.
Bun v1.1.8 fixes 54 bugs and adds support for process.on("uncaughtException") and process.on("unhandledRejection"), Brotli compression in node:zlib (which also restores axios compatibility), and [Symbol.dispose] on Bun.spawn, Bun.serve, Bun.connect and Bun.listen for use with the `using` syntax.
Bun v1.1.7 fixes 28 bugs and adds glob patterns in package.json workspaces (via Bun.Glob), asymmetric matcher support in expect.extend's this.equals, and a working bunx --version.
Bun v1.1.6 adds UDP socket support via a new `udpSocket` API and an implementation of Node's `node:dgram`, and makes DataDog's dd-trace and the ClickHouse Node.js client work.
Bun v1.1.5 adds cross-compilation of standalone executables via `bun build --compile --target` (Linux x64/arm64, Windows x64, macOS arm64), so CI can build binaries for every platform from one machine.
Bun v1.1.5 replaces unsymbolicated crash output with a compact ~150-byte bun.report URL that encodes platform, subcommand, commit SHA, a 64-bit feature-usage bitfield, crash type and message, and ASLR-adjusted stack addresses as base64 VLQs, with no personal information.
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.
Bun v1.1.3 makes bun install up to 50% faster on Windows (about 1.6x in a hyperfine benchmark on a Next/SvelteKit project) by parallelizing some file copying and hardlinking.
Bun v1.1.1 fixes 20 bugs, mostly in bun install on Windows. The causes include a race in the Zig standard library's retry-on-ERROR_DELETE_PENDING loop, mishandled ERROR_SHARING_VIOLATION from mismatched file sharing modes, a bunx cache invalidation bug that compared npm publish-time file creation dates, and git dependencies relying on a stale cwd file descriptor instead of `git -C`.
Bun 1.1 adds Windows 10+ support, passing 98% of the macOS/Linux test suite, and reports `bun install` 18x faster than yarn and 30x faster than npm on Windows.
Bun v1.0.36 fixes 13 bugs and adds Node.js-compatible fs.openAsBlob and fs.opendir.
Bun v1.0.34 makes cross-filesystem fs.cp and fs.copyFile about 50% faster on Linux by adding sendfile to its copy syscalls, which also speeds up bun install on Docker and WSL where renameat(2) across overlayfs or remote mounts isn't available.
Bun v1.0.32 fixes 13 bugs, several of them regressions from the I/O rewrite in v1.0.31 done in preparation for Windows support. bun install could hang in GitHub Actions because the active lifecycle-script counter was never decremented. --frozen-lockfile and --production still installed packages, and Bun Shell hung on && and || because a file descriptor was left open.
Bun v1.0.31 adds `bun --print` (Node-compatible eval with top-level await, TypeScript and JSX), running code from stdin via `bun run -`, `bun add --trust` plus `bun pm untrusted`/`trust` for managing blocked postinstall scripts, and `fetch()`/`node:http` support for Unix and Linux abstract domain sockets.
Bun v1.0.30 fixes 27 bugs, including an 8x performance regression in Bun.serve() when a direct ReadableStream writes exactly one chunk in a single event-loop tick, introduced in v1.0.4.
Bun v1.0.29 adds Bun.stringWidth, a Zig/SIMD-implemented drop-in replacement for the string-width npm package that handles ANSI codes, fullwidth characters, graphemes and emoji across Latin1, UTF-16 and UTF-8.
Bun v1.0.28 is a small bugfix release fixing 6 bugs. A Prisma crash came from an incorrect napi_create_reference implementation that assumed only one napi reference per object, and an Astro v4.4 error came from calling [Symbol.asyncIterator] lazily in a ReadableStream's pull instead of immediately.
Bun v1.0.27 fixes 72 bugs and lets Bun Shell throw on non-zero exit codes via $.throws(true).
Bun v1.0.26 fixes 30 bugs and adds multi-statement queries to bun:sqlite via db.run() and db.exec(), though not query or prepare. bun --watch now reliably closes file descriptors on reload, using close_range(2) on Linux and POSIX_SPAWN_CLOEXEC_DEFAULT on macOS, and resets signal handlers.