Bun v1.0.26
Bun v1.0.26 fixes 30 bugs and adds multi-statement queries to bun:sqlite via db.run() and db.exec(), though not query or prepare. bun --watch now reliably closes file descriptors on reload, using close_range(2) on Linux and POSIX_SPAWN_CLOEXEC_DEFAULT on macOS, and resets signal handlers. Other fixes address Bun.FileSystemRouter failing past 64 routes (a JavaScriptCore inline-property assertion), V8 stack-trace API compatibility (undefined error.stack, negative CallSite line numbers, default Error.prepareStackTrace), toStrictEqual with deleted properties, and undrained microtask queues in websockets, spawn and IPC that caused memory growth. Windows support is targeted for February 15.
Related posts
- Bun v1.2.2
Bun mediumAdept
Bun v1.2.2 fixes 38 bugs and cuts idle JavaScript memory usage by 10–30% (28% for Next.js, 11% for Elysia). The fix integrates JavaScriptCore's garbage collector timers into Bun's event loop, and on Linux GC thread suspension moves from SIGUSR1 to SIGPWR so it no longer conflicts with applications that use SIGUSR1. The release also fixes a vite build regression caused by an event-loop bug in async file writes, and improves reliability of Bun.SQL prepared statements, S3 multipart uploads and the CSS parser. Node.js compatibility additions include fs.glob, NODE_PATH resolution, and fixes for fs.Dir, createRequire on virtual paths, pnpm, and DuckDB native modules.
- Bun v1.1.14
Bun mediumAdept
Bun v1.1.14 fixes 63 bugs and adds `bun patch`, which clones a dependency out of the global cache for local edits and saves the changes as a standard diff under `patches/` that `bun install` applies automatically. `bun:sqlite` gains `query.as(Class)` for prototype-based result mapping without constructors, a `strict` mode for unprefixed bindings, `run()` returning `changes` and `lastInsertRowid`, and `safeIntegers` for 64-bit BigInt results. `BUN_CONFIG_VERBOSE_FETCH=curl` logs fetch and node:http traffic as copy-pasteable curl commands. Other fixes cover bun install exit codes and workspace `--production` handling, Windows terminal state, and WebSocket over TLS with large payloads.
- Bun v1.1.4
Bun mediumAdept
Bun v1.1.4 adds `bun --filter` for running workspace scripts in parallel across a monorepo using glob patterns, and makes `bun install` reinstalls up to 50% faster (1.54x on a 450 MB node_modules) by moving deletion of old package files to a separate thread. It also fixes a CI race where child dependencies could install before their parent finished, and stops aliased packages from being installed twice. bun:sqlite gains `using` support for automatic cleanup, `fileControl`, `close(throwOnError)` and closing on garbage collection, plus a fix for duplicate column names in JOINs. Other fixes cover a Web Streams memory leak that affected Next.js, TLS 1.2 renegotiation for fetch() clients, Node.js `fs` semantics and several Windows issues.
- Bun v1.0.23
Bun mediumAdept
Bun v1.0.23 adds importing SQLite databases via import attributes (`with {type: "sqlite"}`), with an `embed: "true"` option that bakes the database into `bun build --compile` single-file executables. NAPI `.node` addons can also be embedded in executables, and the bundler gains Resource Management (`using`/`await using`) via a polyfill plus partial JavaScriptCore support. TCP sends on Linux are about 4% faster because the event loop now makes fewer syscalls, dropping repeated timerfd_settime/epoll_ctl calls and draining sockets with non-blocking recvfrom loops, as strace output shows. The release also fixes 40 bugs, including `--target=node` require handling, peer dependency resolution, semver comparison, and a Bun.spawn IPC file-descriptor leak, and adds Node.js compatibility APIs such as events.on, FileHandle and import.meta.dirname.
- Bun v1.0.12
Bun mediumAdept
Bun v1.0.12 fixes 24 bugs and adds `bun -e` for evaluating inline scripts (with TypeScript, JSX and top-level await), `--env-file` for choosing which .env files to load, `server.url`, `import.meta.env`, and `expect.unreachable()` in bun:test. Macros can now import builtin modules like node:fs and node:child_process at bundle time, and `mock.module` now handles default exports and re-exports. Two fixes include root-cause explanations: a bun:sqlite `.get()` hang came from a wrong JavaScriptCore JSType tag that misled the DFG JIT, and a `require()` crash came from source code being garbage collected before an exception was thrown. As a result, Bun's debug builds now run JavaScriptCore with assertions enabled.