首页›发现›编程›Bun Blog

Bun Blog

RSS运行正常
bun.sh·编程·英语
访问网站
文章数100
更新频率每月约 1.3 篇
最近抓取1分钟前
订阅方式RSS
订阅地址https://bun.sh/rss.xml

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

Bun v1.4.5

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

Bun v1.4.4

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.

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.

Rewriting Bun in Rust

Why & how we rewrote Bun from Zig to Rust

Bun v1.3.14

AI 摘要Bun v1.3.14 fixes 92 issues and introduces Bun.Image, a built-in image processing API, alongside experimental HTTP/2 and HTTP/3 clients for fetch() and HTTP/3 (QUIC) support in Bun.serve(). The release also delivers 7x faster warm installs with the isolated linker's global store, a rewritten fs.watch() on Linux and macOS, Bun.Terminal on Windows via ConPTY, and new FreeBSD and Android builds. Further improvements include the --no-orphans CLI flag, process.execve(), a shared SSL_CTX cache, smaller binaries, and numerous Node.js compatibility fixes.

Bun v1.3.13

AI 摘要Bun v1.3.13 resolves 82 issues and adds new bun test options including --parallel, --isolate, --shard, and --changed. The release delivers major performance gains, such as bun install streaming tarballs with 17x less memory, source maps using 8x less memory, and 5.5x faster gzip through zlib-ng. It also introduces Range request support in Bun.serve(), SHA3 in node:crypto and WebCrypto, a ws+unix:// WebSocket client, and many Node.js compatibility improvements.

Bun v1.3.12

AI 摘要Bun v1.3.12 fixes 120 issues and introduces new features such as Markdown rendering in the terminal, Bun.WebView headless browser automation, an in-process Bun.cron() scheduler, and async stack traces for native errors. The release also includes significant performance gains, including 2.3x faster URLPattern and 2x faster Bun.Glob.scan, plus cgroup-aware parallelism on Linux. Additionally, it delivers numerous bugfixes and Node.js compatibility improvements.

Bun v1.3.11

AI 摘要Bun v1.3.11 fixes 105 issues and makes the Linux build 4 MB smaller. It introduces new features such as Bun.cron for OS-level cron jobs, Bun.sliceAnsi for ANSI/grapheme-aware string slicing, richer Bun.markdown list metadata, bun test --path-ignore-patterns, and a native Windows ARM64 .bin shim. The release also includes many fixes across platforms (dgram UDP on macOS, fs.openSync numeric flags on Windows, HTTP/2 WINDOW_UPDATE), bundler and CSS improvements, a CRLF injection security fix, and numerous Node.js compatibility enhancements.

Bun v1.3.10

AI 摘要Bun v1.3.10 fixes 155 issues and introduces a native REPL, --compile --target=browser for self-contained HTML, TC39 standard ES decorators, Windows ARM64 support, and barrel import optimization. It brings major performance gains, including structuredClone up to 25x faster for arrays, Buffer.slice() 1.8x faster, path.parse() up to 7x faster, and a JavaScriptCore upgrade with 168x faster deep rope string slicing. The release also fixes Python asyncio-based MCP servers breaking with Bun.spawn(), plus numerous bugfixes across Node.js compatibility, bun install, the bundler, shell, and Windows.

Bun v1.3.9

Fixes 23 issues (addressing 13 👍). Run multiple scripts in --parallel or --sequential. bun:test mock & spyOn get Symbol.dispose support. ESM bytecode compilation. Faster Bun.markdown. Faster RegExp, String.prototype.trim, String.prototype.s

Bun v1.3.8

Fixes 8 issues (addressing 6 👍). Bun.markdown is a builtin CommonMark-compliant Markdown parser written in Zig. Bun's bundler gets bun build --metafile-md to write LLM-friendly module graph metadata. Fixes a regression in 'npm install -g bu

Bun v1.3.7

AI 摘要Bun v1.3.7 fixes 91 issues and delivers major performance improvements, including 50% faster Buffer.from(array), 35% faster async/await, 3x faster array.flat(), and 90% faster padStart/padEnd through a JSC upgrade. The release adds new features such as Bun.JSON5, Bun.JSONL, Bun.wrapAnsi(), the node:inspector Profiler API, markdown-based heap/CPU profiling flags, and replMode support for Bun.Transpiler. It also includes fixes so that fetch preserves header casing and HTTP/2 works better with AWS ALB, gRPC, and Fauna.

Bun v1.3.6

AI 摘要Bun v1.3.6 fixes 45 issues and introduces new APIs including Bun.Archive for creating and extracting gzip-compressed tarballs, Bun.JSONC for parsing JSON with comments, and metafile & files options in Bun.build for bundle analysis. The release delivers substantial performance gains, such as Response.json() 3.5x faster, 15% faster async/await, 30% faster Promise.race, 20x faster Bun.hash.crc32, and SIMD-accelerated Buffer.indexOf/includes. It also adds HTTP/HTTPS proxy support for WebSocket, S3 Requester Pays support, a --grep flag for bun test, fake timer compatibility with @testing-library/react, SQLite 3.51.2, and numerous Node.js compatibility improvements.

Bun v1.3.5

AI 摘要Bun v1.3.5 fixes 32 issues and introduces new features including a Bun.Terminal API, compile-time feature flags, and V8 C++ value type checking APIs. The release also improves Bun.stringWidth accuracy, adds Content-Disposition support for S3 uploads, and enables environment variable expansion in quoted .npmrc values. Additionally, it ships numerous bug fixes and Node.js compatibility improvements.

Bun v1.3.4

AI 摘要Bun v1.3.4 fixes 194 issues (addressing 412 user upvotes) and introduces new features including the URLPattern API, Fake Timers for bun:test, custom proxy headers in fetch(), and console.log %j format support. The release also includes an http.Agent connection pooling fix, changes to standalone executable config loading, an upgrade to SQLite 3.51.1, and numerous bugfixes for bun:test, Node.js compatibility, Windows, Web APIs, and bun install.

Bun is joining Anthropic

Bun has been acquired by Anthropic. Anthropic is betting on Bun as the infrastructure powering Claude Code, Claude Agent SDK, and future AI coding products & tools.

Bun v1.3.3

AI 摘要Bun v1.3.3 has been released, fixing 95 issues and introducing features such as CompressionStream and DecompressionStream support, control over .env and bunfig.toml loading in standalone executables, and `retry`/`repeats` options in `bun:test`. The release also includes SQLite 3.51.0, an upgrade to Zig 0.15.2, a new --no-env-file flag, and numerous bugfixes for the bundler, bun install, Windows, Node.js compatibility, Web APIs, Bun.serve, networking, Bun.YAML, Bun.Transpiler, Bun.spawn, and TypeScript definitions.