Skip to content

Commit 28d264a

Browse files
authored
fix(blog): correct codemod references in v22-to-v24 migration guide (#9095)
1 parent 9e2eab0 commit 28d264a

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

‎apps/site/pages/en/blog/migrations/v22-to-v24.mdx‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ author: AugustinMauroy, Richard Lau
1616
Missing codemods will be added over time. If you have specific needs.
1717

1818
<a href="https://github.com/nodejs/userland-migrations/issues/239">
19-
Read this issue to learn where we are in the process. And how to manually migrate your code.
19+
Read this issue to learn where we are in the process and how to manually migrate your code.
2020
</a>
2121
</AlertBox>
2222

@@ -114,6 +114,8 @@ This codemod transforms the usage of `dirent.path` to use `dirent.parentPath`.
114114

115115
See [DEP0178](https://nodejs.org/api/deprecations.html#DEP0178).
116116

117+
The source code for this codemod can be found in the [dirent-path-to-parent-path directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/dirent-path-to-parent-path).
118+
117119
You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/dirent-path-to-parent-path).
118120

119121
```bash
@@ -169,7 +171,7 @@ npx codemod run @nodejs/fs-access-mode-constants
169171
+ fs.access('/path/to/file', fs.constants.R_OK | fs.constants.W_OK, callback);
170172
```
171173

172-
### `fs-truncate-to-ftruncate`
174+
### `fs-truncate-fd-deprecation`
173175

174176
The [`fs.truncate`](https://nodejs.org/api/fs.html#fs_fs_truncate_path_len_callback) function was deprecated ([DEP0081](https://nodejs.org/api/deprecations.html#DEP0081)) when used with a file descriptor. Use [`fs.ftruncate`](https://nodejs.org/api/fs.html#fs_fs_ftruncate_fd_len_callback) instead.
175177

@@ -197,18 +199,18 @@ npx codemod run @nodejs/fs-truncate-fd-deprecation
197199
});
198200
```
199201

200-
### `http2-priority-removal`
202+
### `http2-priority-signaling`
201203

202204
This recipe removes HTTP/2 priority-related options and methods since priority signaling has been deprecated.
203205

204206
See [DEP0194](https://nodejs.org/api/deprecations.html#DEP0194).
205207

206-
The source code for this codemod can be found in the [http2-priority-removal directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/http2-priority-removal).
208+
The source code for this codemod can be found in the [http2-priority-signaling directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/http2-priority-signaling).
207209

208-
You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/http2-priority-removal).
210+
You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/http2-priority-signaling).
209211

210212
```bash
211-
npx codemod run @nodejs/http2-priority-removal
213+
npx codemod run @nodejs/http2-priority-signaling
212214
```
213215

214216
## What this codemod does
@@ -241,7 +243,7 @@ const client = http2.connect("https://example.com");
241243

242244
### `process-assert-to-node-assert`
243245

244-
In Node.js v23 the [DEP0100](https://nodejs.org/api/deprecations.html#DEP0100) deprecation was grantted to End of Life, and `process.assert` was removed in favor of using the `assert` module directly. This codemod will help you replace any references to `process.assert` with the appropriate import of the `assert` module and usage of `assert()`.
246+
In Node.js v23 the [DEP0100](https://nodejs.org/api/deprecations.html#DEP0100) deprecation reached End-of-Life, and `process.assert` was removed in favor of using the `assert` module directly. This codemod will help you replace any references to `process.assert` with the appropriate import of the `assert` module and usage of `assert()`.
245247

246248
The source code for this codemod can be found in the [process-assert-to-node-assert directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/process-assert-to-node-assert).
247249

@@ -261,7 +263,7 @@ npx codemod run @nodejs/process-assert-to-node-assert
261263

262264
#### Additional Notes
263265

264-
This codemod use [`fs` capability](https://docs.codemod.com/jssg/security) to read the `package.json` file and determine if the project is using ES modules or CommonJS. Based on this information, it adds the appropriate import statement for the `assert` module.
266+
This codemod uses the [`fs` capability](https://docs.codemod.com/jssg/security) to read the `package.json` file and determine if the project is using ES modules or CommonJS. Based on this information, it adds the appropriate import statement for the `assert` module.
265267

266268
### `tls-create-secure-pair-to-tls-socket`
267269

0 commit comments

Comments
 (0)