Use case
Framework
Owner
Correct Ts Specifiers
This package transforms import specifiers in source-code from the broken state TypeScript's compiler (
tsc
) required (prior TypeScript v5.7 RC) into proper ones. This is useful when source-code is processed by standards-compliant software like Node.js. This is a one-and-done process, and the updated source-code should be committed to your version control (ex git); thereafter, source-code import statements should be authored compliant with the ECMAScript (JavaScript) standard.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.
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.
Vue 2 To Vue 3 Refs And Methods
Example
This codemod turns X into Y. It also does Z. Note: this is a contrived example. Please modify it.
Remix/2/React Router/Upgrade
This codemod automates most of the manual steps outlined in the Remix to React Router upgrade guide.
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.