Mmanishjha-04

fastify/5/decorate-request-to-getter-method

No description available

fastify5migration
Public
348 executions

Run locally

npx codemod fastify/5/decorate-request-to-getter-method

This codemod transforms fastify.decorateRequest with static objects into the new Fastify v5 pattern using a getter function.

Before

ts

After

ts

This shows the transition from decorating requests with static objects to using a getter method in Fastify v5, which allows for more dynamic and flexible request decorations.

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.