Change8

v4.0.0-alpha.7

Breaking Changes
📦 apollo-clientView on GitHub →
4 breaking🔧 3 symbols

Summary

Removed several React entry points and the parser cache, requiring import updates to `@apollo/client/react` and removal of parser usage.

⚠️ Breaking Changes

  • Removed the `@apollo/client/react/context` entry point; code importing from it will break. Update imports to use `@apollo/client/react`.
  • Removed the `@apollo/client/react/hooks` entry point; update imports to `@apollo/client/react`.
  • Removed the `@apollo/client/react/parser` entry point with no replacement; any imports must be removed or rewritten.
  • Removed the internal `parser` cache; code that accessed or relied on the cache will no longer work. The functionality is now provided without caching.

Migration Steps

  1. Search your codebase for imports from `@apollo/client/react/context` and replace them with imports from `@apollo/client/react`.
  2. Search for imports from `@apollo/client/react/hooks` and replace them with imports from `@apollo/client/react`.
  3. Remove any imports of `@apollo/client/react/parser` and refactor the code to use alternative parsing utilities or the built‑in GraphQL parser.
  4. If your code accessed the `parser` cache directly, remove those accesses; the cache is now internal and no longer exposed.

🔧 Affected Symbols

@apollo/client/react/context@apollo/client/react/hooks@apollo/client/react/parser