Upgrade to Node.js 18

Proprietary

Migrate deprecated APIs for Node.js 18 compatibility. Addresses deprecations that are end-of-life in Node 17 and 18, Node 18 runtime deprecations, and runtime deprecations from earlier versions.

org.openrewrite.node.migrate.upgrade-node-18
mod run . --recipe=org.openrewrite.node.migrate.upgrade-node-18

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

Recipe list

It runs these recipes, in this order.

  1. Increase Node.js engine version
  2. Increase Node.js version in GitHub Actions
  3. org.openrewrite.nodejs.migrate.UpgradeNodeVersion
  4. Replace exports folder mappings with subpath patterns
  5. Find deprecated tls.parseCertString() usage
  6. Find dns.lookup() options of the wrong type, and fix numeric strings
  7. Find async stream implementation methods
  8. Find removed ERR_INVALID_CALLBACK error code usage
  9. Find process.on('multipleResolves') listeners
  10. Replace deprecated Buffer() constructor with Buffer.alloc() and Buffer.from()