Accessible from nodejs.org, Node.js 19 was released October 18. Beginning with this release, Node.js sets
keepAlive to true by default. Thus any outgoing HTTP(S) connection automatically will use HTTP 1.1 Keep-Alive, providing better throughput as connections are reused by default. There is a default waiting window of five seconds. Additionally, Node’s HTTP Agent is able to parse the response
Keep-Alive that servers might send. This header instructs the client on how long to stay connected. The Node HTTP server now will automatically disconnect idle clients when
close() is invoked.
Node.js 19 will supplant Node.js 18 as the project’s “Current” release line when Node.js 18 enters Long-Term Support status later in October. Node.js 19 will be the Current release until April 2023.
Also in Node.js 19:
- An experimental
node --watchoption, available since Node.js 18.11, restarts the process when an imported file is changed.
- The V8 engine, which underpins Node.js, has been updated to version 10.7.
- Support for DTrace/SystemTap/ETW has been removed, with prioritization of resources given as the reason.
--experimental-specifier-resolutionflag has been removed. This functionality now can be implemented via custom loaders.
Copyright © 2022 IDG Communications, Inc.