Languages

How to Upgrade to Node.js 26 LTS: Breaking Changes Checklist

Node.js 26 entered LTS on October 28. Here are the five changes that can break a Node 24 app and how to find them first.

Tyler Brennan

Runtime & Language Tooling Writer

Published 7 min read
Lines of programming code displayed on a computer screen
On this page 6 sections

The Node.js 26 LTS upgrade, codenamed Lithium, is usually a short job from Node 24. Five changes can bite: the removed _stream_* modules, the removed writeHeader() alias, the removed --experimental-transform-types flag, a runtime warning on module.register(), and a new native addon ABI. Rebuild addons, search for those APIs, then roll out in stages.

This guide is for teams that run Node.js services, build pipelines, or serverless functions on Node 24 or 22 and want a concrete plan. It covers what changed, which APIs to search for, how to roll out safely, and what the new release schedule means for your next upgrade. Backtrace tests runtime upgrades against real codebases, so each step below names the failure you will see first.

Release notes bury the breaking changes under hundreds of commits. The list that matters to application code is short, and most of it can be found with a single search.

Is Node.js 26 LTS Ready for Production?

Yes. Node.js 26 entered long-term support on October 28, 2026, with the 26.13.0 "Lithium" release. It adds no code changes over 26.12.1 beyond LTS metadata, and it will receive updates through the end of April 2029. Teams that wait for LTS can start planning now.

A tablet and a desk calendar used for planning a schedule

The Node.js 26.13.0 release notes confirm the LTS transition and the support window. The line itself first shipped as Current on May 5, 2026, so it has had six months of real-world use before the promotion.

The headline features are not what breaks. According to the Node.js 26.0.0 announcement, the Temporal API is now enabled by default, V8 moves to version 14.6, and Undici, the HTTP client behind fetch, moves to 8.0.2. All three are additive, though code that feature-detects Temporal to decide whether to load a polyfill will now take the native path.

Teams on Node 22 skip a major line. The changes listed for 26 stack on top of whatever 24 changed, so read the Node 24 release notes too. Treat a 22-to-26 move as two upgrades tested in one pass, and give it more time than a 24-to-26 move.

Which Breaking Changes Will Affect Your Code?

Five changes can affect application code when you move from Node 24. The table lists each change, how it shows up, and the fix.

Which Breaking Changes Will Affect Your Code?
ChangeWhat you will seeFix
_stream_* modules removedModule not found on importImport from the public node:stream module
http.Server.prototype.writeHeader() removedTypeError at the call siteCall writeHead() instead
--experimental-transform-types removedStartup failure on the unknown flag, or .ts files with enums failingUse erasable syntax only, or add a compile step
module.register() runtime-deprecatedDeprecation warning at startupPlan a move to the supported hooks API
Native addon ABI bumped to 147Addon fails to loadReinstall or rebuild every compiled dependency

The removals come straight from the same release announcement. The legacy _stream_wrap, _stream_readable, _stream_writable, _stream_duplex, _stream_transform, and _stream_passthrough modules are fully removed, and so is http.Server.prototype.writeHeader(). Older stream helper packages are the likeliest callers, so check your dependency tree as well as your own code.

TypeScript users should read the transform-types removal closely. Type stripping handles files that use only erasable syntax, meaning annotations and interfaces that can be deleted without changing runtime behavior. Enums and namespaces generate code, so they need a transform. If your scripts rely on them, compile with tsc or a bundler in your build step, or rewrite the enum as a plain constant object.

The native addon change deserves extra care. The commit log lists NODE_MODULE_VERSION moving to 147, and a binary built against an older ABI will refuse to load. Packages with compiled .node files, such as image processing or database drivers, must be installed again on Node 26.

Two smaller items matter for specific teams. Reading localStorage without a backing file now returns undefined. Source builds now require GCC 13.2, and the build tooling drops Python 3.9. If you compile Node yourself, update the build image before anything else.

Undici deserves a line in the test plan as well. It is the HTTP client behind fetch, and a new major version can change edge-case behavior around redirects, timeouts, and error types. Run your HTTP integration tests with extra attention, and watch the error logs for new exception messages after the canary starts.

Do not rewrite date handling during this upgrade. Temporal being on by default is a reason to experiment in new code, not to migrate working Date code in the same change. Keep the upgrade and the refactor in separate deploys, so a regression has only one possible cause.

How Do You Find Removed APIs Before They Fail?

Search your code and your dependencies for the removed names, run the test suite under Node 26 in CI, and start the app with the deprecation tracer on. A search finds your own calls. A CI run on Node 26 finds dependencies that still call removed internals, which is where most surprises hide.

A keyboard with a screen showing a data transfer complete message

Start with the commands below. The first line searches your source and build files, and the second repeats the search inside installed packages.

text
grep -rnE "_stream_|writeHeader\(|experimental-transform-types|module\.register\(" src scripts package.json Dockerfile
grep -rnE "_stream_|writeHeader\(" node_modules --include=*.js -l
node --trace-deprecation dist/server.js

To find which package pulls in an old dependency, run npm ls with the package name. The output shows the chain from your package.json down to the offender, which tells you whether a direct upgrade or an override is the right fix.

Treat every hit in node_modules as a task for the package's maintainer or for a version bump. A dependency that still requires _stream_readable will fail on its first import, so the fix is usually a newer release of that package. Pin it, replace it, or patch it before the cutover.

The deprecation tracer helps with the quieter change. Code that calls module.register() keeps working for now but prints a warning. A warning that nobody reads today becomes a failure in a later major release, so open a ticket the day you see it.

How to Roll Out the Node.js 26 LTS Upgrade Without Surprises

Move in stages so a failure shows up in a test environment rather than in production. The sequence below fits most services.

  1. Add Node 26 to the CI matrix beside Node 24 and fix whatever fails.
  2. Rebuild the container image from a Node 26 base with a clean npm ci, and never copy node_modules from a Node 24 build stage.
  3. Deploy to staging and run the full integration suite.
  4. Send a small share of production traffic to the new version.
  5. Compare error rate, memory, and tail latency against the Node 24 fleet.
  6. Promote the rest of the fleet and pin the version in .nvmrc and the engines field.
A team collaborating in a meeting around a table

Keep the Node 24 image tagged and deployable for at least one release cycle. A rollback should be a configuration change, not a rebuild. On serverless platforms, the runtime version is a per-function setting, so upgrade the lowest-traffic functions first and confirm the platform lists Node 26 before you plan around it.

A fast post-deploy check keeps step four honest. Backtrace's piece on how smoke tests catch broken deployments describes the small set of requests worth running after every rollout. Include one request that exercises each native addon, because a failed addon load can hide until that code path runs.

The same staged approach works for other runtimes. Backtrace's Python 3.15 upgrade checklist follows a similar order of search, test, canary, and promote.

What Does the New Release Schedule Mean for This Upgrade?

Node.js 26 is the last line under the old two-releases-a-year model. Per the Node.js release schedule announcement, Node 27 begins alpha testing in October 2026, ships as 27.0.0 in April 2027, and enters LTS in October 2027. Every release will become LTS from then on.

That has two practical effects. First, each line gets 30 months of LTS support, so a team that upgrades once per LTS sees little else change. Second, library authors should add the alpha channel to CI early, because testing on LTS alone means bugs are reported after they reach users.

Backtrace's analysis of the Node.js release schedule change goes deeper on how to plan around one release a year. For this upgrade, the point is simple. Moving to 26 now leaves you a full year before the first LTS line of the new model.

None of this forces a same-week cutover. The point of an LTS line is that you can take the time to test properly, so schedule the work, run the checks, and move when the numbers look boring.

What to Do This Week

Run the search commands against your repositories today. Add Node 26 to your CI matrix, fix what fails, and schedule the staging rollout. Many teams will find only a few hits, and the native addon rebuild will account for most of the work.

Keep the scope tight. The upgrade is a runtime change, so avoid mixing in dependency major bumps or refactors. When something fails on Monday, you want exactly one suspect.

At Backtrace, our rule for runtime upgrades is to read the removals before the features. Features rarely break a deploy, and removals almost always do.

Is Node.js 26 LTS stable enough for production?
Yes. Node.js 26 entered long-term support on October 28, 2026, with the 26.13.0 Lithium release, after about six months as the Current line. It will receive updates through the end of April 2029. Still test your own dependencies first, since the breaking changes land in the packages you install.
Do I need to rebuild native addons when moving to Node.js 26?
Yes. The native module version moved to 147, so a binary compiled for an older Node line will not load. Reinstall dependencies with a clean npm ci or run npm rebuild on Node 26. In Docker builds, never copy node_modules from a Node 24 stage into the Node 26 image.
What replaces --experimental-transform-types in Node.js 26?
Nothing replaces it inside Node. The flag was removed, so TypeScript files that use enums or namespaces need a compile step with tsc or a bundler. Files that use only erasable syntax, such as type annotations and interfaces, can keep running through Node's built-in type stripping without that flag.
Should I start using the Temporal API after upgrading to Node.js 26?
You can, since Temporal is enabled by default in Node 26 with no flag. Use it in new code first. Avoid rewriting working Date code during the runtime upgrade itself, because a combined change makes any regression harder to trace. Check your database drivers and serializers before passing Temporal objects across boundaries.

Written by

Tyler Brennan

Runtime & Language Tooling Writer

11+ years experience

Tyler spent nine years as a full-stack engineer at a mid-sized e-commerce company, where he owned the Node.js services and the build pipeline behind them. He ran four major runtime upgrades there and still keeps the habit of reading changelogs for what gets removed before what gets added. At Backtrace he covers language releases, package managers and the local tooling that decides how fast a team moves. His rule is simple: an upgrade guide is only useful if it lists the failure you will see first and the command that finds it.

Credentials

  • B.S., Computer Science, University of Wisconsin-Madison
  • Former Senior Full-Stack Engineer, e-commerce platform (2014-2023)
  • OpenJS Foundation Node.js Application Developer certification