Skip to content

Commit df300f2

Browse files
doc: runtime deprecate util.isUndefined
1 parent 7cb0b41 commit df300f2

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

12891289
<!-- YAML
12901290
changes:
1291+
- version: REPLACEME
1292+
pr-url: https://github.com/nodejs/node/pull/50487
1293+
description: Runtime deprecation.
12911294
- version:
12921295
- v6.12.0
12931296
- v4.8.6
@@ -1300,7 +1303,7 @@ changes:
13001303
description: Documentation-only deprecation.
13011304
-->
13021305

1303-
Type: Documentation-only
1306+
Type: Runtime
13041307

13051308
The [`util.isUndefined()`][] API is deprecated.
13061309

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ module.exports = {
390390
isNumber: deprecate(isNumber, 'The `util.isNumber API is deprecated.', 'DEP0052'),
391391
isString: deprecate(isString, 'The `util.isString API is deprecated.', 'DEP0056'),
392392
isSymbol: deprecate(isSymbol, 'The `util.isSymbol API is deprecated.', 'DEP0057'),
393-
isUndefined,
393+
isUndefined: deprecate(isUndefined, 'The `util.isUndefined API is deprecated.', 'DEP0058'),
394394
isRegExp: deprecate(types.isRegExp, 'The `util.isRegExp API is deprecated.', 'DEP0055'),
395395
isObject: deprecate(isObject, 'The `util.isObject API is deprecated.', 'DEP0053'),
396396
isDate: deprecate(types.isDate, 'The `util.isDate API is deprecated.', 'DEP0047'),

0 commit comments

Comments
 (0)