Replace deprecated node:_tls_common and node:_tls_wrap with node:tls
Recipe ID
org.openrewrite.node.migrate.tls.replace-internal-modulesArtifact@openrewrite/recipes-nodejsReplace deprecated internal TLS module imports require('node:_tls_common') and require('node:_tls_wrap') with the public node:tls module.
Single recipeDEP0192Proprietary
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.replace-internal-modulesIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejs