●Change8

@apollo/client@4.0.0-rc.11

Breaking Changes
πŸ“¦ apollo-clientView on GitHub β†’
⚠ 2 breakingπŸ”§ 3 symbols

Summary

This release introduces a breaking change requiring explicit type augmentation for incremental delivery handlers and removes the `DataMasking` interface, necessitating code updates.

⚠️ Breaking Changes

  • Incremental delivery handlers now require explicit opt‑in to add chunk types to the `ApolloLink.Result` type; you must augment the module with `declare module "@apollo/client" { export interface TypeOverrides extends Defer20220824Handler.TypeOverrides {} }`.
  • The `DataMasking` interface has been removed from `@apollo/client` and `@apollo/client/masking`; any imports or usage must be deleted or replaced.

Migration Steps

  1. Add a module augmentation for `@apollo/client` that extends `TypeOverrides` with `Defer20220824Handler.TypeOverrides` as shown in the release notes.
  2. Search for and remove any imports or references to `DataMasking` from your codebase.

πŸ”§ Affected Symbols

ApolloLink.ResultDefer20220824Handler.TypeOverridesDataMasking