Use case
Framework
Owner
Add Status To Error Handling
This codemod improves error handling in SvelteKit by updating the way errors are returned in the load function. In SvelteKit 1, errors were handled inconsistently, often missing the status property or failing to trigger the handleError hook. SvelteKit 2 standardizes error handling by automatically including the status and message properties in error responses.
Vue 2 To Vue 3 Refs And Methods
This codemod turns X into Y. It also does Z. Note: this is a contrived example. Please modify it.
React Router/7/Migration Recipe
This codemods designed to facilitate the migration of your project from React Router to version 7. Each codemod targets specific changes and improvements introduced in React Router v7, ensuring a smoother transition.
React Router/7/Add V7 FetcherPersist Flag
This transformation adds the necessary configuration to enable v7 features, specifically the v7_fetcherPersist flags
React Router/7/Form Methods Post Get To Uppercase
This transformation updates formMethod checks to use uppercase HTTP methods.
Meteor/V3/Update React
This codemod helps in transforming react to meteor
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.
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
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.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
by@jacobparisRemix/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
by@jacobparisRemix/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
by@jacobparisRemix/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
by@jacobparis