Bun v1.0.23
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.
Related posts
- Bun v1.0.19
Bun mediumAdept
Bun v1.0.19 fixes 26 bugs and replaces bun-types with @types/bun, which re-exports the real @types/node to avoid type conflicts. Timers get 4x higher throughput on Linux by swapping a timerfd-per-timer for a timer heap from libxev. Bun.spawnSync uses in-memory file descriptors instead of pipes for 50% faster large-output handling, and Bun.peek is 90x faster via a JavaScriptCore bytecode intrinsic. --frozen-lockfile now compares a hash of sorted package names and versions rather than filesystem input. The release also adds N-API fixes that let bcrypt and argon2 work, mock.module specifier resolution, and an embedded SQLite upgrade to 3.44.2.
- Bun v1.0.10
Bun mediumAdept
Bun v1.0.10 makes node:http 14% faster by building Node.js headers, rawHeaders and url strings directly in native code. The old path went through web-standard Headers objects and parsed absolute URLs twice. The change also fixes multiple Set-Cookie headers not reaching JavaScript and spurious errors on non-URL request targets like "*". Separately, Bun calls Linux syscalls directly but its Linux ARM64 error handling wrongly assumed libc errno, which caused bogus EBADF and install failures in Docker; that is now fixed. The release also fixes SQLite extension loading on macOS and a semver pre-release parsing crash in bun install.
- 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.0.26
Bun mediumAdept
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.
- Bun v0.7.1
Bun mediumAdept
Bun v0.7.1 makes ES Module loading 30%–250% faster by running its transpiler concurrently for import statements and dynamic imports, though CommonJS require is still sequential. Module resolution now happens only once, at runtime. The release also cuts vite dev startup on Linux by 90%, speeds up bun:sqlite row returns by 10%, and fixes getaddrinfo handling so private registries like Verdaccio work. Node.js compatibility fixes cover fs.watch thread usage, fs.stat truncation on large files, a GC bug in fs.readdir, and making the event loop wait for WebAssembly, Atomics and Web Crypto work, alongside new MessageChannel, fetch file: URLs and Promise.withResolvers support.