To install:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade:
bun upgrade
Read Bun v0.7.0's release notes on Bun's blog
What's Changed
- feat(bun/test): Implement "bail" option for "bun test" by @TiranexDev in #3253
- Improve our internal typedefs by @paperdave in #3608
- Improvements to
WebSocket
andServerWebSocket
by @Electroid in #3257 - $npm_lifecycle_event should have the value of the last call by @TiranexDev in #3630
- Update docs/types for process by @colinhacks in #3631
- structured clone by @dylan-conway in #3637
- docs: add one missing line in typescript.md by @capaj in #3650
- Fixes #3641 by @Jarred-Sumner in #3643
- Support
napi_wrap
in constructors by @Jarred-Sumner in #3614 - Implement Workers by @Jarred-Sumner in #3645
- Fixes base64url encoding for crypto by @Jarred-Sumner in #3654
- 20% faster
deserialize
for structuredClone / postMessage with objects by @Jarred-Sumner in #3655 - Fix memory leak in
new Response(latin1String).arrayBuffer()
andnew Response(latin1String).json()
by @Jarred-Sumner in #3656 - workaround
readable-stream
compatibility by @alexlamsl in #3626 - [install] handle duplicated workspace declarations gracefully by @alexlamsl in #3662
- package json
main
field extension order by @dylan-conway in #3664 - [tls] General compatibility improvements by @cirospaciari in #3596
- zig upgrade by @dylan-conway in #3667
- [jest] execute lifecycle hooks on empty blocks by @alexlamsl in #3663
- fix(tls) patch checkServerIdentity by @cirospaciari in #3671
- feature(constants) add constants/node:constants module and tests(prisma) use prima 5.0.0 + use same connection for postgres, add prisma mssql (disabled for now) by @cirospaciari in #3672
- Better error for workspace dependency not found by @Jarred-Sumner in #3678
- move constants module to cpp by @cirospaciari in #3683
- fix #3682 by @dylan-conway in #3687
- fix
stream/web
by @paperdave in #3690 - fix createDecipheriv by @cirospaciari in #3680
- update root certificates and add tls.rootCertificates by @cirospaciari in #3688
- Implement
AsyncLocalStorage
by @paperdave in #3089 - Fix browser bundled string_decoder by @paperdave in #3693
- Fix vite by @paperdave in #3694
- Fixes #3670 by @Jarred-Sumner in #3698
- Support streams in response.formData() & request.formData, introduce Bun.readableStreamToFormData() by @Jarred-Sumner in #3697
- Docs & types for 0.7 by @colinhacks in #3665
- Improve types for FFI number types by @colinhacks in #3706
- fix start delay on Worker by @cirospaciari in #3707
- set
_preload_modules
to empty array by @dylan-conway in #3709 - fix 3702 by @dylan-conway in #3708
- Pass constructor arguments to TextDecoder by @Parzival-3141 in #3692
- Fix builtins generator
$lazy
by @paperdave in #3711 - fix directory caching with workaround by @paperdave in #3710
- Fix builtins again by @paperdave in #3713
- fix process.exit status code handling by @paperdave in #3714
- fix
isFIFO
by @dylan-conway in #3715 - string escape edgecase by @dylan-conway in #3717
New Contributors
- @Parzival-3141 made their first contribution in #3692
Full Changelog: bun-v0.6.14...bun-v0.7.0