---
title: "Bun v0.6.3"
description: "Bun v0.6.3 adds the node:vm module for running code in controlled JavaScript contexts and fixes node:tls and node:http so socket.io and mongodb authentication work. bun test gains test.todo(), toBeCloseTo(), per-test timeouts and lifecycle hooks via --preload."
url: "https://swe.quest/articles/bun-v0-6-3-6490ca20e0e273a3"
canonical: "https://bun.com/blog/bun-v0.6.3"
source: "Bun"
published: "2023-05-22"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["javascript","runtimes","testing","build-systems"]
---

# Bun v0.6.3

A post on [Bun](https://swe.quest/sources/bun.md), published 2023-05-22, 6 min read, Release. Original: [https://bun.com/blog/bun-v0.6.3](https://bun.com/blog/bun-v0.6.3)

## Summary

Bun v0.6.3 adds the node:vm module for running code in controlled JavaScript contexts and fixes node:tls and node:http so socket.io and mongodb authentication work. bun test gains test.todo(), toBeCloseTo(), per-test timeouts and lifecycle hooks via --preload. The release fixes several bundler race conditions and minifier bugs, plus two fetch() memory leaks caused by strongly held Promise\<Response\> references. It also includes a breaking change: ServerWebSocket.publish() now excludes the sender by default, and WebSockets can deliver binary messages as Node Buffers.

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)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)

## Prerequisites

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

## Keywords

Bun, node:vm, bun test, WebSocket, socket.io, fetch

## 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.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 v0.2.1](https://swe.quest/articles/bun-v0-2-1-3bfed6610fb07736.md): Bun · 2022-10-19 · Medium · 2 min read · JavaScript, Runtimes & VMs, Real-time systems
  Bun.serve() gains built-in server-side WebSocket support powered by uWebSockets, with a server.upgrade(req) call that handles the Sec-WebSocket-Key check automatically.
- [Bun v1.2.20](https://swe.quest/articles/bun-v1-2-20-d97fc960ddc0e406.md): Bun · 2025-08-10 · Medium · 10 min read · JavaScript, Runtimes & VMs, Testing, Build systems
  Bun v1.2.20 fixes 141 issues and cuts idle CPU usage by no longer over-scheduling the garbage collector.
- [Bun v1.3.4](https://swe.quest/articles/bun-v1-3-4-fdb372d4f6ff0ddc.md): Bun · 2025-12-06 · Medium · 7 min read · JavaScript, Runtimes & VMs, Testing
  Bun 1.3.4 adds the URLPattern Web API (passing 408 Web Platform Tests), Jest-style fake timers in bun:test, custom proxy headers in fetch() and a %j console format specifier.

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)
