Bun v1.4.5
This is a security release. It updates lsquic, c-ares, SQLite, llhttp and BoringSSL.
Bun v1.2.18 fixes 52 issues and introduces new features such as ReadableStream text(), json(), bytes(), and blob() methods, WebSocket client compression with permessage-deflate, and the bun pm version command. The release also delivers performance improvements, including reduced memory usage for large fetch() and S3 uploads, faster napi_create_buffer, and faster bun install for node-gyp packages. Numerous bug fixes are included for fs.glob, net.connect, http.ClientRequest, and fs.watchFile, alongside a bun:sqlite update to SQLite 3.50.2 and broader Node.js compatibility improvements.
Fixes 52 issues (addressing 112 👍). ReadableStream text(), json(), bytes(), blob(), WebSocket client compression with `permessage-deflate`, `bun pm version`, reduced memory usage for large `fetch()` and `S3` uploads, faster `napi_create_buffer`, faster sliced string handling in native addons, `fs.glob` now matches directories by default, `net.createConnection()` now validates `options.host`, `http.ClientRequest#flushHeaders` now correctly sends the request body, `net.connect` `keepAlive` and `keepAliveInitialDelay` options are now correctly handled, `fs.watchFile` emits `stop` on next tick, `net.Server` handles promise rejections in connection listeners, `net.connect` throws `ERR_INVALID_IP_ADDRESS` for non-string lookup results, `fs.watchFile` now ignores access time, `bun:sqlite` updated to SQLite 3.50.2, Bun now reports as Node.js v24.3.0, `bun test` now fails when no tests match a filter, `bun install` is faster for packages using `node-gyp`, `Math.sumPrecise` is now available, 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.
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.
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.