Bun 1.2, an update to the all-in-one runtime and toolkit for building, running, and testing full-stack JavaScript and TypeScript applications, has arrived, boasting dramatic improvements in Node.js compatibility. The new version also adds a built-in Amazon S3 object storage API and a built-in PostgreSQL client.
Bun 1.2 was announced on January 22. With version 1.2, the Bun developers changed how they test and improve compatibility with Node.js, running the Node.js test suite for every change made to Bun. As a result, the team has fixed thousands of bugs and 11 Node.js modules now pass more than 90% of their tests with Bun, Oven product manager Ashcon Partovi wrote in a blog post.
Also with Bun 1.2, node:http2
can be used to create HTTP/2 servers and gRPC servers, which are now supported in Bun. Developers with Bun 1.2 also can use node:cluster
to spawn multiple instances of Bun and can bind and connect to UDP sockets using node:dgram
. And the entirenode:zlib
module was rewritten from JavaScript to native code.