---
title: "Bun v1.0.7"
description: "Bun v1.0.7 fixes 59 bugs and adds support for optional peer dependencies in `bun install`, so packages marked optional in `peerDependenciesMeta` are no longer installed unless the root project lists them."
url: "https://swe.quest/articles/bun-v1-0-7-b09b1a042388dc2a"
canonical: "https://bun.com/blog/bun-v1.0.7"
source: "Bun"
published: "2023-10-20"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["javascript","runtimes","build-systems"]
---

# Bun v1.0.7

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

## Summary

Bun v1.0.7 fixes 59 bugs and adds support for optional peer dependencies in \`bun install\`, so packages marked optional in \`peerDependenciesMeta\` are no longer installed unless the root project lists them. Notable fixes include sorting registry versions before semver matching (some registries don't return them in order), a non-deterministic \`bun.lockb\` on Linux, a napi memory leak caused by a refcount starting at 1, \`child\_process\` IPC reliability, and a Docker "port in use" error fixed by falling back from IPv6 to IPv4 binding. The build system is also moving from a large Makefile to cmake and ninja ahead of regular Windows builds.

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)

## Prerequisites

- npm package.json semantics
- Node.js core modules ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, bun install, peerDependencies, napi, JavaScriptCore, bun:sqlite, Node.js

## Related posts

- [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.
- [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.1.4](https://swe.quest/articles/bun-v1-1-4-9c82ce3f6902b04b.md): Bun · 2024-04-16 · Medium · 8 min read · JavaScript, Runtimes & VMs, Build systems, SQLite
  Bun v1.1.4 adds \`bun --filter\` for running workspace scripts in parallel across a monorepo using glob patterns, and makes \`bun install\` reinstalls up to 50% faster (1.54x on a 450 MB node\_modules) by moving deletion of old package files to a separate thread.
- [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.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.

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)
