---
title: "Bun v1.1.21"
description: "Bun v1.1.21 fixes 72 bugs and speeds up gzip/deflate decompression in fetch() by 30% on Linux x64 by switching to libdeflate, which also speeds up the WebSocket server."
url: "https://swe.quest/articles/bun-v1-1-21-557c16e13cb74793"
canonical: "https://bun.com/blog/bun-v1.1.21"
source: "Bun"
published: "2024-07-27"
difficulty: "medium"
kind: "Release"
reading_minutes: 11
tags: ["javascript","runtimes","performance","build-systems"]
---

# Bun v1.1.21

A post on [Bun](https://swe.quest/sources/bun.md), published 2024-07-27, 11 min read, Release. Original: [https://bun.com/blog/bun-v1.1.21](https://bun.com/blog/bun-v1.1.21)

## Summary

Bun v1.1.21 fixes 72 bugs and speeds up gzip/deflate decompression in fetch() by 30% on Linux x64 by switching to libdeflate, which also speeds up the WebSocket server. A new --fetch-preconnect flag and fetch.preconnect() API open the DNS/TCP/TLS connection before user code runs, cutting a first request from about 52ms to 8ms in the shown example. Linker, compiler and LTO changes shrink the Linux binary by 4 MB to 92 MB and trim 1ms from startup. The bundler adds --packages=external and content-aware code-splitting hashes, alongside many Node.js compatibility and crash fixes.

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)
- [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))
- Node.js APIs ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, libdeflate, fetch, Remix, Node-API, bun build

## Related posts

- [Bun v1.1.27](https://swe.quest/articles/bun-v1-1-27-a8cf9cc05fdad9ea.md): Bun · 2024-09-07 · Medium · 10 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v1.1.27 fixes 130 bugs and rewrites node:zlib in native code, roughly doubling streaming deflate/gzip throughput over v1.1.26 and beating Node 22 on streams, though sync compression still trails Node.
- [Bun v1.2.18](https://swe.quest/articles/bun-v1-2-18-58157b3ac1570ec2.md): Bun · 2025-07-03 · Medium · 13 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v1.2.18 fixes 52 issues and adds ReadableStream .text()/.json()/.bytes()/.blob(), ReadableStream stdin for Bun.spawn, permessage-deflate compression for the WebSocket client, and Math.sumPrecise.
- [Bun v1.1.8](https://swe.quest/articles/bun-v1-1-8-72b84da88fe769f5.md): Bun · 2024-05-10 · Medium · 6 min read · JavaScript, Runtimes & VMs
  Bun v1.1.8 fixes 54 bugs and adds support for process.on("uncaughtException") and process.on("unhandledRejection"), Brotli compression in node:zlib (which also restores axios compatibility), and \[Symbol.dispose\] on Bun.spawn, Bun.serve, Bun.connect and Bun.listen for use with the \`using\` syntax.
- [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.
- [Bun v1.2.11](https://swe.quest/articles/bun-v1-2-11-a6136f703ebcac71.md): Bun · 2025-04-29 · Medium · 5 min read · JavaScript, Runtimes & VMs
  Bun v1.2.11 fixes 62 bugs and adds process.ref/process.unref, util.parseArgs negative options (allowNegative) with process.argv defaulting, and a BUN\_INSPECT\_PRELOAD environment variable equivalent to --preload.

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)
