• React Router/6/UseHistory To UseNavigate

    This codemod migrates useHistory to useNavigate in React Router codebases. It replaces useHistory imports and updates all instances of history.push, history.replace, go, goBack, and goForward to align with the useNavigate API.

  • React Router/6/Switch To Routes

    This codemod updates Switch components to Routes in React Router, in line with React Router v6 and newer. It also adjusts the imports, replacing Switch with Routes in react-router-dom import statements.

  • React Router/6/Migrate StaticRouter Import

    This codemod updates imports of StaticRouter to use the react-router-dom/server package instead of react-router-dom, in line with updated React Router requirements.

  • React Router/6/Replace UseRouteMatchWithUseMatch

    This codemod updates useRouteMatch calls to the newer useMatch function in react-router-dom. It also adjusts any arguments passed to useRouteMatch, changing strict to end and sensitive to caseSensitive. Additionally, it ensures that imports are updated to reflect the removal of useRouteMatch.

  • React Router/5.1/Redirect To Navigate

    This codemod updates deprecated Redirect components from react-router-dom to the modern Navigate API. It also updates the imports by replacing Redirect with Navigate.

  • React Router/6/React Router Config To Use Routes

    This codemod helps update code that uses react-router-config to the modern useRoutes API from react-router-dom. It removes renderRoutes from imports and replaces it with useRoutes. 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.