Skip to content

Commit c8a13a2

Browse files
doc: deprecations add more codemods
1 parent 5cf3c3e commit c8a13a2

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

doc/api/deprecations.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ Type: End-of-Life
551551
The `os.tmpDir()` API was deprecated in Node.js 7.0.0 and has since been
552552
removed. Please use [`os.tmpdir()`][] instead.
553553

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)):
555555

556556
```bash
557557
npx codemod@latest @nodejs/tmpDir-to-tmpdir
@@ -1897,6 +1897,12 @@ Type: End-of-Life
18971897
deprecated. Please use `fs.ftruncate()` or `fs.ftruncateSync()` to work with
18981898
file descriptors.
18991899

1900+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/fs-truncate-fd-deprecation)):
1901+
1902+
```bash
1903+
npx codemod@latest @nodejs/fs-truncate-fd-deprecation
1904+
```
1905+
19001906
### DEP0082: `REPLServer.prototype.memory()`
19011907

19021908
<!-- YAML
@@ -2381,6 +2387,12 @@ because it also made sense to interpret the value as the number of bytes
23812387
read by the engine, but is inconsistent with other streams in Node.js that
23822388
expose values under these names.
23832389

2390+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/zlib-bytesread-to-byteswritten)):
2391+
2392+
```bash
2393+
npx codemod@latest @nodejs/zlib-bytesread-to-byteswritten
2394+
```
2395+
23842396
### DEP0109: `http`, `https`, and `tls` support for invalid URLs
23852397

23862398
<!-- YAML
@@ -3279,6 +3291,13 @@ Type: End-of-Life
32793291

32803292
Use `'hashAlgorithm'` instead of `'hash'`, and `'mgf1HashAlgorithm'` instead of `'mgf1Hash'`.
32813293

3294+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-rsa-pss-update)):
3295+
3296+
```bash
3297+
npx codemod@latest @nodejs/crypto-rsa-pss-update
3298+
```
3299+
3300+
32823301
### DEP0155: Trailing slashes in pattern specifier resolutions
32833302

32843303
<!-- YAML

0 commit comments

Comments
 (0)