Use case
Framework
Owner
React/19/Remove Forward Ref
React.forwardRef will be deprecated for Function Components in near future. This codemod removes forwardRef function.
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Pinia Colada 0 14 Migration Recipe
This codemod updates the usage of PiniaColada to ensure that the enabled and gcTime options are correctly placed under queryOptions. Previously, these options were directly passed as top-level properties, which is now deprecated. The codemod transforms these patterns into the new structure where enabled is nested under queryOptions.
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Deno Replace Import Assertions
This codemod helps migrate JavaScript/TypeScript files from using the deprecated import assertions syntax to the updated import attributes syntax. The change aligns with the updated proposal for import attributes and ensures compatibility with newer versions of runtimes like Deno 2 and modern browsers that have already removed support for import assertions.
Deno Refactor TLS Certs Reading
This codemod updates the usage of TLS certificate loading in Deno by replacing deprecated properties with their new counterparts. In Deno V2, loading certificates directly from files is now deprecated. Instead, you should read the certificates yourself.
Deno Refactor Resource Ids
In Deno v2, resource IDs are being deprecated. Most users do not directly interact with resource IDs, so we are moving towards a model where resources are referenced by native JavaScript objects. This codemod automates the process of updating your code to align with this change.
Deno Import STL Types
This codemod updates deprecated Deno typescript interfaces in your codebase. It automatically imports the necessary typscript interfaces from the standard library
React Router/6/Update Relative Links
This codemod modernizes
Route
andLink
components in React Router by:- Removing the deprecated
exact
prop fromRoute
. - Updating
Route
to use theelement
prop. - Rewriting dynamic
Link
andRoute
paths that use template literals like${match.url}
and${match.path}
.
- Removing the deprecated
React Router/5.1/Redirect To Navigate
This codemod updates deprecated
Redirect
components fromreact-router-dom
to the modernNavigate
API. It also updates the imports by replacingRedirect
withNavigate
.React Router/6/Navlink Exact To End
This codemod replaces the deprecated
exact
prop inNavLink
with the modernend
prop. React Router v6 and beyond useend
to indicate that the path should match exactly, making this a necessary update for compatibility with newer versions.Electron/V33/System Preferences To Native Theme
This codemod deprecates
systemPreferences.accessibilityDisplayShouldReduceTransparency
property, which is now deprecated in favor of the newnativeTheme.prefersReducedTransparency
, which provides identical information and works cross-platform.Gatsby/V5/Removal UseNavigate Hook
Removal of useNavigate Hook
Meteor/V3/Removed Functions
This codemod helps remove deprecated functions like
Promise.await
andMeteor.wrapAsync
from your Meteor codebase, aligning it with the new best practices introduced in Meteor v3.Next/15/Refactor Experimental.ServerComponentsExternalPackages To ServerExternalPackages
Refactor experimental.serverComponentsExternalPackages to serverExternalPackages
Sentry/V8/Removal Of AddGlobalEventProcessor
This codemod facilitates the migration from Sentry v7.x to v8.x by replacing the deprecated
addGlobalEventProcessor
function with the newgetGlobalScope().addEventProcessor
method.Sentry/V8/Removal Sentry.ConfigureScope Method
This codemod facilitates the migration from Sentry version 7.x to 8.x by removing the deprecated Sentry.configureScope method. Instead, it transforms the code to utilize Sentry.getCurrentScope() for accessing and mutating the current scope. This change simplifies the API and aligns with the latest Sentry practices.
Sentry/V8/Removal Severity Enum
Codemod to replace the deprecated Severity enum with the SeverityLevel type in Sentry from version 7.x to 8.x.
@E18e/String.Prototype.Trimleft
Introduction
@E18e/String.Prototype.Substr
Introduction
@E18e/String.Prototype.Padright
Introduction
@E18e/String.Prototype.Lastindexof
Introduction