Upgrade to Node.js 26

Proprietary

Moves a project to Node.js 26, running the Node.js 24 upgrade first: raises engines.node, GitHub Actions' node-version, .nvmrc/.node-version and a declared @types/node to 26, never lowering them, marks a typescript too old for that @types/node, and migrates what Node.js 25 and 26 removed or runtime-deprecated. Replaces SlowBuffer (DEP0030), the RSA-PSS hash/mgf1Hash options (DEP0154), fs.F_OK and the other access constants (DEP0176), ChildProcess._channel (DEP0129), ServerResponse.writeHeader() (DEP0063) and require('_stream_readable') and its siblings (DEP0193), removes process.on('multipleResolves') listeners (DEP0160), and marks the dgram private APIs (DEP0112), worker.terminate() with a callback (DEP0132), ReadStream.open()/WriteStream.open() (DEP0135), fs.rmdir() with recursive (DEP0147), PerformanceEntry kind/flags (DEP0152), assert.CallTracker (DEP0173), _stream_wrap (DEP0125), GCM deciphers without authTagLength (DEP0182), ecdh.setPublicKey() (DEP0031), SHAKE digests without outputLength (DEP0198), Duplex.toWeb() with type (DEP0201), CryptoKey arguments to node:crypto (DEP0203, DEP0204) and module.register() (DEP0205). Also replaces the types @types/node 26 renamed and the zlib.Z_* constants it no longer declares with zlib.constants, and marks the other declarations it drops.

io.moderne.javascript.migrate.node.UpgradeToNode26
mod run . --recipe=io.moderne.javascript.migrate.node.UpgradeToNode26

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.