Skip to content

Commit 818d490

Browse files
add more
1 parent 9803469 commit 818d490

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

doc/api/deprecations.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,12 @@ Type: End-of-Life
10611061
The `util.isBoolean()` API has been removed. Please use
10621062
`typeof arg === 'boolean'` instead.
10631063

1064+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1065+
1066+
```bash
1067+
npx codemod@latest @nodejs/util-is
1068+
```
1069+
10641070
### DEP0046: `util.isBuffer()`
10651071

10661072
<!-- YAML
@@ -1088,6 +1094,12 @@ Type: End-of-Life
10881094
The `util.isBuffer()` API has been removed. Please use
10891095
[`Buffer.isBuffer()`][] instead.
10901096

1097+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1098+
1099+
```bash
1100+
npx codemod@latest @nodejs/util-is
1101+
```
1102+
10911103
### DEP0047: `util.isDate()`
10921104

10931105
<!-- YAML
@@ -1119,6 +1131,12 @@ Also for stronger approaches, consider using:
11191131
`Date.prototype.toString.call(arg) === '[object Date]' && !isNaN(arg)`.
11201132
This can also be used in a `try/catch` block to handle invalid date objects.
11211133

1134+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1135+
1136+
```bash
1137+
npx codemod@latest @nodejs/util-is
1138+
```
1139+
11221140
### DEP0048: `util.isError()`
11231141

11241142
<!-- YAML
@@ -1145,6 +1163,12 @@ Type: End-of-Life
11451163

11461164
The `util.isError()` API has been removed. Please use `Error.isError(arg)`.
11471165

1166+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1167+
1168+
```bash
1169+
npx codemod@latest @nodejs/util-is
1170+
```
1171+
11481172
### DEP0049: `util.isFunction()`
11491173

11501174
<!-- YAML
@@ -1172,6 +1196,12 @@ Type: End-of-Life
11721196
The `util.isFunction()` API has been removed. Please use
11731197
`typeof arg === 'function'` instead.
11741198

1199+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1200+
1201+
```bash
1202+
npx codemod@latest @nodejs/util-is
1203+
```
1204+
11751205
### DEP0050: `util.isNull()`
11761206

11771207
<!-- YAML
@@ -1199,6 +1229,12 @@ Type: End-of-Life
11991229
The `util.isNull()` API has been removed. Please use
12001230
`arg === null` instead.
12011231

1232+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1233+
1234+
```bash
1235+
npx codemod@latest @nodejs/util-is
1236+
```
1237+
12021238
### DEP0051: `util.isNullOrUndefined()`
12031239

12041240
<!-- YAML
@@ -1226,6 +1262,12 @@ Type: End-of-Life
12261262
The `util.isNullOrUndefined()` API has been removed. Please use
12271263
`arg === null || arg === undefined` instead.
12281264

1265+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1266+
1267+
```bash
1268+
npx codemod@latest @nodejs/util-is
1269+
```
1270+
12291271
### DEP0052: `util.isNumber()`
12301272

12311273
<!-- YAML
@@ -1253,6 +1295,12 @@ Type: End-of-Life
12531295
The `util.isNumber()` API has been removed. Please use
12541296
`typeof arg === 'number'` instead.
12551297

1298+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1299+
1300+
```bash
1301+
npx codemod@latest @nodejs/util-is
1302+
```
1303+
12561304
### DEP0053: `util.isObject()`
12571305

12581306
<!-- YAML
@@ -1280,6 +1328,12 @@ Type: End-of-Life
12801328
The `util.isObject()` API has been removed. Please use
12811329
`arg && typeof arg === 'object'` instead.
12821330

1331+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1332+
1333+
```bash
1334+
npx codemod@latest @nodejs/util-is
1335+
```
1336+
12831337
### DEP0054: `util.isPrimitive()`
12841338

12851339
<!-- YAML
@@ -1306,6 +1360,12 @@ Type: End-of-Life
13061360

13071361
The `util.isPrimitive()` API has been removed. Please use `Object(arg) !== arg` instead.
13081362

1363+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1364+
1365+
```bash
1366+
npx codemod@latest @nodejs/util-is
1367+
```
1368+
13091369
### DEP0055: `util.isRegExp()`
13101370

13111371
<!-- YAML
@@ -1333,6 +1393,12 @@ Type: End-of-Life
13331393
The `util.isRegExp()` API has been removed. Please use
13341394
`arg instanceof RegExp` instead.
13351395

1396+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1397+
1398+
```bash
1399+
npx codemod@latest @nodejs/util-is
1400+
```
1401+
13361402
### DEP0056: `util.isString()`
13371403

13381404
<!-- YAML
@@ -1360,6 +1426,12 @@ Type: End-of-Life
13601426
The `util.isString()` API has been removed. Please use
13611427
`typeof arg === 'string'` instead.
13621428

1429+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1430+
1431+
```bash
1432+
npx codemod@latest @nodejs/util-is
1433+
```
1434+
13631435
### DEP0057: `util.isSymbol()`
13641436

13651437
<!-- YAML
@@ -1387,6 +1459,12 @@ Type: End-of-Life
13871459
The `util.isSymbol()` API has been removed. Please use
13881460
`typeof arg === 'symbol'` instead.
13891461

1462+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1463+
1464+
```bash
1465+
npx codemod@latest @nodejs/util-is
1466+
```
1467+
13901468
### DEP0058: `util.isUndefined()`
13911469

13921470
<!-- YAML
@@ -1414,6 +1492,12 @@ Type: End-of-Life
14141492
The `util.isUndefined()` API has been removed. Please use
14151493
`arg === undefined` instead.
14161494

1495+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1496+
1497+
```bash
1498+
npx codemod@latest @nodejs/util-is
1499+
```
1500+
14171501
### DEP0059: `util.log()`
14181502

14191503
<!-- YAML

doc/api/globals.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ added: v16.0.0
274274
275275
Global alias for [`buffer.atob()`][].
276276

277+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
278+
279+
```bash
280+
npx codemod@latest @nodejs/buffer-atob-btoa
281+
```
282+
277283
## Class: `BroadcastChannel`
278284

279285
<!-- YAML

0 commit comments

Comments
 (0)