Accessible from nodejs.org, Node.js 19 was introduced October 18. Starting with this launch, Node.js sets
keepAlive to genuine by default. Hence any outgoing HTTP(S) connection immediately will use HTTP 1.1 Keep-Alive, providing much better throughput as connections are reused by default. There is a default waiting window of 5 seconds. Also, Node’s HTTP Agent is in a position to parse the reaction
Hold-Alive that servers could mail. This header instructs the client on how lengthy to remain linked. The Node HTTP server now will immediately disconnect idle shoppers when
shut() is invoked.
Node.js 19 will supplant Node.js 18 as the project’s “Current” launch line when Node.js 18 enters Lengthy-Expression Aid standing afterwards in Oct. Node.js 19 will be the Recent release right until April 2023.
Also in Node.js 19:
- An experimental
node --viewoption, readily available because Node.js 18.11, restarts the course of action when an imported file is adjusted.
- The V8 motor, which underpins Node.js, has been up to date to edition 10.7.
- Assistance for DTrace/SystemTap/ETW has been eradicated, with prioritization of sources offered as the explanation.
--experimental-specifier-resolutionflag has been removed. This performance now can be carried out via personalized loaders.
Copyright © 2022 IDG Communications, Inc.