Skip to content

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

Bun 6 min read Release mediumAdept

Bun v1.1.41

Bun v1.1.41 fixes 12 bugs and improves node:vm compatibility so JSDOM (runScripts, runInContext) and happy-dom work more reliably. bun build --compile gains Windows-only --windows-icon and --windows-hide-console flags, Bun.build adds throw: true, and bun install supports --omit=dev|optional|peer plus include/exclude in .npmrc and bunfig.toml. Bun now treats ambiguous files starting with "use strict" as CommonJS rather than ESM, since ES modules are always strict and CommonJS build output usually carries the directive. Other fixes cover bun install hangs and infinite loops with optional or unresolvable dependencies, and dropping inline sourcemaps when only the VSCode problems tab is connected, which saves memory and startup time.

Assumes: CommonJS vs ESM modulesnpm package management

Related posts

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

    Bun mediumAdept

    Bun v1.1.28 fixes 40 bugs and adds compiling and running C directly from JavaScript to use native system libraries without a separate build step, a 30x faster `path.resolve`, and named pipe support on Windows. Node.js compatibility changes include `process._exiting` defaulting to false, `workerData` defaulting to null, missing `perf_hooks` constants, `timers.promises`, and `child_process` resolving relative executables from the target `cwd`. Other fixes cover napi handle-scope crashes affecting `sqlite3`, `os`/`cpu` filtering in `bun install`, IPC through `bun run`, and Windows file reads. Bun's JSX inlining optimization is disabled because React 19 changed its element symbol, and DOMJIT typed-array calls are disabled after crashes in `TextDecoder`.

  • Bun v1.0.12

    Bun mediumAdept

    Bun v1.0.12 fixes 24 bugs and adds `bun -e` for evaluating inline scripts (with TypeScript, JSX and top-level await), `--env-file` for choosing which .env files to load, `server.url`, `import.meta.env`, and `expect.unreachable()` in bun:test. Macros can now import builtin modules like node:fs and node:child_process at bundle time, and `mock.module` now handles default exports and re-exports. Two fixes include root-cause explanations: a bun:sqlite `.get()` hang came from a wrong JavaScriptCore JSType tag that misled the DFG JIT, and a `require()` crash came from source code being garbage collected before an exception was thrown. As a result, Bun's debug builds now run JavaScriptCore with assertions enabled.

  • Bun v0.6.10

    Bun mediumAdept

    Bun v0.6.10 rewrites CommonJS module loading for better Node.js compatibility. That gets webpack working and adds `require.main`, `process.mainModule`, and runtime support for the `__esModule` annotation, which preserves default exports when CJS output from bundlers is re-imported as ESM. That behaviour is disabled when no annotation is present or the package type is "module". The release also adds `bun test` matchers (resolves/rejects, toBeArray, toBeTypeOf) and `spyOn()`, `fs.watch()`, `fs.readv`/`writev`, and more of the V8 stack trace API. It fixes `.env` parsing and a latin1 truncation bug in the WebSocket client, and adds `bun install --exact`, `--frozen-lockfile`, and a `trustedDependencies` allow-list for lifecycle scripts.

  • Bun v0.6.5

    Bun mediumAdept

    Bun reimplements CommonJS as native runtime support instead of transpiler-only wrapping. Detected CJS modules are wrapped in a (module, exports, require) function, evaluated, and their exports appended as named ES Module exports, which fixes `export * from`, sloppy-mode code and packages like Vue, Winston and viem. The release also improves CJS-to-ESM conversion in Bun.build(), adds $npm_lifecycle_event to bun run, and ignores SIGPIPE to stop crashes when streaming files to disconnected clients. It also fixes node:net createConnection argument parsing and a transpiler bug that turned Symbol["for"] into undefined.

The quest for software engineering knowledge.

Look:
Layout: