Bun v0.5.7
Bun v0.5.7 adds Web-standard FormData (with response.formData() benchmarked 25x faster than Node v19.6.0 and 4x faster than Deno), git dependencies in package.json and bun install, and AbortSignal support for fetch() and incoming server requests. setTimeout() now returns a Node.js-style Timeout object with ref()/unref() that still coerces to a number, chosen for npm compatibility. bun wiptest graduates to bun test with pretty-printed diffs and auto-imported Jest globals, alongside new Set methods, an AWS Lambda runtime layer that maps events to Request objects, and an official setup-bun GitHub Action.
Related posts
- Bun v1.2.20
Bun mediumAdept
Bun v1.2.20 fixes 141 issues and cuts idle CPU usage by no longer over-scheduling the garbage collector. AbortSignal.timeout is 40x faster because it now shares setTimeout's implementation. bun install migrates yarn.lock v1 files automatically, and bun:test adds return-value matchers, Vitest-compatible expectTypeOf and mock.clearAllMocks. Other changes include automatic ETag/304 handling for Bun.serve static routes, Windows long-path support via an application manifest, streaming WebAssembly compilation, recursive workspace support in bun outdated and bun update, and many crash fixes across Node compatibility, the bundler, the dev server and Bun.SQL.
- Bun v0.5.8
Bun mediumAdept
Bun v0.5.8 adds Jest-compatible snapshot testing to bun test via expect().toMatchSnapshot(), with --update-snapshots and a --rerun-each flag for reproducing flaky tests. A new --preload flag (or bunfig.toml preload list) runs setup files such as Bun.plugin() loaders before scripts and tests, and bun install workspaces now accept a trailing /* glob. Web API fixes bring Request/Response null-body handling, blob.slice content types and Request constructor validation in line with Chrome and Safari. Node.js compatibility work covers Buffer, os.cpus on macOS, os.networkInterfaces and AbortSignal in http, and Bun.sleepSync now takes milliseconds, a breaking change.
- Bun v1.0.30
Bun mediumAdept
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. It adds a --conditions flag to bun build and the runtime for resolving package.json "exports" conditions such as react-server, plus expect.assertions() and expect.hasAssertions() in bun:test. Several crash causes are explained: a request-body Promise rejected after it was no longer pending, an incorrect JavaScriptCore tailcall intrinsic in require that broke Next.js, a TextEncoder.encode side-effects JIT bug, and uninitialized timer memory on Linux ARM64. Node.js compatibility fixes to node:stream event timing resolve hangs in prisma generate and node-fetch.
- Bun 1.1
Bun mediumAdept
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. A new `.bunx` file format acts as a cross-filesystem symlink so scripts launch without shebangs, `.cmd`/`.ps1` permutations or "Terminate batch job?" prompts. Other changes include a content-addressable transpiler cache for files over 50KB that roughly doubles startup for large tools like tsc, and the cross-platform Bun Shell (`Bun.$`) with argument escaping against command injection. The release also adds new APIs (Glob, Semver, stringWidth) and closes Node.js compatibility gaps: an HTTP/2 client, Date parsing ported from V8, recursive readdir, Bun–Node IPC, and undocumented internals used by Express and Astro.
- Bun v1.2.16
Bun mediumAdept
Bun v1.2.16 fixes 73 issues and adds 119 passing Node.js tests. Headline changes are serving files directly through Bun.serve routes, an install.linkWorkspacePackages bunfig option that installs workspace dependencies from the registry (useful in CI), bun outdated support for catalog dependencies, and Bun.hash.rapidhash. Node.js compatibility improves through a node:net rework, vm.SyntheticModule, an llhttp-backed HTTPParser binding and AbortController handling in timers/promises. The release also fixes memory leaks in N-API handle scopes and unread Bun.spawn stdio, plus assorted TLS, HTTP/2, CSS parser and Windows bugs.