Bun is a fast, all-in-one toolkit for installing, bundling, running and testing JavaScript & TypeScript. To install: `npm i -g bun`
We fixed a GC retention cycle that made Next.js App Router SSR leak memory when a page called fetch() https://twitter.com/bunjavascript/status/2083723523667972153
We fixed a GC retention cycle that made Next.js App Router SSR leak memory when a page called fetch() https://twitter.com/bunjavascript/status/2083723523667972153
Saving streaming file uploads to disk via Bun.write uses 35x less memory compared to Bun v1.3.14 https://twitter.com/bunjavascript/status/2083708247354245464
Saving streaming file uploads to disk via Bun.write uses 35x less memory compared to Bun v1.3.14 https://twitter.com/bunjavascript/status/2083708247354245464
Proxying file uploads uses 10x less memory than in v1.3.14 https://twitter.com/bunjavascript/status/2083704350472573224
Proxying file uploads uses 10x less memory than in v1.3.14 https://twitter.com/bunjavascript/status/2083704350472573224
Several bugs involving backpressure propagation have been fixed https://twitter.com/bunjavascript/status/2083702383172075745
Several bugs involving backpressure propagation have been fixed https://twitter.com/bunjavascript/status/2083702383172075745
Bun.serve can serve a whole folder https://twitter.com/bunjavascript/status/2082489775001616446
Bun.serve can serve a whole folder https://twitter.com/bunjavascript/status/2082489775001616446
bun:ffi gets up to 3x faster https://twitter.com/bunjavascript/status/2081172248967397417
bun:ffi gets up to 3x faster https://twitter.com/bunjavascript/status/2081172248967397417
Many fixed in recent PRs. Some fixed long ago. https://twitter.com/bunjavascript/status/2080882189663907859
Many fixed in recent PRs. Some fixed long ago. https://twitter.com/bunjavascript/status/2080882189663907859
Improved timer accuracy on Windows makes `Bun.sleep` faster https://twitter.com/bunjavascript/status/2079346398647177256
Improved timer accuracy on Windows makes `Bun.sleep` faster https://twitter.com/bunjavascript/status/2079346398647177256
94% of node:http tests from the Node.js v26 test suite pass, thanks to @cirospaciari https://twitter.com/bunjavascript/status/2078024909452919252
94% of node:http tests from the Node.js v26 test suite pass, thanks to @cirospaciari https://twitter.com/bunjavascript/status/2078024909452919252
node:sqlite is fully implemented and passes 100% of Node.js’ test suite https://twitter.com/bunjavascript/status/2078027352412680326
node:sqlite is fully implemented and passes 100% of Node.js’ test suite https://twitter.com/bunjavascript/status/2078027352412680326
93% of node:http2 tests from the Node.js v26 test suite pass, thanks to @cirospaciari https://twitter.com/bunjavascript/status/2078026179832168556
93% of node:http2 tests from the Node.js v26 test suite pass, thanks to @cirospaciari https://twitter.com/bunjavascript/status/2078026179832168556
Idle CPU usage drops by 5x https://twitter.com/bunjavascript/status/2076926338951479669
Idle CPU usage drops by 5x https://twitter.com/bunjavascript/status/2076926338951479669
Bun uses up to 32% less memory https://twitter.com/bunjavascript/status/2076912657400221811
Bun uses up to 32% less memory https://twitter.com/bunjavascript/status/2076912657400221811
The `"compress"` option in `fetch` compresses the request body for you https://twitter.com/bunjavascript/status/2069610810595545449
The `"compress"` option in `fetch` compresses the request body for you https://twitter.com/bunjavascript/status/2069610810595545449
`process` emits a "memoryPressure" event when the system runs low on memory (thanks @codebytere!) https://twitter.com/bunjavascript/status/2069607247668510914
`process` emits a "memoryPressure" event when the system runs low on memory (thanks @codebytere!) https://twitter.com/bunjavascript/status/2069607247668510914
`Buffer.from(str, "hex")` gets 4.8x faster
`Buffer.from(str, "hex")` gets 4.8x faster
`Buffer.from(str, "base64url")` gets 41x faster on large input
`Buffer.from(str, "base64url")` gets 41x faster on large input
Bun.stringWidth() 处理中文、日文、韩文字符的速度提升了 7~56 倍
Bun.stringWidth() が中国語・日本語・韓国語の文字で 7〜56 倍高速化されました
Bun.stringWidth()가 중국어·일본어·한국어 문자에서 7~56배 빨라졌습니다
Bun.stringWidth() 处理中文、日文、韩文字符的速度提升了 7~56 倍
Bun.stringWidth() が中国語・日本語・韓国語の文字で 7〜56 倍高速化されました
Bun.stringWidth()가 중국어·일본어·한국어 문자에서 7~56배 빨라졌습니다