---
title: "Bun v0.7.2"
description: "Bun v0.7.2 adds node:worker_threads, node:diagnostics_channel and a global BroadcastChannel, lets structuredClone/postMessage clone Error objects, and adds `bun .` to run a project's main file."
url: "https://swe.quest/articles/bun-v0-7-2-65b9975794c342cb"
canonical: "https://bun.com/blog/bun-v0.7.2"
source: "Bun"
published: "2023-08-03"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["javascript","runtimes","memory-management"]
---

# Bun v0.7.2

A post on [Bun](https://swe.quest/sources/bun.md), published 2023-08-03, 4 min read, Release. Original: [https://bun.com/blog/bun-v0.7.2](https://bun.com/blog/bun-v0.7.2)

## Summary

Bun v0.7.2 adds node:worker\_threads, node:diagnostics\_channel and a global BroadcastChannel, lets structuredClone/postMessage clone Error objects, and adds \`bun .\` to run a project's main file. At runtime Bun stops honoring the "browser" and "module" package.json exports conditions, now resolving only bun, worker, node and default (plus import/require), which fixes breakage in Astro, axios and tslib-dependent packages. Two memory leaks are fixed: a ~16-byte leak in native strong references affecting fetch, Bun.spawn, napi and streams, and a double header clone in response.clone(). Large TypedArray creation gets up to 40x faster, and moving builtins from ESM to CommonJS cuts "crypto" import start time by about 30%.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)

## Prerequisites

- Node.js module system ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- package.json exports

## Keywords

Bun, node:worker\_threads, BroadcastChannel, node:diagnostics\_channel, structuredClone, package.json exports

## Related posts

- [Bun v0.7.0](https://swe.quest/articles/bun-v0-7-0-d3096f46f4bdb50f.md): Bun · 2023-07-21 · Medium · 10 min read · JavaScript, Runtimes & VMs, Concurrency
  Bun v0.7.0 focuses on Node.js compatibility: it can now run \`vite dev\` (experimentally, via \`bun --bun\` to override the node shebang), supports Web \`Worker\` threads with \`postMessage\` and \`structuredClone()\`, and implements \`AsyncLocalStorage\` from \`node:async\_hooks\` as a step toward Next.js support.
- [Bun v1.1.13](https://swe.quest/articles/bun-v1-1-13-5296aa9cfb98f4b1.md): Bun · 2024-06-05 · Medium · 13 min read · JavaScript, Runtimes & VMs, Testing, Networking, Build systems
  Bun v1.1.13 fixes 97 bugs and adds \`eval: true\` for \`node:worker\_threads\`, \`URL.createObjectURL\` for spawning TypeScript workers from Blobs, custom failure messages in \`expect\`, and five new \`bun:test\` matchers.
- [Bun v0.3.0](https://swe.quest/articles/bun-v0-3-0-ce34b4df06ef614a.md): Bun · 2022-12-07 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v0.3.0 focuses on stability and Node.js/Web API compatibility, cutting memory use 3-5x under load by scheduling garbage collection in coordination with the event loop and speeding up TextEncoder.encodeInto() 3x via simdutf.
- [Bun v1.2.16](https://swe.quest/articles/bun-v1-2-16-2fbfbd468574713c.md): Bun · 2025-06-11 · Medium · 5 min read · JavaScript, Runtimes & VMs
  Bun v1.2.16 fixes 73 issues and adds 119 passing Node.js tests.
- [Bun v1.2.13](https://swe.quest/articles/bun-v1-2-13-6a5f0eb43709f59b.md): Bun · 2025-05-09 · Medium · 5 min read · JavaScript, Runtimes & VMs
  Bun v1.2.13 fixes 17 bugs and improves Node.js compatibility, adding worker\_threads environmentData, a process 'worker' event, and stability fixes for workers and --hot mode.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
