Upgrade to Node.js 18

Proprietary

Moves a project to Node.js 18, running the Node.js 16 upgrade first: raises engines.node, GitHub Actions' node-version, .nvmrc/.node-version and a declared @types/node to 18, never lowering them, marks a typescript too old for that @types/node, and migrates what Node.js 17 and 18 removed. Rewrites exports folder mappings as subpath patterns (DEP0148) and numeric-string dns.lookup() families as numbers (DEP0153), and marks tls.parseCertString() (DEP0076), dns.lookup() options of the wrong type (DEP0153), async stream implementations (DEP0157) and checks for ERR_INVALID_CALLBACK (DEP0159).

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

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