Upgrade to Node.js 10

MSAL

Moves a project to Node.js 10, running the Node.js 8 upgrade first: raises engines.node, GitHub Actions' node-version and .nvmrc/.node-version to 10, never lowering them, and migrates what Node.js 9 and 10 removed or runtime-deprecated. Replaces new Buffer() (DEP0005), worker.suicide (DEP0007), async_hooks.currentId()/triggerId() (DEP0070, DEP0071) and repl.REPL_MODE_MAGIC (DEP0065), and marks asynchronous fs calls without a callback (DEP0013), assert.fail() with several arguments (DEP0094) and the removed domain, Intl, repl, async_hooks, tls, vm and module APIs (DEP0012, DEP0017, DEP0024, DEP0042, DEP0069, DEP0072, DEP0077).

org.openrewrite.javascript.migrate.node.UpgradeToNode10
mod run . --recipe=org.openrewrite.javascript.migrate.node.UpgradeToNode10

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