Use case
Framework
Owner
- Goto To Location Href- Codemod Description- This codemod is designed to replace specific patterns in TypeScript files with updated code logic. It transforms instances of - goto($A)into- window.location.href = $A;when the- $Avalue is a URL starting with- http://or- https://. This refactor makes external navigation more explicit by using- window.location.href.
- Replace Throw With Error Call- This codemod simplifies error handling and redirects in your TypeScript project by replacing - throw error()and- throw redirect()statements with direct calls to- error()and- redirect(). This change aligns with modern practices and results in cleaner, more readable code.
- Cursor Selection Handling- This codemod shows how to migrate cursor and - selectionhandling from Slate v0.88 to v0.104, including the Preventing runtime errors from null selections.
- Fastify/5/Remove Done Callback- This codemod updates - fastify.registerto use- returninstead of- done, reflecting changes in Fastify v5 for asynchronous plugin registration.
- Fastify/5/MigrationRecipe- This recipe provides a set of codemods designed to assist with migrating to Fastify 5. Each codemod addresses specific changes and enhancements introduced in Fastify 5. 
- Fastify/5/Rename Logger To Logger Instance- This codemod updates the Fastify logger configuration by renaming the - loggeroption to- loggerInstance, in line with Fastify v5 changes.
- Fastify/5/Make Reply Trailer Async- This codemod updates the - reply.trailermethod to use an- asyncfunction for handling trailers, aligning with Fastify v5's support for asynchronous operations in trailers.
- Fastify/5/Redirect Arg Order- This codemod updates - reply.redirectby placing the status code as the second argument, as per Fastify v5 conventions.
- Fastify/5/GetResponseTime To ElapsedTime- This codemod converts - reply.getResponseTime()to- reply.elapsedTime, reflecting changes in Fastify v5 for retrieving response time.
- Fastify/5/Req Connection To Socket- This codemod updates references from - req.connectionto- req.socket, reflecting changes in Fastify v5's request handling.
- Fastify/5/Route Schema Enhancement- This codemod enhances the schema definition for query strings by converting it to the full object schema format, adding properties and required fields. 
- Fastify/5/Decorate Request To Getter Method- This codemod transforms - fastify.decorateRequestwith static objects into the new Fastify v5 pattern using a getter function.
- Fastify/5/Add Expose Head Routes Option- This codemod introduces the - exposeHeadRoutes: falseoption to avoid automatic- HEADroute exposure, while keeping manually defined- HEADroutes intact.- Before
- Fastify/5/Replace Reply Sent With Hijack- This codemod turns - reply.sent = trueinto- reply.hijack(), updating to the new Fastify v5 method for handling manual responses.
- Fastify/5/Replace Hardcoded Url In Hasroute- This codemod highlights the shift in how routes with dynamic parameters should be referenced in - fastify.hasRoutein Fastify v5.
- Fastify/5/Listen Arg Transformation- This codemod turns - fastify.listen(8000)into- fastify.listen({ port: 8000 }), reflecting the highlights of the migration from the old- listenmethod signature to the new object-based approach in Fastify v5.- Before
- Fastify/5/Req Params HasOwnProperty To ObjectHasOwn- This codemod turns - req.params.hasOwnProperty('name')into- Object.hasOwn(req.params, 'name'), reflecting the new Fastify v5 approach to property checking.
- Three/R168/Migration Recipe- This recipe is a set of codemods that will help migrate to three r168 from three r167 . 
- Socket.Io/4/Migration Recipe- This recipe is a set of codemods that will fix some of Socket.io 4.0 breaking changes. 
- Socket.Io/4/Removing Useless Broadcast Flag- This codemod will get rid of following error: