@@ -551,6 +551,12 @@ 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)): |
| 555 | + |
| 556 | +```bash |
| 557 | +npx codemod@latest @nodejs/tmpDir-to-tmpdir |
| 558 | +``` |
| 559 | + |
554 | 560 | ### DEP0023: `os.getNetworkInterfaces()` |
555 | 561 |
|
556 | 562 | <!-- YAML |
@@ -628,6 +634,12 @@ Type: End-of-Life |
628 | 634 |
|
629 | 635 | `util.print()` has been removed. Please use [`console.log()`][] instead. |
630 | 636 |
|
| 637 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-print-to-console-log)): |
| 638 | + |
| 639 | +```bash |
| 640 | +npx codemod@latest @nodejs/util-print-to-console-log |
| 641 | +``` |
| 642 | + |
631 | 643 | ### DEP0027: `util.puts()` |
632 | 644 |
|
633 | 645 | <!-- YAML |
@@ -649,6 +661,12 @@ Type: End-of-Life |
649 | 661 |
|
650 | 662 | `util.puts()` has been removed. Please use [`console.log()`][] instead. |
651 | 663 |
|
| 664 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-print-to-console-log)): |
| 665 | + |
| 666 | +```bash |
| 667 | +npx codemod@latest @nodejs/util-print-to-console-log |
| 668 | +``` |
| 669 | + |
652 | 670 | ### DEP0028: `util.debug()` |
653 | 671 |
|
654 | 672 | <!-- YAML |
@@ -670,6 +688,12 @@ Type: End-of-Life |
670 | 688 |
|
671 | 689 | `util.debug()` has been removed. Please use [`console.error()`][] instead. |
672 | 690 |
|
| 691 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-debug-to-console-error)): |
| 692 | + |
| 693 | +```bash |
| 694 | +npx codemod@latest @nodejs/util-debug-to-console-error |
| 695 | +``` |
| 696 | + |
673 | 697 | ### DEP0029: `util.error()` |
674 | 698 |
|
675 | 699 | <!-- YAML |
@@ -691,6 +715,12 @@ Type: End-of-Life |
691 | 715 |
|
692 | 716 | `util.error()` has been removed. Please use [`console.error()`][] instead. |
693 | 717 |
|
| 718 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-print-to-console-log)): |
| 719 | + |
| 720 | +```bash |
| 721 | +npx codemod@latest @nodejs/util-print-to-console-log |
| 722 | +``` |
| 723 | + |
694 | 724 | ### DEP0030: `SlowBuffer` |
695 | 725 |
|
696 | 726 | <!-- YAML |
@@ -1359,6 +1389,12 @@ By adopting one of these alternatives, you can transition away from `util.log()` |
1359 | 1389 | and choose a logging strategy that aligns with the specific |
1360 | 1390 | requirements and complexity of your application. |
1361 | 1391 |
|
| 1392 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-log-to-console-log)): |
| 1393 | + |
| 1394 | +```bash |
| 1395 | +npx codemod@latest @nodejs/util-log-to-console-log |
| 1396 | +``` |
| 1397 | + |
1362 | 1398 | ### DEP0060: `util._extend()` |
1363 | 1399 |
|
1364 | 1400 | <!-- YAML |
@@ -2642,6 +2678,12 @@ Type: End-of-Life |
2642 | 2678 |
|
2643 | 2679 | Use [`module.createRequire()`][] instead. |
2644 | 2680 |
|
| 2681 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/create-require-from-path)): |
| 2682 | + |
| 2683 | +```bash |
| 2684 | +npx codemod@latest @nodejs/create-require-from-path |
| 2685 | +``` |
| 2686 | + |
2645 | 2687 | ### DEP0131: Legacy HTTP parser |
2646 | 2688 |
|
2647 | 2689 | <!-- YAML |
@@ -2795,6 +2837,12 @@ modules is unsupported. |
2795 | 2837 | It is deprecated in favor of [`require.main`][], because it serves the same |
2796 | 2838 | purpose and is only available on CommonJS environment. |
2797 | 2839 |
|
| 2840 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/process-main-module)): |
| 2841 | + |
| 2842 | +```bash |
| 2843 | +npx codemod@latest @nodejs/process-main-module |
| 2844 | +``` |
| 2845 | + |
2798 | 2846 | ### DEP0139: `process.umask()` with no arguments |
2799 | 2847 |
|
2800 | 2848 | <!-- YAML |
@@ -2962,6 +3010,12 @@ Use `fs.rm(path, { recursive: true, force: true })`, |
2962 | 3010 | `fs.rmSync(path, { recursive: true, force: true })` or |
2963 | 3011 | `fs.promises.rm(path, { recursive: true, force: true })` instead. |
2964 | 3012 |
|
| 3013 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/rmdir)): |
| 3014 | + |
| 3015 | +```bash |
| 3016 | +npx codemod@latest @nodejs/rmdir |
| 3017 | +``` |
| 3018 | + |
2965 | 3019 | ### DEP0148: Folder mappings in `"exports"` (trailing `"/"`) |
2966 | 3020 |
|
2967 | 3021 | <!-- YAML |
@@ -3533,6 +3587,12 @@ Type: Documentation-only |
3533 | 3587 | `F_OK`, `R_OK`, `W_OK` and `X_OK` getters exposed directly on `node:fs` are |
3534 | 3588 | deprecated. Get them from `fs.constants` or `fs.promises.constants` instead. |
3535 | 3589 |
|
| 3590 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/fs-access-mode-constants)): |
| 3591 | + |
| 3592 | +```bash |
| 3593 | +npx codemod@latest @nodejs/fs-access-mode-constants |
| 3594 | +``` |
| 3595 | + |
3536 | 3596 | ### DEP0177: `util.types.isWebAssemblyCompiledModule` |
3537 | 3597 |
|
3538 | 3598 | <!-- YAML |
@@ -3828,6 +3888,12 @@ Instantiating classes without the `new` qualifier exported by the `node:http` mo |
3828 | 3888 | It is recommended to use the `new` qualifier instead. This applies to all http classes, such as |
3829 | 3889 | `OutgoingMessage`, `IncomingMessage`, `ServerResponse` and `ClientRequest`. |
3830 | 3890 |
|
| 3891 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http-classes-with-new)): |
| 3892 | + |
| 3893 | +```bash |
| 3894 | +npx codemod@latest @nodejs/http-classes-with-new |
| 3895 | +``` |
| 3896 | + |
3831 | 3897 | ### DEP0196: Calling `node:child_process` functions with `options.shell` as an empty string |
3832 | 3898 |
|
3833 | 3899 | <!-- YAML |
@@ -3853,6 +3919,12 @@ a shell, use [`child_process.execFile`][] instead. |
3853 | 3919 |
|
3854 | 3920 | <!-- md-lint skip-deprecation DEP0197 --> |
3855 | 3921 |
|
| 3922 | +An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/types-is-native-error)): |
| 3923 | + |
| 3924 | +```bash |
| 3925 | +npx codemod@latest @nodejs/types-is-native-error |
| 3926 | +``` |
| 3927 | + |
3856 | 3928 | ### DEP0198: Creating SHAKE-128 and SHAKE-256 digests without an explicit `options.outputLength` |
3857 | 3929 |
|
3858 | 3930 | <!-- YAML |
|