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
+72Lines changed: 72 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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)):
`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)):
`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)):
`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)):
@@ -1416,6 +1446,12 @@ By adopting one of these alternatives, you can transition away from `util.log()`
1416
1446
and choose a logging strategy that aligns with the specific
1417
1447
requirements and complexity of your application.
1418
1448
1449
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-log-to-console-log)):
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/create-require-from-path)):
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/rmdir)):
3137
+
3138
+
```bash
3139
+
npx codemod@latest @nodejs/rmdir
3140
+
```
3141
+
3088
3142
### DEP0148: Folder mappings in `"exports"` (trailing `"/"`)
3089
3143
3090
3144
<!-- YAML
@@ -3686,6 +3740,12 @@ Type: End-of-Life
3686
3740
`F_OK`, `R_OK`, `W_OK` and `X_OK` getters exposed directly on `node:fs` were
3687
3741
removed. Get them from `fs.constants` or `fs.promises.constants` instead.
3688
3742
3743
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/fs-access-mode-constants)):
@@ -4031,6 +4091,12 @@ Instantiating classes without the `new` qualifier exported by the `node:http` mo
4031
4091
It is recommended to use the `new` qualifier instead. This applies to all http classes, such as
4032
4092
`OutgoingMessage`, `IncomingMessage`, `ServerResponse` and `ClientRequest`.
4033
4093
4094
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http-classes-with-new)):
4095
+
4096
+
```bash
4097
+
npx codemod@latest @nodejs/http-classes-with-new
4098
+
```
4099
+
4034
4100
### DEP0196: Calling `node:child_process` functions with `options.shell` as an empty string
4035
4101
4036
4102
<!-- YAML
@@ -4070,6 +4136,12 @@ Type: Documentation-only
4070
4136
4071
4137
The [`util.types.isNativeError`][] API is deprecated. Please use [`Error.isError`][] instead.
4072
4138
4139
+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/types-is-native-error)):
4140
+
4141
+
```bash
4142
+
npx codemod@latest @nodejs/types-is-native-error
4143
+
```
4144
+
4073
4145
### DEP0198: Creating SHAKE-128 and SHAKE-256 digests without an explicit `options.outputLength`
0 commit comments