Skip to content

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

Bun 5 min read Release mediumAdept

Bun v1.0.13

Bun v1.0.13 adds client support for the node:http2 module, which unblocks @grpc/grpc-js, and makes Vite 5 and Rollup 4 work by implementing process.report.getReport() for libc detection and fixing a transpiler bug with require() in ternaries. Files using ES5 `with` statements are now automatically treated as CommonJS instead of failing under strict mode. Bun.spawn now throws on macOS errors, because posix_spawn returns the error code directly rather than setting errno. The release also fixes a bun install regression and nondeterministic peer dependency resolution, and cuts per-module string allocations in CommonJS require, giving 7.9% fewer strings when loading Discord.js.

Assumes: Node.js module APIsCommonJS vs ES Modules

Related posts

  • Bun v1.1.31

    Bun mediumAdept

    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). It also brings CA/cafile configuration for bun install, a --drop flag to strip calls like console.* at build or run time, Bun.inspect.table, iterable bun:sqlite queries, TC39 iterator helpers, Promise.try and a 9x faster Error.captureStackTrace. Node.js compatibility fixes cover Buffer.copyBytesFrom, Node-API edge cases, UV_THREADPOOL_SIZE, fs.open and an instanceof regression from a WebKit upgrade.

  • Bun v0.6.7

    Bun mediumAdept

    Bun v0.6.7 fixes Node.js compatibility bugs in Node-API, node:http, undici, WebSocket, node:net and CommonJS/ESM interop, which lets Prisma, Discord.js and Puppeteer run in Bun. It also roughly doubles node:crypto hashing speed on small inputs and fixes regressions from the native CommonJS rewrite, including a scope-lifetime crash and incorrect __dirname/__filename injection. Two known CommonJS differences from Node.js remain: module evaluation order, and Bun's runtime-based detection of named exports instead of static analysis. Bundler fixes cover __esModule handling, jsx vs jsxDEV selection, bun build --compile and JSON default imports.

  • Bun v0.7.2

    Bun mediumAdept

    Bun v0.7.2 adds node:worker_threads, node:diagnostics_channel and a global BroadcastChannel, lets structuredClone/postMessage clone Error objects, and adds `bun .` to run a project's main file. At runtime Bun stops honoring the "browser" and "module" package.json exports conditions, now resolving only bun, worker, node and default (plus import/require), which fixes breakage in Astro, axios and tslib-dependent packages. Two memory leaks are fixed: a ~16-byte leak in native strong references affecting fetch, Bun.spawn, napi and streams, and a double header clone in response.clone(). Large TypedArray creation gets up to 40x faster, and moving builtins from ESM to CommonJS cuts "crypto" import start time by about 30%.

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

    Bun mediumAdept

    Bun v0.7.0 focuses on Node.js compatibility: it can now run `vite dev` (experimentally, via `bun --bun` to override the node shebang), supports Web `Worker` threads with `postMessage` and `structuredClone()`, and implements `AsyncLocalStorage` from `node:async_hooks` as a step toward Next.js support. Other additions include a `--smol` flag that shrinks and slows growth of the JavaScriptCore heap for memory-constrained environments, `bun test --bail`, `Bun.readableStreamToFormData()`, `serialize`/`deserialize` in `bun:jsc`, WebSocket ping/pong with `nodebuffer` as the default binaryType, and many `node:tls` TLSSocket methods. Fixes include a Response memory leak that cut peak memory in a benchmark from 292 MB to 49 MB, base64url hash output matching Node.js, and module resolution ordering for dual CJS/ESM packages like graphql.

The quest for software engineering knowledge.

Look:
Layout: