Bun

Bun v0.1.6


Jarred Sumner · 2022年8月1日

升級

bun upgrade

如果您在升級時遇到任何問題

新功能

  • 不再有「Illegal Instruction」錯誤訊息,給那些使用不支援 AVX/AVX2 指令集的 CPU 的使用者! 感謝 Bun 全新的 baseline 建置版本,這些是 Bun 針對 Linux x64 和 macOS x64 的獨立建置版本,不使用 AVX/AVX2 指令集。您可以使用安裝腳本進行安裝。這是人們最常遇到的問題之一。
  • 新增 util.TextEncoder,由 @soneymathew 在 https://github.com/oven-sh/bun/pull/844
  • 修正 (ffi):符號物件的雙重釋放區段錯誤,由 @sno2 在 https://github.com/oven-sh/bun/pull/919
  • -profile 建置版本的 Bun 包含除錯符號
  • 更新 bun-framework-next 以相容於 Next 12.2+,由 @TiKevin83 在 https://github.com/oven-sh/bun/pull/920

感謝 WebKit 的升級

  • JSON.stringify 速度提升 3.5 倍 (感謝 @darinadler)
  • TypedArray.from 速度提升 396 倍 (感謝 @Constellation)
  • Uint8Array.slice() 速度提升 1.5 倍 (感謝 @Constellation)
  • 在 Linux 上,由於啟用新的記憶體分配器 (libpas,感謝 @Constellation),JS 執行速度最高提升 2%

提交

  • 文件:為大型 Makefile 新增了一個助手,由 @Sanix-Darker 在 https://github.com/oven-sh/bun/pull/804
  • 修正安裝腳本在淺色背景下的顏色,由 @alexkuz 在 https://github.com/oven-sh/bun/pull/800
  • 修正 Next.js 範例 README 中的錯誤,由 @AadiTheCodecerer 在 https://github.com/oven-sh/bun/pull/827
  • 功能:在 makefile 目標中新增 .PHONY,由 @Sanix-Darker 在 https://github.com/oven-sh/bun/pull/847
  • CI:為 CI 工作流程新增 Docker 快取,由 @HarshCasper 在 https://github.com/oven-sh/bun/pull/846
  • 功能:新增 info、info_bod 和 success 方法來包裝訊息類型,由 @Sanix-Darker 在 https://github.com/oven-sh/bun/pull/845
  • [Bun.js] 支援 util.TextEncoder,由 @soneymathew 在 https://github.com/oven-sh/bun/pull/844
  • 修正 (examples/hono):優化 Hono 範例,由 @yusukebe 在 https://github.com/oven-sh/bun/pull/773
  • 將 bun-types 更新至最新版本,由 @LoiLock 在 https://github.com/oven-sh/bun/pull/766
  • 修正 (release):移除 GHA 中 `if` 區塊的 `${{}}`,由 @rgoomar 在 https://github.com/oven-sh/bun/pull/863
  • 功能:在 Dockerfile 中清理/分解 ARGS,由 @Sanix-Darker 在 https://github.com/oven-sh/bun/pull/839
  • 使用 'ADD' 而非執行 wget,以讓 Docker 比較校驗和...,由 @mikeswann 在 https://github.com/oven-sh/bun/pull/864
  • 增加 util 節點相容性的測試覆蓋率,由 @soneymathew 在 https://github.com/oven-sh/bun/pull/854
  • 雜項 (installer):使用此儲存庫取代 release-for-updater,由 @xHyroM 在 https://github.com/oven-sh/bun/pull/582
  • 修正 (types):為 WebSocket 新增遺失的類型,由 @xHyroM 在 https://github.com/oven-sh/bun/pull/578
  • 新增 'scripts/nproc' 助手腳本,由 @penberg 在 https://github.com/oven-sh/bun/pull/623
  • 支援 Bash 中的自動完成功能,由 @zombieleet 在 https://github.com/oven-sh/bun/pull/403
  • #609 不要將 ASCII 緩衝區截斷為 7 位元,由 @szatkus 在 https://github.com/oven-sh/bun/pull/775
  • 文件 (macos):改進 MacOS 開發說明,由 @rgoomar 在 https://github.com/oven-sh/bun/pull/836
  • 登陸頁/文件:使 Bun 命名保持一致,由 @holic 在 https://github.com/oven-sh/bun/pull/906
  • 雜項 (ci):新增區段錯誤標籤,由 @sno2 在 https://github.com/oven-sh/bun/pull/916
  • 文件:修正損壞的 ffi 基準測試連結,由 @xHyroM 在 https://github.com/oven-sh/bun/pull/914
  • 修正 (ffi):符號物件的雙重釋放區段錯誤,由 @sno2 在 https://github.com/oven-sh/bun/pull/919
  • 更新 bun-framework-next 以相容於 Next 12.2+,由 @TiKevin83 在 https://github.com/oven-sh/bun/pull/920
  • 修正 (makefile):devcontainer 安裝,由 @paperclover 在 https://github.com/oven-sh/bun/pull/933
  • 修正/React 可訪問性,由 @chasm 在 https://github.com/oven-sh/bun/pull/932
  • 重構 (bunjs/bindings):程式碼可讀性修正 `functionLazyLoadStrea…,由 @ryanrussell 在 https://github.com/oven-sh/bun/pull/926
  • 雜項:修正標籤器,由 @xHyroM 在 https://github.com/oven-sh/bun/pull/899
  • 修正:將 bun、Webkit 和 zig URL 從 Jarred-Sumner 移動到 oven-sh,由 @oransimhony 在 https://github.com/oven-sh/bun/pull/944
  • 雜項:遷移已棄用的 `@vscode/dev-container-cli`,由 @kidonng 在 https://github.com/oven-sh/bun/pull/912

新貢獻者

  • @Sanix-Darker 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/804
  • @AadiTheCodecerer 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/827
  • @HarshCasper 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/846
  • @soneymathew 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/844
  • @yusukebe 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/773
  • @rgoomar 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/863
  • @mikeswann 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/864
  • @penberg 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/623
  • @zombieleet 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/403
  • @szatkus 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/775
  • @holic 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/906
  • @TiKevin83 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/920
  • @paperclover 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/933
  • @chasm 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/932
  • @oransimhony 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/944
  • @kidonng 做出了他們的首次貢獻,在 https://github.com/oven-sh/bun/pull/912

完整變更日誌: https://github.com/oven-sh/bun/compare/bun-v0.1.5...bun-v0.1.6