首页›Bun Blog›文章

Bun v1.4.4

2026年10月22日

AI 摘要 AI 生成,可能有误

Bun v1.4.4 修复了 271 个问题,并推出了 bun fmt——一个与 Prettier 兼容的格式化工具,速度比 oxfmt 快 3 到 6 倍,同时还带来了显著提速的 bun check 和提升式(hoisted)安装。该版本还新增了 Yarn Berry 锁文件(lockfile)迁移、bun pm fetch、bun publish --recursive,以及对 Bun.SQL、bun:sqlite 和 WebSocket 行为的改进。此外,该版本还包括一次带来重大性能提升的 JavaScriptCore 升级、重新设计的开发服务器错误覆盖层(error overlay),以及大量 Node.js 兼容性修复。

Fixes 271 issues, addressing 544 👍. bun fmt, a Prettier-compatible formatter built into Bun that is 3x to 6x faster than oxfmt, bun check is 1.4x to 7.8x faster on large projects, bun install migrates Yarn Berry lockfiles, retries with exponential backoff and closes 133 issues, up to 3.2x faster hoisted installs from a warm cache on Linux, bun pm fetch, bun publish --recursive, packageExtensions, Bun.SQL uses up to 48% less CPU per query, query.cancel(), COPY streams, column name transforms, user-defined functions and update hooks in bun:sqlite, ws rewritten to behave like npm ws on Node.js, ws.pause() and ws.resume() in Bun.serve, a JavaScriptCore upgrade with 54x faster toLocaleString, up to 2.8x faster Headers iteration, up to 2.6x faster response.body streams, extglob and brace ranges in Bun.Glob, a redesigned error overlay in the dev server, and many bugfixes and Node.js compatibility improvements.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Bun Blog

Bun v1.4.5

This is a security release. It updates lsquic, c-ares, SQLite, llhttp and BoringSSL.

Bun v1.4.3

AI 摘要Bun v1.4.3 fixes 166 issues and introduces bun check, a built-in TypeScript type checker that is 3x to 6.4x faster than tsc, along with an experimental Bun.ModuleGraph, Bun.FetchSession, and 67–89% lower idle CPU usage. The release also brings performance improvements such as faster node:http responses, a JavaScriptCore upgrade speeding up JSON.parse, faster startup for compiled bytecode, and lower memory usage for bun build with many entry points. Additionally, it includes numerous bug fixes and Node.js compatibility improvements.

Bun v1.4.2

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.

Bun v1.4.1

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.

Bun 1.4

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.