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
vardeclarations toconst/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