Bun v1.0.16
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.
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.27
Bun mediumAdept
Bun v1.0.27 fixes 72 bugs and lets Bun Shell throw on non-zero exit codes via $.throws(true). Throwing becomes the default in v1.1, a breaking change. Response bodies can now be async generators, async iterables or Node.js Readable streams, which Bun converts internally to a ReadableStream; this also fixes empty pages in Astro v4.4. Other fixes cover Bun Shell escaping, Brotli "ShortRead" errors in fetch(), http2 client hangs, Bun.Glob `**` matching, underscores in header names, async module mocks in bun:test, and a bun --watch ctrl+c regression on Linux. Windows support is close, with 85% of the test suite passing.
- Bun v1.0.22
Bun mediumAdept
Bun v1.0.22 fixes 29 bugs, most notably a `bun install` failure on Vercel. The parallel lifecycle-script change relied on `posix_spawn_file_actions_addchdir_np`, which needs glibc 2.29 while Vercel ships 2.26, and the failure went unchecked; a posix_spawn-like polyfill for Linux now handles it. New APIs include `performance.mark()`/`measure()` with `PerformanceObserver`, extra stdio pipes in `child_process` (groundwork for Playwright), Brotli decoding in `fetch` (now statically linked), `worker_threads` argv/execArgv, and new `bun:test` matchers. Performance changes make `Buffer.concat` 15–400% faster and `new Headers(object)` 10–15% faster, and fixes cover `console.table` emoji width, IPv6 binding on 0.0.0.0, and HTTP method casing.
- Bun v1.0.34
Bun mediumAdept
Bun v1.0.34 makes cross-filesystem fs.cp and fs.copyFile about 50% faster on Linux by adding sendfile to its copy syscalls, which also speeds up bun install on Docker and WSL where renameat(2) across overlayfs or remote mounts isn't available. It fixes a crash in cyclical CommonJS/ESM imports, caused by an ES module evaluating after its Promise reference went stale, and coalesces fetched module imports into a single event-loop task. On macOS, bunx now replaces its own process, saving roughly 120 MB of RAM versus npx. Other fixes cover devDependency hoisting, negative Bun.sleep values, and several Windows issues ahead of v1.1, with 94.53% of the test suite passing.
- 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.