From 1586e3b014cee6b9597f1b70f1e0a92782b85b81 Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Mon, 22 Sep 2025 20:09:48 -0300 Subject: [PATCH 1/2] lib: remove util.getCallSite This API has been replaced by util.getCallSites(). It was previously experimental with a warning about its usage and its removal in a semver-minor PR. Here it is. --- lib/util.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/util.js b/lib/util.js index aa54afee9d369f..98915c2420ed82 100644 --- a/lib/util.js +++ b/lib/util.js @@ -473,11 +473,6 @@ module.exports = { format, styleText, formatWithOptions, - // Deprecated getCallSite. - // This API can be removed in next semver-minor release. - getCallSite: deprecate(getCallSites, - 'The `util.getCallSite` API has been renamed to `util.getCallSites()`.', - 'ExperimentalWarning'), getCallSites, getSystemErrorMap, getSystemErrorName, From 0cc017a2589b2ce829f994630b4d5ff36303600a Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Wed, 24 Sep 2025 17:48:21 -0300 Subject: [PATCH 2/2] fixup! lib: remove util.getCallSite --- test/parallel/test-util-getcallsite.js | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 test/parallel/test-util-getcallsite.js diff --git a/test/parallel/test-util-getcallsite.js b/test/parallel/test-util-getcallsite.js deleted file mode 100644 index 34b52e9b20a6bb..00000000000000 --- a/test/parallel/test-util-getcallsite.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -require('../common'); -const { getCallSite } = require('node:util'); -const { expectWarning } = require('../common'); - -const warning = 'The `util.getCallSite` API has been renamed to `util.getCallSites()`.'; -expectWarning('ExperimentalWarning', warning); -getCallSite();