---
title: "Bun v1.2.8"
description: "Bun v1.2.8 fixes 18 bugs, headlined by a one-line NAPI fix: napi_create_double no longer encodes every value as a double in JavaScriptCore, which makes node-sdl about 100x faster."
url: "https://swe.quest/articles/bun-v1-2-8-d7695996a2a7d6c6"
canonical: "https://bun.com/blog/bun-v1.2.8"
source: "Bun"
published: "2025-03-31"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["javascript","runtimes","performance"]
---

# Bun v1.2.8

A post on [Bun](https://swe.quest/sources/bun.md), published 2025-03-31, 3 min read, Release. Original: [https://bun.com/blog/bun-v1.2.8](https://bun.com/blog/bun-v1.2.8)

## Summary

Bun v1.2.8 fixes 18 bugs, headlined by a one-line NAPI fix: napi\_create\_double no longer encodes every value as a double in JavaScriptCore, which makes node-sdl about 100x faster. Headers.get/has/delete run roughly 2x faster for common header names (~16ns vs ~31ns). The release also fixes node:http regressions from the v1.2.5 rewrite (ECONNRESET on socket.end, failing POSTs, spurious chunked encoding on empty requests), bun install --frozen-lockfile with overrides, bun pack nested exclusion patterns, Bun.write directory creation, and several TypeScript declarations.

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

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

## Keywords

Bun, N-API, JavaScriptCore, node:http, node-sdl, bun install

## Related posts

- [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.0.10](https://swe.quest/articles/bun-v1-0-10-49e5b151965cc45d.md): Bun · 2023-11-07 · Medium · 5 min read · Runtimes & VMs, JavaScript, Performance engineering, Linux
  Bun v1.0.10 makes node:http 14% faster by building Node.js headers, rawHeaders and url strings directly in native code.
- [Bun v1.2.2](https://swe.quest/articles/bun-v1-2-2-430cc9d4f8048e2e.md): Bun · 2025-02-01 · Medium · 8 min read · JavaScript, Runtimes & VMs, Memory management
  Bun v1.2.2 fixes 38 bugs and cuts idle JavaScript memory usage by 10–30% (28% for Next.js, 11% for Elysia).
- [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.2.5](https://swe.quest/articles/bun-v1-2-5-0384b8a49ec32571.md): Bun · 2025-03-11 · Medium · 19 min read · JavaScript, Runtimes & VMs, Frontend
  Bun v1.2.5 fixes 75 bugs, adds 69 passing Node.js tests, and nearly rewrites its Node-API implementation, which now passes 98% of Node's js-native-api suite.

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)
