Bun v1.1.10
Bun v1.1.10 fixes 20 bugs, makes uncached bun install on Windows about 2x faster, and cuts fetch() memory use by up to 2.8x by freeing response bodies sooner. The fetch change pairs JavaScriptCore Strong and Weak references with reference counting in Zig, so the Response and its body are freed once the GC finalizes them, and the HTTP client is told to ignore unread bodies. Other fixes include a Windows hang caused by sockets being made non-blocking only after connect, and a macOS spawn hang where send() with MSG_NOWAIT still blocks on blocking sockets. Smaller items cover sourcemap fixes with --splitting, setDefaultTimeout in bun:test, and an EventEmitter listener-removal bug in node:stream.
Related posts
- Bun v1.0.4
Bun mediumAdept
Bun v1.0.4 fixes 62 bugs, adds server.requestIP() for retrieving a request's socket IP (not proxy headers), and supports esbuild-compatible virtual modules in runtime plugins via builder.module(). Bun.serve() now reports manually managed per-request memory to JavaScriptCore's GC, cutting memory by up to ~50% (e.g. Fastify 267 MB to 114 MB after 800k requests). The default fetch() and bun install timeout rises from 30 seconds to 5 minutes between data chunks. The lockfile now stores workspace member versions, and fixes cover getaddrinfo fallback across all results, 3xx fetch hangs, and Node.js compatibility.
- Bun v0.6.9
Bun mediumAdept
Bun v0.6.9 focuses on memory reductions: zero-copy string Response bodies in Bun.serve() and Response (60 MB vs Deno's 425 MB and Node's 1414 MB after 1000 responses of a 12 MB string), 50% less memory for cold bun install, and fixed leaks when importing modules. It also fixes non-ASCII filename imports, mockResolvedValue and missing function properties on mocks in bun test, a GC-related crash in the CommonJS require() loader, and a ~192-byte-per-call leak in node:crypto hashing.
- Bun v1.2.2
Bun mediumAdept
Bun v1.2.2 fixes 38 bugs and cuts idle JavaScript memory usage by 10–30% (28% for Next.js, 11% for Elysia). The fix integrates JavaScriptCore's garbage collector timers into Bun's event loop, and on Linux GC thread suspension moves from SIGUSR1 to SIGPWR so it no longer conflicts with applications that use SIGUSR1. The release also fixes a vite build regression caused by an event-loop bug in async file writes, and improves reliability of Bun.SQL prepared statements, S3 multipart uploads and the CSS parser. Node.js compatibility additions include fs.glob, NODE_PATH resolution, and fixes for fs.Dir, createRequire on virtual paths, pnpm, and DuckDB native modules.
- Bun v0.3.0
Bun mediumAdept
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. New Node.js APIs include node:child_process, process stdio streams, Error.captureStackTrace and fs streams, alongside automatic npm package installs on import when no node_modules exists. Other additions are a native Next.js-style FileSystemRouter, console as an AsyncIterable for reading stdin, threadsafe bun:ffi callbacks, new bun:test matchers with a faster toEqual(), and a long list of fetch, spawn and crash fixes.
- Bun v1.4.1
Bun mediumAdept
Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements. JavaScriptCore now discards JIT code after idle periods, sharply cutting RSS (Next.js SSR 222 MB to 142 MB), and Bun.serve gains HTTP/2 on the same port via ALPN with large throughput gains over node:http2. Buffer read/write methods are JIT-inlined (up to 9x faster), AsyncLocalStorage avoids per-await allocations, Bun.write streams response bodies to disk, and WebSocket gets pause/resume for TCP backpressure. fetch now verifies TLS against the URL hostname rather than the Host header, closing an insecure default. bun build tree-shakes through `export * as` and dynamic import(), shrinking zod bundles by about 79%.