Migrate to Fastify 4
ProprietaryMigrates a Fastify 3 application to Fastify 4, following the migration guide, and keeps it behaving as it did. Renames the fastify-* plugins to @fastify/*, moves logger.prettyPrint to the pino-pretty transport, passes listen() its options as an object, replaces reply.res and request.req, removes done from async hooks, raises engines.node to Node.js 14, and upgrades fastify, fastify-plugin and the @fastify/* and mercurius plugins a project declares to the lines supporting Fastify 4. What cannot be rewritten with the same behaviour is marked for review.
io. moderne. javascript. migrate. fastify. MigrateToFastify4mod run . --recipe= io. moderne. javascript. migrate. fastify. MigrateToFastify4Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.