Bun bun-v0.8.0stable Released Aug 24, 2023
Impact Score: 5/10

Bun v0.8.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.8.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 (6)

  • [install] handle `bun add` of existing `peerDependencies` correctly
  • Add `env` option for `node:worker_threads`
  • feat(bun/test): Implement "toSatisfy" & "toIncludeRepeated" (fwup)
  • feat(bun:test) add support for test.each() and describe.each()
  • Add support for bun --revision
  • add util.formatWithOptions

๐Ÿ”ง Bug Fixes & Patches (6)

  • Fixes #4010
  • Fixes #4029 and fixes #4022
  • Fixes #4001
  • Fix `path.normalize` edge case.
  • fix iterating headers with `set-cookie`
  • Fix `Bun.hash` functions
๐Ÿ“„ 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.8.0's release notes on Bun's blog](https://bun.sh/blog/bun-v0.8.0)** ## What's Changed * [install] handle `bun add` of existing `peerDependencies` correctly by @alexlamsl in https://github.com/oven-sh/bun/pull/4028 * Running missing scripts exits with non-0 by @YashoSharma in https://github.com/oven-sh/bun/pull/4026 * Bind require.resolve() by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4030 * Fixes #4010 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4031 * Fixes #4029 and fixes #4022 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4032 * Fixes #4001 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4034 * Fix `path.normalize` edge case. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4042 * WASM test analyzer by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4043 * fix iterating headers with `set-cookie` by @dylan-conway in https://github.com/oven-sh/bun/pull/4048 * implement `bun update` by @alexlamsl in https://github.com/oven-sh/bun/pull/4046 * implement fetching data urls by @dylan-conway in https://github.com/oven-sh/bun/pull/4000 * Fix `Bun.hash` functions by @jhmaster2000 in https://github.com/oven-sh/bun/pull/4054 * Add `env` option for `node:worker_threads` by @paperdave in https://github.com/oven-sh/bun/pull/4052 * make dynamically importing bun work by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4055 * Fix `path.format` compatibility issue. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4064 * Fix require("console") #3820 by @paperdave in https://github.com/oven-sh/bun/pull/4073 * Set exports to {} in user-constructed CommonJSModuleRecords by @paperdave in https://github.com/oven-sh/bun/pull/4076 * feat(bun/test): Implement "toSatisfy" & "toIncludeRepeated" (fwup) by @TiranexDev in https://github.com/oven-sh/bun/pull/3651 * worker tests by @paperdave in https://github.com/oven-sh/bun/pull/4058 * feat(bun:test) add support for test.each() and describe.each() by @jecquas in https://github.com/oven-sh/bun/pull/4047 * Fix one of the astro segfaults, also fix bun init version by @paperdave in https://github.com/oven-sh/bun/pull/4079 * update simdutf by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4078 * Fix `XLSX.read` coredump by @Hanaasagi in https://github.com/oven-sh/bun/pull/4086 * Add support for bun --revision by @YashoSharma in https://github.com/oven-sh/bun/pull/4027 * remove non-node node-fallbacks by @paperdave in https://github.com/oven-sh/bun/pull/4082 * Sync bun-polyfills branch by @jhmaster2000 in https://github.com/oven-sh/bun/pull/4081 * add util.formatWithOptions by @paperdave in https://github.com/oven-sh/bun/pull/4090 * bun test: format description of test.each by @jecquas in https://github.com/oven-sh/bun/pull/4092 * Fixes #4062 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4106 * fs.zig: create temp files with 0o700, not 0o007 by @adtac in https://github.com/oven-sh/bun/pull/4107 * Handle thundering herd of setInterval by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4109 * Fix memory leak in Buffer.toString('base64url') by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4111 * run files without extensions by @dylan-conway in https://github.com/oven-sh/bun/pull/4113 * make `astro build` slightly faster by making fs.realpath actually async, and fix a potential crash in fs.readFile by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4117 * Support TypeScript's `export type * as Foo from 'bar'` by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4125 * `bun-wasm` fixes & improvements by @jhmaster2000 in https://github.com/oven-sh/bun/pull/4126 * Deprecate loading `node_modules.bun` by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4131 * Fix custom config path not working. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4129 * Fix worker event loop ref/unref + leak by @paperdave in https://github.com/oven-sh/bun/pull/4114 * Update Stric guides by @aquapi in https://github.com/oven-sh/bun/pull/4137 * Fix `make setup` by @paperdave in https://github.com/oven-sh/bun/pull/4148 * Make builtins' source origin use a valid url by @paperdave in https://github.com/oven-sh/bun/pull/4152 * fix importing too long of strings by @paperdave in https://github.com/oven-sh/bun/pull/4155 * chore: fix method name typo by @Hanaasagi in https://github.com/oven-sh/bun/pull/4162 * Fix event loop issue with `Bun.connect` by @paperdave in https://github.com/oven-sh/bun/pull/4157 * Update docs our current status of node compatibility by @paperdave in https://github.com/oven-sh/bun/pull/4172 * Create domjit.test.ts by @dylan-conway in https://github.com/oven-sh/bun/pull/4173 * Fix prisma linux generation by @cirospaciari in https://github.com/oven-sh/bun/pull/4150 * `bun --inspect` by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4158 * Add SvelteKit guide by @colinhacks in https://github.com/oven-sh/bun/pull/4180 * Add SolidStart guide by @colinhacks in https://github.com/oven-sh/bun/pull/4182 * Fix leaking .ptr by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4181 * correct guide's bunfig example option by @xxxhussein in https://github.com/oven-sh/bun/pull/4192 * Add Astro guide by @colinhacks in https://github.com/oven-sh/bun/pull/4110 * refactor: move HTMLRewriter to c++ bindings by @bru02 in https://github.com/oven-sh/bun/pull/4193 * Fix(node:fs): add `buffer` parameter in `fs.read` callback. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4191 * Allow IncomingRequest.req to be overwritten. by @paperdave in https://github.com/oven-sh/bun/pull/4154 * Support Nitro by @paperdave in https://github.com/oven-sh/bun/pull/4098 * Add `util.inspect.custom` support to `util.inspect/Bun.inspect/console.log` by @paperdave in https://github.com/oven-sh/bun/pull/4194 * Remove most C API usages, add debugger pretty printers for `Headers`, `URLSearchParams`, `FormData`, `Worker`, `EventTarget` by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4187 * Implement BigIntStats by @paperdave in https://github.com/oven-sh/bun/pull/4208 * feat: add self-closing & can-have-content by @bru02 in https://github.com/oven-sh/bun/pull/4206 * tty `ReadStream`, `WriteStream`, and readline rawmode by @dylan-conway in https://github.com/oven-sh/bun/pull/4179 * Add inline sourcemaps when `--inspect` is enabled by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4213 * Fixes #172 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4220 * Fix crash impacting sharp & resvg by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4221 * Add unsupported (yet) comment to distroless image by @o-az in https://github.com/oven-sh/bun/pull/4210 * Fix(bundler): use different alias mappings based on the target. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4163 * Fix test failures from 3a9a6c63a by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4231 * Implement `--inspect-brk` by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4222 * Fixes #1675 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4230 * Update README.md by @xxxhussein in https://github.com/oven-sh/bun/pull/4232 * Fix memory leak in `buffer.toString("hex")` by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4235 * Buffer.toString('hex') gets 40x faster by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4237 * Fixes #4089 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4105 * feat: Implement Bun.inspect.custom by @paperdave in https://github.com/oven-sh/bun/pull/4243 * Implement `napi_ref_threadsafe_function` by @paperdave in https://github.com/oven-sh/bun/pull/4156 * Fix crypto.EC constructor by @paperdave in https://github.com/oven-sh/bun/pull/4242 * Fix(bundler): allow generating exe file in nested path. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4226 * Fix `emitKeyPresses` with backspace + quote by @paperdave in https://github.com/oven-sh/bun/pull/4245 * fetch(stream) add stream support for compressed and uncompressed data by @cirospaciari in https://github.com/oven-sh/bun/pull/4127 * import errors have `code` set to `ERR_MODULE_NOT_FOUND` and `require` errors have `code` set to `MODULE_NOT_FOUND` by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4244 * Docs and types for v0.8.0 by @colinhacks in https://github.com/oven-sh/bun/pull/4199 * fix stdin stream unref and resuming by @dylan-conway in https://github.com/oven-sh/bun/pull/4250 * fix fsevents and stub for qwikcity by @paperdave in https://github.com/oven-sh/bun/pull/4247 * fix(parser): yield before `]`shouldn't be a syntax error by @paperdave in https://github.com/oven-sh/bun/pull/4264 * Ask for `bun --revision` instead `bun -v` by @xHyroM in https://github.com/oven-sh/bun/pull/4256 * Fix more types. by @xxxhussein in https://github.com/oven-sh/bun/pull/4273 * docs: remove broken DNS docs link by @LapsTimeOFF in https://github.com/oven-sh/bun/pull/4268 * Bunch of streams fixes by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4251 * Fix ffi type by @codehz in https://github.com/oven-sh/bun/pull/4265 * Update globals.d.ts by @VietnamecDevelopment in https://github.com/oven-sh/bun/pull/4276 ## New Contributors * @YashoSharma made their first contribution in https://github.com/oven-sh/bun/pull/4026 * @jhmaster2000 made their first contribution in https://github.com/oven-sh/bun/pull/4054 * @jecquas made their first contribution in https://github.com/oven-sh/bun/pull/4047 * @adtac made their first contribution in https://github.com/oven-sh/bun/pull/4107 * @o-az made their first contribution in https://github.com/oven-sh/bun/pull/4210 * @LapsTimeOFF made their first contribution in https://github.com/oven-sh/bun/pull/4268 * @codehz made their first contribution in https://github.com/oven-sh/bun/pull/4265 * @VietnamecDevelopment made their first contribution in https://github.com/oven-sh/bun/pull/4276 **Full Changelog**: https://github.com/oven-sh/bun/compare/bun-v0.7.3...bun-v0.8.0