Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
Published By From Node.js News · 1 min read
ReleaseNode.js 22.17.0 (LTS)
Constructing classes like IncomingMessage or ServerResponse without the new keyword is now discouraged. This clarifies API expectations and aligns with standard JavaScript behavior. It may warn or error in future versions.
Contributed by Yagiz Nizipli in #58518 .
Using an empty string for shell previously had undefined behavior. This change encourages explicit choices (e.g., shell: true or a shell path) and avoids relying on implementation quirks.
Contributed by Antoine du Hamel and Renegade334 #58564 .
The HTTP/2 prioritization API (e.g., stream.priority ) is now deprecated due to poor real-world support. Applications should avoid using priority hints and expect future removal.
Contributed by Matteo Collina and Antoine du Hamel #58313 .
This is an excerpt. The full article is published by Node.js News.
Answers to common questions regarding this article's topic, architecture, and practical applications.
This gives developers explicit control over whether the file descriptor should
be closed when the stream ends. Helps avoid subtle resource leaks. Contributed by James M Snell in #58548. This improves ergonomics around async iteration of directories. Developers can
now manually control when a directory is closed using .close() or with Symbol.asyncDispose. Contributed by Antoine du Hamel in #58206. Adds observability support for when a stream finis
General
Contributed by James M Snell in
#57513 and
#58541.
General
Constructing classes like IncomingMessage or ServerResponse without the new
keyword is now discouraged. This clarifies API expectations and aligns with standard
JavaScript behavior. It may warn or error in future versions. Contributed by Yagiz Nizipli in #58518. Using an empty string for shell previously had undefined behavior. This change
encourages explicit choices (e.g., shell: true or a shell path) and avoids
relying on implementation quirks.
Implementation / Getting Started
This method compares only a subset of properties in deep object comparisons,
useful for flexible test assertions. Its stabilization means it's now safe for
general use and won't change unexpectedly in future releases. Contributed by Ruben Bridgewater in #57370.
General
Constructing classes like IncomingMessage or ServerResponse without the new keyword is now discouraged. This clarifies API expectations and aligns with standard JavaScript behavior. It may warn or error in future versions.