Skip to content

Node.js 21 is right here with up to date V8 engine and take a look at runner enhancements

The workforce in the back of Node.js has introduced the discharge of Node.js 21. Node.js is a JavaScript runtime this is constructed at the JavaScript engine that Chrome makes use of, V8. 

Probably the most major updates on this unlock is that the V8 engine used to be up to date to model 11.8. 

“Updating the V8 engine gives an important advantages: worm fixes beef up balance, efficiency enhancements spice up pace, and new options increase features. It guarantees a extra dependable, sooner, and feature-rich JavaScript runtime atmosphere,” defined Rafael Gonzaga, Node.js Core Member. 

There have been additionally a couple of updates to check runner, which is a characteristic that allows practical checking out and exporting of effects. Updates come with support for passing globs and a brand new cli flag that controls parallelism. 

Any other replace is that WebStreams is now strong. WebStreams assist procedure knowledge in small sizes for browser packages, the workforce defined.

The workforce additionally added a brand new experimental flag that flips module defaults. Consistent with Gonzaga, Node.js recently has two module methods: CommonJS and ECMAScript. Lately it treats recordsdata with a .js report extension as CommonJS by way of default, however now this may also be flipped. 

“Our objective is to sooner or later have the option to give a boost to ES module syntax by way of default with minimum breaking adjustments,” Gonzaga mentioned. 

There have been additionally a number of efficiency enhancements in report gadget, movement, and HTTP box. 

A complete listing of adjustments may also be discovered here.

Ready to get a best solution for your business?