Change8

Migrating to Apollo Client @apollo/client-codemod-migrate-3-to-4@1.0.0-rc.0

Version @apollo/client-codemod-migrate-3-to-4@1.0.0-rc.0 introduces 1 breaking change. This guide details how to update your code.

Released: 6/27/2025

1
Breaking Changes
1
Migration Steps
1
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

@apollo/client

Breaking Changes

Issue #1

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

  1. 1
    Run the migration codemod: npx @apollo/client-codemod-migrate-3-to-4 --parser tsx ./src/**/*.{ts,tsx}

Release Summary

Apollo Client 4.x introduces a migration codemod to update old 3.x import paths to the new 4.x entrypoints.

Need More Details?

View the full release notes and all changes for Apollo Client @apollo/client-codemod-migrate-3-to-4@1.0.0-rc.0.

View Full Changelog