---
title: "Bun v1.4.2"
description: "Bun v1.4.2 is a patch release fixing two v1.4.1 regressions: a `bun build` renaming bug that made nested `var` collide with a `let` (breaking Elysia builds or silently miscomputing), and an `AsyncLocalStorage` leak where timers or promises created in `store.exit()` or nested `run()` kept outer store values alive."
url: "https://swe.quest/articles/bun-v1-4-2-e542954b0234ed25"
canonical: "https://bun.com/blog/bun-v1.4.2"
source: "Bun"
published: "2026-09-05"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["javascript","runtimes","debugging"]
---

# Bun v1.4.2

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

## Summary

Bun v1.4.2 is a patch release fixing two v1.4.1 regressions: a \`bun build\` renaming bug that made nested \`var\` collide with a \`let\` (breaking Elysia builds or silently miscomputing), and an \`AsyncLocalStorage\` leak where timers or promises created in \`store.exit()\` or nested \`run()\` kept outer store values alive. It also corrects \`worker\_threads\` 'online' event ordering that hung \`@discordjs/ws\`, adds CMYK/YCCK JPEG decoding to \`Bun.Image\`, and pulls ~350 JavaScriptCore commits with Intl, TypedArray and Proxy fixes. Further fixes cover a JIT inline-cache crash after prototype GC, a musl GC race on array mutation, and a double-close of file descriptors when epoll registration fails.

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

## Prerequisites

- JavaScript scoping rules ([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, AsyncLocalStorage, Elysia, worker\_threads, Bun.Image, musl

## Related posts

- [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.1.13](https://swe.quest/articles/bun-v1-1-13-5296aa9cfb98f4b1.md): Bun · 2024-06-05 · Medium · 13 min read · JavaScript, Runtimes & VMs, Testing, Networking, Build systems
  Bun v1.1.13 fixes 97 bugs and adds \`eval: true\` for \`node:worker\_threads\`, \`URL.createObjectURL\` for spawning TypeScript workers from Blobs, custom failure messages in \`expect\`, and five new \`bun:test\` matchers.
- [Bun v0.7.2](https://swe.quest/articles/bun-v0-7-2-65b9975794c342cb.md): Bun · 2023-08-03 · Medium · 4 min read · JavaScript, Runtimes & VMs, Memory management
  Bun v0.7.2 adds node:worker\_threads, node:diagnostics\_channel and a global BroadcastChannel, lets structuredClone/postMessage clone Error objects, and adds \`bun .\` to run a project's main file.
- [Bun v1.1.34](https://swe.quest/articles/bun-v1-1-34-d8b685a5be9be177.md): Bun · 2024-11-02 · Medium · 7 min read · JavaScript, Runtimes & VMs, Build systems
  Bun v1.1.34 fixes 64 bugs and adds Bun.randomUUIDv7() for sortable, database-friendly IDs, more aggressive garbage collection while idle in the event loop to cut memory in long-running processes, and Node-API type tagging (napi\_type\_tag\_object/napi\_check\_object\_type\_tag) that unblocks tree-sitter.
- [Bun v1.4.1](https://swe.quest/articles/bun-v1-4-1-d28e00ae252842cf.md): Bun · 2026-09-04 · Medium · 38 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems, Networking
  Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements.

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)
