Use case
Framework
Owner
Editor Has Block
Transform
Editor.hasBlock
toEditor.nodes
This codemod replaces occurrences of Editor.hasBlock with the equivalent Editor.nodes structure. The transformation updates the code to use a more modern API, ensuring compatibility and improved functionality.
React 17 Default Props To Params
Example
This codemod turns X into Y. It also does Z. Note: this is a contrived example. Please modify it.
Webpack To Rspack/Remove Raw Loader To Type Asset Source
Rspack implements Webpack 5's Asset Modules, using asset modules to replace raw-loader to 'asset/source' for better performance.
Reka Ui/Remove Calendar Step Prop
Use prevPage/nextPage props for greater control.
I18n/23/I18next Replace Keyswithseparator With Joinkeys
Renaming types or functions can be part of an effort to clarify the library's API, deprecate old functionality, or introduce new features. In this case, KeysWithSeparator has been renamed to JoinKeys. This means wherever KeysWithSeparator was used in the codebase, it needs to be replaced with JoinKeys.
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
Next/15/Migration Recipe
This recipe is a set of codemods that will help migrate to next 15.
Next/15/Refactor Experimental.ServerComponentsExternalPackages To ServerExternalPackages
Refactor experimental.serverComponentsExternalPackages to serverExternalPackages
Next/15/Refactor Imports From @Next/Font To Next/Font
Refactor Imports from @next/font to next/font
Fastify/4/Remove App Use
This codemod removes app.use() and the use of middleware is no longer supported.
Vue 3 Update Navigation Menu Link Emits And Handle Click
When using
NavigationMenuLink
together withNuxtLink
according to the documentation the menu does not dismiss when clicking on a link.NextAuth/4/UseSession Array To Object Destructuring
The
useSession
hook has been updated to return an object. This allows you to test states much more cleanly with the new status option.Vue V1.9.4 Tab Tabs Indicator Position Bug Fix
Recalculates tabs indicator position on direction change in the Tab Component
Next/13/App Router Recipe
The App Router Recipe is a set of codemods that assist you with the pages-to-app migration process.
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Next I18next/Copy Keys
This codemod copies specific keys from one translation namespace to another, for each of the supported languages.
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Next/14/Next Og Import
This codemod moves transforms imports from
next/server
tonext/og
for usage of Dynamic OG Image Generation.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Next/14/Metadata To Viewport Export
This codemod migrates certain viewport metadata to
viewport
export.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Next/13/Upsert Use Client Directive
Since Next.js 13.4, you can mark the files that contain only client-side code with the
use client
directive at the top.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community