Bun v0.5.5 improves Node.js compatibility for node:http
, adds support for http.request()
, and fixes various bugs.
# Install using curl
curl -fsSL https://bun.sh/install | bash
# Install using npm
npm install -g bun
# Upgrade
bun upgrade
node:http
The following node:http
APIs are now supported in Bun:
http.request()
http.ClientRequest
http.OutgoingMessage
http.Agent
(some features are stubbed out, for now)
This enables several npm packages, including stripe
, to now work in Bun!
Thanks @ThatOneBro for landing this feature!
Fixed duplicate bun install
dependencies
We also fixed a bug where bun install
would crash if your machine had more than 8 versions of the same dependency installed. We have some plans to make our bun install
testing suite more robust to catch errors like this in the future.
Thanks @alexlamsl for debugging this issue and landing a fix.