Skip to content

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

Bun 6 min read Release mediumAdept

Bun v1.0.36

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.

Assumes: Node.js fs APIsPOSIX file descriptors

Related posts

  • Bun v1.0.31

    Bun mediumAdept

    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.

  • Bun v1.0.18

    Bun mediumAdept

    Bun v1.0.18 fixes 27 bugs, including a process.stdin hang that froze create-vite and create-next-app at the second prompt. The hang came from calling cancel instead of releaseLock on the underlying ReadableStream, plus a stale "in use" state that kept the process alive. Lifecycle scripts no longer fail with "node" or "node-gyp" not found: Bun symlinks node to bun and node-gyp to bunx node-gyp. On Linux, Bun now falls back to ioctl_ficlone reflinks when copy_file_range is disabled (e.g. under gVisor), which speeds up bun install and fs.copyFile/cp. The release also fixes tsconfig wildcard path suffixes and makes expect().rejects.toThrow accept a promise as Jest does.

  • Bun v1.0.16

    Bun mediumAdept

    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. Concurrent Bun.file().text() and Bun.write() get roughly 3.3x and 3.9x faster in hyperfine benchmarks. Bun.write now creates missing parent directories by default (opt out with createPath: false), expect.extend works in test preload files, and napi_create_object is 2.5x faster. Also fixed: package.json "imports" aliasing that broke Astro v4 and p-limit, plus several console.log, stdin and transpiler bugs.

  • Bun v0.3.0

    Bun mediumAdept

    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. New Node.js APIs include node:child_process, process stdio streams, Error.captureStackTrace and fs streams, alongside automatic npm package installs on import when no node_modules exists. Other additions are a native Next.js-style FileSystemRouter, console as an AsyncIterable for reading stdin, threadsafe bun:ffi callbacks, new bun:test matchers with a faster toEqual(), and a long list of fetch, spawn and crash fixes.

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

The quest for software engineering knowledge.

Look:
Layout: