---
title: "Bun v0.6.7"
description: "Bun v0.6.7 fixes Node.js compatibility bugs in Node-API, node:http, undici, WebSocket, node:net and CommonJS/ESM interop, which lets Prisma, Discord.js and Puppeteer run in Bun."
url: "https://swe.quest/articles/bun-v0-6-7-7c277e48946bb12b"
canonical: "https://bun.com/blog/bun-v0.6.7"
source: "Bun"
published: "2023-06-02"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["javascript","runtimes"]
---

# Bun v0.6.7

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

## Summary

Bun v0.6.7 fixes Node.js compatibility bugs in Node-API, node:http, undici, WebSocket, node:net and CommonJS/ESM interop, which lets Prisma, Discord.js and Puppeteer run in Bun. It also roughly doubles node:crypto hashing speed on small inputs and fixes regressions from the native CommonJS rewrite, including a scope-lifetime crash and incorrect \_\_dirname/\_\_filename injection. Two known CommonJS differences from Node.js remain: module evaluation order, and Bun's runtime-based detection of named exports instead of static analysis. Bundler fixes cover \_\_esModule handling, jsx vs jsxDEV selection, bun build --compile and JSON default imports.

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)

## Prerequisites

- Node.js module systems ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- CommonJS vs ES modules

## Keywords

Bun, Prisma, Discord.js, Puppeteer, CommonJS, Node-API, bun build

## Related posts

- [Bun v1.1.41](https://swe.quest/articles/bun-v1-1-41-2cd6177e31a6ba8f.md): Bun · 2024-12-20 · Medium · 6 min read · JavaScript, Runtimes & VMs, Build systems
  Bun v1.1.41 fixes 12 bugs and improves node:vm compatibility so JSDOM (runScripts, runInContext) and happy-dom work more reliably. bun build --compile gains Windows-only --windows-icon and --windows-hide-console flags, Bun.build adds throw: true, and bun install supports --omit=dev|optional|peer plus include/exclude in .npmrc and bunfig.toml.
- [Bun v0.6.10](https://swe.quest/articles/bun-v0-6-10-c9f67c1760f76c0a.md): Bun · 2023-06-26 · Medium · 8 min read · JavaScript, Runtimes & VMs, Testing, Build systems
  Bun v0.6.10 rewrites CommonJS module loading for better Node.js compatibility.
- [Bun v0.6.5](https://swe.quest/articles/bun-v0-6-5-84c0b0fc152a661a.md): Bun · 2023-05-29 · Medium · 4 min read · JavaScript, Runtimes & VMs, Build systems
  Bun reimplements CommonJS as native runtime support instead of transpiler-only wrapping.
- [Bun v1.1.32](https://swe.quest/articles/bun-v1-1-32-2e7ec3e700c85e42.md): Bun · 2024-10-21 · Medium · 3 min read · JavaScript, Runtimes & VMs
  Bun v1.1.32 adds Node's one-shot crypto.hash() (backed by Bun.CryptoHasher.hash()) and fixes 7 bugs.
- [Bun v1.1.28](https://swe.quest/articles/bun-v1-1-28-8e190941a0fa10b3.md): Bun · 2024-09-18 · Medium · 4 min read · JavaScript, Runtimes & VMs
  Bun v1.1.28 fixes 40 bugs and adds compiling and running C directly from JavaScript to use native system libraries without a separate build step, a 30x faster \`path.resolve\`, and named pipe support on Windows.

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)
