---
title: "Bun v0.7.0"
description: "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."
url: "https://swe.quest/articles/bun-v0-7-0-d3096f46f4bdb50f"
canonical: "https://bun.com/blog/bun-v0.7.0"
source: "Bun"
published: "2023-07-21"
difficulty: "medium"
kind: "Release"
reading_minutes: 10
tags: ["javascript","runtimes","concurrency"]
---

# Bun v0.7.0

A post on [Bun](https://swe.quest/sources/bun.md), published 2023-07-21, 10 min read, Release. Original: [https://bun.com/blog/bun-v0.7.0](https://bun.com/blog/bun-v0.7.0)

## Summary

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. Other additions include a \`--smol\` flag that shrinks and slows growth of the JavaScriptCore heap for memory-constrained environments, \`bun test --bail\`, \`Bun.readableStreamToFormData()\`, \`serialize\`/\`deserialize\` in \`bun:jsc\`, WebSocket ping/pong with \`nodebuffer\` as the default binaryType, and many \`node:tls\` TLSSocket methods. Fixes include a Response memory leak that cut peak memory in a benchmark from 292 MB to 49 MB, base64url hash output matching Node.js, and module resolution ordering for dual CJS/ESM packages like graphql.

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)
- [Concurrency](https://swe.quest/tags/concurrency.md) (Compilers & runtimes)

## Prerequisites

- Node.js APIs ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- JavaScript async programming ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, Vite, Web Workers, AsyncLocalStorage, JavaScriptCore, structuredClone, Comlink, WebSocket

## Related posts

- [Bun v0.7.2](https://swe.quest/articles/bun-v0-7-2-65b9975794c342cb.md): Bun · 2023-08-03 · Medium · 4 min read · JavaScript, Runtimes & VMs, Memory management
  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.
- [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.4.1](https://swe.quest/articles/bun-v1-4-1-d28e00ae252842cf.md): Bun · 2026-09-04 · Medium · 38 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems, Networking
  Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements.
- [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 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)
