From bc82a84e0f4cb59282f0593a773fe0b76d82f9a8 Mon Sep 17 00:00:00 2001 From: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com> Date: Sat, 22 Nov 2025 10:35:58 +0100 Subject: [PATCH] doc: add additional codemods for deprecation --- doc/api/buffer.md | 12 ++++++++++++ doc/api/deprecations.md | 24 ++++++++++++++++++++++++ doc/api/globals.md | 8 +++++++- doc/api/repl.md | 6 ++++++ doc/api/util.md | 6 ++++++ 5 files changed, 55 insertions(+), 1 deletion(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 66b04675641a42..981c053ac40f0c 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -5189,6 +5189,12 @@ For code running using Node.js APIs, converting between base64-encoded strings and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/buffer-atob-btoa): + +```bash +npx codemod@latest @nodejs/buffer-atob-btoa +``` + ### `buffer.btoa(data)` ### DEP0187: Passing invalid argument types to `fs.existsSync` diff --git a/doc/api/globals.md b/doc/api/globals.md index fee0236de5004c..e37d12389bf607 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -274,7 +274,7 @@ added: v16.0.0 Global alias for [`buffer.atob()`][]. -An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)): +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/buffer-atob-btoa)): ```bash npx codemod@latest @nodejs/buffer-atob-btoa @@ -298,6 +298,12 @@ added: v16.0.0 Global alias for [`buffer.btoa()`][]. +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/buffer-atob-btoa)): + +```bash +npx codemod@latest @nodejs/buffer-atob-btoa +``` + ## `clearImmediate(immediateObject)`