Skip to content

Commit 7d020be

Browse files
doc: deprecation add more codemod
1 parent 45eeb6f commit 7d020be

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/api/deprecations.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,6 +2199,12 @@ Type: Runtime
21992199
The [`crypto.fips`][] property is deprecated. Please use `crypto.setFips()`
22002200
and `crypto.getFips()` instead.
22012201

2202+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-fips-to-getFips)).
2203+
2204+
```bash
2205+
npx codemod@latest @nodejs/crypto-fips-to-getFips
2206+
```
2207+
22022208
### DEP0094: Using `assert.fail()` with more than one argument
22032209

22042210
<!-- YAML
@@ -2326,6 +2332,12 @@ Type: End-of-Life
23262332

23272333
This was never a documented feature.
23282334

2335+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/createCredentials-to-createSecureContext)).
2336+
2337+
```bash
2338+
npx codemod@latest @nodejs/createCredentials-to-createSecureContext
2339+
```
2340+
23292341
### DEP0101: `--with-lttng`
23302342

23312343
<!-- YAML
@@ -4049,6 +4061,12 @@ Instantiating classes without the `new` qualifier exported by the `node:repl` mo
40494061
The `new` qualifier must be used instead. This applies to all REPL classes, including
40504062
`REPLServer` and `Recoverable`.
40514063

4064+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/repl-classes-with-new)):
4065+
4066+
```bash
4067+
npx codemod@latest @nodejs/repl-classes-with-new
4068+
```
4069+
40524070
<!-- md-lint skip-deprecation DEP0186 -->
40534071

40544072
### DEP0187: Passing invalid argument types to `fs.existsSync`

0 commit comments

Comments
 (0)