Upgrade to Node.js 12

Proprietary

Moves a project to Node.js 12, running the Node.js 10 upgrade first: raises engines.node, GitHub Actions' node-version, .nvmrc/.node-version and a declared @types/node to 12, never lowering them, marks a typescript too old for that @types/node, and migrates what Node.js 11 and 12 removed. Replaces util.print(), util.puts(), util.debug() and util.error() where the output stays the same (DEP0026–DEP0029), os.getNetworkInterfaces() (DEP0023), Atomics.wake() and node --debug/node debug in package.json scripts (DEP0062, DEP0068), and marks the removed crypto, fs, tls, net and async_hooks APIs (DEP0010, DEP0011, DEP0021, DEP0061, DEP0098, DEP0105, DEP0107, DEP0114).

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

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