Fastify/5/Remove Done Callback

1.0.2Last update Dec 17, 2024
by@manishjha-04

This codemod updates fastify.register to use return instead of done, reflecting changes in Fastify v5 for asynchronous plugin registration.

Before

fastify.register(async function(instance, opts, done) {
done();
});

After

fastify.register(async function(instance, opts) {
return;
});

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now