mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
util: runtime deprecation util.isBoolean
PR-URL: https://github.com/nodejs/node/pull/50488 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
parent
fbb2f891aa
commit
c17a448ca9
@ -988,6 +988,9 @@ instead.
|
||||
|
||||
<!-- YAML
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/50488
|
||||
description: Runtime deprecation.
|
||||
- version:
|
||||
- v6.12.0
|
||||
- v4.8.6
|
||||
@ -1000,7 +1003,7 @@ changes:
|
||||
description: Documentation-only deprecation.
|
||||
-->
|
||||
|
||||
Type: Documentation-only
|
||||
Type: Runtime
|
||||
|
||||
The [`util.isBoolean()`][] API is deprecated.
|
||||
|
||||
|
@ -391,8 +391,10 @@ module.exports = {
|
||||
isArray: deprecate(ArrayIsArray,
|
||||
'The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.',
|
||||
'DEP0044'),
|
||||
isBoolean,
|
||||
isBuffer,
|
||||
isBoolean: deprecate(isBoolean,
|
||||
'The `util.isBoolean` API is deprecated. Please use `typeof arg === "boolean"` instead.',
|
||||
'DEP0045'),
|
||||
isBuffer: deprecate(isBuffer, 'The `util.isBuffer API is deprecated.', 'DEP0046'),
|
||||
isDeepStrictEqual(a, b) {
|
||||
if (internalDeepEqual === undefined) {
|
||||
internalDeepEqual = require('internal/util/comparisons')
|
||||
|
Loading…
Reference in New Issue
Block a user