Use case
Framework
Owner
ChakraUI/V3/Remove Theme Tools
Theme tools has been removed, so this codemod transforms it, to use CSS color mix.
ChakraUI/V3/Update Chakra Provider
- Updates the ChakraProvider import from @chakra-ui/react
- Renames the theme prop to value to match the new system-based theming approach
ChakraUI/V3/Refactor Custom Theme
- Replaces extendTheme with createSystem and defaultConfig.
- Updates your theme object to fit the new structure required by Chakra UI.
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.
Webpack To Rspack/Cssextractwebpackplugin Community To Included Plugin
Handles the migration of the CssExtractWebpackPlugin webpack plug-in into an included plugin in rspack.
Webpack To Rspack/Handling Built In Plugins Migrations
- Rspack has implemented most of webpack's built-in plugins, with the same names and configuration parameters, allowing for easy replacement.
- Replace the the include package from webpack to rspack one.
- Replaces the webpack object in the plugins array to rspack object.
- Handles only for supported and partially supported built-in plugins. (as of 11th Oct 2024)
Webpack To Rspack/Migrate Update Babel Loader To Swc Loader
Using builtin:swc-loader offers better performance compared to the babel-loader and the external swc-loader, as it avoids frequent communication between JavaScript and Rust.
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 SkipActionStatusRevalidation Flag
This transformation adds the necessary configuration to enable v7 features, specifically the v7_skipActionStatusRevalidation flag.
React Router/7/Add V7 PartialHydration Flag
This transformation adds the necessary configuration to enable v7 features, specifically the v7_partialHydration_Flag flags
React Router/7/Add V7 NormalizeFormMethod
This transformation adds the necessary configuration to enable v7 features, specifically adds the v7_normalizeFormMethod
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/Add V7 StartTransition Flag
This transformation adds the necessary configuration to enable v7 features, specifically the v7_startTransition flags. It affects , , and createBrowserRouter configurations.
React Router/7/Add V7 RelativeSplatPath Flag
This transformation adds the necessary configuration to enable v7 features, specifically the v7_relativeSplatPath flag. It affects both components and createBrowserRouter configurations.
React Router/7/Relative Links
This transformation updates elements within route trees to include an extra relative segment. This ensures that links continue to point to the correct locations after the route structure changes.
React Router/7/Route Wildcard To Nested
This transformation updates the routing structure for multi-segment splat paths. It affects both createBrowserRouter configurations and components.
React Router/7/Form Methods Post Get To Uppercase
This transformation updates formMethod checks to use uppercase HTTP methods.
React Router/7/Errorfirst Mutation Reorder
This transformation restructures action functions to perform error checking before data mutations. This change aligns with the new behavior in v7 where loaders no longer revalidate by default after an action throws or returns a Response with a 4xx/5xx status code.
Styledictionary/4/Hook Api Filters
This codemod updates registered filters to be placed inside the
hooks.filters
property, instead offilter
. Note the shift from the singular to the plural form in this update.Styledictionary/4/Logging
This codemod updates the logging system to be more configurable, as detailed in the Logging docs. You can now customize the verbosity of logs and silence warnings and success logs, in addition to the previous option of setting
log: 'error'
to change the default behavior to throw warnings as errors.