File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1175,6 +1175,9 @@ The [`util.isNumber()`][] API is deprecated.
11751175
11761176<!-- YAML
11771177changes:
1178+ - version: REPLACEME
1179+ pr-url: https://github.com/nodejs/node/pull/50488
1180+ description: Runtime deprecation.
11781181 - version:
11791182 - v6.12.0
11801183 - v4.8.6
@@ -1187,7 +1190,7 @@ changes:
11871190 description: Documentation-only deprecation.
11881191-->
11891192
1190- Type: Documentation-only
1193+ Type: Runtime
11911194
11921195The [ ` util.isObject() ` ] [ ] API is deprecated.
11931196
Original file line number Diff line number Diff line change @@ -427,7 +427,8 @@ module.exports = {
427427 'The `util.isRegExp` API is deprecated. Please use `arg instanceof RegExp` instead.' ,
428428 'DEP0055' ) ,
429429 isObject : deprecate ( isObject ,
430- 'The `util.isObject` API is deprecated. Please use `typeof arg === "object"` instead.' ,
430+ 'The `util.isObject` API is deprecated. ' +
431+ 'Please use `arg !== null && typeof arg === "object"` instead.' ,
431432 'DEP0053' ) ,
432433 isDate : deprecate ( types . isDate ,
433434 'The `util.isDate API is deprecated. Please use `arg instanceof Error` instead.' ,
You can’t perform that action at this time.
0 commit comments