Skip to content

Commit a525412

Browse files
doc: deprecation add more codemod
Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>
1 parent 4f44c6f commit a525412

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

doc/api/deprecations.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,12 @@ Type: End-of-Life
16801680
The `tls.createSecurePair()` API was deprecated in documentation in Node.js
16811681
0.11.3. Users should use `tls.Socket` instead.
16821682

1683+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tls-create-secure-pair-to-tls-socket)):
1684+
1685+
```bash
1686+
npx codemod @nodejs/tls-create-secure-pair-to-tls-socket
1687+
```
1688+
16831689
### DEP0065: `repl.REPL_MODE_MAGIC` and `NODE_REPL_MODE=magic`
16841690

16851691
<!-- YAML
@@ -2276,6 +2282,12 @@ Type: End-of-Life
22762282
`timers.enroll()` has been removed. Please use the publicly documented
22772283
[`setTimeout()`][] or [`setInterval()`][] instead.
22782284

2285+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
2286+
2287+
```bash
2288+
npx codemod @nodejs/timers-deprecations
2289+
```
2290+
22792291
### DEP0096: `timers.unenroll()`
22802292

22812293
<!-- YAML
@@ -2293,6 +2305,12 @@ Type: End-of-Life
22932305
`timers.unenroll()` has been removed. Please use the publicly documented
22942306
[`clearTimeout()`][] or [`clearInterval()`][] instead.
22952307

2308+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
2309+
2310+
```bash
2311+
npx codemod @nodejs/timers-deprecations
2312+
```
2313+
22962314
### DEP0097: `MakeCallback` with `domain` property
22972315

22982316
<!-- YAML
@@ -2483,6 +2501,12 @@ It is recommended to derive a key using
24832501
[`crypto.createCipheriv()`][] and [`crypto.createDecipheriv()`][] to obtain the
24842502
[`Cipheriv`][] and [`Decipheriv`][] objects respectively.
24852503

2504+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-createcipheriv-migration)):
2505+
2506+
```bash
2507+
npx codemod @nodejs/crypto-createcipheriv-migration
2508+
```
2509+
24862510
### DEP0107: `tls.convertNPNProtocols()`
24872511

24882512
<!-- YAML
@@ -2872,6 +2896,12 @@ Please use the publicly documented [`timeout.refresh()`][] instead.
28722896
If re-referencing the timeout is necessary, [`timeout.ref()`][] can be used
28732897
with no performance impact since Node.js 10.
28742898

2899+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
2900+
2901+
```bash
2902+
npx codemod @nodejs/timers-deprecations
2903+
```
2904+
28752905
### DEP0127: `timers._unrefActive()`
28762906

28772907
<!-- YAML
@@ -2891,6 +2921,12 @@ Please use the publicly documented [`timeout.refresh()`][] instead.
28912921
If unreferencing the timeout is necessary, [`timeout.unref()`][] can be used
28922922
with no performance impact since Node.js 10.
28932923

2924+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
2925+
2926+
```bash
2927+
npx codemod @nodejs/timers-deprecations
2928+
```
2929+
28942930
### DEP0128: modules with an invalid `main` entry and an `index.js` file
28952931

28962932
<!-- YAML
@@ -3559,6 +3595,12 @@ Type: End-of-Life
35593595
This error code was removed due to adding more confusion to
35603596
the errors used for value type validation.
35613597

3598+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/err-invalid-callback)):
3599+
3600+
```bash
3601+
npx codemod @nodejs/err-invalid-callback
3602+
```
3603+
35623604
### DEP0160: `process.on('multipleResolves', handler)`
35633605

35643606
<!-- YAML
@@ -4277,6 +4319,12 @@ Type: End-of-Life
42774319

42784320
The support for priority signaling has been removed following its deprecation in the [RFC 9113][].
42794321

4322+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http2-priority-signaling)):
4323+
4324+
```bash
4325+
npx codemod@latest @nodejs/http2-priority-signaling
4326+
```
4327+
42804328
### DEP0195: Instantiating `node:http` classes without `new`
42814329

42824330
<!-- YAML

0 commit comments

Comments
 (0)