Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions docs/Guides/Migration-Guide-V4.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,19 @@ To help with the upgrade, we’ve worked with the team at
publish codemods that will automatically update your code to many of
the new APIs and patterns in Fastify v4.

Run the following
[migration recipe](https://go.codemod.com/fastify-4-migration-recipe) to
automatically update your code to Fastify v4:

```
```bash
npx codemod@latest fastify/4/migration-recipe
```
Comment on lines 17 to 20

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fenced code block appears without an introductory sentence, after removing the prior “Run the following migration recipe…” text. Consider adding back a short lead-in explaining what the command does (and optionally linking the recipe name to the new registry URL) so this section reads coherently.

Copilot uses AI. Check for mistakes.
This applies the following codemods:

This will run the following codemods:

- [`fastify/4/remove-app-use`](https://go.codemod.com/fastify-4-remove-app-use)
- [`fastify/4/reply-raw-access`](https://go.codemod.com/fastify-4-reply-raw-access)
- [`fastify/4/wrap-routes-plugin`](https://go.codemod.com/fastify-4-wrap-routes-plugin)
- [`fastify/4/await-register-calls`](https://go.codemod.com/fastify-4-await-register-calls)
- fastify/4/remove-app-use
- fastify/4/reply-raw-access
- fastify/4/wrap-routes-plugin
- fastify/4/await-register-calls

Each of these codemods automates the changes listed in the v4 migration guide.
For a complete list of available Fastify codemods and further details,
see [Codemod Registry](https://go.codemod.com/fastify).
For information on the migration recipe, see
https://app.codemod.com/registry/fastify/4/migration-recipe.


## Breaking Changes
Expand Down
Loading