Skip to content

Commit 94ed15d

Browse files
doc: runtime deprecate util.isString
1 parent d157f09 commit 94ed15d

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
@@ -1242,6 +1242,9 @@ The [`util.isRegExp()`][] API is deprecated.
12421242

12431243
<!-- YAML
12441244
changes:
1245+
- version: REPLACEME
1246+
pr-url: https://github.com/nodejs/node/pull/50487
1247+
description: Runtime deprecation.
12451248
- version:
12461249
- v6.12.0
12471250
- v4.8.6
@@ -1254,7 +1257,7 @@ changes:
12541257
description: Documentation-only deprecation.
12551258
-->
12561259

1257-
Type: Documentation-only
1260+
Type: Runtime
12581261

12591262
The [`util.isString()`][] API is deprecated.
12601263

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ module.exports = {
388388
isNull: deprecate(isNull, 'The `util.isNull API is deprecated.', 'DEP0050'),
389389
isNullOrUndefined: deprecate(isNullOrUndefined, 'The `util.isNullOrUndefined API is deprecated.', 'DEP0051'),
390390
isNumber: deprecate(isNumber, 'The `util.isNumber API is deprecated.', 'DEP0052'),
391-
isString,
391+
isString: deprecate(isString, 'The `util.isString API is deprecated.', 'DEP0056'),
392392
isSymbol,
393393
isUndefined,
394394
isRegExp: deprecate(types.isRegExp, 'The `util.isRegExp API is deprecated.', 'DEP0055'),

0 commit comments

Comments
 (0)