Bun v1.4.2 Release Addresses Critical Bugs and Performance Issues in JavaScript Runtime
The Bun JavaScript runtime has released version 1.4.2, which includes several important fixes and improvements. Key updates address issues such as the decoding of CMYK and YCCK JPEGs by `Bun.Image`, preventing crashes or hangs during garbage collection on musl-based systems, and ensuring proper error messages for invalid JSON parsing. A significant regression introduced in Bun v1.4.1, which caused variable name collisions during `bun build` operations and impacted frameworks like Elysia, has also been resolved. Additionally, a memory leak related to `AsyncLocalStorage` and an incorrect `worker_threads` 'online' event order that affected applications like `@discordjs/ws` have been fixed. The update also incorporates approximately 350 upstream WebKit commits, bringing correctness fixes for `Intl` and `TypedArray` objects, a `Proxy` crash fix, and more efficient `Date` objects.