Fastify/5/Remove Done Callback

/icons/calendar.svg

Last update

Sep 18, 2024

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