From 522a28e648e87936bcc51e033cb78b5ba47d8cd2 Mon Sep 17 00:00:00 2001 From: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com> Date: Sat, 25 Jul 2026 06:59:02 +0200 Subject: [PATCH] doc: deprecation add more codemod Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/63175 Reviewed-By: Trivikram Kamat Reviewed-By: Aviv Keller --- doc/api/deprecations.md | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 5b2fe9c94de..334b94f6bb8 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1680,6 +1680,12 @@ Type: End-of-Life The `tls.createSecurePair()` API was deprecated in documentation in Node.js 0.11.3. Users should use `tls.Socket` instead. +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tls-create-secure-pair-to-tls-socket)): + +```bash +npx codemod @nodejs/tls-create-secure-pair-to-tls-socket +``` + ### DEP0065: `repl.REPL_MODE_MAGIC` and `NODE_REPL_MODE=magic`