Home / Blog / NodeJs 24 : Key Features & Updates

NodeJs 24 : Key Features & Updates

3 min read.May 8, 2025

NodeJs 24 : Key Features & Updates

NodeJs team officially released NodeJs 24 with lots of performance improvements and achieve stability over experimental features.

Highlights

New V8 Engine (13.6) Global URL patternNpm v11Stable Fetch ApiTimer Promises ApiPermission Model Improvements

V8 Engine Upgraded to 13.6

NodeJs 24 comes with the latest javascript engine that powers Google chrome, Microsoft Egde and more. This upgrade brings some great performance improvement and latest, cutting edge javascript features.

Atomics.pause, a new low level api to pause threads in Atomics. It is super lightweight and minimize cpu overhead.

WebAssemblynow supports 64 bit memory, great for high performance and native like workloads.

Float16Array, can store 16 bit(2 bytes) floats, which is more memory efficient than Float32Array on the other has it has smaller range.

Error.isError,  a new method to quickly check wheather is actually an Error Object. 

Global URL Pattern

UrlPatternapi helps developer to quickly check url against a pattern and substract parameters from them. After NodeJs 24 the Api is now global so we need make imports to use it.

const pattern = new URLPattern({ pathname: '/product/:id' });

const result = pattern.exec('https://example.com/product/123');

if (result) {
    console.log(result.pathname.groups.id); // Output: "123"
}

NPM v11

NodeJs 24 comes with latest NPM v11, which brings - 

  • Faster package installation
  • Improved Security Checks
  • npm hook command removed
  • npm init now supports type parameter
npm init --type module
{
  "name": "my-app",
  "version": "1.0.0",
  "type": "module"
}
npm init --type commonjs
{
  "name": "my-app",
  "version": "1.0.0",
  "type": "commonjs"
}

Stable Fetch API

With the upgrade of Undici 7.0.0, fetch api now fully stable in NodeJs 24+, we no longer need third party packages for make http requests.

const response = await fetch('https://api.example.com/api/v1/products');
const data = await response.json();
console.log(data)

Timer Promises API

NodeJs 24 introduced timer promises apis, for better asynchronously handling.

import { setTimeout } from 'timers/promises';
await setTimeout(2000);
console.log('After 2 second');

Permission Model Improvements

Traditionally nodejs apps have full access system level access like file system, network and child processes, but after NodeJs 20, i got some control on this through --experimental-permission flag which was experimental before, but it has achieved stability and the flag simplified to --permission

node --permission \
     --allow-fs-read=./data \
     --allow-net=example.com \
     app.js
" NodeJs 18 end of life on April 30, 2025 and NodeJs 24 going to be LTS on October, 2025 "
Reminder and EOL

Source https://github.com/nodejs/node/releases/tag/v24.0.0