Commit 5478e11 1 parent b05b1dd commit 5478e11 Copy full SHA for 5478e11
File tree 2 files changed +6
-2
lines changed
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.
1175
1175
1176
1176
<!-- YAML
1177
1177
changes:
1178
+ - version: REPLACEME
1179
+ pr-url: https://github.com/nodejs/node/pull/50488
1180
+ description: Runtime deprecation.
1178
1181
- version:
1179
1182
- v6.12.0
1180
1183
- v4.8.6
@@ -1187,7 +1190,7 @@ changes:
1187
1190
description: Documentation-only deprecation.
1188
1191
-->
1189
1192
1190
- Type: Documentation-only
1193
+ Type: Runtime
1191
1194
1192
1195
The [ ` util.isObject() ` ] [ ] API is deprecated.
1193
1196
Original file line number Diff line number Diff line change @@ -427,7 +427,8 @@ module.exports = {
427
427
'The `util.isRegExp` API is deprecated. Please use `arg instanceof RegExp` instead.' ,
428
428
'DEP0055' ) ,
429
429
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.' ,
431
432
'DEP0053' ) ,
432
433
isDate : deprecate ( types . isDate ,
433
434
'The `util.isDate API is deprecated. Please use `arg instanceof Error` instead.' ,
You can’t perform that action at this time.
0 commit comments