← All recipes
Moderne licensed

Find deprecated tls.SecurePair and tls.createSecurePair() usage

Recipe IDorg.openrewrite.node.migrate.tls.find-tls-secure-pairArtifact@openrewrite/recipes-nodejs

tls.SecurePair (DEP0043) and tls.createSecurePair() (DEP0064) were deprecated and removed in Node.js 24. Use tls.TLSSocket instead.

Single recipeDEP0064DEP0043Proprietary

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.tls.find-tls-secure-pair

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

mod config recipes npm install @openrewrite/recipes-nodejs