From 3b92be2fb8a2d44c128e99b47cc9cd7ea9e649e3 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Mon, 6 Oct 2025 15:14:18 -0300 Subject: [PATCH] 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. PR-URL: https://github.com/nodejs/node/pull/59980 Reviewed-By: Chengzhong Wu Reviewed-By: James M Snell --- lib/util.js | 5 ----- test/parallel/test-util-getcallsite.js | 9 --------- 2 files changed, 14 deletions(-) delete mode 100644 test/parallel/test-util-getcallsite.js diff --git a/lib/util.js b/lib/util.js index aa54afee9d3..98915c2420e 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, diff --git a/test/parallel/test-util-getcallsite.js b/test/parallel/test-util-getcallsite.js deleted file mode 100644 index 34b52e9b20a..00000000000 --- 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();