---
title: "Bun v1.0.13"
description: "Bun v1.0.13 adds client support for the node:http2 module, which unblocks @grpc/grpc-js, and makes Vite 5 and Rollup 4 work by implementing process.report.getReport() for libc detection and fixing a transpiler bug with require() in ternaries."
url: "https://swe.quest/articles/bun-v1-0-13-a17aac4fb02471fb"
canonical: "https://bun.com/blog/bun-v1.0.13"
source: "Bun"
published: "2023-11-18"
difficulty: "medium"
kind: "Release"
reading_minutes: 5
tags: ["javascript","runtimes","rpc"]
---

# Bun v1.0.13

A post on [Bun](https://swe.quest/sources/bun.md), published 2023-11-18, 5 min read, Release. Original: [https://bun.com/blog/bun-v1.0.13](https://bun.com/blog/bun-v1.0.13)

## Summary

Bun v1.0.13 adds client support for the node:http2 module, which unblocks @grpc/grpc-js, and makes Vite 5 and Rollup 4 work by implementing process.report.getReport() for libc detection and fixing a transpiler bug with require() in ternaries. Files using ES5 \`with\` statements are now automatically treated as CommonJS instead of failing under strict mode. Bun.spawn now throws on macOS errors, because posix\_spawn returns the error code directly rather than setting errno. The release also fixes a bun install regression and nondeterministic peer dependency resolution, and cuts per-module string allocations in CommonJS require, giving 7.9% fewer strings when loading Discord.js.

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)
- [RPC & gRPC](https://swe.quest/tags/rpc.md) (Backend & APIs)

## Prerequisites

- Node.js module APIs ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- CommonJS vs ES Modules

## Keywords

Bun, node:http2, gRPC, Vite, Rollup, posix\_spawn, CommonJS

## Related posts

- [Bun v1.1.31](https://swe.quest/articles/bun-v1-1-31-0b8686b3f219a935.md): Bun · 2024-10-18 · Medium · 11 min read · JavaScript, Runtimes & VMs, RPC & gRPC, SQLite
  Bun v1.1.31 adds a node:http2 server and gRPC server support via @grpc/grpc-js, with node:http2 benchmarked at 128,879 req/s versus 52,785 req/s on Node v23 (2.4x).
- [Bun v0.6.7](https://swe.quest/articles/bun-v0-6-7-7c277e48946bb12b.md): Bun · 2023-06-02 · Medium · 4 min read · JavaScript, Runtimes & VMs
  Bun v0.6.7 fixes Node.js compatibility bugs in Node-API, node:http, undici, WebSocket, node:net and CommonJS/ESM interop, which lets Prisma, Discord.js and Puppeteer run in Bun.
- [Bun v0.7.2](https://swe.quest/articles/bun-v0-7-2-65b9975794c342cb.md): Bun · 2023-08-03 · Medium · 4 min read · JavaScript, Runtimes & VMs, Memory management
  Bun v0.7.2 adds node:worker\_threads, node:diagnostics\_channel and a global BroadcastChannel, lets structuredClone/postMessage clone Error objects, and adds \`bun .\` to run a project's main file.
- [Bun v1.2.16](https://swe.quest/articles/bun-v1-2-16-2fbfbd468574713c.md): Bun · 2025-06-11 · Medium · 5 min read · JavaScript, Runtimes & VMs
  Bun v1.2.16 fixes 73 issues and adds 119 passing Node.js tests.
- [Bun v0.7.0](https://swe.quest/articles/bun-v0-7-0-d3096f46f4bdb50f.md): Bun · 2023-07-21 · Medium · 10 min read · JavaScript, Runtimes & VMs, Concurrency
  Bun v0.7.0 focuses on Node.js compatibility: it can now run \`vite dev\` (experimentally, via \`bun --bun\` to override the node shebang), supports Web \`Worker\` threads with \`postMessage\` and \`structuredClone()\`, and implements \`AsyncLocalStorage\` from \`node:async\_hooks\` as a step toward Next.js support.

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)
