Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9409d30

Browse filesBrowse files
AugustinMauroyaduh95
authored andcommitted
doc: deprecation add more codemod
PR-URL: #61642 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 1c1db94 commit 9409d30
Copy full SHA for 9409d30

2 files changed

+32-2Lines changed: 32 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/deprecations.md‎

Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+26-2Lines changed: 26 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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
@@ -1712,6 +1724,12 @@ The `OutgoingMessage.prototype._headers` and
17121724
`OutgoingMessage.prototype._headerNames` properties were never documented as
17131725
officially supported properties.
17141726

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

17171735
<!-- YAML
@@ -2340,10 +2358,10 @@ Type: End-of-Life
23402358

23412359
This was never a documented feature.
23422360

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

23452363
```bash
2346-
npx codemod@latest @nodejs/createCredentials-to-createSecureContext
2364+
npx codemod@latest @nodejs/process-assert-to-node-assert
23472365
```
23482366

23492367
### DEP0101: `--with-lttng`
@@ -3930,6 +3948,12 @@ Type: End-of-Life
39303948
The `dirent.path` property has been removed due to its lack of consistency across
39313949
release lines. Please use [`dirent.parentPath`][] instead.
39323950

3951+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/dirent-path-to-parent-path)):
3952+
3953+
```bash
3954+
npx codemod@latest @nodejs/dirent-path-to-parent-path
3955+
```
3956+
39333957
### DEP0179: `Hash` constructor
39343958

39353959
<!-- YAML
Collapse file

‎doc/api/util.md‎

Copy file name to clipboardExpand all lines: doc/api/util.md
+6Lines changed: 6 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3803,6 +3803,12 @@ Node.js modules. The community found and used it anyway.
38033803
It is deprecated and should not be used in new code. JavaScript comes with very
38043804
similar built-in functionality through [`Object.assign()`][].
38053805
3806+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-extend-to-object-assign)):
3807+
3808+
```bash
3809+
npx codemod@latest @nodejs/util-extend-to-object-assign
3810+
```
3811+
38063812
### `util.isArray(object)`
38073813
38083814
<!-- YAML

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.