NodejsIntermediate

Node.js 26 LTS: What's New and Who Should Upgrade

DeveloperHat Team
13 min read

TL;DR

Node.js 26 (Lithium) is the new LTS: Temporal on by default, stable TypeScript, a network-aware permission model. What changed, what breaks, who should move.

Node.js 26.0.0 shipped on May 5, 2026, and became the Active LTS line — codename Lithium — on October 28, 2026. The current patch release is 26.13.1, from the November 2026 security release that patched the 22, 24, and 26 lines together. Node 26 is supported until April 30, 2029, and it is the last release under the old odd/even versioning model: from Node 27 on, the project ships one major a year, with every line entering LTS. If you run Node in production, this is the line to standardize on — the question is only when, and what breaks on the way.

The short version: the headline is Temporal, a real date and time API enabled by default after decades of Date. The rest is consolidation — TypeScript without a build step is stable, require() of ES modules is stable, the permission model now covers the network, and the engine underneath (V8 14.6, Undici 8, npm 11.20.0) is a refresh rather than a rewrite. The removals are the part that bites: a few long-deprecated APIs are gone, and every native addon must be rebuilt for module version 147. What follows is what is new, what was removed, and the decision written down so your team can argue with it.

Node.js 26 — the new LTS: Temporal headlines, the rest is cleanup Temporal on by default V8 14.6 Map upsert · base64 TypeScript stable, no build step require(esm) stable Permissions network controls Undici 8 fetch under the hood Web Storage unflagged, still RC Removed writeHeader · _stream_* 26.0.0 on May 5, 2026 · Active LTS Oct 28, 2026 · supported until Apr 30, 2029.

Temporal is on by default

After 31 years of new Date(), JavaScript gets a real date and time API, and in Node.js 26 it is a global with no flag. Temporal's values are immutable, it does math in any named time zone, and it has a separate type for each kind of value — PlainDate for a calendar day, ZonedDateTime for a moment in a specific place, Instant for an absolute point in time, Duration for a span. The 26.0.0 release notes list it as the headline change, and it is the one feature in this release that changes how new code should be written.

// A delivery date that means the same thing in every time zone
const delivery = Temporal.PlainDate.from('2026-11-27');
const arrival = delivery.add({ days: 3 });
console.log(arrival.toString()); // 2026-11-30 — no month-is-zero trap

// The same instant, seen from two places
const now = Temporal.Now.zonedDateTimeISO('America/New_York');
console.log(now.toString());               // 2026-11-23T03:43:00-05:00[America/New_York]
console.log(now.withTimeZone('Asia/Kolkata').toString());

The code above replaces the two patterns that produce most date bugs in Node services: month-index arithmetic on Date, and string parsing that behaves differently across servers in different time zones. Date still works and is not going anywhere — do not rewrite existing date code that is tested and correct. The rule is simpler: new date logic goes in Temporal, and the next time a Date bug costs you an incident, that call site migrates too. One tooling note: built-in Temporal types need TypeScript 6 or newer with esnext in compilerOptions.lib; older TypeScript versions will not know the global exists.

V8 14.6: small language wins

Node 26 ships V8 14.6 (up from 13.6 in Node 24). There is no single headline language feature — instead, a handful of small additions that remove boilerplate from everyday code:

// Map upsert: the get-or-create-then-update loop, in one call
const counts = new Map();
counts.getOrInsert('orders', 0);
counts.set('orders', counts.get('orders') + 1);
// getOrInsertComputed(key, fn) computes the default lazily

// Uint8Array now converts to and from base64 and hex directly
const bytes = Uint8Array.fromBase64('aGVsbG8=');
console.log(bytes.toHex()); // 68656c6c6f

JSON.stringify() is also faster for plain objects, with no code change needed. None of this justifies an upgrade on its own. It is the kind of thing you notice three months after upgrading, when a code review stops flagging the old patterns. The V8 upgrade is also the reason native addons must be rebuilt: NODE_MODULE_VERSION rose to 147, and an addon compiled for Node 24 will refuse to load on 26.

TypeScript without a build step — stable

Type stripping is stable in Node 26, and it is the feature most likely to change how small services are built. Node runs .ts, .mts, and .cts files directly by replacing type annotations with whitespace. No tsc step, no tsx, no build script for a script:

# server.ts runs directly — no compile step
node server.ts

// server.ts — erasable syntax only
import { createServer } from 'node:http';

type Message = { text: string };

const message: Message = { text: 'ok' };

createServer((_req, res) => {
  res.end(message.text);
}).listen(3000);

The limits are the honest part, and they are the same limits as in Node 24: only erasable syntax works — no enums, no namespaces with runtime code, no parameter properties, no import aliases. Type-only imports need the type keyword, .tsx is unsupported, tsconfig.json is ignored, and Node does no type checking at all. The --experimental-transform-types flag, which used to enable the non-erasable syntax, is removed in Node 26. If your code uses enums or parameter properties, you still need a tool like tsx — Node's built-in runner is for the common case, not for every codebase. Set erasableSyntaxOnly in your tsconfig.json and the compiler will keep you inside what Node can run. Our hexagonal architecture guide shows the same discipline on the Node side: the framework and the runtime both reward explicit, boring structure.

require(esm) is stable

require() of ES modules is stable in Node 26 (it stabilized in 25.4, and 26 inherits it). A CommonJS file can now require an ESM-only package without the dynamic import() dance:

// app.cjs — a CommonJS file requiring an ESM-only package
const { format } = require('date-fns'); // ESM-only since v4 — works now

This matters most at the boundary between old and new code: a service that is still CommonJS can adopt an ESM-only dependency without converting the whole codebase first, and a library author can ship ESM-only without cutting off CommonJS consumers. It does not change the recommendation for new code — write ESM, use import — it just removes the migration cliff that made teams postpone the move.

The permission model now covers the network

The permission model is stable — it stopped being experimental in v22.13.0 and v23.5.0 — and Node 26 extends it to the network. With --permission on, a process gets nothing unless you grant it: file system, network, child processes, workers, and native addons are all denied by default, and each is allowed back with a flag. The permissions documentation lists the full set; the two flags that matter for a service are --allow-net and --allow-fs-read:

# Nothing leaves this process unless the flags say so
node --permission --allow-fs-read=./ --allow-net app.js

// A dependency that phones home now fails loudly instead of silently
// Error: Access to this API has been restricted
//     at node:internal/modules/cjs/loader (ERR_ACCESS_DENIED)

The honest limit: this is a coarse sandbox, not a security boundary. It does not inherit to worker threads, and a determined attacker with code execution inside the process has other ways out. What it does well is turn a supply-chain surprise into a loud, early failure — a compromised dependency that tries to open a socket or read /etc/passwd gets ERR_ACCESS_DENIED in your logs instead of exfiltrating data. The practical adoption path is to run it in CI first, on your test suite, and add the flags your own code needs; the flags your dependencies need will show up as failures, which is the point. Turn it on for CLIs and build scripts first — services with broad file and network access need a longer allow-list and a slower rollout.

Node.js 26, layer by layer — the new API sits on a stable engine Your code — TypeScript, erasable syntax · require(esm) · no build step JavaScript — Temporal · Map.getOrInsert · Uint8Array base64/hex Node APIs — fetch (Undici 8) · Web Storage (RC) · built-in test runner Security — permission model · --allow-net · --allow-addons Runtime — V8 14.6 · libuv · NODE_MODULE_VERSION 147 (rebuild addons) The upgrade value is in the top two layers; the bottom layer is the rebuild you must not skip.

Undici 8 and the quieter engine changes

Undici, the HTTP client behind the global fetch(), moves to 8.0.2 in Node 26. There is no API change to learn — fetch() behaves the same — but connection pooling and retry behavior are more consistent under load, and a few memory leaks in long-lived clients are fixed. If your service makes many outbound HTTP calls, this is a free reliability win; if it does not, you will never notice it.

Web Storage joins the unflagged set: localStorage and sessionStorage no longer need a flag in Node 26, though the API is still a release candidate — the last experimental stage before stable. It is useful for CLIs and scripts that want a small persistent store without a dependency; it is not a replacement for a database in a service, and the release-candidate label means the API can still change before it stabilizes.

What was removed — check before you upgrade

Node 26 is a cleanup release as much as a feature release, and the removals are the part that breaks upgrades. Check these before you move:

  • http.writeHeader is removed. Any middleware still calling it will crash on startup. Search for it; it has been deprecated for years, but it still shows up in old middleware.
  • *The _stream_ internal modules are removed. Code importing stream internals by their underscore paths breaks. Import from node:stream instead.
  • module.register() is runtime-deprecated. Module customization hooks still work, but they now emit a runtime deprecation warning — treat the warning as a migration notice, not noise.
  • Native addons must be rebuilt. NODE_MODULE_VERSION is 147. Rebuild in CI; do not assume a prebuilt binary from Node 24 will load.
  • Building from source needs GCC 13.2 or newer, and Python 3.9 support is dropped. This only affects teams that compile Node themselves, but if your Docker image builds Node from source, the base image needs to move first.
  • Run the upgrade check in CI before you touch production: node --throw-deprecation turns the deprecation warnings into thrown errors, which catches module.register() and other deprecated calls in your test suite instead of in a deploy.

    Upgrade paths, compared

    Your situationMoveEffortWhat you get first
    Node 25 (short-term)Move to 26 nowA version bump and a test runA supported runtime — your line is already end-of-life
    Node 24 LTSMove on the next maintenance windowA version bump, a test run, then adopt featuresTemporal, stable TypeScript, network permissions
    Node 22 LTSMove on the next maintenance windowSame bump, plus a native-addon rebuildEverything above; your line ends April 30, 2027
    Node 20 or olderMigrate, do not bumpA migration project: removed APIs, dependency versionsA supported line and three years of runway

    Two mechanical notes apply to every row. First, check the release schedule before you plan: Node 26 is Active LTS until October 20, 2027, then Maintenance until April 30, 2029; Node 24 gets security fixes only until April 30, 2028; Node 22 until April 30, 2027. Second, run the full test suite on the new runtime before adopting any new feature; the upgrade and the adoption are two separate changes and should be verified separately. The same discipline applies on the JVM side — our Java 25 guide makes the same argument for the runtime underneath Spring Boot.

    Decide by what runs production today, not by release notes What runs prod today? check node --version Node 25 already end-of-life Node 22–24 LTS supported, not urgent Node 20 or older end-of-life Move now adopt Temporal as you go Next window patch first, adopt later Migrate a project, not a bump Node 26 LTS runs until Apr 30, 2029 — the urgency is your current line, not the new one.

    Recommendation

    Move to Node.js 26 as your next LTS, on the timetable your current version dictates: now if you are on Node 25 or older, on the next maintenance window if you are on Node 22 or 24. Adopt Temporal for new date logic and type stripping for new scripts and CLIs as you touch code; leave the permission model for a CI-first rollout, and rebuild native addons in the same change.

    Architecture Decision

    >

    Decision: Standardize on Node.js 26 LTS; adopt Temporal for new date logic and built-in TypeScript execution for scripts and CLIs; roll out the permission model CI-first; rebuild native addons in the same change.

    >

    Context: The team runs Node 22 or 24 in production, writes TypeScript compiled with tsc, handles dates with Date plus a library, and has no runtime sandboxing. The next LTS is available with support through April 30, 2029, and Node 26 is the last release under the old versioning model — the next line, Node 27, starts a one-major-a-year schedule.

    >

    Options considered: (a) Move to Node 26 now and adopt Temporal and type stripping as code is touched. (b) Stay on Node 24 until its support window narrows. (c) Move to Node 26 and adopt the permission model for all services immediately.

    >

    Why this one: Option (a) buys a supported line, a real date API, and a simpler TypeScript story with no rewrite and no sandbox risk. Option (b) saves a version bump now and pays it later, when the jump is a bigger one and the addon rebuild lands in the same window as the next LTS. Option (c) bets production services on an allow-list you have not measured yet.

    >

    What it costs you:* A version bump and a full test run; a native-addon rebuild for module version 147; a grep for writeHeader and _stream_ imports; a small learning cost for Temporal's type system; the discipline to leave the permission model in CI until the allow-list is known.

    >

    When to reverse it: If a dependency you need has no Node 26-compatible release, or if a measured regression appears in staging (throughput, memory, or startup), hold that service on Node 24 and revisit at the next patch release. The reversal trigger is a measured failure, not discomfort with the new APIs.

    When NOT to upgrade yet

    Do not move a service to Node 26 this week if it depends on a native addon with no prebuilt binary for module version 147 and no one available to rebuild it — check the addon's own compatibility statement first, and hold that service on Node 24 while the vendor catches up. Do not upgrade in the same change as a framework migration or a major refactor; the runtime move is one change, and it deserves its own verification. And do not turn on the permission model for a production service because the flag exists — run it in CI until the allow-list is complete, or the first deploy will fail on a socket your code legitimately opens. The LTS exists precisely so you do not have to chase every release; Node 26 is the release to land on, and landing on it calmly is the whole point.

    For the bigger picture on how this runtime fits the services on top of it, our modular monolith guide covers the architecture decision that most teams should settle before they argue about versions — and our Spring Boot 4.2 guide shows the same LTS thinking on the JVM side, where the runtime and the framework move together.

    Why This Matters

    Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

    Trade-offs to Consider

    Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

    When NOT to Use This

    Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

    Decision Framework

    Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

    Share this articleShare on XShare on LinkedIn

    Keep the decision frameworks coming

    One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.