Upgrade to Node.js 24
ProprietaryMoves a project to Node.js 24, running the Node.js 22 upgrade first: raises engines.node, GitHub Actions' node-version, .nvmrc/.node-version and a declared @types/node to 24, never lowering them, marks a typescript too old for that @types/node, and migrates what Node.js 23 and 24 removed or runtime-deprecated. Replaces util.log() (DEP0059), zlib bytesRead (DEP0108), OutgoingMessage._headers (DEP0066), fs.truncate() of a file descriptor (DEP0081), dirent.path (DEP0178), tls.Server.setOptions() (DEP0122), crypto.fips (DEP0093), repl classes called without new (DEP0185), crypto.Cipher/Decipher and the misspelled error code ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED, which Node.js 23 renamed, removes net._setSimultaneousAccepts() (DEP0121), and marks process.assert() (DEP0100), tls.SecurePair/createSecurePair() (DEP0043, DEP0064), timers.active(), _unrefActive(), enroll() and unenroll() (DEP0126, DEP0127, DEP0095, DEP0096), HTTP/2 priority() (DEP0194), and ERR_CRYPTO_SCRYPT_INVALID_PARAMETER, which Node.js 23 removed. Also points the documentation-only _tls_common/_tls_wrap modules at tls (DEP0192), replaces webcrypto.CryptoKey and IntervalHistogram, which @types/node 24 declares as the global CryptoKey and ELDHistogram, and marks the other declarations it drops.
io. moderne. javascript. migrate. node. UpgradeToNode24mod run . --recipe= io. moderne. javascript. migrate. node. UpgradeToNode24Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.