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


Greenplum's Cloudberry Fork Enters Apache Incubator
17/12/2024

Cloudberry is the open source equivalent of Greenplum.
Now it is fostered by the Apache Foundation as it acquires incubating status.



Gifts For Geeks 2024
22/11/2024

Are you ready for Thanksgiving, when overeating remorse and a surfeit of being thankful causes the unsettling thought that there are only four weeks till the Xmas break? So here is a mix of weird [ ... ]


More News

espbook

 

Comments




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

Last Updated ( Thursday, 20 April 2023 )