Registry
Zzhengxuyu avatar

zhengxuyu/wagmi-v1-to-v2

Migrate wagmi React hooks from v1 to v2

zhengxuyu0 executions

  • transformation
  • migration
  • wagmi
  • react
  • hooks
  • web3
  • ethereum
Connect a repo
npx codemod @zhengxuyu/wagmi-v1-to-v2

wagmi-v1-to-v2

Migrate wagmi React hooks from v1 to v2

Installation

bash
# Install from registry
codemod run wagmi-v1-to-v2

# Or run locally
codemod run -w workflow.yaml

Usage

This codemod transforms tsx code by:

  • Converting var declarations to const/let
  • Removing debug statements
  • Modernizing syntax patterns

Development

bash
# Test the transformation
npm test

# Validate the workflow
codemod validate -w workflow.yaml

# Publish to registry
codemod login
codemod publish

License

MIT

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.