Upgrade to Node.js 20

Proprietary

Migrate deprecated APIs for Node.js 20 compatibility. Includes all migrations from Node.js 18, plus Node 20 deprecations.

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

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. Upgrade to Node.js 18
  5. Coerce process.exit() and process.exitCode to integer
  6. Find deprecated crypto.DEFAULT_ENCODING usage