What problem does it solve?
Upgrading @data-client to v0.18 breaks custom Schema implementations because denormalize and normalize now take a single delegate object instead of separate args, unvisit, and visit parameters. This Skill runs the official codemod and guides you through the cases it cannot automate, including registering argsKey for schemas whose output depends on endpoint args.
Core Features & Use Cases
- Pre-check scan: Uses ripgrep or grep to detect whether your codebase actually contains custom Schema subclasses before running any migration.
- Automated codemod execution: Runs the jscodeshift-based v0.18 codemod against the correct source roots while avoiding node_modules and unsupported SFC files.
- Manual migration guidance: Covers class fields, computed keys, helper functions, and interface signatures the codemod skips, plus argsKey registration for cache-correct invalidation.
- Use Case: A team upgrading a React app with custom polymorphic schemas runs the pre-check, applies the codemod to src/, then hand-migrates two class-field denormalize definitions and registers argsKey on a lens-based schema.
Quick Start
Ask the assistant to migrate my @data-client schemas to the v0.18 delegate signature and verify nothing was missed.