From 6797c6e1f89a19650bb51f82b4b953092117fecd Mon Sep 17 00:00:00 2001 From: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:32:39 +0200 Subject: [PATCH] doc: add automated migration info to deprecations PR-URL: https://github.com/nodejs/node/pull/60022 Reviewed-By: Stephen Belanger Reviewed-By: Jacob Smith Reviewed-By: Luigi Pinca --- doc/api/deprecations.md | 72 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index b235bafa30..465095d9cd 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -551,6 +551,12 @@ Type: End-of-Life The `os.tmpDir()` API was deprecated in Node.js 7.0.0 and has since been removed. Please use [`os.tmpdir()`][] instead. +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tmpDir-to-tmpdir)): + +```bash +npx codemod@latest @nodejs/tmpDir-to-tmpdir +``` + ### DEP0023: `os.getNetworkInterfaces()`