Skip to content

Commit 7cb0b41

Browse files
doc: runtime deprecate util.isSymbol
1 parent 94ed15d commit 7cb0b41

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

doc/api/deprecations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,9 @@ The [`util.isString()`][] API is deprecated.
12651265

12661266
<!-- YAML
12671267
changes:
1268+
- version: REPLACEME
1269+
pr-url: https://github.com/nodejs/node/pull/50487
1270+
description: Runtime deprecation.
12681271
- version:
12691272
- v6.12.0
12701273
- v4.8.6
@@ -1277,7 +1280,7 @@ changes:
12771280
description: Documentation-only deprecation.
12781281
-->
12791282

1280-
Type: Documentation-only
1283+
Type: Runtime
12811284

12821285
The [`util.isSymbol()`][] API is deprecated.
12831286

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ module.exports = {
389389
isNullOrUndefined: deprecate(isNullOrUndefined, 'The `util.isNullOrUndefined API is deprecated.', 'DEP0051'),
390390
isNumber: deprecate(isNumber, 'The `util.isNumber API is deprecated.', 'DEP0052'),
391391
isString: deprecate(isString, 'The `util.isString API is deprecated.', 'DEP0056'),
392-
isSymbol,
392+
isSymbol: deprecate(isSymbol, 'The `util.isSymbol API is deprecated.', 'DEP0057'),
393393
isUndefined,
394394
isRegExp: deprecate(types.isRegExp, 'The `util.isRegExp API is deprecated.', 'DEP0055'),
395395
isObject: deprecate(isObject, 'The `util.isObject API is deprecated.', 'DEP0053'),

0 commit comments

Comments
 (0)