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.
1115
1127
1128
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1129
+
1130
+
```bash
1131
+
npx codemod@latest @nodejs/util-is
1132
+
```
1133
+
1116
1134
### DEP0048: `util.isError()`
1117
1135
1118
1136
<!-- YAML
@@ -1139,6 +1157,12 @@ Type: End-of-Life
1139
1157
1140
1158
The `util.isError()` API has been removed. Please use `Error.isError(arg)`.
1141
1159
1160
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1161
+
1162
+
```bash
1163
+
npx codemod@latest @nodejs/util-is
1164
+
```
1165
+
1142
1166
### DEP0049: `util.isFunction()`
1143
1167
1144
1168
<!-- YAML
@@ -1166,6 +1190,12 @@ Type: End-of-Life
1166
1190
The `util.isFunction()` API has been removed. Please use
1167
1191
`typeof arg === 'function'` instead.
1168
1192
1193
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1194
+
1195
+
```bash
1196
+
npx codemod@latest @nodejs/util-is
1197
+
```
1198
+
1169
1199
### DEP0050: `util.isNull()`
1170
1200
1171
1201
<!-- YAML
@@ -1193,6 +1223,12 @@ Type: End-of-Life
1193
1223
The `util.isNull()` API has been removed. Please use
1194
1224
`arg === null` instead.
1195
1225
1226
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1227
+
1228
+
```bash
1229
+
npx codemod@latest @nodejs/util-is
1230
+
```
1231
+
1196
1232
### DEP0051: `util.isNullOrUndefined()`
1197
1233
1198
1234
<!-- YAML
@@ -1220,6 +1256,12 @@ Type: End-of-Life
1220
1256
The `util.isNullOrUndefined()` API has been removed. Please use
1221
1257
`arg === null || arg === undefined` instead.
1222
1258
1259
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1260
+
1261
+
```bash
1262
+
npx codemod@latest @nodejs/util-is
1263
+
```
1264
+
1223
1265
### DEP0052: `util.isNumber()`
1224
1266
1225
1267
<!-- YAML
@@ -1247,6 +1289,12 @@ Type: End-of-Life
1247
1289
The `util.isNumber()` API has been removed. Please use
1248
1290
`typeof arg === 'number'` instead.
1249
1291
1292
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1293
+
1294
+
```bash
1295
+
npx codemod@latest @nodejs/util-is
1296
+
```
1297
+
1250
1298
### DEP0053: `util.isObject()`
1251
1299
1252
1300
<!-- YAML
@@ -1274,6 +1322,12 @@ Type: End-of-Life
1274
1322
The `util.isObject()` API has been removed. Please use
1275
1323
`arg && typeof arg === 'object'` instead.
1276
1324
1325
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1326
+
1327
+
```bash
1328
+
npx codemod@latest @nodejs/util-is
1329
+
```
1330
+
1277
1331
### DEP0054: `util.isPrimitive()`
1278
1332
1279
1333
<!-- YAML
@@ -1300,6 +1354,12 @@ Type: End-of-Life
1300
1354
1301
1355
The `util.isPrimitive()` API has been removed. Please use `Object(arg) !== arg` instead.
1302
1356
1357
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1358
+
1359
+
```bash
1360
+
npx codemod@latest @nodejs/util-is
1361
+
```
1362
+
1303
1363
### DEP0055: `util.isRegExp()`
1304
1364
1305
1365
<!-- YAML
@@ -1327,6 +1387,12 @@ Type: End-of-Life
1327
1387
The `util.isRegExp()` API has been removed. Please use
1328
1388
`arg instanceof RegExp` instead.
1329
1389
1390
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1391
+
1392
+
```bash
1393
+
npx codemod@latest @nodejs/util-is
1394
+
```
1395
+
1330
1396
### DEP0056: `util.isString()`
1331
1397
1332
1398
<!-- YAML
@@ -1354,6 +1420,12 @@ Type: End-of-Life
1354
1420
The `util.isString()` API has been removed. Please use
1355
1421
`typeof arg === 'string'` instead.
1356
1422
1423
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1424
+
1425
+
```bash
1426
+
npx codemod@latest @nodejs/util-is
1427
+
```
1428
+
1357
1429
### DEP0057: `util.isSymbol()`
1358
1430
1359
1431
<!-- YAML
@@ -1381,6 +1453,12 @@ Type: End-of-Life
1381
1453
The `util.isSymbol()` API has been removed. Please use
1382
1454
`typeof arg === 'symbol'` instead.
1383
1455
1456
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1457
+
1458
+
```bash
1459
+
npx codemod@latest @nodejs/util-is
1460
+
```
1461
+
1384
1462
### DEP0058: `util.isUndefined()`
1385
1463
1386
1464
<!-- YAML
@@ -1408,6 +1486,12 @@ Type: End-of-Life
1408
1486
The `util.isUndefined()` API has been removed. Please use
1409
1487
`arg === undefined` instead.
1410
1488
1489
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)):
1490
+
1491
+
```bash
1492
+
npx codemod@latest @nodejs/util-is
1493
+
```
1494
+
1411
1495
### DEP0059: `util.log()`
1412
1496
1413
1497
<!-- YAML
@@ -1885,6 +1969,12 @@ Type: End-of-Life
1885
1969
deprecated. Please use `fs.ftruncate()` or `fs.ftruncateSync()` to work with
1886
1970
file descriptors.
1887
1971
1972
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/fs-truncate-fd-deprecation)):
@@ -2366,6 +2456,12 @@ because it also made sense to interpret the value as the number of bytes
2366
2456
read by the engine, but is inconsistent with other streams in Node.js that
2367
2457
expose values under these names.
2368
2458
2459
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/zlib-bytesread-to-byteswritten)):
0 commit comments