---
title: "Bun v1.3.1"
description: "Bun v1.3.1 makes `bun build` up to 2x faster for symlink-heavy projects (isolated linker, pnpm)."
url: "https://swe.quest/articles/bun-v1-3-1-ee365f019ab94793"
canonical: "https://bun.com/blog/bun-v1.3.1"
source: "Bun"
published: "2025-10-22"
difficulty: "medium"
kind: "Release"
reading_minutes: 9
tags: ["javascript","runtimes","build-systems","testing","developer-tools"]
---

# Bun v1.3.1

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

## Summary

Bun v1.3.1 makes \`bun build\` up to 2x faster for symlink-heavy projects (isolated linker, pnpm). It also adds sourcemaps for legal comments and inlines \`import.meta\` fields as CommonJS equivalents when building with \`--format=cjs\`. \`bun test\` gains a global Vitest-compatible \`vi\`, \`--pass-with-no-tests\` and \`--only-failures\`. \`bun install\` drops an unnecessary peer-dependency sleep, supports \`:email\` in \`.npmrc\` and selective hoisting via \`publicHoistPattern\`/\`hoistPattern\`. The release also adds \`FileHandle.readLines()\` and a long list of fixes, including fuzzer-found memory-safety bugs reported by Cloudflare, a MySQL TLS busy-loop, and determinism issues in isolated installs.

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

## Prerequisites

- JavaScript bundlers ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- npm package management ([easy posts on Engineering management](https://swe.quest/tags/engineering-management.md?difficulty=easy))

## Keywords

Bun, bun build, bun test, bun install, Vitest, Node.js, bunfig.toml

## 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.3.2](https://swe.quest/articles/bun-v1-3-2-22771baae9f86920.md): Bun · 2025-11-08 · Medium · 12 min read · JavaScript, Runtimes & VMs, Build systems, Testing
  Bun 1.3.2 restores hoisted installs as the default for existing workspaces and adds a lockfile configVersion field so future default changes don't break existing projects.
- [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.3.13](https://swe.quest/articles/bun-v1-3-13-2e18ca35d20de73c.md): Bun · 2026-04-20 · Medium · 17 min read · JavaScript, Runtimes & VMs, Testing, Performance engineering, Memory management
  Bun v1.3.13 adds per-file test isolation (--isolate), parallel test workers with work stealing (--parallel), CI sharding (--shard=M/N), and git-aware test selection (--changed) built on the import graph. bun install now streams tarballs to disk while downloading, cutting memory 17x in a large repo, and the isolated linker drops a peer-heavy monorepo install from 20.5s to 2.4s.
- [Bun v1.0.8](https://swe.quest/articles/bun-v1-0-8-561e5f115e18943c.md): Bun · 2023-11-02 · Medium · 7 min read · JavaScript, Runtimes & VMs, Testing
  Bun v1.0.8 fixes 138 bugs, fixes a require() memory leak (introduced when built-in modules moved from ESM to CommonJS) that cuts memory up to 30%, and adds runtime module mocking to bun test via mock.module, which updates existing ESM and CJS imports in place. bun install no longer duplicates peer dependencies and now orders pre-release tags by semver precedence.

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)
