---
title: "Bun v1.3.5"
description: "Bun v1.3.5 adds a Bun.Terminal API that attaches pseudo-terminals to subprocesses spawned with Bun.spawn, so programs like vim, htop and interactive shells can run with a real TTY on Linux and macOS."
url: "https://swe.quest/articles/bun-v1-3-5-2b6cc8a4e4299741"
canonical: "https://bun.com/blog/bun-v1.3.5"
source: "Bun"
published: "2025-12-17"
difficulty: "medium"
kind: "Release"
reading_minutes: 7
tags: ["javascript","runtimes","build-systems","developer-tools"]
---

# Bun v1.3.5

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

## Summary

Bun v1.3.5 adds a Bun.Terminal API that attaches pseudo-terminals to subprocesses spawned with Bun.spawn, so programs like vim, htop and interactive shells can run with a real TTY on Linux and macOS. The bundler gains compile-time feature flags via \`feature()\` from "bun:bundle". Each flag is replaced with true or false at build time to enable dead-code elimination, and a typed Registry interface turns flag-name typos into type errors. Bun.stringWidth now measures grapheme-aware emoji, zero-width characters and CSI/OSC escape sequences correctly. Fixes include a macOS kqueue bug where a bitwise AND used instead of equality, plus missing EV\_ONESHOT flags, caused 100% CPU spins, a trusted-dependencies spoofing issue via file:, link: and git: sources, and YAML 1.2 boolean compliance.

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

## Prerequisites

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

## Keywords

Bun, Bun.Terminal, PTY, bun:bundle, Bun.stringWidth, kqueue, S3, YAML

## Related posts

- [Bun v1.3.12](https://swe.quest/articles/bun-v1-3-12-6739a38ec397eac1.md): Bun · 2026-04-09 · Medium · 18 min read · JavaScript, Runtimes & VMs, Performance engineering, Developer tools
  Bun v1.3.12 adds Bun.WebView, a built-in headless browser automation API with WebKit and Chrome (CDP) backends.
- [Bun v1.0.31](https://swe.quest/articles/bun-v1-0-31-9173b12d836487e8.md): Bun · 2024-03-14 · Medium · 10 min read · JavaScript, Runtimes & VMs, Supply chain security, Linux
  Bun v1.0.31 adds \`bun --print\` (Node-compatible eval with top-level await, TypeScript and JSX), running code from stdin via \`bun run -\`, \`bun add --trust\` plus \`bun pm untrusted\`/\`trust\` for managing blocked postinstall scripts, and \`fetch()\`/\`node:http\` support for Unix and Linux abstract domain sockets.
- [Bun v1.0.24](https://swe.quest/articles/bun-v1-0-24-b6bb723c8a51261e.md): Bun · 2024-01-20 · Medium · 3 min read · JavaScript, Runtimes & VMs
  Bun v1.0.24 introduces Bun Shell, an experimental embedded shell language and interpreter for running cross-platform shell scripts from JavaScript and TypeScript via the $ template tag, with interop for fetch responses, files and line-by-line output.
- [Bun v1.3.11](https://swe.quest/articles/bun-v1-3-11-a3ea138e27b08142.md): Bun · 2026-03-18 · Medium · 15 min read · JavaScript, Runtimes & VMs, Testing, Networking
  Bun v1.3.11 adds Bun.cron, a cross-platform API that registers OS-level cron jobs (crontab, launchd, Task Scheduler) and parses cron expressions, plus Bun.sliceAnsi, an ANSI- and grapheme-aware string slicer that replaces slice-ansi and cli-truncate using a SIMD ASCII fast path and single-pass streaming.
- [Bun v1.1.5](https://swe.quest/articles/bun-v1-1-5-2380de858855c125.md): Bun · 2024-04-26 · Medium · 11 min read · JavaScript, Runtimes & VMs, Build systems, Developer tools
  Bun v1.1.5 adds cross-compilation of standalone executables via \`bun build --compile --target\` (Linux x64/arm64, Windows x64, macOS arm64), so CI can build binaries for every platform from one machine.

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)
