To upgrade:
bun upgrade
To install:
curl https://bun.sh/install | bash
If you have any problems upgrading
Run the install script (you can run it multiple times):
curl https://bun.sh/install | bash
This fixes a regression introduced in Bun v0.1.12 where fetch()
with a body would fail to write the body when the body was small. This also adds keepalive: false
and timeout: false
to fetch
as options.
Please see Bun v0.1.12's release notes, as a lot more changed there.