Node 18 Release - Top New Features

Hero Image

Node.js 18 is here and we are super excited to see it released on April 19th, 2022! Read through for a recap of the new features available in this latest release.

Node.js 18 Features Overview

We've been following this release for a few months now and documenting our analysis of some of the big new features. Here's a quick recap of those articles:

  • fetch() API - fetch() is a promise-based client that supports many high-level HTTP features, while also focusing on the most common scenario: sending simplified HTTP requests. To those coming from the browser world, it is similar to XMLHttpRequest, but standardized and with an expanded and more flexible feature set.
  • Test Runner (experimental) - A built-in testing module to Node core, behind an experimental flag for now. It will come in the form of a new node:test module that exposes an API for creating, and executing JavaScript tests.
  • Prefix-only core Modules - A new way to 'import' modules that levrages a 'node:' prefix which makes it immediately obvious that the modules are from Node.js core. Test runner is the first feature to use this in action!
  • Direct Network Imports (experimental) - There will now be support for direct network imports, behind an experimental flag for now. This enables you to use HTTPS URLs to directly import modules over HTTPS into your project at run-time instead of relying on a package manager to install at build-time.

Other Notable Changes

  • Webstreams API, Blob and BroadcastChannel have graduated out of experimental and are now available globally by default.
  • headersTimeout and requestTimeout logic has been added to automatically close any open connections no longer needed.
  • The V8 engine is being updated to version 10.1. This new version includes the findLast and findLastIndex array methods, improvements to the Intl.Locale API, The Intl.supportedValuesOf function and performance upgrades to the class fields and private class methods.

Notable misses

For more details and a full commit list of what made it in, you can head over directly into the release PR for Node.js 18! A huge shoutout to Beth Griggs and the entire Node.js Release Working Group for making the entire process extremely organized and easy to follow.

Want More Node.js Updates?

Fusebit is an integration platform built for developers like yourself and it’s also powered entirely by Node.js. As a result, we dedicate time to making sure we are active in the community and take deeper looks into any upcoming features. We also stay on top of other Node.js initiatives such as next-10 to get a sense of where the platform is headed.

If you like reading about Node.js and are interested in learning more about where it is headed, follow us on twitter.


Related Content

16 April 2022
Node.js 18 Introduces Prefix-Only Core Modules

Node.js 18 is introducing a new type of core module that can't be imported like all of the other core modules. These new modules are called prefix-only core modules, and you need to understand how they work.

15 February 2022
Run Every Node.js Version in AWS Lambda

Run any version of Node.js in AWS Lambda within hours after release using custom AWS Lambda runtimes from Fusebit