Skip to content

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

Bun 10 min read Release mediumAdept

Bun v1.0.31

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. A 100% CPU bug in `Bun.spawn()` on pre-5.10 Linux kernels came from the SIGCHLD fallback never reading its eventfd, which also masked a broken signal handler; a CPU-time regression test now guards it. A build mistake that statically linked all of ICU on macOS, inflating the binary from 47.7 MB to 80.4 MB, is fixed. Streaming file I/O and process spawning were reimplemented to avoid blocking the main thread without a threadpool, alongside Node.js compatibility and bunx/install fixes.

Assumes: JavaScript runtimesnpm lifecycle scriptsUnix sockets

Related posts

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

    Bun mediumAdept

    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. Secrets in bunfig.toml and .npmrc error logs are now redacted, and bun build --compile inlines process.versions.bun so native addons can be bundled statically. Fixes include ReadableStream spec issues pulled from WebKit, HTTP/1.1 header compliance via uWebSockets, an Amazon Linux 2 regression caused by a newer-glibc powf dependency (now guarded by a glibc 2.27 symbol test), and several bun install and Node.js compatibility bugs.

  • Bun v1.0.36

    Bun mediumAdept

    Bun v1.0.36 fixes 13 bugs and adds Node.js-compatible fs.openAsBlob and fs.opendir. Several fixes explain their low-level cause. File descriptor leaks to child processes are now prevented with the close_range syscall on Linux and posix_spawn on macOS. A Bun.spawn redirection bug came from dup2 being a no-op when source and destination descriptors match, so Bun now clears O_CLOEXEC instead. Non-blocking TTY reads reopen the terminal via ttyname_r, and bun build --target bun now emits latin1 rather than utf-8. Other fixes cover stdin/stdout hangs, an http2 crash, Bun shell races, bun install bin linking and .env loading in bun run.

  • Bun v0.8.1

    Bun mediumAdept

    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). The regression came from microtasks not being drained after reading request bodies, which became unbalanced once v0.8.0 started draining HTTP-server microtasks per request. Other fixes cover reporting native memory for Headers, Blob and fetch() to the garbage collector, runtime inlining of statically failing require() calls that broke napi packages, a 24-byte metadata header leaking into inline sourcemaps under --inspect, stale package.json scripts in the binary lockfile, and node:http proxy URLs.

  • Bun v1.0.8

    Bun mediumAdept

    Bun v1.0.8 fixes 138 bugs, fixes a require() memory leak (introduced when built-in modules moved from ESM to CommonJS) that cuts memory up to 30%, and adds runtime module mocking to bun test via mock.module, which updates existing ESM and CJS imports in place. bun install no longer duplicates peer dependencies and now orders pre-release tags by semver precedence. Notable runtime fixes include a waitpid-thread fallback for Bun.spawn where pidfd_open is unavailable (gVisor, older kernels), a kqueue process-exit race on macOS, Node-aligned setTimeout(0) and setImmediate semantics, and fetch() silently accepting untrusted TLS certificates due to BoringSSL error handling.

The quest for software engineering knowledge.

Look:
Layout: