feat(blog): add more codemod to migrations guides - #9086
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview The v22→v24 guide adds a one-shot Reviewed by Cursor Bugbot for commit 119e023. Bugbot is set up for automated code reviews on this repo. Configure here. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9086 +/- ##
=======================================
Coverage 75.06% 75.06%
=======================================
Files 102 102
Lines 9111 9111
Branches 377 377
=======================================
Hits 6839 6839
Misses 2268 2268
Partials 4 4 ☔ View full report in Codecov by Harness. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Node.js migration blog guides to better surface available codemods, including adding a new codemod entry to the v16→v18 guide and documenting how to run all v22→v24 codemods together.
Changes:
- Add a “run all codemods” command and an informational note to the v22→v24 migration guide.
- Add the
dns-lookup-options-coercioncodemod section (with examples) to the v16→v18 migration guide. - Update the
err-invalid-callbacksection heading from “Example” to “Examples”.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| apps/site/pages/en/blog/migrations/v22-to-v24.mdx | Adds guidance for running all codemods at once and clarifies list completeness via an AlertBox. |
| apps/site/pages/en/blog/migrations/v16-to-v18.mdx | Documents an additional codemod (dns-lookup-options-coercion) and aligns example heading wording. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (1)
apps/site/pages/en/blog/migrations/v22-to-v24.mdx:72
- The phrase “run all of them at once” is ambiguous here given the note that the list of codemods for this migration is not complete. Clarify that the command runs the codemods listed in this guide (or the preset), not necessarily every possible codemod for the migration.
If you want to run all of them at once, you can use the following command:
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (1)
apps/site/pages/en/blog/migrations/v22-to-v24.mdx:75
- The doc suggests running all v22→v24 codemods via
npx codemod run @nodejs/v22-to-v24, but that preset/package does not appear to exist in the Codemod Registry (the registry URL for it returns 404). This would cause the command to fail for readers. Consider replacing it with a single shell command that chains the individual codemods listed below in this guide (or link to an actual preset if one exists).
If you want to run all of them at once, you can use the following command:
```bash
npx codemod run @nodejs/v22-to-v24
</details>
📦 Build Size ComparisonSummary
|
Description
As titled
Related Issues
No related issues
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.