DEV Community

Cover image for NodeJS 22 is Live
Emmanuel Eneche
Emmanuel Eneche

Posted on

36 2 2 3 3

NodeJS 22 is Live

Node.js v22 is Live πŸ”₯

Accoring to Openjs Foundation, Node.js 22 replaces Node.js 21 as the current release line. Node v22 will be the current release version atleast for next 6 months, that is until October 2024, when it will become Active. Here is our full Node.js release schedule.

β€œNode.js 22 improves a lot of small, important areas, and continues to make it easy in enterprise deployments to use JavaScript to write command line tools and for server-side scripting,” said Rafael Gonzaga, Node.js Technical Steering Committee (TSC) Member. β€œThe broad Node.js community is critical to the continued improvement of the software and a big part of this release. Many thanks to our open source contributors for putting in the time and effort and making Node.js better with each release. Thank you also to OpenSSF and Project Alpha Omega for helping us improve Node.js security.”

β€œNode.js demand among developers continues to grow as the need for reliable and scalable web applications rises. With Node.js 22, you are working with an even-numbered version that will be production-ready and add long-term support in 6 months. It’s the right time to test and get ready for deployment,” said Marco Ippolito, Node.js core collaborator. β€œNode.js continues to improve and deliver features that make it easy for enterprises to build out their back-end.

Some notable changes are:

1️⃣ WebSocket Client: Now included and enabled by default, making it easier than ever to establish WebSocket connections from your Node.js app.

2️⃣ Experimental ESM Support: You can now require ECMAScript Modules (ESM) graphs easiliy! Whether you're using CommonJS (CJS) or ESM, support for both require() and import statements is now available.

3️⃣ Node --watch Mode: Although, previously an experimental feature, it's now even more stable. Your servers can now automatically reload when changes occur in your files or paths, enhancing your development workflow.

4️⃣ Increased Default Highwater Marks for Streams: A significant performance boost with increased default highwater marks for streams. However, just be aware that this might lead to slightly higher memory usage. If you're working in memory-sensitive environments, keep an eye on the impact and adjust settings accordingly.

Happy Hacking πŸ™ŒπŸ»

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (22)

Collapse
 
manchicken profile image
Mike Stemle β€’

ESM and CJS? Living in harmony?

Next up for the Nodejs team: world peace.

Collapse
 
emmabase profile image
Emmanuel Eneche β€’

Like one big happy family πŸ˜„

Collapse
 
manchicken profile image
Mike Stemle β€’

Right?! I love it!

Collapse
 
pavelee profile image
PaweΕ‚ Ciosek β€’

Node --watch Mode πŸ‘πŸ‘πŸ‘

Collapse
 
emmabase profile image
Emmanuel Eneche β€’

This could reduce much work on our good friend nodemon πŸ˜„

Collapse
 
thecodingthesi profile image
Thesi β€’

ESM SUPPORT YIPPIE!!

Collapse
 
emmabase profile image
Emmanuel Eneche β€’

Yep 😍😍

Collapse
 
steeve profile image
Steeve β€’

Important note for the second change 2️⃣: To support ESM with require(), you have to add the flag --experimental-require-module

Collapse
 
emmabase profile image
Emmanuel Eneche β€’

Thats right @steeve thanks for the insight πŸ‘

Collapse
 
melroy89 profile image
Melroy van den Berg β€’

Also.. where is Node Docker v22 tag?

Collapse
 
emmabase profile image
Emmanuel Eneche β€’ β€’ Edited

Should be in the pipeline. Currently, v20 appears to be the most recent tag.

Collapse
 
melroy89 profile image
Melroy van den Berg β€’

yea they finally released v22 docker images now..

Thread Thread
 
emmabase profile image
Emmanuel Eneche β€’

Sounds really good, I'm happy to hear πŸ‘πŸ˜

Collapse
 
dangeorge35 profile image
Dan George β€’

Nice one

Collapse
 
emmabase profile image
Emmanuel Eneche β€’

πŸ™ŒπŸ»

Collapse
 
melroy89 profile image
Melroy van den Berg β€’

Finally! Npm bug is resolved with max socket count issues in CICD workflows.

Collapse
 
naskarov profile image
Nurlan Askarov β€’

Thank you for a great news!

Collapse
 
emmabase profile image
Emmanuel Eneche β€’

You're most welcome Nurlan πŸ‘

Collapse
 
noviadi profile image
Noviadi Hapsoro β€’

Thanks for the great work! πŸ™Œ

Collapse
 
emmabase profile image
Emmanuel Eneche β€’

Thank you so much @noviadi πŸ™ŒπŸ»πŸ©·

Collapse
 
rmcoder profile image
Rusty Ramos β€’

Bye nodemon we will miss you :(

Collapse
 
emmabase profile image
Emmanuel Eneche β€’ β€’ Edited

Exactly πŸ˜„ our dear friend on Development server

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more