Bun v1.0.30 is a release that fixes bugs, introduces new features, and improves compatibility with Node.js. It includes an 8x performance regression fix in Bun.serve(), a new --conditions flag for bun build, and support for expect.assertions() and expect.hasAssertions() in Bun's test runner. It also fixes crashes and improves Node.js compatibility.
Table of contents
Fixed: 8x performance regression in Bun.serve() in certain casesNew flag: --conditionsexpect.assertions() and expect.hasAssertions() are now supportedBun.fileURLToPath(url) now supports stringsBun Shell better stacktraces on errorFixed: potential crash in Bun.serve() with delayed request bodiesFixed: Headers with underscores and uppercase names in Bun.serve()Fixed: textEncoder.encode() JIT bug under certain conditionsFixed: Crash when printing error stacks with mocked functionsFixed: crash in expect(undefined).toContainKeys(a)Fixed: Potential crash with timers in event loopNode.js compatiblity improvementsWindows support is coming in Bun v1.1.0Thanks to 14 contributors!Sort: