mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: deprecation add more codemod
Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/63175 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
This commit is contained in:
1 parent
474f06d550
commit
522a28e648
1 file changed
+48
@@ -1680,6 +1680,12 @@ Type: End-of-Life
|
||||
The `tls.createSecurePair()` API was deprecated in documentation in Node.js
|
||||
0.11.3. Users should use `tls.Socket` instead.
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tls-create-secure-pair-to-tls-socket)):
|
||||
|
||||
```bash
|
||||
npx codemod @nodejs/tls-create-secure-pair-to-tls-socket
|
||||
```
|
||||
|
||||
### DEP0065: `repl.REPL_MODE_MAGIC` and `NODE_REPL_MODE=magic`
|
||||
|
||||
<!-- YAML
|
||||
@@ -2276,6 +2282,12 @@ Type: End-of-Life
|
||||
`timers.enroll()` has been removed. Please use the publicly documented
|
||||
[`setTimeout()`][] or [`setInterval()`][] instead.
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
|
||||
|
||||
```bash
|
||||
npx codemod @nodejs/timers-deprecations
|
||||
```
|
||||
|
||||
### DEP0096: `timers.unenroll()`
|
||||
|
||||
<!-- YAML
|
||||
@@ -2293,6 +2305,12 @@ Type: End-of-Life
|
||||
`timers.unenroll()` has been removed. Please use the publicly documented
|
||||
[`clearTimeout()`][] or [`clearInterval()`][] instead.
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
|
||||
|
||||
```bash
|
||||
npx codemod @nodejs/timers-deprecations
|
||||
```
|
||||
|
||||
### DEP0097: `MakeCallback` with `domain` property
|
||||
|
||||
<!-- YAML
|
||||
@@ -2483,6 +2501,12 @@ It is recommended to derive a key using
|
||||
[`crypto.createCipheriv()`][] and [`crypto.createDecipheriv()`][] to obtain the
|
||||
[`Cipheriv`][] and [`Decipheriv`][] objects respectively.
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-createcipheriv-migration)):
|
||||
|
||||
```bash
|
||||
npx codemod @nodejs/crypto-createcipheriv-migration
|
||||
```
|
||||
|
||||
### DEP0107: `tls.convertNPNProtocols()`
|
||||
|
||||
<!-- YAML
|
||||
@@ -2872,6 +2896,12 @@ Please use the publicly documented [`timeout.refresh()`][] instead.
|
||||
If re-referencing the timeout is necessary, [`timeout.ref()`][] can be used
|
||||
with no performance impact since Node.js 10.
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
|
||||
|
||||
```bash
|
||||
npx codemod @nodejs/timers-deprecations
|
||||
```
|
||||
|
||||
### DEP0127: `timers._unrefActive()`
|
||||
|
||||
<!-- YAML
|
||||
@@ -2891,6 +2921,12 @@ Please use the publicly documented [`timeout.refresh()`][] instead.
|
||||
If unreferencing the timeout is necessary, [`timeout.unref()`][] can be used
|
||||
with no performance impact since Node.js 10.
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
|
||||
|
||||
```bash
|
||||
npx codemod @nodejs/timers-deprecations
|
||||
```
|
||||
|
||||
### DEP0128: modules with an invalid `main` entry and an `index.js` file
|
||||
|
||||
<!-- YAML
|
||||
@@ -3559,6 +3595,12 @@ Type: End-of-Life
|
||||
This error code was removed due to adding more confusion to
|
||||
the errors used for value type validation.
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/err-invalid-callback)):
|
||||
|
||||
```bash
|
||||
npx codemod @nodejs/err-invalid-callback
|
||||
```
|
||||
|
||||
### DEP0160: `process.on('multipleResolves', handler)`
|
||||
|
||||
<!-- YAML
|
||||
@@ -4277,6 +4319,12 @@ Type: End-of-Life
|
||||
|
||||
The support for priority signaling has been removed following its deprecation in the [RFC 9113][].
|
||||
|
||||
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http2-priority-signaling)):
|
||||
|
||||
```bash
|
||||
npx codemod@latest @nodejs/http2-priority-signaling
|
||||
```
|
||||
|
||||
### DEP0195: Instantiating `node:http` classes without `new`
|
||||
|
||||
<!-- YAML
|
||||
|
||||
Reference in new issue
Block a user