Bun v1.2.20 fixes 141 issues and introduces significant performance improvements including reduced idle CPU usage and 40x faster AbortSignal.timeout. Key features include automatic yarn.lock migration to bun.lock, improved test diffing with new matchers like toHaveReturnedWith, TypeScript type testing with expectTypeOf, and
Table of contents
Reduced idle CPU usageAutomatic yarn.lock migration40x faster AbortSignal.timeoutImproved bun:test diffingNew bun:test matchers for return valuesTest your types with expectTypeOfmock.clearAllMocks() for bun:testbun outdated and bun update now supports --recursiveAutomatic ETag and If-None-Match in static routes of Bun.serveWindows long path supportWebAssembly.compileStreaming and WebAssembly.instantiateStreamingTypeScript type improvementsSort: