Skip to content

Commit add0754

Browse files
doc: runtime deprecate util.log
1 parent df300f2 commit add0754

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/50487
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
@@ -397,7 +397,7 @@ module.exports = {
397397
isError: deprecate(isError, 'The `util.isError API is deprecated.', 'DEP0048'),
398398
isFunction: deprecate(isFunction, 'The `util.isFunction API is deprecated.', 'DEP0049'),
399399
isPrimitive: deprecate(isPrimitive, 'The `util.isPrimitive API is deprecated.', 'DEP0054'),
400-
log,
400+
log: deprecate(log, 'The `util.log API is deprecated.', 'DEP0059'),
401401
promisify,
402402
stripVTControlCharacters,
403403
toUSVString,

0 commit comments

Comments
 (0)