Bun v0.6.12
Bun v0.6.12 makes runtime errors more readable by patching JavaScriptCore to format Error.prototype.stack like V8, hiding internal builtin frames, and automatically sourcemapping stacks back to original (pre-transpile) source. It also improves CommonJS/ESM interop by inserting the __esModule annotation on require of ES modules and stops using package.json's "module" field at runtime to match Node.js resolution. Other changes include SQLite FTS5 full-text search, a new Bun.file(path).exists() method, node:http and node:stream fixes that unblock Google Maps and ytdl-core packages, a minifier rewrite of obj["a"] to obj.a, and several bundler bugfixes.
Related posts
- 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 v1.1.43
Bun mediumAdept
Bun v1.1.43 adds a first-class S3 client with a Blob/Response-style API that works against any S3-compatible store, experimental HTML bundling in bun build, V8-format heap snapshots generated from its JavaScriptCore fork, and new bun install options including --filter, --lockfile-only and --peer. Node.js compatibility improves: node:path passes 100% of Node's tests, node:zlib passes 98%, and fixes land for process.kill, Node-API error codes and process.memoryUsage().arrayBuffers, which differs because JavaScriptCore owns typed-array buffers differently from V8. Parser fixes replace hard SIGILL crashes on deeply nested code with recoverable stack overflow errors by removing recursion and splitting a 1,300-line visitor function.
- Bun v1.2.17
Bun mediumAdept
Bun v1.2.17 adds ahead-of-time bundling for HTML imports in server code, so `bun build --target=bun` or `--compile` can produce a full-stack build or a single self-contained executable with no runtime bundling. Bun Shell no longer uses the native call stack, which prevents stack overflows in deeply nested scripts. Removing a pointer indirection in Strong references cuts per-timer memory for `setTimeout` and `setImmediate` by 8-15%. Other changes include `columnTypes`/`declaredTypes` in `bun:sqlite`, zstd in `node:zlib`, `--unhandled-rejections` modes, `child_process.fork` `execArgv`, and a JavaScriptCore upgrade bringing JIT string and array optimizations, a zero-copy JSON stringifier and WebAssembly interpreter hardening.
- 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 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.