Release node.js 18.0 , platforms for executing network applications in JavaScript.
Node.js 18.0 is assigned to to branches with a long support period, but this status will be assigned only in October, after stabilization. Support Node.js 18.x will be carried out until April 2025. The accompaniment of the past LTS-branch Node.js 16.x will last until April 2024, and by last LTS-branches 14.x until April 2023. The support of the LTS-branch 12.x will be discontinued on April 30, and the intermediate branch Node.js 17.x is June 1.
The main Improvements :
- engine v8 updated to version 10.1 used in chromium 101. Compared to the release of Node.js 17.9.0, supported features such as FindLast and FindLastIndex methods to search for elements relative to the end of the array and the intl.supportedvaluesof function. Improved an intl.locale API. Accelerated Initialization of Fields of Classes and Private Methods.
- is enabled by default Experimental Fetch () API (), designed to download resources over the network. Implementation is based on the code from HTTP / 1.1 client undecti and as close as possible to similar API provided in browsers. Including support for the FormData, Headers, Request and Response interfaces for manipulating HTTP headers of requests and responses. Const Res = await fetch (‘https://nodejs.org/api/documentation.json’); if (res.ok) {const data = await res.json (); Console.log (DATA); }
- Added eperimental implementation API Web Streams providing access to data flows obtained by network. The API makes it possible to add your handlers to work with the data as information is received over the network, without waiting for the download of the entire file. In Node.js, objects such as readablestream *, TransformStream *, Writablestream *, Textencoderstream, TextDecoderstream, CompressionStream and DecompressionStream are available.
- in the number of stable translated API blob , which allows you to encapsulate unchangeable raw data for their safe use in different Workflows.
- in the number of stable API translated BroadcastCastchannel , allowing you to organize messaging in asynchronous mode “One sender – many recipients” format. “
- Added experimental module node: test to create and run test tests JavaScript returning the result in the format tap (Test Anything Protocol).
/Media reports.