Skip to content

Commit 7ada75d

Browse files
doc: runtime deprecate util.log
fix pr url
1 parent e362ca1 commit 7ada75d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/api/deprecations.md

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

13121312
<!-- YAML
13131313
changes:
1314+
- version: REPLACEME
1315+
pr-url: https://github.com/nodejs/node/pull/50488
1316+
description: Runtime deprecation.
13141317
- version: v6.12.0
13151318
pr-url: https://github.com/nodejs/node/pull/10116
13161319
description: A deprecation code has been assigned.
@@ -1319,7 +1322,7 @@ changes:
13191322
description: Documentation-only deprecation.
13201323
-->
13211324

1322-
Type: Documentation-only
1325+
Type: Runtime
13231326

13241327
The [`util.log()`][] API is deprecated.
13251328

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ module.exports = {
392392
isError: deprecate(isError, 'The `util.isError API is deprecated.', 'DEP0048'),
393393
isFunction: deprecate(isFunction, 'The `util.isFunction API is deprecated.', 'DEP0049'),
394394
isPrimitive: deprecate(isPrimitive, 'The `util.isPrimitive API is deprecated.', 'DEP0054'),
395-
log,
395+
log: deprecate(log, 'The `util.log API is deprecated.', 'DEP0059'),
396396
promisify,
397397
stripVTControlCharacters,
398398
toUSVString,

0 commit comments

Comments
 (0)