Find deprecated tls.SecurePair and tls.createSecurePair() usage
Recipe ID
org.openrewrite.node.migrate.tls.find-tls-secure-pairArtifact@openrewrite/recipes-nodejstls.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-pairIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejs