bun - bun-v0.7.0


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 https://github.com/oven-sh/bun/pull/3253
  • Improve our internal typedefs by @paperdave in https://github.com/oven-sh/bun/pull/3608
  • Improvements to WebSocket and ServerWebSocket by @Electroid in https://github.com/oven-sh/bun/pull/3257
  • $npm_lifecycle_event should have the value of the last call by @TiranexDev in https://github.com/oven-sh/bun/pull/3630
  • Update docs/types for process by @colinhacks in https://github.com/oven-sh/bun/pull/3631
  • structured clone by @dylan-conway in https://github.com/oven-sh/bun/pull/3637
  • docs: add one missing line in typescript.md by @capaj in https://github.com/oven-sh/bun/pull/3650
  • Fixes #3641 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3643
  • Support napi_wrap in constructors by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3614
  • Implement Workers by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3645
  • Fixes base64url encoding for crypto by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3654
  • 20% faster deserialize for structuredClone / postMessage with objects by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3655
  • Fix memory leak in new Response(latin1String).arrayBuffer() and new Response(latin1String).json() by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3656
  • workaround readable-stream compatibility by @alexlamsl in https://github.com/oven-sh/bun/pull/3626
  • [install] handle duplicated workspace declarations gracefully by @alexlamsl in https://github.com/oven-sh/bun/pull/3662
  • package json main field extension order by @dylan-conway in https://github.com/oven-sh/bun/pull/3664
  • [tls] General compatibility improvements by @cirospaciari in https://github.com/oven-sh/bun/pull/3596
  • zig upgrade by @dylan-conway in https://github.com/oven-sh/bun/pull/3667
  • [jest] execute lifecycle hooks on empty blocks by @alexlamsl in https://github.com/oven-sh/bun/pull/3663
  • fix(tls) patch checkServerIdentity by @cirospaciari in https://github.com/oven-sh/bun/pull/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 https://github.com/oven-sh/bun/pull/3672
  • Better error for workspace dependency not found by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3678
  • move constants module to cpp by @cirospaciari in https://github.com/oven-sh/bun/pull/3683
  • fix #3682 by @dylan-conway in https://github.com/oven-sh/bun/pull/3687
  • fix stream/web by @paperdave in https://github.com/oven-sh/bun/pull/3690
  • fix createDecipheriv by @cirospaciari in https://github.com/oven-sh/bun/pull/3680
  • update root certificates and add tls.rootCertificates by @cirospaciari in https://github.com/oven-sh/bun/pull/3688
  • Implement AsyncLocalStorage by @paperdave in https://github.com/oven-sh/bun/pull/3089
  • Fix browser bundled string_decoder by @paperdave in https://github.com/oven-sh/bun/pull/3693
  • Fix vite by @paperdave in https://github.com/oven-sh/bun/pull/3694
  • Fixes #3670 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3698
  • Support streams in response.formData() & request.formData, introduce Bun.readableStreamToFormData() by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3697
  • Docs & types for 0.7 by @colinhacks in https://github.com/oven-sh/bun/pull/3665
  • Improve types for FFI number types by @colinhacks in https://github.com/oven-sh/bun/pull/3706
  • fix start delay on Worker by @cirospaciari in https://github.com/oven-sh/bun/pull/3707
  • set _preload_modules to empty array by @dylan-conway in https://github.com/oven-sh/bun/pull/3709
  • fix 3702 by @dylan-conway in https://github.com/oven-sh/bun/pull/3708
  • Pass constructor arguments to TextDecoder by @Parzival-3141 in https://github.com/oven-sh/bun/pull/3692
  • Fix builtins generator $lazy by @paperdave in https://github.com/oven-sh/bun/pull/3711
  • fix directory caching with workaround by @paperdave in https://github.com/oven-sh/bun/pull/3710
  • Fix builtins again by @paperdave in https://github.com/oven-sh/bun/pull/3713
  • fix process.exit status code handling by @paperdave in https://github.com/oven-sh/bun/pull/3714
  • fix isFIFO by @dylan-conway in https://github.com/oven-sh/bun/pull/3715
  • string escape edgecase by @dylan-conway in https://github.com/oven-sh/bun/pull/3717

New Contributors

  • @Parzival-3141 made their first contribution in https://github.com/oven-sh/bun/pull/3692

Full Changelog: https://github.com/oven-sh/bun/compare/bun-v0.6.14...bun-v0.7.0


Details

date
July 21, 2023, 1:32 p.m.
name
Bun v0.7.0
type
Minor
👇
Register or login to:
  • 🔍View and search all bun releases.
  • 🛠️Create and share lists to track your tools.
  • 🚨Setup notifications for major, security, feature or patch updates.
  • 🚀Much more coming soon!
Continue with GitHub
Continue with Google
or