Bun bun-v0.3.0stable Released Dec 07, 2022
Impact Score: 5/10

Bun v0.3.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.3.0. Source highlight: Read Bun v0.3.0's release notes on Bun's blog

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 (4)

  • Added a `done` callback to support async functions in `bun:test` - `c00359a`
  • Added support for npm packages that do not have a `-` before a pre-release identifier (e.g. `1.0.0beta`) - `5f5ef81`
  • Added support for `fs.rmdir()` - `92b7660`
  • Added a property for JavaScript callbacks to be marked as `threadsafe` using `bun:ffi` - `006a2f3`

โšก Performance & Enhancements (4)

  • Improved the output of `console.log()` - `c65c320`
  • Improved performance of IO polling for `Bun.spawn()` and `node:child_process` - `#1496`
  • Improved support for `node:http.createServer()` - `bf6b174`
  • Improved performance of Node.js streams - `#1502`

๐Ÿ”ง Bug Fixes & Patches (6)

  • Fixed various memory leaks - `a9aa3e7`, `1cce9da`, `9090f06`
  • Fixed various bugs with `RegExp` - `5398ed5`, `#1537`, `#1528`, `74e87b5`
  • Fixed an issue with `fs.stat()` - `f9f169b`
  • Fixed incorrect `exitCode` from `spawn()` - `30e1fe1`
  • Fixed incorrect transpilation of `export = value` in TypeScript - `1cb5a73`
  • Fixed `spawn()` not being killed when parent process is killed - `1f174b9`
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
<a href="https://bun.sh/blog/bun-v0.3.0"><strong>Read Bun v0.3.0's release notes on Bun's blog</strong></a> <a href="https://bun.sh/blog/bun-v0.3.0"><img height=500 src="https://camo.githubusercontent.com/a5e8eb41bfbd074f103bdf27127fdb42545807eacf3ed30e1e17f62c3d3354f5/68747470733a2f2f62756e2e73682f76302e332e302e706e67" alt="" data-canonical-src="https://bun.sh/v0.3.0.png" style="max-width: 100%;"></a> To install: ```bash curl -fsSL https://bun.sh/install | bash ``` To upgrade: ```bash bun upgrade ``` There were a lot of changes! Here's the complete list: - Fixed various memory leaks - [`a9aa3e7`](https://github.com/oven-sh/bun/commit/a9aa3e732c2ff90ae4eff9cc8e6bb9111534d959), [`1cce9da`](https://github.com/oven-sh/bun/commit/1cce9da80a51d49e423223f24f94fee6a044ab10), [`9090f06`](https://github.com/oven-sh/bun/commit/9090f06612cbff5bd389212a8d896bcd6372683f) - Implemented [`process.release`](https://nodejs.org/api/process.html#processrelease) - [`901c4f5`](https://github.com/oven-sh/bun/commit/901c4f57aa1fd0914c5f153fe56768f23b7a6511) - Fixed various bugs with `RegExp` - [`5398ed5`](https://github.com/oven-sh/bun/commit/5398ed52d8a0592b4511f8c0c03391dd06e770b2), [`#1537`](https://github.com/oven-sh/bun/pull/1537), [`#1528`](https://github.com/oven-sh/bun/pull/1528), [`74e87b5`](https://github.com/oven-sh/bun/commit/74e87b5a8a94a59bbfa32bba554503921c74c68c) - Fixed an issue with [`fs.stat()`](https://nodejs.org/api/fs.html#fsstatpath-options-callback) - [`f9f169b`](https://github.com/oven-sh/bun/commit/f9f169bb9e53afb6d9d8978ffdd4939d3033a6e8) - Prevented [`process.stdout`](https://nodejs.org/api/process.html#processstdout) and [`process.stderr`](https://nodejs.org/api/process.html#processstderr) from being closed - [`8519ff0`](https://github.com/oven-sh/bun/commit/8519ff02e6d5449484a5a4f858626303543c8a55) - Changed behaviour of [`Blob.size`](https://developer.mozilla.org/en-US/docs/Web/API/Blob/size) to report `Infinity` for non-files - [`d5c81b7`](https://github.com/oven-sh/bun/commit/d5c81b7423d866bcf418eaacbc1ad1a14bc23c1d) - Fixed incorrect `exitCode` from [`spawn()`](https://github.com/oven-sh/bun#bunspawn--spawn-a-process) - [`30e1fe1`](https://github.com/oven-sh/bun/commit/30e1fe1035b0e18c16401f447b446f2fc94c167b) - Fixed incorrect transpilation of `export = value` in TypeScript - [`1cb5a73`](https://github.com/oven-sh/bun/commit/1cb5a7324343c2c7980e0d2d0aeab74ebc602689) - Fixed [`spawn()`](https://github.com/oven-sh/bun#bunspawn--spawn-a-process) not being killed when parent process is killed - [`1f174b9`](https://github.com/oven-sh/bun/commit/1f174b9d9580ed1101c043963b17e2bd27aedf81) - Fixed silent error when `port` was not a number - [`e5b2e3c`](https://github.com/oven-sh/bun/commit/e5b2e3c6024492a10cb2649477657a168bf9723f) - Added a `done` callback to support async functions in `bun:test` - [`c00359a`](https://github.com/oven-sh/bun/commit/c00359a521bfcd0d1476511962cfc50763796e61) - Fixed various issues with [`process.nextTick()`](https://nodejs.org/api/process.html#processnexttickcallback-args) - [`fd26d2e`](https://github.com/oven-sh/bun/commit/fd26d2e9fa3a98803244d2d4d7cb8c657d4efe2a), [`2eb19a9`](https://github.com/oven-sh/bun/commit/2eb19a96b11b75e65cde00d6ac1c358b30020ef6) - Fixed `console.log(Request)` showing an empty `url` - [`cb41d77`](https://github.com/oven-sh/bun/commit/cb41d77d2aa9ae3b4d938167d86679a429bee4fe) - Implemented [`AbortSignal.timeout()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout) - [`fe4f39f`](https://github.com/oven-sh/bun/commit/fe4f39fd17b8ffbb809871b9e4c6550063f15657) - Supported wildcard `imports` in package.json - [`a3dc33c`](https://github.com/oven-sh/bun/commit/a3dc33c13350f4227c1cfb669f095d011d34ed76) - Fixed timers keeping the process alive unnecessarily - [`f408749`](https://github.com/oven-sh/bun/commit/f408749182f49607902921c55307f2cf94eb23db) - Fixed an issue when object spreading [`process.env`](https://nodejs.org/dist/latest/docs/api/process.html#processenv) - [`a6cadce`](https://github.com/oven-sh/bun/commit/a6cadce6f6292b685cc4160052304b5dfc8cd3ad) - Fixed a bug where [`Response.arrayBuffer()`](https://developer.mozilla.org/en-US/docs/Web/API/Response/arrayBuffer) would return a `Uint8Array` - [`de9a2b9`](https://github.com/oven-sh/bun/commit/de9a2b9fe54cb7fd9696a3fa8edfa9c42829280d) - Implemented `signalCode` for [`Bun.spawn()`](https://github.com/oven-sh/bun#bunspawn--spawn-a-process) - [`0617896`](https://github.com/oven-sh/bun/commit/0617896d7045e129abac8d7fd22df0e6626d92c8) - Supported the [`Content-Range`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header when serving a file - [`0617896d`](https://github.com/oven-sh/bun/commit/0617896d7045e129abac8d7fd22df0e6626d92c8) - Supported `bin` when using `bun link` - [`0642cf3`](https://github.com/oven-sh/bun/commit/0642cf31f34759705c92daba1016edc9e460b661) - Improved the output of [`console.log()`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) - [`c65c320`](https://github.com/oven-sh/bun/commit/c65c320b09c795cb27523ff61eb9f9d92663c8cd) - Fixed an issue with streams prematurely closing - [`d68f44d`](https://github.com/oven-sh/bun/commit/d68f44d604f52ad9b4b9052d42d93ffb10f83af7) - Fixed an issue when using [`console.log()`](https://developer.mozilla.org/en-US/docs/Web/API/console/log) with an emoji - [`3cb462a`](https://github.com/oven-sh/bun/commit/3cb462a3e69811dd34200d0eaaba89471e44d82a) - Fixed an issue when connecting to `localhost` - [`d90a638`](https://github.com/oven-sh/bun/commit/d90a638101921807d6dc8fca14fc39f843552983) - Fixed [`Request.url`](https://developer.mozilla.org/en-US/docs/Web/API/Request/url) not showing the value from the `Host` header - [`da25733`](https://github.com/oven-sh/bun/commit/da257336b0b70df8c31da647496899cf70670000) - Fixed memory issues in [`HTMLRewriter`](https://developers.cloudflare.com/workers/runtime-apis/html-rewriter/) where `text` was not properly cloned - [`a85826`](https://github.com/oven-sh/bun/commit/a858261832800f03c294d59365fde19d783c486d), [`904716f`](https://github.com/oven-sh/bun/commit/904716f56b95cb86aa1263e19bcfb49c2cee0b90) - Fixed an issue when an exception is throw within a [`WebSocket`](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) open event - [`c52ebd9`](https://github.com/oven-sh/bun/commit/c52ebd96ba5d0b695a4b7a27071815a96d1f568f) - Added support for npm packages that do not have a `-` before a pre-release identifier (e.g. `1.0.0beta`) - [`5f5ef81`](https://github.com/oven-sh/bun/commit/5f5ef81f11403c399fc57f0fd3dc6b2dd85e492e) - Improved performance of IO polling for [`Bun.spawn()`](https://github.com/oven-sh/bun#bunspawn--spawn-a-process) and [`node:child_process`](https://nodejs.org/api/child_process.html) - [`#1496`](https://github.com/oven-sh/bun/pull/1496) - Fixed infinite IO `write()` on Linux - [`a78b6f9`](https://github.com/oven-sh/bun/commit/a78b6f920d5042c583d8e2c8ab12132ba1a5e982) - Added support for [`fs.rmdir()`](https://nodejs.org/api/fs.html#fsrmdirpath-options-callback) - [`92b7660`](https://github.com/oven-sh/bun/commit/92b766095de0e59fe40dfd9009e4fcc18117d93b) - Fixed an issue with gzip decompression when the body was not gzipped - [`#1510`](https://github.com/oven-sh/bun/pull/1510) - Fixed an issue with `@` in the URL of [`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch) - [`6c01a11`](https://github.com/oven-sh/bun/commit/6c01a1191f07b3f2b8ce1ba07bf4eda25ce5e473) - Fixed an issue with a trailing `/` in the URL of [`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch) - [`4f22c39`](https://github.com/oven-sh/bun/commit/4f22c39651bf57f929876bd58e83bf0b3156a9d1) - Fixed rare crash during [`console.log()`](https://developer.mozilla.org/en-US/docs/Web/API/console/log) - [`b0c89ba`](https://github.com/oven-sh/bun/commit/b0c89baac755195393ae182a1ee1a6e7b22f54b9) - Improved support for [`node:http.createServer()`](https://nodejs.org/api/http.html#httpcreateserveroptions-requestlistener) - [`bf6b174`](https://github.com/oven-sh/bun/commit/bf6b1742330343c6004789f02761426aeafdb47b) - Implemented `FileSink.ref()` and `FileSink.unref()` - [`d1a4f4f`](https://github.com/oven-sh/bun/commit/d1a4f4fd6981a06920adb632dde2562b76ddc4d0) - Implemented [`console.timeLog()`](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog) - [`f677919`](https://github.com/oven-sh/bun/commit/f6779193c0e1c57b6d78979b7aacecda4e29081b) - Fixed [`fs.createWriteStream()`](https://nodejs.org/api/fs.html#fscreatewritestreampath-options) - [`#1433`](https://github.com/oven-sh/bun/pull/1433) - Supported TypeScript decorators - [`#1445`](https://github.com/oven-sh/bun/pull/1445) - Supported JavaScript callbacks using [`bun:ffi`](https://github.com/oven-sh/bun#bunffi-foreign-functions-interface) - [`81033c5`](https://github.com/oven-sh/bun/commit/81033c52fb8c4c6b9370b960451b21ac9f876744) - Added a property for JavaScript callbacks to be marked as `threadsafe` using [`bun:ffi`](https://github.com/oven-sh/bun#bunffi-foreign-functions-interface) - [`006a2f3`](https://github.com/oven-sh/bun/commit/006a2f37ddb133f61c6fa672652663204c2d2e54) - Fixed various [`WebCrypto`](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto) issues and crashes - [`#1448`](https://github.com/oven-sh/bun/pull/1448), [`#1450`](https://github.com/oven-sh/bun/pull/1450) - Fixed [`Bun.which()`](https://github.com/oven-sh/bun#bunwhich--find-the-path-to-a-binary) not handling absolute paths - [`d6520cd`](https://github.com/oven-sh/bun/commit/d6520cd761d79680576b516d27505865fe5376e5) - Allowed URLs to be used as an argument to [`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch) - [`#1460`](https://github.com/oven-sh/bun/pull/1460) - Fixed rejected promises not triggering a test failure in `bun:test` - [`370d9c`](https://github.com/oven-sh/bun/commit/370d9c2931bbe778c8f897439d3a5429be933c21) - Fixed environment variables being coerced to non-strings - [`#1256`](https://github.com/oven-sh/bun/pull/1256) - Made [`TextDecoder`](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder) 20% faster for small inputs - [`160466`](https://github.com/oven-sh/bun/commit/1604666988b5aa674104d10fbc5d2e86cc04e870) - Fixed incorrect value for [`os.EOL`](https://nodejs.org/api/os.html#oseol) - [`8b0a3c7`](https://github.com/oven-sh/bun/commit/8b0a3c75cb98f5026de668b3a23d2e42f94e5d1a) - Fixed [`Buffer.toString("base64")`](https://nodejs.org/api/buffer.html#buftostringencoding-start-end) sometimes being incorrect - [`af39313`](https://github.com/oven-sh/bun/commit/af3931371eb30c11623d3aaecc3fe7cf0e14ec0d) - Fixed incorrect file permissions when using `bun install` - [`2c4777`](https://github.com/oven-sh/bun/commit/2c4777f579041d86b20e78ba6f519863ad3a6a13) - Supported TypeScript `satisfies` - [`565996`](https://github.com/oven-sh/bun/commit/565996a087df6d06b2b5109b6825c720d4c8b168) - Implemented [`WebSocketServer.publish()`](https://github.com/oven-sh/bun#publishsubscribe) when invoked outside an event handler - [`8753c48`](https://github.com/oven-sh/bun/commit/8753c483ff3e23929048eedeb4047b0b0aef281d) - Improved performance of Node.js streams - [`#1502`](https://github.com/oven-sh/bun/pull/1502) - Fixed [`bun:sqlite`](https://github.com/oven-sh/bun#bunsqlite-sqlite3-module) truncating numbers to int32 instead of int52 - [`ce6fc86`](https://github.com/oven-sh/bun/commit/ce6fc8609b26a7538dca840b2de5427a146445d4) - Fixed HTTP status text not matching standards - [`949d715`](https://github.com/oven-sh/bun/commit/949d715a141890286d3b04ded8e209ac899ed2af) - Fixed [`bun:sqlite`](https://github.com/oven-sh/bun#bunsqlite-sqlite3-module) not properly handing latin1 characters - [`c65c320`](https://github.com/oven-sh/bun/commit/c65c320b09c795cb27523ff61eb9f9d92663c8cd) - Supported manual redirects in [`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch) - [`5854d39`](https://github.com/oven-sh/bun/commit/5854d395259f4084b1d66e9f12b54085f277527e) - Fixed [`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch) redirects loosing the `port` - [`f8d9a8b`](https://github.com/oven-sh/bun/commit/f8d9a8be875a62eab9f3a6a8ca1a5b230d3aa0be) - Fixed an issue with a malformed [`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch) response body - [`b230e7a`](https://github.com/oven-sh/bun/commit/b230e7a73a78e67533cba0d852cefdbbd787eae9)