Bun v1.4.5
This is a security release. It updates lsquic, c-ares, SQLite, llhttp and BoringSSL.
Bun v1.4.3 修复了 166 个问题,并引入了 bun check——一个内置的 TypeScript 类型检查器,速度比 tsc 快 3 到 6.4 倍,同时还带来了实验性的 Bun.ModuleGraph、Bun.FetchSession,以及降低 67%–89% 的空闲 CPU 占用。此次发布还带来了多项性能改进,例如更快的 node:http 响应、通过升级 JavaScriptCore 加速 JSON.parse、编译字节码的更快启动速度,以及 bun build 在处理多个入口点时更低的内存占用。此外,它还包含大量错误修复和 Node.js 兼容性改进。
Fixes 166 issues, addressing 122 👍. bun check, a TypeScript type checker built into Bun that is 3x to 6.4x faster than tsc 7, --check for bun run, bun build and bun test, 67–89% less idle CPU, Bun.FetchSession, experimental Bun.ModuleGraph, --disallow-code-generation-from-strings, up to 2.7x faster large node:http responses, a JavaScriptCore upgrade with faster JSON.parse, faster rejected-promise handling, CompressionStream compression levels, If-Range support in Bun.serve, bun install skips tarballs it won't install, lower bun build memory with many entry points, [hashN] output names, profile-guided bytecode layout and faster startup for --compile --bytecode, and many bugfixes and Node.js compatibility improvements.
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
This is a security release. It updates lsquic, c-ares, SQLite, llhttp and BoringSSL.
AI 摘要Bun v1.4.4 fixes 271 issues and introduces bun fmt, a Prettier-compatible formatter that is 3x to 6x faster than oxfmt, along with significantly faster bun check and hoisted installs. The release also adds Yarn Berry lockfile migration, bun pm fetch, bun publish --recursive, and improvements to Bun.SQL, bun:sqlite, and WebSocket behavior. Additionally, it includes a JavaScriptCore upgrade with major performance gains, a redesigned dev server error overlay, and numerous Node.js compatibility fixes.
This release fixes two regressions impacting Elysia and AsyncLocalStorage, a hang in @discordjs/ws, CMYK JPEG decoding in Bun.Image, a rare JIT crash, and a GC crash on musl.
AI 摘要Bun v1.4.1 fixes 202 issues and introduces major features such as HTTP/2 support in Bun.serve, Bun.write() streaming Response bodies to disk, self-contained workspace node_modules, and bun install --offline/--prefer-offline. It also adds WebSocket pause() and resume(), crypto.argon2, tree-shaking via dynamic import(), smarter CommonJS-to-ESM default import conversion, and --compile --bytecode support when cross-compiling. Performance is significantly improved with faster startup, up to 9x faster Buffer reads/writes, 2x faster AsyncLocalStorage, and smaller, quicker-starting compiled executables, along with many bugfixes and Node.js compatibility enhancements.
AI 摘要Bun 1.4 is a major release that rewrites the runtime in Rust and adds built-in headless browser automation through Bun.WebView, alongside new APIs such as Bun.Image, Bun.markdown, JSON5, JSONL, Terminal, and cron. It also achieves Node.js 26.3.0 compatibility with 1,517 newly passing tests, introduces parallel test and run support, Windows ARM64 support, and an opt-in global virtual store enabling installs up to 7× faster.