---
title: "Bun v1.2.12"
description: "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]`."
url: "https://swe.quest/articles/bun-v1-2-12-c11b21fb9d378ec8"
canonical: "https://bun.com/blog/bun-v1.2.12"
source: "Bun"
published: "2025-05-04"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["javascript","runtimes","developer-tools"]
---

# Bun v1.2.12

A post on [Bun](https://swe.quest/sources/bun.md), published 2025-05-04, 4 min read, Release. Original: [https://bun.com/blog/bun-v1.2.12](https://bun.com/blog/bun-v1.2.12)

## Summary

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\]\`. The frontend dev server's memory use drops from 272 MB to 150 MB in a React hot-reload benchmark through sourcemap-related architecture changes, and startup is 30μs faster. Node.js compatibility gains include vm \`cachedData\` support, \`net.BlockList\`, http Agent fixes and 98.4% of Node's timers tests passing, plus WHATWG-conformant TextDecoder fixes and a fix for global postinstall scripts with trustedDependencies.

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

## Prerequisites

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

## Keywords

Bun, Node.js, TextDecoder, node:vm, BlockList, HMR

## Related posts

- [Bun v0.2.0](https://swe.quest/articles/bun-v0-2-0-c0c3775be874dec7.md): Bun · 2022-10-13 · Medium · 5 min read · JavaScript, Runtimes & VMs, Performance engineering
  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\`.
- [Bun v1.1.22](https://swe.quest/articles/bun-v1-1-22-2b177fc67a458073.md): Bun · 2024-08-07 · Medium · 11 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems
  Bun v1.1.22 fixes 79 bugs and makes Express 3x faster than on Node.js through node:http improvements.
- [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.
- [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)
