Use case
Framework
Owner
Schema Validation
This transformation involves modifying how a
paragraph
block type is handled in a schema-like structure by replacing its static configuration with a runtime validation function(isValidNode)
.Before
Flatten Deno.Json
This codemod helps developers migrate their deno.json configuration files to the new flattened schema format, making them easier to read and write. It automates the transformation of nested properties to their new top-level structure as outlined in recent Deno updates.
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)
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/Route Wildcard To Nested
This transformation updates the routing structure for multi-segment splat paths. It affects both createBrowserRouter configurations and components.
Fastify/5/Rename Logger To Logger Instance
This codemod updates the Fastify logger configuration by renaming the
logger
option tologgerInstance
, in line with Fastify v5 changes.Webpack/V5/Set Target To False And Update Plugins
This codemod migrates the
target
property in Webpack configurations from a function tofalse
and moves the function to theplugins
array.Set Target To False And Update Plugins
This codemod migrates the
target
property in Webpack configurations from a function tofalse
and moves the function to theplugins
array.Webpack/V5/Migrate Library Target To Library Object
This codemod migrates the
output.library
andoutput.libraryTarget
properties in Webpack configurations to the new format required by Webpack 5. It changesoutput.library
tooutput.library.name
andoutput.libraryTarget
tooutput.library.type
.Nuxt/2/Convert Nuxt.Js Config To The `DefineNuxtConfig`
Convert Nuxt.js Config to defineNuxtConfig
Nuxt 2 Convert Nuxt.Js Config To `DefineNuxtConfig`
Convert Nuxt.js Config to defineNuxtConfig
Next/15/Add Experimental Stale Times
Configure staleTimes in next.config.js
Next/15/Update Fetch Requests To Handle Caching
Update Fetch Requests to Handle Caching
Next/15/Update Route Handlers
Update Route Handlers to Handle Caching
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.