---
title: "Bun v1.1.17"
description: "Bun v1.1.17 fixes four bugs and makes two small macOS performance improvements."
url: "https://swe.quest/articles/bun-v1-1-17-36691cca78554f0f"
canonical: "https://bun.com/blog/bun-v1.1.17"
source: "Bun"
published: "2024-06-25"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["javascript","runtimes","performance","zig"]
---

# Bun v1.1.17

A post on [Bun](https://swe.quest/sources/bun.md), published 2024-06-25, 3 min read, Release. Original: [https://bun.com/blog/bun-v1.1.17](https://bun.com/blog/bun-v1.1.17)

## Summary

Bun v1.1.17 fixes four bugs and makes two small macOS performance improvements. A \`bun repl\` crash came from Bun mutating an immutable string, which only worked by accident until Zig 0.13 moved such strings into \`.rodata\`. \`fs.readdirSync\` is 5% faster in small directories because Bun now checks the XNU \`getdirentries64\` EOF flag instead of making an extra syscall. Also fixed: the \`ws\` send callback never firing, and crashes on corrupted \`bun.lockb\` files, now guarded by bounds and overflow checks. Waking the macOS event loop no longer allocates memory per message, using code borrowed from libxev.

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)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Zig](https://swe.quest/tags/zig.md) (Languages)

## Prerequisites

- JavaScript runtimes ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- system calls

## Keywords

Bun, Zig, XNU, getdirentries64, ws, libxev, bun install

## Related posts

- [Bun v1.1.7](https://swe.quest/articles/bun-v1-1-7-443b16215b4eb538.md): Bun · 2024-05-03 · Medium · 7 min read · JavaScript, Runtimes & VMs, Debugging
  Bun v1.1.7 fixes 28 bugs and adds glob patterns in package.json workspaces (via Bun.Glob), asymmetric matcher support in expect.extend's this.equals, and a working bunx --version.
- [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.1.1](https://swe.quest/articles/bun-v1-1-1-0a986921804883de.md): Bun · 2024-04-04 · Medium · 7 min read · JavaScript, Runtimes & VMs, Build systems, Debugging
  Bun v1.1.1 fixes 20 bugs, mostly in bun install on Windows. The causes include a race in the Zig standard library's retry-on-ERROR\_DELETE\_PENDING loop, mishandled ERROR\_SHARING\_VIOLATION from mismatched file sharing modes, a bunx cache invalidation bug that compared npm publish-time file creation dates, and git dependencies relying on a stale cwd file descriptor instead of \`git -C\`.
- [Bun v1.1.16](https://swe.quest/articles/bun-v1-1-16-73af18d20e38e0ab.md): Bun · 2024-06-23 · Medium · 6 min read · JavaScript, Runtimes & VMs, Testing, Build systems
  Bun v1.1.16 fixes 41 bugs and adds lcov output for \`bun test --coverage\`, configurable in bunfig.toml.
- [Bun v1.0.20](https://swe.quest/articles/bun-v1-0-20-4c5d451d499e769b.md): Bun · 2023-12-24 · Medium · 6 min read · JavaScript, Runtimes & VMs, Memory management, Performance engineering
  Bun v1.0.20 cuts memory usage in node:fs async operations by avoiding redundant cross-thread string clones.

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)
