Bun v0.6.9
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.
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 v1.0.20
Bun mediumAdept
Bun v1.0.20 cuts memory usage in node:fs async operations by avoiding redundant cross-thread string clones. Benchmarks show fs.readlink and fs.stat dropping from 107 MB to about 45–71 MB RSS, and a fs.writeFile leak with large non-ASCII strings falling from 1,696 MB to 91 MB. HTMLRewriter.transform now accepts strings and ArrayBuffers and has a destructor-timing leak fixed, and fs.readFile/writeFile gain hex and base64 encodings. A Linux setTimeout high-CPU regression is fixed, Bun.spawn gains a resourceUsage report, and debug builds use macOS malloc zones to track native allocations.
- Bun v1.1.10
Bun mediumAdept
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.
- 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.1.22
Bun mediumAdept
Bun v1.1.22 fixes 79 bugs and makes Express 3x faster than on Node.js through node:http improvements. Concurrent transpilation now works on Windows, so ES modules load up to 4x faster (lodash-es imports in 39ms vs 82ms before). Bun.serve() handles POST requests that ignore the body about 10% faster. Memory leaks around --hot reloading, garbage-collected modules, source maps and timers are fixed, and `bun build --compile` now supports zstd-compressed sourcemaps. The release also adds Uint8Array base64/hex methods, more Node.js compatibility APIs such as NODE_EXTRA_CA_CERTS and util.aborted, and bundler fixes for CommonJS and DCE annotations.