Skip to content

Commit 9274903

Browse files
doc: deprecation add more codemod
Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com> PR-URL: #63175 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent 9024119 commit 9274903

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
@@ -2487,6 +2505,12 @@ It is recommended to derive a key using
24872505
[`crypto.createCipheriv()`][] and [`crypto.createDecipheriv()`][] to obtain the
24882506
[`Cipheriv`][] and [`Decipheriv`][] objects respectively.
24892507

2508+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-createcipheriv-migration)):
2509+
2510+
```bash
2511+
npx codemod @nodejs/crypto-createcipheriv-migration
2512+
```
2513+
24902514
### DEP0107: `tls.convertNPNProtocols()`
24912515

24922516
<!-- YAML
@@ -2876,6 +2900,12 @@ Please use the publicly documented [`timeout.refresh()`][] instead.
28762900
If re-referencing the timeout is necessary, [`timeout.ref()`][] can be used
28772901
with no performance impact since Node.js 10.
28782902

2903+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
2904+
2905+
```bash
2906+
npx codemod @nodejs/timers-deprecations
2907+
```
2908+
28792909
### DEP0127: `timers._unrefActive()`
28802910

28812911
<!-- YAML
@@ -2895,6 +2925,12 @@ Please use the publicly documented [`timeout.refresh()`][] instead.
28952925
If unreferencing the timeout is necessary, [`timeout.unref()`][] can be used
28962926
with no performance impact since Node.js 10.
28972927

2928+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).
2929+
2930+
```bash
2931+
npx codemod @nodejs/timers-deprecations
2932+
```
2933+
28982934
### DEP0128: modules with an invalid `main` entry and an `index.js` file
28992935

29002936
<!-- YAML
@@ -3563,6 +3599,12 @@ Type: End-of-Life
35633599
This error code was removed due to adding more confusion to
35643600
the errors used for value type validation.
35653601

3602+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/err-invalid-callback)):
3603+
3604+
```bash
3605+
npx codemod @nodejs/err-invalid-callback
3606+
```
3607+
35663608
### DEP0160: `process.on('multipleResolves', handler)`
35673609

35683610
<!-- YAML
@@ -4289,6 +4331,12 @@ Type: End-of-Life
42894331

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

4334+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http2-priority-signaling)):
4335+
4336+
```bash
4337+
npx codemod@latest @nodejs/http2-priority-signaling
4338+
```
4339+
42924340
### DEP0195: Instantiating `node:http` classes without `new`
42934341

42944342
<!-- YAML

0 commit comments

Comments
 (0)