Node.js 20 Adds Permission Module
Written by Kay Ewbank   
Thursday, 20 April 2023

Node.js 20 has been released with improvements including a new Node.js experimental Permission Model and a stable test_runner module.

Node.js is an open-source, cross-platform asynchronous event driven JavaScript runtime built on Chrome's JavaScript engine. It uses an event-driven, non-blocking I/O mode and executes JavaScript code outside web browsers.

nodejslogo

Node.js 20 is the "Current" release for the next six months. It will enter long-term support (LTS) in October at which point it will be the recommended version for full production deployments

The new experimental Permission Model is designed to provide a way to achieve better security by allowing restriction of access to specific resources during the program execution. It works via a flag which, when enabled, restricts access to all available permissions. The ability to access the filesystem, spawn process, and create worker_threads can be restricted.

The new release also has updated the V8 JavaScript engine to version 11.3. This adds five new features including checking that a string prototype is well formed; methods that change Array and TypedArray by copy; and resizable ArrayBuffer and growable SharedArrayBuffer.

There's also now a stable version of the test runner that was experimental in Node.js 19. The runner facilitates the creation of JavaScript tests.

Support has also been added for single executable apps. These can be distributed without Node.js being installed. The technique compiles your project into a binary for distribution. The Node.js developers say that Electron, an OpenJS Foundation project, is already using it, and Microsoft, an OpenJS Foundation member, is investigating it as a way to reduce vector attacks.

Node.js 20 is downloadable now.

nodejslogo

More Information

Node.js Foundation Homepage

Related Articles

Node.js 19 Updates JavaScript Engine

Node.js 18 Adds Core Test Runner

Node.js Adds OpenSSL 3 Support

Node.js 16 Adds Apple Silicon Support

Getting Started with Node.js

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Geoffrey Hinton Shares Nobel Prize For Physics 2024
08/10/2024

with John Hopfield, for "foundational discoveries and inventions that enable machine learning with artificial neural networks."



Valkey's Expanding Ecosystem
10/10/2024

Valkey, heralded as a better alternative to Redis, has taken the industry by storm. Reinforcing its superiority, a rapidly growing ecosystem is being built around it.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 20 April 2023 )