A

fastify/4/remove-app-use

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod removes app.use() and the use of middleware is no longer supported.

🚦 Impact Level: Minimal

What Changed

With v4 of Fastify, app.use() has been removed and the use of middleware is no longer supported.

If you need to use middleware, use @fastify/middie or @fastify/express, which will continue to be maintained. However, it is strongly recommended that you migrate to Fastify's hooks.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.