Upgrade to Fastify 4

Proprietary

Upgrade fastify to 4.x and fastify-plugin to 4.x in package.json. Not done by this recipe: the @fastify/* and fastify-* plugins, which have their own versions and need the ones that declare support for Fastify 4; the full JSON schema requirement for querystring, params and body shorthand, and fastify-* plugin renames to @fastify/*.

org.openrewrite.nodejs.migrate.fastify.UpgradeToFastify4
mod run . --recipe=org.openrewrite.nodejs.migrate.fastify.UpgradeToFastify4

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.