---
title: "Bun v0.2.0"
description: "Bun v0.2.0 adds `bun --hot` for server-side hot reloading that preserves global state and in-flight HTTP requests, `Bun.spawn`/`Bun.spawnSync` for process spawning with flexible stdin sources and ReadableStream output, and streaming request bodies in `Bun.serve`."
url: "https://swe.quest/articles/bun-v0-2-0-c0c3775be874dec7"
canonical: "https://bun.com/blog/bun-v0.2.0"
source: "Bun"
published: "2022-10-13"
difficulty: "medium"
kind: "Release"
reading_minutes: 5
tags: ["javascript","runtimes","performance"]
---

# Bun v0.2.0

A post on [Bun](https://swe.quest/sources/bun.md), published 2022-10-13, 5 min read, Release. Original: [https://bun.com/blog/bun-v0.2.0](https://bun.com/blog/bun-v0.2.0)

## Summary

Bun v0.2.0 adds \`bun --hot\` for server-side hot reloading that preserves global state and in-flight HTTP requests, \`Bun.spawn\`/\`Bun.spawnSync\` for process spawning with flexible stdin sources and ReadableStream output, and streaming request bodies in \`Bun.serve\`. Memory use for \`Bun.serve\` drops 2.7x+ after fixing how Request/Response/Blob memory was reported to JavaScriptCore's garbage collector, and an event loop bug fix makes \`bun:test\` far faster for network tests. Breaking changes: CLI arguments after the script are passed through verbatim, and \`process.version\` now reports a fake Node.js version for npm compatibility.

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)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- JavaScript runtimes ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Web Streams API

## Keywords

Bun, JavaScriptCore, Bun.serve, Bun.spawn, bun:test, ReadableStream

## Related posts

- [Bun v1.3.9](https://swe.quest/articles/bun-v1-3-9-b7a8e766ebce7857.md): Bun · 2026-02-08 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering, Compilers
  Bun v1.3.9 adds \`bun run --parallel\` and \`--sequential\` for running package.json scripts with prefixed output across workspaces, along with Node-compatible HTTP/2 connection upgrades via \`net.Server\`, \`Symbol.dispose\` support for test mocks, \`NO\_PROXY\` handling for explicit proxies, \`--cpu-prof-interval\`, and ESM bytecode in \`--compile\`.
- [Bun v1.0.4](https://swe.quest/articles/bun-v1-0-4-607f4ffff0bda429.md): Bun · 2023-10-03 · Medium · 7 min read · JavaScript, Runtimes & VMs, Memory management
  Bun v1.0.4 fixes 62 bugs, adds server.requestIP() for retrieving a request's socket IP (not proxy headers), and supports esbuild-compatible virtual modules in runtime plugins via builder.module().
- [Bun v1.2.12](https://swe.quest/articles/bun-v1-2-12-c11b21fb9d378ec8.md): Bun · 2025-05-04 · Medium · 4 min read · JavaScript, Runtimes & VMs, Developer tools
  Bun v1.2.12 adds a \`--console\` flag (and \`development.console\` option in \`Bun.serve()\`) that streams browser console.log/error output to the terminal over the existing HMR WebSocket, prefixed with \`\[browser\]\`.
- [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 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.

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)
