From 30c99bf08f329960206eebd661e6b4a8abfacbc9 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 8aac6d1aa38..ac40c7612db 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1666,6 +1666,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`