Bun v1.1.8 | Bun Blog

submited by
Style Pass
2024-05-10 16:00:08

Bun v1.1.8 is here! This release fixes 54 bugs (addressing 184 👍). Support for process.on("uncaughtException") and process.on("unhandledRejection"), JSON.parse gets faster, Brotli support in node:zlib, [Symbol.dispose] in Bun APIs, fixes lots of crashes on Windows, and many other bugfixes.

Bun now supports the process.on("uncaughtException") and process.on("unhandledRejection") events, which allow you to handle uncaught exceptions and unhandled promises in a more graceful way.

This should resolve issues with various npm packages, like puppeteer, that would clean up resources if an unhandled exception occurred.

Bun now implements the Brotli APIs in the node:zlib module, including BrotliCompress(), BrotliDecompress(), brotliCompress(), brotliDecompress(), and more!

Bun now supports the [Symbol.dispose] property on various APIs, including Bun.spawn, Bun.serve, Bun.connect, and Bun.listen. This allows you to define a variable with the using syntax, which is defined by the TC39 proposal for Explicit resource management in JavaScript.

Leave a Comment