← All recipes
Moderne licensed

Replace deprecated util._extend() with Object.assign()

Recipe IDorg.openrewrite.node.migrate.util.replace-util-extendArtifact@openrewrite/recipes-nodejs

Replace deprecated util._extend(target, source) calls with Object.assign(target, source) which preserves the mutation behavior.

Single recipeDEP0060Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.node.migrate.util.replace-util-extend

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-nodejs