Use case
Framework
Owner
MoveStateToChildComponent
This codemod refactors React components by moving
useState
hooks from parent components to child components when the state and setter function (setState
) are passed down as props. The goal is to simplify the parent components and allow child components to manage their own internal state when appropriate.Meteor/V3/Mongo Db Async Methods
This codemod updates synchronous MongoDB operations in a Meteor project to use their asynchronous counterparts, making the code compatible with modern JavaScript best practices (using
async/await
). It transforms methods such asfind
,findOne
,insert
,update
,remove
, andupsert
to their asynchronous equivalents by appendingAsync
to method names and introducingawait
.Remix Js/V2/Migration Recipe
This recipe is a set of codemods that will help migrate to Remix.js v2.
Meteor/V3/React To Meteor
This codemod helps in transforming react to meteor
Remix Js/V2/Fetcher Submission Properties Flattening
Like useNavigation, useFetcher has flattened the submission and removed the type field.
Next/15/Update Fetch Requests To Handle Caching
Update Fetch Requests to Handle Caching
Next/15/Migration Recipe
This recipe is a set of codemods that will help migrate to next 15.
Meteor/V3/Call Async
This codemod replaces call with callAsync, since thats how meteor works with calls now.
Valtio/V2/Use Snapshot Migration
This codemod automates the migration of Valtio code to accommodate changes in the behavior of
useSnapshot()
. In recent updates,useSnapshot()
has been modified for better compatibility withuseMemo
and the upcoming React compiler. This codemod updates your code to ensure optimal performance and compatibility with these changes.TanStackRouter CodeSplitting
This codemod automates the process of splitting your TanStack Router route files into two separate files to enable code splitting. By utilizing this codemod, you can easily move non-critical route configuration, such as the component, into a separate
.lazy.tsx
file, which allows for better performance and reduced initial load time in your React application.Ethers/6/Utilities
This codemod does tranformation based on changes in the utils in ethers.js
Sentry/V8/Removal Sentry.ConfigureScope Method
This codemod facilitates the migration from Sentry version 7.x to 8.x by removing the deprecated Sentry.configureScope method. Instead, it transforms the code to utilize Sentry.getCurrentScope() for accessing and mutating the current scope. This change simplifies the API and aligns with the latest Sentry practices.
Removal Sentry.ConfigureScope Method
This codemod facilitates the migration from Sentry version 7.x to 8.x by removing the deprecated Sentry.configureScope method. Instead, it transforms the code to utilize Sentry.getCurrentScope() for accessing and mutating the current scope. This change simplifies the API and aligns with the latest Sentry practices.
Fetch To Ky
This codemod is designed to help you migrate your existing codebase from using the native
fetch
API to the more concise and convenientky
HTTP client library. By running this codemod, you can automatically update your code to leverageky
's features, such as simpler syntax for common use cases like JSON requests and responses.Nuxt/4/Template Compilation Changes
This codemod removes lodash/template and related template utilities from Nuxt in favor of a more flexible and secure getContents() function for code generation in v3.
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Remix/Single Fetch/Recipe
This codemod runs all of the Single Fetch codemods in order
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Remix/Single Fetch/Replace Types
This codemod replaces the UIMatch and MetaArgs types with UIMatch_SingleFetch and MetaArgs_SingleFetch
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Remix/Single Fetch/Redirect To Response
This codemod removes Remix's
redirect()
andredirectDocument()
helper functions to take advantage of the new Single Fetch features.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Remix/Single Fetch/New Response To Response
This codemod removes
new Response()
calls in actions and loaders and replaces them with mutations to the newresponse
arg from Single Fetch.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community