---
title: "Bun v1.0.16"
description: "Bun v1.0.16 fixes 49 bugs and rewrites Bun.file IO on Linux to use epoll instead of io_uring, fixing EBADF errors in Docker (which disabled io_uring by default) and on hosts like Vercel and Cloud Run."
url: "https://swe.quest/articles/bun-v1-0-16-a3d81e46e3438df7"
canonical: "https://bun.com/blog/bun-v1.0.16"
source: "Bun"
published: "2023-12-10"
difficulty: "medium"
kind: "Release"
reading_minutes: 7
tags: ["javascript","runtimes","performance","testing"]
---

# Bun v1.0.16

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

## Summary

Bun v1.0.16 fixes 49 bugs and rewrites Bun.file IO on Linux to use epoll instead of io\_uring, fixing EBADF errors in Docker (which disabled io\_uring by default) and on hosts like Vercel and Cloud Run. Concurrent Bun.file().text() and Bun.write() get roughly 3.3x and 3.9x faster in hyperfine benchmarks. Bun.write now creates missing parent directories by default (opt out with createPath: false), expect.extend works in test preload files, and napi\_create\_object is 2.5x faster. Also fixed: package.json "imports" aliasing that broke Astro v4 and p-limit, plus several console.log, stdin and transpiler bugs.

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

## Prerequisites

- JavaScript runtimes ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Node.js module resolution ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, io\_uring, epoll, Bun.file, Bun.write, N-API, Docker, Astro

## Related posts

- [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.27](https://swe.quest/articles/bun-v1-0-27-1e8a7ef250bb34a9.md): Bun · 2024-02-17 · Medium · 6 min read · JavaScript, Runtimes & VMs
  Bun v1.0.27 fixes 72 bugs and lets Bun Shell throw on non-zero exit codes via $.throws(true).
- [Bun v1.0.22](https://swe.quest/articles/bun-v1-0-22-18af769c3ea29601.md): Bun · 2024-01-09 · Medium · 6 min read · JavaScript, Runtimes & VMs
  Bun v1.0.22 fixes 29 bugs, most notably a \`bun install\` failure on Vercel.
- [Bun v1.0.34](https://swe.quest/articles/bun-v1-0-34-71bd687b8a0e458e.md): Bun · 2024-03-22 · Medium · 6 min read · JavaScript, Runtimes & VMs, Build systems, Performance engineering
  Bun v1.0.34 makes cross-filesystem fs.cp and fs.copyFile about 50% faster on Linux by adding sendfile to its copy syscalls, which also speeds up bun install on Docker and WSL where renameat(2) across overlayfs or remote mounts isn't available.
- [Bun v1.0.36](https://swe.quest/articles/bun-v1-0-36-17df886795015fcd.md): Bun · 2024-03-29 · Medium · 6 min read · JavaScript, Runtimes & VMs, Linux
  Bun v1.0.36 fixes 13 bugs and adds Node.js-compatible fs.openAsBlob and fs.opendir.

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)
