Bun bun-v0.7.0stable Released Jul 21, 2023
Impact Score: 5/10

Bun v0.7.0

Source available โ€” automated, not human-reviewed

Component: bun ยท Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-01.

Compatibility not verified โ€” check source notes
๐Ÿ“„ .MD
โšก Executive Summary (TL;DR)

Bun bun-v0.7.0. Source highlight: curl https://bun.sh/install | bash

Who Does This Impact? (Role-Based Analysis)

๐Ÿ’ป Software Engineers & Devs

Check the source notes against the package and APIs you use before upgrading.

๐Ÿ“Š Product & Engineering Leads

Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.

โš™๏ธ DevOps & Security

Verify the target version, runtime requirements and rollback procedure in the official documentation.

โœจ New Features & Capabilities (5)

  • feat(bun/test): Implement "bail" option for "bun test"
  • docs: add one missing line in typescript.md
  • 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)
  • update root certificates and add tls.rootCertificates
  • Support streams in response.formData() & request.formData, introduce Bun.readableStreamToFormData()

โšก Performance & Enhancements (4)

  • Improve our internal typedefs
  • Improvements to `WebSocket` and `ServerWebSocket`
  • [tls] General compatibility improvements
  • Improve types for FFI number types

๐Ÿ”ง Bug Fixes & Patches (6)

  • Fixes #3641
  • Fixes base64url encoding for crypto
  • Fix memory leak in `new Response(latin1String).arrayBuffer()` and `new Response(latin1String).json()`
  • fix(tls) patch checkServerIdentity
  • fix #3682
  • fix `stream/web`
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
To install: ```bash curl https://bun.sh/install | bash # or you can use npm # npm install -g bun ``` To upgrade: ```bash bun upgrade ``` **[Read Bun v0.7.0's release notes on Bun's blog](https://bun.sh/blog/bun-v0.7.0)** ## 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