Friday, April 26, 2024
HomeSoftware DevelopmentNode.js 22 is now obtainable

Node.js 22 is now obtainable


Node.js 22 is now obtainable with a lot of new options, reminiscent of assist for “require()” for synchronous ECMAScript (ES) module graphs, which is presently an experimental characteristic.

When the experimental module is enabled and “require()” tries to load an ES module, whether it is each explicitly marked as an ES module and is totally synchronous, the module shall be loaded as an ES module with the module’s title area object returned.

In line with the Node.js crew, this characteristic is much like dynamic “import(),” but it surely runs synchronously and returns the title area object immediately. 

This launch additionally permits the browser implementation of WebSocket by default, permitting builders to make use of it with out worrying about exterior dependencies.  

One other replace on this launch is that Watch Mode is now steady. This characteristic restarts the node server when a change is made to recordsdata which can be being watched.

Node.js 22 additionally brings assist for model 12.4 of the V8 JavaScript engine, will increase the default Excessive Water Mark for streams, offers entry to the Maglev Compiler by default, and extra.

A full checklist of updates will be discovered within the Node.js 22 launch notes

“Node.js 22 improves numerous small, necessary areas, and continues to make it straightforward in enterprise deployments to make use of JavaScript to write down command line instruments and for server-side scripting,” mentioned Rafael Gonzaga, Node.js Technical Steering Committee (TSC) Member. “The broad Node.js neighborhood is essential to the continued enchancment of the software program and an enormous a part of this launch. Many due to our open supply contributors for placing within the effort and time and making Node.js higher with every launch. Thanks additionally to OpenSSF and Venture Alpha Omega for serving to us enhance Node.js safety.”



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments