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.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 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.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.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'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 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.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.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 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.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.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 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.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.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.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.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.17 fixes four bugs and makes two small macOS performance improvements.
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.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 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.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.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.23 adds importing SQLite databases via import attributes (`with {type: "sqlite"}`), with an `embed: "true"` option that bakes the database into `bun build --compile` single-file executables.
Bun v1.0.20 cuts memory usage in node:fs async operations by avoiding redundant cross-thread string clones.
Bun v1.0.19 fixes 26 bugs and replaces bun-types with @types/bun, which re-exports the real @types/node to avoid type conflicts.
Bun v1.0.16 fixes 49 bugs and rewrites Bun.file IO on Linux to use epoll instead of io_uring, fixing EBADF errors in Docker (which disabled io_uring by default) and on hosts like Vercel and Cloud Run.
Bun v1.0.15 adds a global content-addressable transpiler cache for files over 50KB, making TypeScript-based CLIs like tsc start up to 2x faster and Prettier about 40% faster than v1.0.14.
Bun v1.0.10 makes node:http 14% faster by building Node.js headers, rawHeaders and url strings directly in native code.
Bun v0.8.1 adds unix domain socket support to Bun.serve() via a new `unix` option and fixes a 2.8x request-body throughput regression from v0.8.0 (about 38.6k to 110k req/s).
Bun v0.7.1 makes ES Module loading 30%–250% faster by running its transpiler concurrently for import statements and dynamic imports, though CommonJS require is still sequential.
CommonJS remains the dominant format on npm (about 74% of popular packages in late 2022), so Bun now implements it natively as of v0.6.5 instead of transpiling it to a synchronous ESM form.
Bun v0.6.4 makes `bun test` up to 80% faster on suites with many small files by no longer forcing a synchronous garbage collection after every file, at the cost of roughly 9% more memory.
Bun v0.6.2 pulls in JavaScriptCore performance work: number toLocaleString() is 79x faster, JSON.parse is up to 20% faster and JSON.stringify 15% faster on shallow objects, Proxy get/set is 2x or more faster, and Object.assign with empty sources and returning arguments are each 2x faster.
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.
Bun v0.2.0 adds `bun --hot` for server-side hot reloading that preserves global state and in-flight HTTP requests, `Bun.spawn`/`Bun.spawnSync` for process spawning with flexible stdin sources and ReadableStream output, and streaming request bodies in `Bun.serve`.
Bun v0.1.12 fixes stability problems in `bun install` that caused crashes or hangs roughly once per 80,000 cold package installs on Linux.
Bun v0.1.9 starts using JavaScriptCore's DOMJIT API to JIT-optimize native functions, making `ptr()` in `bun:ffi` 6-10x faster and `TextEncoder.encodeInto` 1.5-5x faster.