---
title: "Bun v1.2.20"
description: "Bun v1.2.20 fixes 141 issues and cuts idle CPU usage by no longer over-scheduling the garbage collector."
url: "https://swe.quest/articles/bun-v1-2-20-d97fc960ddc0e406"
canonical: "https://bun.com/blog/bun-v1.2.20"
source: "Bun"
published: "2025-08-10"
difficulty: "medium"
kind: "Release"
reading_minutes: 10
tags: ["javascript","runtimes","testing","build-systems"]
---

# Bun v1.2.20

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

## Summary

Bun v1.2.20 fixes 141 issues and cuts idle CPU usage by no longer over-scheduling the garbage collector. AbortSignal.timeout is 40x faster because it now shares setTimeout's implementation. bun install migrates yarn.lock v1 files automatically, and bun:test adds return-value matchers, Vitest-compatible expectTypeOf and mock.clearAllMocks. Other changes include automatic ETag/304 handling for Bun.serve static routes, Windows long-path support via an application manifest, streaming WebAssembly compilation, recursive workspace support in bun outdated and bun update, and many crash fixes across Node compatibility, the bundler, the dev server and Bun.SQL.

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

## Prerequisites

- JavaScript runtimes ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Jest-style testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

Bun, bun:test, Bun.serve, AbortSignal.timeout, WebAssembly.instantiateStreaming, yarn.lock, expectTypeOf

## Related posts

- [Bun v1.2.16](https://swe.quest/articles/bun-v1-2-16-2fbfbd468574713c.md): Bun · 2025-06-11 · Medium · 5 min read · JavaScript, Runtimes & VMs
  Bun v1.2.16 fixes 73 issues and adds 119 passing Node.js tests.
- [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 v1.2.23](https://swe.quest/articles/bun-v1-2-23-679263f3c65e13e8.md): Bun · 2025-09-28 · Medium · 13 min read · JavaScript, Runtimes & VMs, Testing, Build systems
  Bun v1.2.23 fixes 119 issues. It adds automatic migration from pnpm-lock.yaml and pnpm workspaces to bun.lock, \`--cpu\`/\`--os\` filtering of optionalDependencies, and Pub/Sub in the built-in Redis client. bun test gains \`test.concurrent\`/\`describe.concurrent\` (default max 20 concurrent tests), \`--randomize\` with reproducible seeds, chained qualifiers, stricter CI behaviour and a rewritten execution order aligned with Vitest.
- [Bun v1.1.26](https://swe.quest/articles/bun-v1-1-26-d4afb23a53f33756.md): Bun · 2024-08-24 · Medium · 5 min read · JavaScript, Runtimes & VMs, Testing
  Bun v1.1.26 adds a \`bun outdated\` subcommand listing dependencies with their next semver-matching and latest npm versions, plus an \`idleTimeout\` option (default still 10 seconds) and \`subscriberCount(topic)\` for Bun.serve()'s HTTP and WebSocket servers.
- [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)
