Bun v1.0.28
Bun v1.0.28 is a small bugfix release fixing 6 bugs. A Prisma crash came from an incorrect napi_create_reference implementation that assumed only one napi reference per object, and an Astro v4.4 error came from calling [Symbol.asyncIterator] lazily in a ReadableStream's pull instead of immediately. Other fixes cover describe.only propagation to nested blocks and test.each under --only in bun:test, events.on skipping events, readline iteration, single-value http2 headers passed as arrays (affecting Firebase), and Bun Shell stdin redirection. Windows support is still in progress.
Related posts
- Bun v1.1.37
Bun mediumAdept
Bun v1.1.37 fixes 62 bugs and adds realtime runtime error reporting in VSCode's Problems tab without a debugger, self-referencing package imports via the exports field, and npm_package_config_ and npm_lifecycle environment variables for bun run. Notable fixes include an 8-byte-per-query Prisma memory leak caused by never freeing napi_threadsafe_function queues, a bun install crash on aliased dependencies after package manager state moved out of BSS, a Windows readline setRawMode bad cast, snapshot escaping of backticks and ${}, and a node:net regression breaking http2-wrapper. CSS parser and Bun.write error messages are also clearer.
- Bun v1.0.27
Bun mediumAdept
Bun v1.0.27 fixes 72 bugs and lets Bun Shell throw on non-zero exit codes via $.throws(true). Throwing becomes the default in v1.1, a breaking change. Response bodies can now be async generators, async iterables or Node.js Readable streams, which Bun converts internally to a ReadableStream; this also fixes empty pages in Astro v4.4. Other fixes cover Bun Shell escaping, Brotli "ShortRead" errors in fetch(), http2 client hangs, Bun.Glob `**` matching, underscores in header names, async module mocks in bun:test, and a bun --watch ctrl+c regression on Linux. Windows support is close, with 85% of the test suite passing.
- Bun v1.0.24
Bun mediumAdept
Bun v1.0.24 introduces Bun Shell, an experimental embedded shell language and interpreter for running cross-platform shell scripts from JavaScript and TypeScript via the $ template tag, with interop for fetch responses, files and line-by-line output. The release also fixes 9 bugs, mostly Node.js compatibility issues. Sockets no longer close on timeout. perf_hooks.eventLoopUtilization is now defined so Hapi works. process.exit had been rejecting integer exit codes that JavaScriptCore stores as doubles, which broke Prisma CLI. Other fixes cover bun install bin linking with dangling symlinks, path.parse edge cases and a recursive console.log hang.
- Bun v0.6.7
Bun mediumAdept
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. It also roughly doubles node:crypto hashing speed on small inputs and fixes regressions from the native CommonJS rewrite, including a scope-lifetime crash and incorrect __dirname/__filename injection. Two known CommonJS differences from Node.js remain: module evaluation order, and Bun's runtime-based detection of named exports instead of static analysis. Bundler fixes cover __esModule handling, jsx vs jsxDEV selection, bun build --compile and JSON default imports.
- Bun v1.0.30
Bun mediumAdept
Bun v1.0.30 fixes 27 bugs, including an 8x performance regression in Bun.serve() when a direct ReadableStream writes exactly one chunk in a single event-loop tick, introduced in v1.0.4. It adds a --conditions flag to bun build and the runtime for resolving package.json "exports" conditions such as react-server, plus expect.assertions() and expect.hasAssertions() in bun:test. Several crash causes are explained: a request-body Promise rejected after it was no longer pending, an incorrect JavaScriptCore tailcall intrinsic in require that broke Next.js, a TextEncoder.encode side-effects JIT bug, and uninitialized timer memory on Linux ARM64. Node.js compatibility fixes to node:stream event timing resolve hangs in prisma generate and node-fetch.