Skip to content

Commit c74c73d

Browse files
doc: deprecation add more codemod
PR-URL: #61642 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 0d4fa64 commit c74c73d

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

doc/api/deprecations.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,12 @@ Type: End-of-Life
744744
The `SlowBuffer` class has been removed. Please use
745745
[`Buffer.allocUnsafeSlow(size)`][] instead.
746746

747+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/slow-buffer-to-buffer-alloc-unsafe-slow)).
748+
749+
```bash
750+
npx codemod@latest @nodejs/slow-buffer-to-buffer-alloc-unsafe-slow
751+
```
752+
747753
### DEP0031: `ecdh.setPublicKey()`
748754

749755
<!-- YAML
@@ -1568,6 +1574,12 @@ The [`util._extend()`][] API is deprecated because it's an unmaintained
15681574
legacy API that was exposed to user land by accident.
15691575
Please use `target = Object.assign(target, source)` instead.
15701576

1577+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-extend-to-object-assign)):
1578+
1579+
```bash
1580+
npx codemod@latest @nodejs/util-extend-to-object-assign
1581+
```
1582+
15711583
### DEP0061: `fs.SyncWriteStream`
15721584

15731585
<!-- YAML
@@ -1715,6 +1727,12 @@ The `OutgoingMessage.prototype._headers` and
17151727
`OutgoingMessage.prototype._headerNames` properties were never documented as
17161728
officially supported properties.
17171729

1730+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http-outgoingmessage-headers)):
1731+
1732+
```bash
1733+
npx codemod@latest @nodejs/http-outgoingmessage-headers
1734+
```
1735+
17181736
### DEP0067: `OutgoingMessage.prototype._renderHeaders`
17191737

17201738
<!-- YAML
@@ -2343,10 +2361,10 @@ Type: End-of-Life
23432361

23442362
This was never a documented feature.
23452363

2346-
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/createCredentials-to-createSecureContext)).
2364+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/process-assert-to-node-assert)).
23472365

23482366
```bash
2349-
npx codemod@latest @nodejs/createCredentials-to-createSecureContext
2367+
npx codemod@latest @nodejs/process-assert-to-node-assert
23502368
```
23512369

23522370
### DEP0101: `--with-lttng`
@@ -3936,6 +3954,12 @@ Type: End-of-Life
39363954
The `dirent.path` property has been removed due to its lack of consistency across
39373955
release lines. Please use [`dirent.parentPath`][] instead.
39383956

3957+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/dirent-path-to-parent-path)):
3958+
3959+
```bash
3960+
npx codemod@latest @nodejs/dirent-path-to-parent-path
3961+
```
3962+
39393963
### DEP0179: `Hash` constructor
39403964

39413965
<!-- YAML

doc/api/util.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3807,6 +3807,12 @@ Node.js modules. The community found and used it anyway.
38073807
It is deprecated and should not be used in new code. JavaScript comes with very
38083808
similar built-in functionality through [`Object.assign()`][].
38093809
3810+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-extend-to-object-assign)):
3811+
3812+
```bash
3813+
npx codemod@latest @nodejs/util-extend-to-object-assign
3814+
```
3815+
38103816
### `util.isArray(object)`
38113817
38123818
<!-- YAML

0 commit comments

Comments
 (0)