Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Bun 7 min read Release mediumAdept

Bun v1.1.37

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.

Assumes: JavaScript runtimesnpm package.json

Related posts

  • Bun v1.0.28

    Bun mediumAdept

    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.

  • 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.

  • 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.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 v1.0.32

    Bun mediumAdept

    Bun v1.0.32 fixes 13 bugs, several of them regressions from the I/O rewrite in v1.0.31 done in preparation for Windows support. bun install could hang in GitHub Actions because the active lifecycle-script counter was never decremented. --frozen-lockfile and --production still installed packages, and Bun Shell hung on && and || because a file descriptor was left open. Node.js compatibility improves: the ws package can send and receive ping/pong, FileHandle read/write return correct results, util.promisify works on the timer functions, Subprocess.kill(undefined) coerces to SIGTERM, and a new --shell flag selects the bun or system shell for package.json scripts.

The quest for software engineering knowledge.

Look:
Layout: