---
title: "Bun v1.4.1"
description: "Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements."
url: "https://swe.quest/articles/bun-v1-4-1-d28e00ae252842cf"
canonical: "https://bun.com/blog/bun-v1.4.1"
source: "Bun"
published: "2026-09-04"
difficulty: "medium"
kind: "Release"
reading_minutes: 38
tags: ["javascript","runtimes","performance","build-systems","networking"]
---

# Bun v1.4.1

A post on [Bun](https://swe.quest/sources/bun.md), published 2026-09-04, 38 min read, Release. Original: [https://bun.com/blog/bun-v1.4.1](https://bun.com/blog/bun-v1.4.1)

## Summary

Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements. JavaScriptCore now discards JIT code after idle periods, sharply cutting RSS (Next.js SSR 222 MB to 142 MB), and Bun.serve gains HTTP/2 on the same port via ALPN with large throughput gains over node:http2. Buffer read/write methods are JIT-inlined (up to 9x faster), AsyncLocalStorage avoids per-await allocations, Bun.write streams response bodies to disk, and WebSocket gets pause/resume for TCP backpressure. fetch now verifies TLS against the URL hostname rather than the Host header, closing an insecure default. bun build tree-shakes through \`export \* as\` and dynamic import(), shrinking zod bundles by about 79%.

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

## 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))
- JavaScript bundling ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, JavaScriptCore, HTTP/2, AsyncLocalStorage, Argon2, BoringSSL, zod, tree-shaking

## Related posts

- [Bun v1.2.17](https://swe.quest/articles/bun-v1-2-17-6bfcdfe2dc03cf80.md): Bun · 2025-06-21 · Medium · 10 min read · JavaScript, Runtimes & VMs, Build systems, Performance engineering
  Bun v1.2.17 adds ahead-of-time bundling for HTML imports in server code, so \`bun build --target=bun\` or \`--compile\` can produce a full-stack build or a single self-contained executable with no runtime bundling.
- [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 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.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 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.

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)
