@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.0
Breaking Changes📦 apollo-clientView on GitHub →
⚠ 1 breaking✨ 1 features🔧 1 symbols
Summary
Apollo Client 4.x introduces a migration codemod to update old 3.x import paths to the new 4.x entrypoints.
⚠️ Breaking Changes
- Import paths for Apollo Client have changed from the 3.x entrypoint to the new 4.x entrypoint, causing runtime errors if old paths are used. Update imports to the new locations or run the provided codemod.
Migration Steps
- Run the migration codemod: npx @apollo/client-codemod-migrate-3-to-4 --parser tsx ./src/**/*.{ts,tsx}
✨ New Features
- Added a codemod (npx @apollo/client-codemod-migrate-3-to-4) that automatically renames old 3.x import locations to the new 4.x entrypoints for .js, .jsx, .ts, and .tsx files.
🔧 Affected Symbols
@apollo/client