Bun v1.4.3
Bun v1.4.3 adds `bun check`, a TypeScript type checker ported from typescript-go that passes all 51,210 of TypeScript 7.0.2's conformance tests and runs 3x to 6.4x faster than tsc 7 with 2.2x to 4.9x less memory. It only type checks, with no emit and no language server. Correctness was validated by diffing against tsc on 72 deliberately misconfigured open-source repos (1 mismatch in 1,103 configs), plus fuzzers and mutation testing. `--check` flags gate `bun run`, `bun test` and `bun build` on type errors. Runtime changes include 67–89% less idle CPU, `Bun.FetchSession` for per-group TLS, proxy and connection pools, better proxy env handling, experimental `Bun.ModuleGraph`, enforcement of `--disallow-code-generation-from-strings`, and up to 2.7x faster large `node:http` responses.
Related posts
- Bun v1.0.15
Bun mediumAdept
Bun v1.0.15 adds a global content-addressable transpiler cache for files over 50KB, making TypeScript-based CLIs like tsc start up to 2x faster and Prettier about 40% faster than v1.0.14. The cache can be relocated or disabled via BUN_RUNTIME_TRANSPILER_CACHE_PATH, and disabling it is recommended on ephemeral filesystems such as Docker. The release also ships a WebSocket client that passes the Autobahn suite (except compression), expect.extend() with new asymmetric and mock matchers, syntax-highlighted errors and cleaner stack traces, and a recursive fs.readdir it reports as 40x faster than Node. Further fixes cover N-API bugs blocking TensorFlow.js, a stack overflow in the recursive descent parser on deeply nested binary expressions, and several transpiler issues.
- 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.
- Bun v0.6.4
Bun mediumAdept
Bun v0.6.4 makes `bun test` up to 80% faster on suites with many small files by no longer forcing a synchronous garbage collection after every file, at the cost of roughly 9% more memory. The test runner now sets NODE_ENV=test, loads `.env.test` files, supports per-test and `--timeout` timeouts, adds `toHaveLength()`/`toBeEmpty()` matchers, and defaults to the Etc/UTC timezone to reduce flaky CI tests. Other changes include `process.env.TZ` support, `require.cache` (which also works for ESM), JSX runtime and Node.js http/https compatibility fixes, and internal builtins rewritten in TypeScript that shrink the binary by about 900 KB.
- 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.1.13
Bun mediumAdept
Bun v1.1.13 fixes 97 bugs and adds `eval: true` for `node:worker_threads`, `URL.createObjectURL` for spawning TypeScript workers from Blobs, custom failure messages in `expect`, and five new `bun:test` matchers. Several fixes come with explanations of their cause. Concurrent `fetch` failures came from TCP FIN handling, now fixed by setting `SO_LINGER` to 0 to avoid TIME_WAIT socket exhaustion. A `Last-Modified` manifest-cache shortcut in `bun install` broke HTTP keep-alive and has been disabled. Stack-trace offsets were traced to how line and column numbers were read from JavaScriptCore. `crypto.pbkdf2` now uses BoringSSL instead of a JS polyfill, running about 30-40x faster than before and roughly 3x faster than Node.js. Other fixes cover semver parsing, npm manifest string deduplication and WebSocket server crashes.