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