Use case
Framework
Owner
I18n/23/Remove Options
Modification of the InterpolationOptions type. In version 23.0.0, the ns property within InterpolationOptions is now constrained to be of type Namespace instead of being a string or a readonly string[]. This change requires you to adjust your code accordingly.
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.Styledictionary/4/Hook Api Parsers
This codemod updates registered parsers to be placed inside the
hooks.parsers
property, instead ofparser
, with a shift from the singular to the plural form. Registered parsers now apply globally without needing explicit application in the config. Additionally, theparse
function has been renamed toparser
for consistency.Styledictionary/4/Hook Api Formats
This codemod updates registered formats to be placed inside the
hooks.formats
property, instead offormat
, with a shift from the singular to the plural form. Additionally, the formatter handler function has been renamed toformat
for consistency. Some importable type interfaces have also been renamed.Styledictionary/4/Asynchronous Api
This codemod updates the following StyleDictionary class methods to be asynchronous:
extend()
,exportPlatform()
,getPlatform()
,buildAllPlatforms()
,buildPlatform()
,cleanAllPlatforms()
, andcleanPlatform()
. This ensures compatibility with the latest asynchronous workflows in Style Dictionary.Webpack/V5/Migration Recipe
This recipe is a set of codemods that will help migrate webpack v4 to v5.
Webpack/V5/Json Imports To Default Imports
This codemod migrates imports from JSON modules that use named exports to use default exports instead.
Styledictionary/4/Updated And Removed Transforms
What Changed
Styledictionary/4/Reference Utils
What Changed
Styledictionary/4/Instantiating Style Dictionary
What Changed
Styledictionary/4/Formatting Options
What Changed
Valtio/V2/Use Snapshot Migration
This codemod automates the migration of Valtio code to accommodate changes in the behavior of
useSnapshot()
. In recent updates,useSnapshot()
has been modified for better compatibility withuseMemo
and the upcoming React compiler. This codemod updates your code to ensure optimal performance and compatibility with these changes.Ethers/6/Utilities
This codemod does tranformation based on changes in the utils in ethers.js
Ethers/6/Providers
In addition to all the
ethers.providers.*
being moved toethers.*
, the biggest change developers need to keep in mind is that Web3Provider (which historically was used to wrap link-web3 providers) is now called BrowserProvider which is designed to wrap EIP-1193 providers, which is the standard that both modern Web3.js and injected providers offer.Fetch To Ky
This codemod is designed to help you migrate your existing codebase from using the native
fetch
API to the more concise and convenientky
HTTP client library. By running this codemod, you can automatically update your code to leverageky
's features, such as simpler syntax for common use cases like JSON requests and responses.Npm Esm First In Exports
Sort package.json export order to prefer ESM over CJS
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
@E18e/Is Npm
Introduction
Remix/Single Fetch/Recipe
This codemod runs all of the Single Fetch codemods in order
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Remix/Single Fetch/Replace Types
This codemod replaces the UIMatch and MetaArgs types with UIMatch_SingleFetch and MetaArgs_SingleFetch
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Remix/Single Fetch/New Response To Response
This codemod removes
new Response()
calls in actions and loaders and replaces them with mutations to the newresponse
arg from Single Fetch.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community