Skip to content

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

Bun 7 min read Release mediumAdept

Bun v1.3.5

Bun v1.3.5 adds a Bun.Terminal API that attaches pseudo-terminals to subprocesses spawned with Bun.spawn, so programs like vim, htop and interactive shells can run with a real TTY on Linux and macOS. The bundler gains compile-time feature flags via `feature()` from "bun:bundle". Each flag is replaced with true or false at build time to enable dead-code elimination, and a typed Registry interface turns flag-name typos into type errors. Bun.stringWidth now measures grapheme-aware emoji, zero-width characters and CSI/OSC escape sequences correctly. Fixes include a macOS kqueue bug where a bitwise AND used instead of equality, plus missing EV_ONESHOT flags, caused 100% CPU spins, a trusted-dependencies spoofing issue via file:, link: and git: sources, and YAML 1.2 boolean compliance.

Assumes: JavaScript runtimespseudo-terminals

Related posts

  • Bun v1.3.12

    Bun mediumAdept

    Bun v1.3.12 adds Bun.WebView, a built-in headless browser automation API with WebKit and Chrome (CDP) backends. It dispatches OS-level trusted input events and waits for elements to be actionable, Playwright-style. Other additions are terminal Markdown rendering via `bun ./file.md` and Bun.markdown.ansi(), an in-process Bun.cron() scheduler that never overlaps runs and fires in UTC, and async stack traces for native APIs. The release also fixes UDP ICMP error handling and truncation detection, aligns unix socket lifecycle with Node.js, and embeds standalone Linux executables in an ELF section so execute-only binaries work. A JavaScriptCore upgrade brings `using` declarations and JIT improvements, and benchmarks show URLPattern up to 2.3x faster, SIMD-accelerated stripANSI/stringWidth up to ~11x faster, and faster bun build on low-core machines.

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

    Bun mediumAdept

    Bun v1.0.24 introduces Bun Shell, an experimental embedded shell language and interpreter for running cross-platform shell scripts from JavaScript and TypeScript via the $ template tag, with interop for fetch responses, files and line-by-line output. The release also fixes 9 bugs, mostly Node.js compatibility issues. Sockets no longer close on timeout. perf_hooks.eventLoopUtilization is now defined so Hapi works. process.exit had been rejecting integer exit codes that JavaScriptCore stores as doubles, which broke Prisma CLI. Other fixes cover bun install bin linking with dangling symlinks, path.parse edge cases and a recursive console.log hang.

  • Bun v1.3.11

    Bun mediumAdept

    Bun v1.3.11 adds Bun.cron, a cross-platform API that registers OS-level cron jobs (crontab, launchd, Task Scheduler) and parses cron expressions, plus Bun.sliceAnsi, an ANSI- and grapheme-aware string slicer that replaces slice-ansi and cli-truncate using a SIMD ASCII fast path and single-pass streaming. Bun.markdown.render list callbacks now receive richer metadata, with a fixed object shape kept for monomorphic inline caches. bun test gains --path-ignore-patterns, and Windows ARM64 gets a native .bin shim. The release also fixes macOS dgram UDP bugs caused by hardcoded Linux errno values, an http2 WINDOW_UPDATE stall, a TLS SNI loss with custom DNS lookups, and many Node.js compatibility crashes.

  • Bun v1.1.5

    Bun mediumAdept

    Bun v1.1.5 adds cross-compilation of standalone executables via `bun build --compile --target` (Linux x64/arm64, Windows x64, macOS arm64), so CI can build binaries for every platform from one machine. Other additions: text, json, toml and file import attributes; tolerance of comments and trailing commas in package.json; multi-certificate SNI in Bun.serve; embedding native libraries for bun:ffi in compiled executables; and a compact crash reporter, bun.report. The release fixes 64 bugs, including `bun run --filter` exiting 0 on failure, pidfd_open error handling and a race in Bun.spawn on Linux, Windows readline issues caused by duplicate uv_tty_t handles, and several Node.js compatibility gaps in fs, child_process, crypto and worker_threads.

The quest for software engineering knowledge.

Look:
Layout: