Bun v1.3.2
Bun 1.3.2 restores hoisted installs as the default for existing workspaces and adds a lockfile configVersion field so future default changes don't break existing projects. New projects using workspaces still default to isolated installs. The release speeds up bun install by smarter postinstall script handling, reported as 6x faster in a Next.js plus Vite repo. It also adds --cpu-prof CPU profiling in Chrome DevTools format, an onTestFinished test hook, a ServerWebSocket subscriptions getter and a spawnSync isolated event loop. Many Node.js, N-API, TLS, CSS and install compatibility bugs are fixed.
Related posts
- Bun v1.2.16
Bun mediumAdept
Bun v1.2.16 fixes 73 issues and adds 119 passing Node.js tests. Headline changes are serving files directly through Bun.serve routes, an install.linkWorkspacePackages bunfig option that installs workspace dependencies from the registry (useful in CI), bun outdated support for catalog dependencies, and Bun.hash.rapidhash. Node.js compatibility improves through a node:net rework, vm.SyntheticModule, an llhttp-backed HTTPParser binding and AbortController handling in timers/promises. The release also fixes memory leaks in N-API handle scopes and unread Bun.spawn stdio, plus assorted TLS, HTTP/2, CSS parser and Windows bugs.
- 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.3.1
Bun mediumAdept
Bun v1.3.1 makes `bun build` up to 2x faster for symlink-heavy projects (isolated linker, pnpm). It also adds sourcemaps for legal comments and inlines `import.meta` fields as CommonJS equivalents when building with `--format=cjs`. `bun test` gains a global Vitest-compatible `vi`, `--pass-with-no-tests` and `--only-failures`. `bun install` drops an unnecessary peer-dependency sleep, supports `:email` in `.npmrc` and selective hoisting via `publicHoistPattern`/`hoistPattern`. The release also adds `FileHandle.readLines()` and a long list of fixes, including fuzzer-found memory-safety bugs reported by Cloudflare, a MySQL TLS busy-loop, and determinism issues in isolated installs.
- Bun v1.0.7
Bun mediumAdept
Bun v1.0.7 fixes 59 bugs and adds support for optional peer dependencies in `bun install`, so packages marked optional in `peerDependenciesMeta` are no longer installed unless the root project lists them. Notable fixes include sorting registry versions before semver matching (some registries don't return them in order), a non-deterministic `bun.lockb` on Linux, a napi memory leak caused by a refcount starting at 1, `child_process` IPC reliability, and a Docker "port in use" error fixed by falling back from IPv6 to IPv4 binding. The build system is also moving from a large Makefile to cmake and ninja ahead of regular Windows builds.
- 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.