Skip to content

The Node.js 24 Features Worth Changing Your Code For

Node.js 24's changelog has dozens of entries. Here are the handful that actually change how you write day-to-day code, filtered from the ones that don't.

· · 10 min read

Updated: November 28, 2026

Table showing that --permission with one read path denies outside reads, writes and child processes

Node 24's full changelog between the initial release and its LTS promotion is long, and most of it is internal, dependency bumps, or edge-case fixes that don't touch how application code gets written. Here's the subset that's actually worth knowing, filtered down from a changelog most developers reasonably skip reading in full.

The permission model

I ran the same script three ways on Node 24.21.0, using the flags from the Node.js permissions docs: with no flags, with --permission and one allowed directory, and with --permission --allow-child-process. The script reads a file inside the allowed directory, reads a file outside it, and spawns echo.

node --permission --allow-fs-read="/app/data" server.js
Check on Node 24.21.0No flags--permission + one read path
Read a file inside the allowed pathworksworks
Read a file outside itworksERR_ACCESS_DENIED
Write a file (no --allow-fs-write)worksERR_ACCESS_DENIED
Spawn a child processworksERR_ACCESS_DENIED
process.permissionundefinedan object

Two things in that table aren't in most summaries of this release. First, you don't have to allow the entry script itself: Node grants read access to it automatically, so --allow-fs-read only needs the paths the script touches. Second, --allow-child-process works, but it prints a SecurityWarning saying it "could invalidate the permission model". Node is telling you that a child process can do what the parent can't.

Here's the part I'd change in older write-ups, including the first version of this one. There is no --allow-net flag in Node 24. Passing it gives bad option: --allow-net and the process never starts. It first appeared in Node 25.0.0, and the Node 26 docs still mark it as in active development. I also opened a TCP connection under --permission on 24.21.0 and got ECONNREFUSED from a closed port, not ERR_ACCESS_DENIED. The socket was never blocked. So on Node 24 the model covers the file system, child processes, workers and native addons. It does not cover the network, and treating it as a network sandbox is a mistake.

The runtime check is on process, not on node:process:

// Works. `permission` is a property of the global process object.
if (!process.permission?.has('fs.write')) {
  console.warn('Running with read-only filesystem access');
}

// Doesn't work on 24.21.0:
// import { permission } from 'node:process';
// SyntaxError: The requested module 'node:process' does not provide an export named 'permission'

Does "stable" hold up? Node 24.21.0 prints no experimental warning for --permission. The old --experimental-permission spelling is gone there, though: bad option. On Node 22.23.3, though, the same --permission flag already ran without complaint, so the 22 to 24 jump isn't where this feature arrived. It's still the most useful thing here, in my opinion, for anything that runs code you didn't write: a plugin loader, a CI step, an AI agent's scratch script. It isn't a container, and with --allow-child-process on it isn't much of a wall either. The follow-up with leak tests walks through where else it lets code through.

Node 24's permission model locks down files and child processes. It does not lock down the network: Node 24 has no --allow-net flag, which arrived in Node 25.

require() and ESM interop

// This now works directly in more cases without a dynamic import() workaround
const { someExport } = require('some-esm-only-package');

require() can load most ESM-only packages synchronously from CommonJS files. I tested it with a two-file ESM-only package on Node 22.23.3 and on 24.21.0, and the result was identical on both: the plain package loaded, and one with a top-level await threw ERR_REQUIRE_ASYNC_MODULE. So if you're on a current 22, you already have this; upgrading to 24 won't be what removes your dynamic imports. That closes a friction point going back years: a CommonJS project needing one ESM-only dependency had to reach for await import() at the top level, or convert the whole file to ESM just to use a single package.

It doesn't apply universally. A package that uses top-level await internally is genuinely asynchronous and still needs the dynamic import path, because there is no way to make that synchronous without blocking the loop. Node throws a clear ERR_REQUIRE_ASYNC_MODULE rather than failing quietly, so you find out immediately.

For everything else, and the straightforward ESM package is the common case, the interop just works. If your codebase carries a // eslint-disable next to a dynamic import that exists only to pull in one dependency, that comment can probably go.

Native TypeScript support

node src/index.ts   # runs directly, no ts-node/tsx, no build step

Running .ts files directly works on Node 22.23.3 and 24.21.0 without a flag. I wrote a three-line file that throws on line 2 and ran it on both. Each stack trace pointed at t.ts:2:32, the original line and column, because type stripping blanks the annotations out instead of moving code around. So the "better source maps" story doesn't separate 22 from 24, at least not in anything I could reproduce. An enum fails the same way on both versions with ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX: TypeScript enum is not supported in strip-only mode.

Of everything in this release, this is the change with the most direct effect on daily work. Running a script or a CLI tool straight against .ts source, with no compile step and no ts-node dependency, removes an entire class of tooling from small projects.

The limit is worth stating plainly, because it surprises people: Node strips types, it does not check them. Nothing validates your annotations at runtime, so tsc --noEmit stays in CI regardless. Anything needing real transformation rather than erasure fails by default. On Node 24, enums can be transformed behind --experimental-transform-types, while decorators still need a compiler.

Changelog items that need no code changes

  • V8 engine version bumps: newer JavaScript syntax support and JIT performance improvements apply automatically. No code change needed, no action required beyond upgrading.
  • npm version bump bundled with Node: relevant if you rely on the bundled npm specifically, most projects using a separate package manager (pnpm, Yarn) aren't affected.
  • Internal dependency updates (OpenSSL, ICU, etc.): security and correctness fixes that matter for the runtime's own safety, not something application code interacts with directly.
  • Deprecation warnings for older APIs: they matter if your codebase uses the specifically flagged API, otherwise they're safe to ignore until the next major version actually removes it.

The distinction that matters is between changes you adopt and changes that adopt you. Only a handful of entries in a typical Node changelog need a decision from you; the rest arrive with the binary and improve things without asking. Reading the changelog as a to-do list is how upgrades turn into week-long projects.

None of the four items above belongs in a migration plan. If a V8 bump breaks something, that is a bug report rather than a task, and it will be fixed upstream faster than you can work around it. The two features from this release that do need a decision are the permission model and, for TypeScript projects, whether to drop the loader dependency. Both are reversible in a single commit, which is the useful thing to know before scheduling either. A third item, the built-in SQLite module, has its own measured node:sqlite guide because its edges differ between Node 22, 24 and 26.

Free changes and changes that need code

FeatureRequires code changes?Why it matters
Permission model (--permission)Yes, opt-in flagsRestricts file system and child process access; the network is not covered on 24
require() ESM interopNo, works automatically for common casesRemoves need for dynamic import() workarounds
Native TypeScript executionNo, run .ts files directlyNo ts-node/tsx; same behavior on 22.23.3 and 24.21.0
V8 engine bumpsNoNew JS syntax and JIT gains apply automatically
Bundled npm versionNo, unless using bundled npm directlyIrrelevant if using pnpm/Yarn
Deprecation warningsOnly if using the flagged APISafe to ignore until next major removes it

Only the first row of that table costs you anything, and reading it top to bottom is the fastest way to size an upgrade: five of six features arrive with the binary and need no decision from anyone. Only the first row costs you anything. The permission model is opt-in by design, because turning it on by default would break every application that reads a config file, so it is the one feature here that needs a deliberate decision and some testing.

Plan an upgrade in that order:

  1. Bump the runtime and run the existing test suite unchanged. Rows two through six should need nothing from you.
  2. Delete the workarounds the release made unnecessary: dynamic imports that only existed for interop, ts-node from scripts that just run a file.
  3. Adopt the permission model last, on one service, with flags scoped as tightly as the app tolerates. Expect two or three rounds of widening the paths before the app starts cleanly; that iteration is the point of the exercise rather than a sign it isn't working.

Two of the three features worth adopting cost nothing to try, which is a good argument for doing the upgrade in one sitting rather than scheduling it. Three terms get mixed up in Node upgrade threads and mean different things:

  • Type stripping removes annotations without checking them. That is what Node does natively.
  • Transpilation rewrites syntax into something the runtime understands, which is what enums and decorators still require.
  • Type checking validates the annotations. Node never does this, and tsc --noEmit remains your only source of truth.

Checking compatibility before upgrading

npx npm-check-updates --target minor  # list newer minors; this doesn't check Node 24 support
node --version                          # confirm the target version

Check the engines field across your dependency tree for anything capping at an older Node major, then run the full test suite against Node 24 in CI before merging the version bump. Native modules are the usual holdout when they compile against a specific Node ABI and need a release built for it. better-sqlite3 before version 13 is in that group, while its 13.x line and sharp use Node-API, whose binaries carry across Node majors. A stale ABI-bound module shows up as an install-time build failure, or as a NODE_MODULE_VERSION mismatch when it loads, which is at least a fast signal. Check native dependencies first rather than last, because a missing prebuilt binary can block the upgrade while everything else is ready. Expect that kind of break before one in your own application code.

Reading the full changelog

Reading a Node release's full changelog isn't necessary to stay current, most of what changes in any given major version is internal or transparent. Of the three headline items, only the permission model needs a decision, and its scope is narrower than its reputation: files and child processes, not the network. The other two behaved identically on 22.23.3 in my tests, so check which Node you're really on before crediting 24 with them.

Frequently Asked Questions

Is Node.js 24 an LTS release?
Node.js follows a predictable release cadence: even-numbered major versions (20, 22, 24) become LTS (Long-Term Support) roughly six months after their initial release, once they've had time to stabilize. Node 24 entered LTS status on October 28, 2025, following that same pattern, and moved to Maintenance LTS in October 2026 when Node 26 became the Active LTS line. It still gets security fixes, but a new production deployment expecting multi-year support should target 26 rather than an odd-numbered release meant for early adopters.
Do I need to change my code to benefit from Node 24's V8 engine update?
No, most V8 engine updates (newer JavaScript language features, performance improvements to the JIT compiler) apply automatically just by running on the newer Node version, no code changes required. The features worth deliberately adopting are the ones that require you to actually write different code to use, such as the permission model flags (stable since 22.13, so not new in 24) and updated built-in APIs, not the transparent engine-level improvements that just make existing code faster or support newer syntax automatically.
Should I upgrade a production app straight to Node 24, or wait?
If your app is currently on Node 22 (the previous LTS), upgrading to Node 24 (LTS since October 2025) is a reasonable, low-risk move for most codebases, test your CI suite against it first and check your dependencies' engines field for any that haven't caught up. If you're still on Node 18 or earlier, that's a bigger jump, worth doing but budget more time for testing, because you're crossing the Node 20 and 22 lines on the way.