| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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)): | ||
| 692 | 692 | ||
| 693 | 693 | ```bash | |
| 694 | - npx codemod@latest @nodejs/util-debug-to-console-error | ||
| 694 | + npx codemod@latest @nodejs/util-print-to-console-log | ||
| 695 | 695 | ``` | |
| 696 | 696 | ||
| 697 | 697 | ### DEP0029: `util.error()` | |
@@ -1061,6 +1061,12 @@ Type: End-of-Life | |||
| 1061 | 1061 | The `util.isBoolean()` API has been removed. Please use | |
| 1062 | 1062 | `typeof arg === 'boolean'` instead. | |
| 1063 | 1063 | ||
| 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 | + | ||
| 1064 | 1070 | ### DEP0046: `util.isBuffer()` | |
| 1065 | 1071 | ||
| 1066 | 1072 | <!-- YAML | |
@@ -1088,6 +1094,12 @@ Type: End-of-Life | |||
| 1088 | 1094 | The `util.isBuffer()` API has been removed. Please use | |
| 1089 | 1095 | [`Buffer.isBuffer()`][] instead. | |
| 1090 | 1096 | ||
| 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 | + | ||
| 1091 | 1103 | ### DEP0047: `util.isDate()` | |
| 1092 | 1104 | ||
| 1093 | 1105 | <!-- YAML | |
@@ -1119,6 +1131,12 @@ Also for stronger approaches, consider using: | |||
| 1119 | 1131 | `Date.prototype.toString.call(arg) === '[object Date]' && !isNaN(arg)`. | |
| 1120 | 1132 | 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)): | ||
| 1985 | + | ||
| 1986 | + ```bash | ||
| 1987 | + npx codemod@latest @nodejs/fs-truncate-fd-deprecation | ||
| 1988 | + ``` | ||
| 1989 | + | ||
| 1900 | 1990 | ### DEP0082: `REPLServer.prototype.memory()` | |
| 1901 | 1991 | ||
| 1902 | 1992 | <!-- YAML | |
@@ -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)): | ||
| 2475 | + | ||
| 2476 | + ```bash | ||
| 2477 | + npx codemod@latest @nodejs/zlib-bytesread-to-byteswritten | ||
| 2478 | + ``` | ||
| 2479 | + | ||
| 2384 | 2480 | ### DEP0109: `http`, `https`, and `tls` support for invalid URLs | |
| 2385 | 2481 | ||
| 2386 | 2482 | <!-- YAML | |
@@ -2539,6 +2635,12 @@ The [legacy URL API][] is deprecated. This includes [`url.format()`][], | |||
| 2539 | 2635 | [`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please | |
| 2540 | 2636 | use the [WHATWG URL API][] instead. | |
| 2541 | 2637 | ||
| 2638 | + An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/node-url-to-whatwg-url)). | ||
| 2639 | + | ||
| 2640 | + ```bash | ||
| 2641 | + npx codemod@latest @nodejs/node-url-to-whatwg-url | ||
| 2642 | + ``` | ||
| 2643 | + | ||
| 2542 | 2644 | ### DEP0117: Native crypto handles | |
| 2543 | 2645 | ||
| 2544 | 2646 | <!-- YAML | |
@@ -3027,6 +3129,12 @@ The `node:repl` module exports a `_builtinLibs` property that contains an array | |||
| 3027 | 3129 | of built-in modules. It was incomplete so far and instead it's better to rely | |
| 3028 | 3130 | upon `require('node:module').builtinModules`. | |
| 3029 | 3131 | ||
| 3132 | + An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/repl-builtin-modules)): | ||
| 3133 | + | ||
| 3134 | + ```bash | ||
| 3135 | + npx codemod@latest @nodejs/repl-builtin-modules | ||
| 3136 | + ``` | ||
| 3137 | + | ||
| 3030 | 3138 | ### DEP0143: `Transform._transformState` | |
| 3031 | 3139 | ||
| 3032 | 3140 | <!-- YAML | |
@@ -3279,6 +3387,12 @@ Type: End-of-Life | |||
| 3279 | 3387 | ||
| 3280 | 3388 | Use `'hashAlgorithm'` instead of `'hash'`, and `'mgf1HashAlgorithm'` instead of `'mgf1Hash'`. | |
| 3281 | 3389 | ||
| 3390 | + An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-rsa-pss-update)): | ||
| 3391 | + | ||
| 3392 | + ```bash | ||
| 3393 | + npx codemod@latest @nodejs/crypto-rsa-pss-update | ||
| 3394 | + ``` | ||
| 3395 | + | ||
| 3282 | 3396 | ### DEP0155: Trailing slashes in pattern specifier resolutions | |
| 3283 | 3397 | ||
| 3284 | 3398 | <!-- YAML | |
@@ -4023,6 +4137,12 @@ of built-in modules. This was incomplete and matched the already deprecated | |||
| 4023 | 4137 | `repl._builtinLibs` ([DEP0142][]) instead it's better to rely | |
| 4024 | 4138 | upon `require('node:module').builtinModules`. | |
| 4025 | 4139 | ||
| 4140 | + An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/repl-builtin-modules)): | ||
| 4141 | + | ||
| 4142 | + ```bash | ||
| 4143 | + npx codemod@latest @nodejs/repl-builtin-modules | ||
| 4144 | + ``` | ||
| 4145 | + | ||
| 4026 | 4146 | ### DEP0192: `require('node:_tls_common')` and `require('node:_tls_wrap')` | |
| 4027 | 4147 | ||
| 4028 | 4148 | <!-- YAML | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -274,6 +274,12 @@ added: v16.0.0 | |||
| 274 | 274 | ||
| 275 | 275 | Global alias for [`buffer.atob()`][]. | |
| 276 | 276 | ||
| 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 | + | ||
| 277 | 283 | ## Class: `BroadcastChannel` | |
| 278 | 284 | ||
| 279 | 285 | <!-- YAML | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1794,6 +1794,12 @@ The formatting process operates as follows: | |||
| 1794 | 1794 | string, an [`Error`][] is thrown. | |
| 1795 | 1795 | * `result` is returned. | |
| 1796 | 1796 | ||
| 1797 | + An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/node-url-to-whatwg-url)). | ||
| 1798 | + | ||
| 1799 | + ```bash | ||
| 1800 | + npx codemod@latest @nodejs/node-url-to-whatwg-url | ||
| 1801 | + ``` | ||
| 1802 | + | ||
| 1797 | 1803 | ### `url.parse(urlString[, parseQueryString[, slashesDenoteHost]])` | |
| 1798 | 1804 | ||
| 1799 | 1805 | <!-- YAML | |
@@ -1867,6 +1873,12 @@ function getURL(req) { | |||
| 1867 | 1873 | } | |
| 1868 | 1874 | ``` | |
| 1869 | 1875 | ||
| 1876 | + An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/node-url-to-whatwg-url)). | ||
| 1877 | + | ||
| 1878 | + ```bash | ||
| 1879 | + npx codemod@latest @nodejs/node-url-to-whatwg-url | ||
| 1880 | + ``` | ||
| 1881 | + | ||
| 1870 | 1882 | ### `url.resolve(from, to)` | |
| 1871 | 1883 | ||
| 1872 | 1884 | <!-- YAML | |
| Back | FazBrowse Home | New Git URL |
0 commit comments