@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
- Add a module augmentation for `@apollo/client` that extends `TypeOverrides` with `Defer20220824Handler.TypeOverrides` as shown in the release notes.
- Search for and remove any imports or references to `DataMasking` from your codebase.
π§ Affected Symbols
ApolloLink.ResultDefer20220824Handler.TypeOverridesDataMasking