Bun 1.2, an replace to the all-in-one runtime and toolkit for constructing, working, and testing full-stack JavaScript and TypeScript purposes, has arrived, boasting dramatic enhancements in Node.js compatibility. The brand new model additionally provides a built-in Amazon S3 object storage API and a built-in PostgreSQL consumer.
Bun 1.2 was introduced on January 22. With model 1.2, the Bun builders modified how they check and enhance compatibility with Node.js, working the Node.js check suite for each change made to Bun. Because of this, the crew has mounted hundreds of bugs and 11 Node.js modules now move greater than 90% of their checks with Bun, Oven product supervisor Ashcon Partovi wrote in a weblog put up.
Additionally with Bun 1.2, node:http2
can be utilized to create HTTP/2 servers and gRPC servers, which are actually supported in Bun. Builders with Bun 1.2 can also use node:cluster
to spawn a number of situations of Bun and may bind and hook up with UDP sockets utilizing node:dgram
. And the wholenode:zlib
module was rewritten from JavaScript to native code.