← All recipes
Moderne licensed

Find deprecated timers.active() and timers._unrefActive() usage

Recipe IDorg.openrewrite.node.migrate.timers.find-timers-activeArtifact@openrewrite/recipes-nodejs

timers.active() (DEP0126) and timers._unrefActive() (DEP0127) were deprecated and removed in Node.js 24. Use timeout.refresh() instead.

Single recipeDEP0126DEP0127Proprietary

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.timers.find-timers-active

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

mod config recipes npm install @openrewrite/recipes-nodejs