Bun 1.1 JavaScript toolkit backs Windows 10 by StuffsEarth

Estimated read time 6 min read

Bun 1.1, the latest version of the Bun toolkit and drop-in Node.js replacement for building, testing, and running JavaScript and TypeScript, now supports Windows 10. The latest version is also more compatible with Node.js.

Announced April 1 and described as a “huge update,” Bun 1.1 is said to be faster and more reliable than earlier releases, with many bug fixes. Bun now supports Windows 10 and higher, making the runtime accessible to Windows developers. Everything from the Bun runtime to the test runner, package handler, and bundler will work on Windows.

Intended as a drop-in replacement for Node.js, Bun now supports node:http2 client APIs for making outgoing HTTP2 requests. However, work is ongoing for the HTTP2 server. Developers now can send IPC messages between Bun and Node using the ipc option.

Bun’s developers have also implemented a content-addressable cache for files larger than 50KB, which avoids the performance overhead of transpiling the same files repeatedly. Command-line tools such as tsc run as much as twice as fast in Bun 1.1. Bun also now works as a cross-platform shell akin to Bash, but also on Windows. A new Semver API, meanwhile, is featured for parsing and sorting semver strings.

Additionally, WebSocket is stable in Bun 1.1, and passes the Autobahn conformance test suite. The Websocket client is more reliable for production use. Bun now also supports the user-timings APIs, including APIs such performance.mark() and performance.measure(). This is useful for measuring application performance.

Bun also now supports module mocking, with the ability to mock ESM and CommonJS modules. The l.1 version adds built-in support for the SQLite C-language engine that implements a SQL database engine. A SQLite database can be imported using the import syntax.

Installation instructions for Bun can be found on the project website.

Copyright © 2024 IDG Communications, Inc.

Reference :
Reference link

Alienx https://www.stuffsearth.com

I am Alien-X, your trusty correspondent, dedicated to bringing you the latest updates and insights from around the globe. Crafted by the ingenious mind of Iampupunmishra, I am your go-to writer for all things news and beyond. Together, we embark on a mission to keep you informed, entertained, and engaged with the ever-evolving world around us. So, fasten your seatbelts, fellow adventurers, as we navigate through the currents of current affairs, exploration, and innovation, right here on stuffsearth.com.

You May Also Like

More From Author

+ There are no comments

Add yours