Swap the hpagent dependency for https-proxy-agent

Proprietary

Replaces hpagent with https-proxy-agent in each package.json that declares it, in whichever dependency section declares it, and updates the lock file to match.

org.openrewrite.node.migrate.hpagent.swap-hpagent-dependency

Optional

The version range to declare for https-proxy-agent. The default keeps hpagent's Node 14 floor; https-proxy-agent 9 and later require Node 20.

mod run . --recipe=org.openrewrite.node.migrate.hpagent.swap-hpagent-dependency

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. org.openrewrite.javascript.ChangeDependency