Skip to content

Commit

Permalink
doc: add migration paths to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Oct 31, 2023
1 parent 7ada75d commit 0ce06a1
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,8 @@ changes:

Type: Runtime

The [`util.isBoolean()`][] API is deprecated.
The [`util.isBoolean()`][] API is deprecated. Please use
`typeof arg === 'boolean'` instead.

### DEP0046: `util.isBuffer()`

Expand Down Expand Up @@ -1052,7 +1053,8 @@ changes:

Type: Runtime

The [`util.isDate()`][] API is deprecated.
The [`util.isDate()`][] API is deprecated. Please use
`arg instanceof Date` instead.

### DEP0048: `util.isError()`

Expand All @@ -1075,7 +1077,8 @@ changes:

Type: Runtime

The [`util.isError()`][] API is deprecated.
The [`util.isError()`][] API is deprecated. Please use
`arg instanceof Error` instead.

### DEP0049: `util.isFunction()`

Expand All @@ -1098,7 +1101,8 @@ changes:

Type: Runtime

The [`util.isFunction()`][] API is deprecated.
The [`util.isFunction()`][] API is deprecated. Please use
`typeof arg === 'function'` instead.

### DEP0050: `util.isNull()`

Expand All @@ -1121,7 +1125,8 @@ changes:

Type: Runtime

The [`util.isNull()`][] API is deprecated.
The [`util.isNull()`][] API is deprecated. Please use
`arg === null` instead.

### DEP0051: `util.isNullOrUndefined()`

Expand All @@ -1144,7 +1149,8 @@ changes:

Type: Runtime

The [`util.isNullOrUndefined()`][] API is deprecated.
The [`util.isNullOrUndefined()`][] API is deprecated. Please use
`arg === null || arg === undefined` instead.

### DEP0052: `util.isNumber()`

Expand All @@ -1167,7 +1173,8 @@ changes:

Type: Runtime

The [`util.isNumber()`][] API is deprecated.
The [`util.isNumber()`][] API is deprecated. Please use
`typeof arg === 'number'` instead.

### DEP0053: `util.isObject()`

Expand All @@ -1190,7 +1197,8 @@ changes:

Type: Runtime

The [`util.isObject()`][] API is deprecated.
The [`util.isObject()`][] API is deprecated. Please use
`typeof arg === 'object'` instead.

### DEP0054: `util.isPrimitive()`

Expand All @@ -1213,7 +1221,8 @@ changes:

Type: Runtime

The [`util.isPrimitive()`][] API is deprecated.
The [`util.isPrimitive()`][] API is deprecated. Please use
`typeof arg !== 'object' && typeof arg !== 'function'` instead.

### DEP0055: `util.isRegExp()`

Expand All @@ -1236,7 +1245,8 @@ changes:

Type: Runtime

The [`util.isRegExp()`][] API is deprecated.
The [`util.isRegExp()`][] API is deprecated. Please use
`arg instanceof RegExp` instead.

### DEP0056: `util.isString()`

Expand All @@ -1259,7 +1269,8 @@ changes:

Type: Runtime

The [`util.isString()`][] API is deprecated.
The [`util.isString()`][] API is deprecated. Please use
`typeof arg === 'string'` instead.

### DEP0057: `util.isSymbol()`

Expand All @@ -1282,7 +1293,8 @@ changes:

Type: Runtime

The [`util.isSymbol()`][] API is deprecated.
The [`util.isSymbol()`][] API is deprecated. Please use
`typeof arg === 'symbol'` instead.

### DEP0058: `util.isUndefined()`

Expand All @@ -1305,7 +1317,8 @@ changes:

Type: Runtime

The [`util.isUndefined()`][] API is deprecated.
The [`util.isUndefined()`][] API is deprecated. Please use
`arg === undefined` instead.

### DEP0059: `util.log()`

Expand All @@ -1324,7 +1337,8 @@ changes:

Type: Runtime

The [`util.log()`][] API is deprecated.
The [`util.log()`][] API is deprecated. Please use a userland
alternative instead.

### DEP0060: `util._extend()`

Expand All @@ -1343,7 +1357,8 @@ changes:

Type: Runtime

The [`util._extend()`][] API is deprecated.
The [`util._extend()`][] API is deprecated. Please use a userland
alternative instead.

### DEP0061: `fs.SyncWriteStream`

Expand Down

0 comments on commit 0ce06a1

Please sign in to comment.