---
title: "Bun v1.0.12"
description: "Bun v1.0.12 fixes 24 bugs and adds `bun -e` for evaluating inline scripts (with TypeScript, JSX and top-level await), `--env-file` for choosing which .env files to load, `server.url`, `import.meta.env`, and `expect.unreachable()` in bun:test."
url: "https://swe.quest/articles/bun-v1-0-12-7e77f90bbca6622e"
canonical: "https://bun.com/blog/bun-v1.0.12"
source: "Bun"
published: "2023-11-16"
difficulty: "medium"
kind: "Release"
reading_minutes: 12
tags: ["javascript","runtimes","testing","developer-tools"]
---

# Bun v1.0.12

A post on [Bun](https://swe.quest/sources/bun.md), published 2023-11-16, 12 min read, Release. Original: [https://bun.com/blog/bun-v1.0.12](https://bun.com/blog/bun-v1.0.12)

## Summary

Bun v1.0.12 fixes 24 bugs and adds \`bun -e\` for evaluating inline scripts (with TypeScript, JSX and top-level await), \`--env-file\` for choosing which .env files to load, \`server.url\`, \`import.meta.env\`, and \`expect.unreachable()\` in bun:test. Macros can now import builtin modules like node:fs and node:child\_process at bundle time, and \`mock.module\` now handles default exports and re-exports. Two fixes include root-cause explanations: a bun:sqlite \`.get()\` hang came from a wrong JavaScriptCore JSType tag that misled the DFG JIT, and a \`require()\` crash came from source code being garbage collected before an exception was thrown. As a result, Bun's debug builds now run JavaScriptCore with assertions enabled.

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)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

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

## Keywords

Bun, JavaScriptCore, bun:test, bun:sqlite, DFG JIT, AsyncLocalStorage

## Related posts

- [Bun v1.0.8](https://swe.quest/articles/bun-v1-0-8-561e5f115e18943c.md): Bun · 2023-11-02 · Medium · 7 min read · JavaScript, Runtimes & VMs, Testing
  Bun v1.0.8 fixes 138 bugs, fixes a require() memory leak (introduced when built-in modules moved from ESM to CommonJS) that cuts memory up to 30%, and adds runtime module mocking to bun test via mock.module, which updates existing ESM and CJS imports in place. bun install no longer duplicates peer dependencies and now orders pre-release tags by semver precedence.
- [Bun v0.6.12](https://swe.quest/articles/bun-v0-6-12-dcf44324c9c4f6f2.md): Bun · 2023-06-30 · Medium · 4 min read · JavaScript, Runtimes & VMs, Debugging, Build systems
  Bun v0.6.12 makes runtime errors more readable by patching JavaScriptCore to format Error.prototype.stack like V8, hiding internal builtin frames, and automatically sourcemapping stacks back to original (pre-transpile) source.
- [Bun v1.3.10](https://swe.quest/articles/bun-v1-3-10-809e937e8a78ed82.md): Bun · 2026-02-26 · Medium · 19 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems, TypeScript
  Bun v1.3.10 replaces its npm-based REPL with a native Zig REPL that supports top-level await, imports, history and tab completion.
- [Bun v1.0.30](https://swe.quest/articles/bun-v1-0-30-809370fb784e3d50.md): Bun · 2024-03-04 · Medium · 7 min read · JavaScript, Runtimes & VMs, Testing, Debugging
  Bun v1.0.30 fixes 27 bugs, including an 8x performance regression in Bun.serve() when a direct ReadableStream writes exactly one chunk in a single event-loop tick, introduced in v1.0.4.
- [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\`.

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)
