<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bun-v1-4-1-nkwray469" -->

---
title: Bun v1.4.1 | daily.dev
description: Bun v1.4.1 fixes 202 issues and ships numerous runtime, bundler, and package manager improvements. Bun.serve now supports HTTP/2 on the same port as HTTP/1.1,...
canonical: https://daily.dev/posts/bun-v1-4-1-nkwray469
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bun v1.4.1 | daily.dev
og:description: Bun v1.4.1 fixes 202 issues and ships numerous runtime, bundler, and package manager improvements. Bun.serve now supports HTTP/2 on the same port as HTTP/1.1,...
og:url: https://daily.dev/posts/bun-v1-4-1-nkwray469
og:image: https://api.daily.dev/og/posts/NkwraY469.png
og:image:alt: Bun v1.4.1
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bun v1.4.1

**[Bun](https://daily.dev/sources/bun)** · 42 min read · 1 upvotes · 0 comments

## Summary

Bun v1.4.1 fixes 202 issues and ships numerous runtime, bundler, and package manager improvements. Bun.serve now supports HTTP/2 on the same port as HTTP/1.1, Bun.write() streams response bodies to disk instead of buffering them in memory, and WebSocket clients gain pause()/resume() for backpressure control. bun install adds --offline and --prefer-offline flags plus self-contained node_modules for workspace packages. The bundler tree-shakes through dynamic import() and export * as patterns (cutting zod bundles by 79%), produces fewer/smaller code-split chunks, and adds module preloading for browser builds. Compiled executables start faster and produce smaller bytecode. Numerous Node.js compatibility fixes cover node:http, node:http2, node:tls, node:fs, crypto, and more, alongside performance gains like 9x faster Buffer reads/writes and 2x faster AsyncLocalStorage.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://bun.com/blog/bun-v1.4.1>

## Questions this post answers

### Does Bun.serve support HTTP/2 in Bun 1.4.1?

Yes, Bun.serve supports HTTP/2 on the same port as HTTP/1.1 starting in Bun v1.4.1. Both protocols share the same routes and fetch handler, with req.url and req.body behaving identically. TLS connections negotiate the protocol via ALPN, and cleartext connections serve HTTP/2 when a client sends the HTTP/2 preface. WebSockets and response trailers are not yet supported over HTTP/2.

_Track HTTP/2 rollout details for Bun.serve alongside other runtime changes on daily.dev._

### How much faster is Buffer readInt32LE and writeFloatLE in Bun 1.4.1 compared to 1.4.0?

Buffer read and write methods are up to 9x faster in Bun v1.4.1 versus v1.4.0, measured on macOS arm64. writeFloatLE went from 2.85ns to 0.31ns (9.2x faster), writeUInt8 from 2.24ns to 0.31ns (7.2x faster), and readUInt32BE from 0.76ns to 0.42ns (1.8x faster). The JIT now inlines these methods into bounds-checked loads or stores, with write methods seeing the largest gains.

_Developers benchmarking runtime upgrades can follow Bun performance changes like this on daily.dev._

### Why did fetch() TLS verification change in Bun 1.4.1 and is it a security fix?

Bun v1.4.1 changed fetch() to verify TLS certificates against the URL's hostname rather than a custom Host header, matching how Node's fetch and curl behave. Previously, if tls.servername was not set, Bun used a custom Host header for TLS server name matching, which was an insecure default for applications that pass user-supplied Host headers to fetch(), such as proxies. Those applications should upgrade.

_Teams relying on fetch() proxy behavior can watch for security-relevant runtime changes like this via daily.dev._

## Similar posts on daily.dev

- [Bun v1.3.7](https://daily.dev/posts/bun-v1-3-7-0otwuahrf) · Bun · 15 upvotes · 1 comments
- [Bun v1.4.2](https://daily.dev/posts/bun-v1-4-2-ujk81ooxg) · Bun · 109 upvotes · 24 comments
- [Bun: a faster JavaScript runtime](https://daily.dev/posts/bun-a-faster-javascript-runtime-hnnh26fm5) · Flavio Copes · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#nodejs](https://daily.dev/tags/nodejs), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/bun-v1-4-1-nkwray469)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Bun v1.4.1","url":"https://daily.dev/posts/bun-v1-4-1-nkwray469","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bun-v1-4-1-nkwray469"},"datePublished":"2026-09-04T08:32:13.525Z","dateModified":"2026-09-14T09:23:37.980Z","description":"Bun v1.4.1 fixes 202 issues and ships numerous runtime, bundler, and package manager improvements. Bun.serve now supports HTTP/2 on the same port as HTTP/1.1,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3adc19d6d0f64de91813c83ecf52fbc5?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3adc19d6d0f64de91813c83ecf52fbc5?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Bun","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Bun","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/9d715eb44dae4d74a2cebd8871d91a0d","url":"https://daily.dev/sources/bun"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/bun-v1-4-1-nkwray469","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,nodejs,bun","timeRequired":"PT42M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Bun","item":"https://daily.dev/sources/bun"},{"@type":"ListItem","position":3,"name":"Bun v1.4.1"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/bun-v1-4-1-nkwray469#faq","mainEntity":[{"@type":"Question","name":"Does Bun.serve support HTTP/2 in Bun 1.4.1?","acceptedAnswer":{"@type":"Answer","text":"Yes, Bun.serve supports HTTP/2 on the same port as HTTP/1.1 starting in Bun v1.4.1. Both protocols share the same routes and fetch handler, with req.url and req.body behaving identically. TLS connections negotiate the protocol via ALPN, and cleartext connections serve HTTP/2 when a client sends the HTTP/2 preface. WebSockets and response trailers are not yet supported over HTTP/2. Track HTTP/2 rollout details for Bun.serve alongside other runtime changes on daily.dev."}},{"@type":"Question","name":"How much faster is Buffer readInt32LE and writeFloatLE in Bun 1.4.1 compared to 1.4.0?","acceptedAnswer":{"@type":"Answer","text":"Buffer read and write methods are up to 9x faster in Bun v1.4.1 versus v1.4.0, measured on macOS arm64. writeFloatLE went from 2.85ns to 0.31ns (9.2x faster), writeUInt8 from 2.24ns to 0.31ns (7.2x faster), and readUInt32BE from 0.76ns to 0.42ns (1.8x faster). The JIT now inlines these methods into bounds-checked loads or stores, with write methods seeing the largest gains. Developers benchmarking runtime upgrades can follow Bun performance changes like this on daily.dev."}},{"@type":"Question","name":"Why did fetch() TLS verification change in Bun 1.4.1 and is it a security fix?","acceptedAnswer":{"@type":"Answer","text":"Bun v1.4.1 changed fetch() to verify TLS certificates against the URL's hostname rather than a custom Host header, matching how Node's fetch and curl behave. Previously, if tls.servername was not set, Bun used a custom Host header for TLS server name matching, which was an insecure default for applications that pass user-supplied Host headers to fetch(), such as proxies. Those applications should upgrade. Teams relying on fetch() proxy behavior can watch for security-relevant runtime changes like this via daily.dev."}}]}
```

