---
title: "Bun v1.2.13"
description: "Bun v1.2.13 fixes 17 bugs and improves Node.js compatibility, adding worker_threads environmentData, a process 'worker' event, and stability fixes for workers and --hot mode."
url: "https://swe.quest/articles/bun-v1-2-13-6a5f0eb43709f59b"
canonical: "https://bun.com/blog/bun-v1.2.13"
source: "Bun"
published: "2025-05-09"
difficulty: "medium"
kind: "Release"
reading_minutes: 5
tags: ["javascript","runtimes"]
---

# Bun v1.2.13

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

## Summary

Bun v1.2.13 fixes 17 bugs and improves Node.js compatibility, adding worker\_threads environmentData, a process 'worker' event, and stability fixes for workers and --hot mode. Embedded native addons from bun build --compile now have their temp files deleted immediately after loading, and a new --no-addons flag disables process.dlopen and the "node-addons" export condition. Other changes include a WebKit upgrade that unrolls numeric hot loops, BOM-aware .npmrc parsing, HMR WebSocket protocol normalization for older Chrome, Redis getBuffer(), Bun.SQL type fixes, and reduced memory use when spawning child processes with IPC.

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)

## 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, Node.js, worker\_threads, JavaScriptCore, N-API, Bun.SQL, Redis

## Related posts

- [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 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.28](https://swe.quest/articles/bun-v1-1-28-8e190941a0fa10b3.md): Bun · 2024-09-18 · Medium · 4 min read · JavaScript, Runtimes & VMs
  Bun v1.1.28 fixes 40 bugs and adds compiling and running C directly from JavaScript to use native system libraries without a separate build step, a 30x faster \`path.resolve\`, and named pipe support on Windows.

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)
