Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Bun 8 min read Release mediumAdept

Bun v0.5.8

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.

Related posts

  • Bun v1.3.1

    Bun mediumAdept

    Bun v1.3.1 makes `bun build` up to 2x faster for symlink-heavy projects (isolated linker, pnpm). It also adds sourcemaps for legal comments and inlines `import.meta` fields as CommonJS equivalents when building with `--format=cjs`. `bun test` gains a global Vitest-compatible `vi`, `--pass-with-no-tests` and `--only-failures`. `bun install` drops an unnecessary peer-dependency sleep, supports `:email` in `.npmrc` and selective hoisting via `publicHoistPattern`/`hoistPattern`. The release also adds `FileHandle.readLines()` and a long list of fixes, including fuzzer-found memory-safety bugs reported by Cloudflare, a MySQL TLS busy-loop, and determinism issues in isolated installs.

  • Bun v0.5.7

    Bun mediumAdept

    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.

  • 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.

  • Bun v0.2.0

    Bun mediumAdept

    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`. Memory use for `Bun.serve` drops 2.7x+ after fixing how Request/Response/Blob memory was reported to JavaScriptCore's garbage collector, and an event loop bug fix makes `bun:test` far faster for network tests. Breaking changes: CLI arguments after the script are passed through verbatim, and `process.version` now reports a fake Node.js version for npm compatibility.

  • Bun v1.0.2

    Bun mediumAdept

    Bun v1.0.2 makes `bun --watch` reload immediately instead of enqueuing a reload task behind blocking work on the event loop, and makes `bunx package@latest` always query the npm registry rather than reuse a cached copy in /tmp. Date parsing now uses V8's parser to match Chrome and Node.js. The release also adds `URL.canParse`, `URLSearchParams.prototype.size` and `os.availableParallelism`, and makes all `node:fs` functions concurrent. Many Node.js compatibility fixes target `node:stream`, `node:http` set-cookie headers (breaking Express), `require.cache` including unevaluated ESM (breaking Fastify), `node:dns`, `node:readline` and `Bun.serve()` crashes.

The quest for software engineering knowledge.

Look:
Layout: