Bun版本更新

Bun v1.4.0:改用 Rust 重写

Bun v1.4.0 把代码从 Zig 改写为 Rust,并新增 1,517 个来自 Node.js 测试套件的测试,是 Bun 1.0 以来 Node.js 兼容性提升最大的一次。这一版修复了 2,900 多个问题,空闲 CPU 占用降低 5 倍,内存最多减少 35%,在 Linux 上启动快 50%。

自 1.3.0 以来陆续加入了 Bun.Image、Bun.WebView、Bun.markdown、Bun.cron()、Bun.Terminal 以及 bun run --parallel、bun test --parallel 等功能;本版首发 bun audit fix、bun dedupe、bun prune、bun pm diff 和内置 React Compiler。

要点

  • Bun 由 Zig 改写为 Rust,这是首个 Rust 版本。
  • 新增 1,517 个 Node.js 测试套件中的测试。
  • 修复 2,900 多个问题。
  • 空闲 CPU 占用降低 5 倍,内存最多减少 35%。
  • 本版首发 bun audit fix、bun dedupe 等命令。

原文:Bun · v1.4.0

Bun 1.4 adds +1,517 tests from the Node.js test suite - our biggest jump in Node.js compatibility since Bun 1.0. Bun v1.4 also fixes over 2,900 issues.

阅读原文

收录于 。摘自 GitHub 版本发布的简短节选,著作权归原发布者所有。

查看全部