Use case
Framework
Owner
React Router/6/UseHistory To UseNavigate
This codemod migrates
useHistory
touseNavigate
in React Router codebases. It replacesuseHistory
imports and updates all instances ofhistory.push
,history.replace
,go
,goBack
, andgoForward
to align with theuseNavigate
API.React Router/6/Switch To Routes
This codemod updates
Switch
components toRoutes
in React Router, in line with React Router v6 and newer. It also adjusts the imports, replacingSwitch
withRoutes
inreact-router-dom
import statements.React Router/6/Migrate StaticRouter Import
This codemod updates imports of
StaticRouter
to use thereact-router-dom/server
package instead ofreact-router-dom
, in line with updated React Router requirements.React Router/6/Replace UseRouteMatchWithUseMatch
This codemod updates
useRouteMatch
calls to the neweruseMatch
function inreact-router-dom
. It also adjusts any arguments passed touseRouteMatch
, changingstrict
toend
andsensitive
tocaseSensitive
. Additionally, it ensures that imports are updated to reflect the removal ofuseRouteMatch
.React Router/5.1/Redirect To Navigate
This codemod updates deprecated
Redirect
components fromreact-router-dom
to the modernNavigate
API. It also updates the imports by replacingRedirect
withNavigate
.React Router/6/React Router Config To Use Routes
This codemod helps update code that uses
react-router-config
to the modernuseRoutes
API fromreact-router-dom
. It removesrenderRoutes
from imports and replaces it withuseRoutes
. Manual adjustments might be required after running the codemod, especially if other customizations exist in your routing logic.Minimatch To Named Imports
Example
This codemod turns default import statements for minimatch to named imports.
React Router/7/Update Imports
In v7 the react-router and react-router-dom packages are combined so this codemod import everything directly from "react-router" except for the RouterProvider exception.
Reka Ui/Import Update
The primary change in imports is replacing radix-vue with reka-ui.
Webpack/V5/Migration Recipe
This recipe is a set of codemods that will help migrate webpack v4 to v5.
Webpack/V5/Json Imports To Default Imports
This codemod migrates imports from JSON modules that use named exports to use default exports instead.
Remix Js/V2/Remix 1 Replace Response With Create Readable Stream
ne place this is likely to surface and require a change is your app/entry.server.tsx file, where you'll also need to convert the Node PassThrough into a web ReadableStream via createReadableStreamFromReadable
Next/15/Migration Recipe
This recipe is a set of codemods that will help migrate to next 15.
Next/15/Refactor Imports From @Next/Font To Next/Font
Refactor Imports from @next/font to next/font
Ethers/6/Importing
This codemod helps in tranformation, related to some import packages.
Preact/X/Migration Recipe
This recipe provides a collection of codemods to help you migrate your codebase to Preact X. These codemods are designed to streamline the transition process by automating common code transformations.
Preact/X/Preact Import Source Update
A codemod that updates imports from Preact to React equivalents and modifies certain Preact imports for compatibility.
Preact/X/Default Import To Namespace Import
A codemod that converts named imports of Preact to namespace imports for improved compatibility and consistency.
@E18e/Symbol.Prototype.Description
Introduction
@E18e/Object.Hasown
Introduction