---
title: "Bun v1.0.36"
description: "Bun v1.0.36 fixes 13 bugs and adds Node.js-compatible fs.openAsBlob and fs.opendir."
url: "https://swe.quest/articles/bun-v1-0-36-17df886795015fcd"
canonical: "https://bun.com/blog/bun-v1.0.36"
source: "Bun"
published: "2024-03-29"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["javascript","runtimes","linux"]
---

# Bun v1.0.36

A post on [Bun](https://swe.quest/sources/bun.md), published 2024-03-29, 6 min read, Release. Original: [https://bun.com/blog/bun-v1.0.36](https://bun.com/blog/bun-v1.0.36)

## Summary

Bun v1.0.36 fixes 13 bugs and adds Node.js-compatible fs.openAsBlob and fs.opendir. Several fixes explain their low-level cause. File descriptor leaks to child processes are now prevented with the close\_range syscall on Linux and posix\_spawn on macOS. A Bun.spawn redirection bug came from dup2 being a no-op when source and destination descriptors match, so Bun now clears O\_CLOEXEC instead. Non-blocking TTY reads reopen the terminal via ttyname\_r, and bun build --target bun now emits latin1 rather than utf-8. Other fixes cover stdin/stdout hangs, an http2 crash, Bun shell races, bun install bin linking and .env loading in bun run.

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)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)

## Prerequisites

- Node.js fs APIs ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- POSIX file descriptors

## Keywords

Bun, Node.js, close\_range, posix\_spawn, O\_CLOEXEC, Bun Shell

## 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.18](https://swe.quest/articles/bun-v1-0-18-9638e729e8d88398.md): Bun · 2023-12-14 · Medium · 5 min read · JavaScript, Runtimes & VMs, Linux, Testing
  Bun v1.0.18 fixes 27 bugs, including a process.stdin hang that froze create-vite and create-next-app at the second prompt.
- [Bun v1.0.16](https://swe.quest/articles/bun-v1-0-16-a3d81e46e3438df7.md): Bun · 2023-12-10 · Medium · 7 min read · JavaScript, Runtimes & VMs, Performance engineering, Testing
  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.
- [Bun v0.3.0](https://swe.quest/articles/bun-v0-3-0-ce34b4df06ef614a.md): Bun · 2022-12-07 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v0.3.0 focuses on stability and Node.js/Web API compatibility, cutting memory use 3-5x under load by scheduling garbage collection in coordination with the event loop and speeding up TextEncoder.encodeInto() 3x via simdutf.
- [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.

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)
