You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+123-3Lines changed: 123 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -551,7 +551,7 @@ Type: End-of-Life
551
551
The `os.tmpDir()` API was deprecated in Node.js 7.0.0 and has since been
552
552
removed. Please use [`os.tmpdir()`][] instead.
553
553
554
-
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tmpDir-to-tmpdir)):
554
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tmpdir-to-tmpdir)):
555
555
556
556
```bash
557
557
npx codemod@latest @nodejs/tmpDir-to-tmpdir
@@ -688,10 +688,10 @@ Type: End-of-Life
688
688
689
689
`util.debug()` has been removed. Please use [`console.error()`][] instead.
690
690
691
-
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-debug-to-console-error)):
691
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-print-to-console-log)):
This can also be used in a `try/catch` block to handle invalid date objects.
1121
1133
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
+
1122
1140
### DEP0048: `util.isError()`
1123
1141
1124
1142
<!-- YAML
@@ -1145,6 +1163,12 @@ Type: End-of-Life
1145
1163
1146
1164
The `util.isError()` API has been removed. Please use `Error.isError(arg)`.
1147
1165
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
+
1148
1172
### DEP0049: `util.isFunction()`
1149
1173
1150
1174
<!-- YAML
@@ -1172,6 +1196,12 @@ Type: End-of-Life
1172
1196
The `util.isFunction()` API has been removed. Please use
1173
1197
`typeof arg === 'function'` instead.
1174
1198
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
+
1175
1205
### DEP0050: `util.isNull()`
1176
1206
1177
1207
<!-- YAML
@@ -1199,6 +1229,12 @@ Type: End-of-Life
1199
1229
The `util.isNull()` API has been removed. Please use
1200
1230
`arg === null` instead.
1201
1231
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
+
1202
1238
### DEP0051: `util.isNullOrUndefined()`
1203
1239
1204
1240
<!-- YAML
@@ -1226,6 +1262,12 @@ Type: End-of-Life
1226
1262
The `util.isNullOrUndefined()` API has been removed. Please use
1227
1263
`arg === null || arg === undefined` instead.
1228
1264
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
+
1229
1271
### DEP0052: `util.isNumber()`
1230
1272
1231
1273
<!-- YAML
@@ -1253,6 +1295,12 @@ Type: End-of-Life
1253
1295
The `util.isNumber()` API has been removed. Please use
1254
1296
`typeof arg === 'number'` instead.
1255
1297
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
+
1256
1304
### DEP0053: `util.isObject()`
1257
1305
1258
1306
<!-- YAML
@@ -1280,6 +1328,12 @@ Type: End-of-Life
1280
1328
The `util.isObject()` API has been removed. Please use
1281
1329
`arg && typeof arg === 'object'` instead.
1282
1330
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
+
1283
1337
### DEP0054: `util.isPrimitive()`
1284
1338
1285
1339
<!-- YAML
@@ -1306,6 +1360,12 @@ Type: End-of-Life
1306
1360
1307
1361
The `util.isPrimitive()` API has been removed. Please use `Object(arg) !== arg` instead.
1308
1362
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
+
1309
1369
### DEP0055: `util.isRegExp()`
1310
1370
1311
1371
<!-- YAML
@@ -1333,6 +1393,12 @@ Type: End-of-Life
1333
1393
The `util.isRegExp()` API has been removed. Please use
1334
1394
`arg instanceof RegExp` instead.
1335
1395
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
+
1336
1402
### DEP0056: `util.isString()`
1337
1403
1338
1404
<!-- YAML
@@ -1360,6 +1426,12 @@ Type: End-of-Life
1360
1426
The `util.isString()` API has been removed. Please use
1361
1427
`typeof arg === 'string'` instead.
1362
1428
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
+
1363
1435
### DEP0057: `util.isSymbol()`
1364
1436
1365
1437
<!-- YAML
@@ -1387,6 +1459,12 @@ Type: End-of-Life
1387
1459
The `util.isSymbol()` API has been removed. Please use
1388
1460
`typeof arg === 'symbol'` instead.
1389
1461
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
+
1390
1468
### DEP0058: `util.isUndefined()`
1391
1469
1392
1470
<!-- YAML
@@ -1414,6 +1492,12 @@ Type: End-of-Life
1414
1492
The `util.isUndefined()` API has been removed. Please use
1415
1493
`arg === undefined` instead.
1416
1494
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
+
1417
1501
### DEP0059: `util.log()`
1418
1502
1419
1503
<!-- YAML
@@ -1897,6 +1981,12 @@ Type: End-of-Life
1897
1981
deprecated. Please use `fs.ftruncate()` or `fs.ftruncateSync()` to work with
1898
1982
file descriptors.
1899
1983
1984
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/fs-truncate-fd-deprecation)):
@@ -2381,6 +2471,12 @@ because it also made sense to interpret the value as the number of bytes
2381
2471
read by the engine, but is inconsistent with other streams in Node.js that
2382
2472
expose values under these names.
2383
2473
2474
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/zlib-bytesread-to-byteswritten)):
0 commit comments