Use case
Framework
Owner
Goto To Location Href
Codemod Description
This codemod is designed to replace specific patterns in TypeScript files with updated code logic. It transforms instances of
goto($A)intowindow.location.href = $A;when the$Avalue is a URL starting withhttp://orhttps://. This refactor makes external navigation more explicit by usingwindow.location.href.React Router/6/UseHistory To UseNavigate
This codemod migrates
useHistorytouseNavigatein React Router codebases. It replacesuseHistoryimports and updates all instances ofhistory.push,history.replace,go,goBack, andgoForwardto align with theuseNavigateAPI.React Router/7/Form Methods Post Get To Uppercase
This transformation updates formMethod checks to use uppercase HTTP methods.
Remix Js/V2/Remix Run 1 Use Transition To Use Navigation
This hook is now called useNavigation to avoid confusion with the recent React hook by the same name. It also no longer has the type field and flattens the submission object into the navigation object itself.
Remix Js/V2/Fetcher Submission Properties Flattening
Like useNavigation, useFetcher has flattened the submission and removed the type field.
Vue 3 Update Navigation Menu Link Emits And Handle Click
When using
NavigationMenuLinktogether withNuxtLinkaccording to the documentation the menu does not dismiss when clicking on a link.Next/13/Replace Use Search Params
A recent update in Next.js brought a breaking change: the
useSearchParamshook no longer includesparams. To ease the migration, the newuseCompatSearchParamshook can be used. This hook mimics the behavior of the olduseSearchParamsin two ways:Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Next/13/Replace Next Router
Since Next.js 13.4, you can use the following hooks from the
next/navigationmodule:Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Next/13/Remove Get Static Props
The following data fetching methods are no longer available in the
appdirectory:Codemod verified
Regularly tested and maintained by our engineers and codemod expert community