Bun v1.1.6 | Bun Blog

submited by
Style Pass
2024-04-28 22:30:04

Bun v1.1.6 is here! This release fixes 10 bugs (addressing 512 šŸ‘ reactions). We've implemented UDP socket support & node:dgram. DataDog and ClickHouseDB now work. We've fixed a regression in node:http from v1.1.5. There are also Node.js compatibility improvements and bugfixes.

Bun now supports UDP sockets. UDP sockets are a low-level unreliable messaging protocol, often used by production monitoring tools, video/audio streaming tools, and games.

node:dgram is the Node.js module for using UDP sockets. Building on top of Bun's new UDP socket support, node:dgram is now implemented. This was one of the most upvoted issues on Bun's GitHub repository.

When fetch was called with a Request subclass, Bun would skip calling the method or url getters and instead use the internal method and url properties. Since SvelteKit's Request subclass overrides these properties, this meant we ignored the method property from the Request subclass.

This release upgrades to the latest version of JavaScriptCore, and Array.prototype.sort is now 15% - 135% faster in Bun & Safari. Thanks to @Constellation.

Leave a Comment