@apollo/client@4.0.0-rc.10
Breaking Changes📦 apollo-client
⚠ 2 breaking✨ 1 features🔧 5 symbols
Summary
This release makes data‑masking types opt‑in only, removes the `mode` option and the `Masked`/`MaskedDocumentNode` types, and requires migration steps to adjust type declarations.
⚠️ Breaking Changes
- The default data masking type changed to an identity type; projects that relied on GraphQL Codegen generated masked types must now opt‑in via declaration merging on the `TypeOverrides` interface, otherwise type errors will occur.
- The `mode` property on the `DataMasking` interface has been removed and is ignored; any code that sets `mode` must delete that property. The `Masked` and `MaskedDocumentNode` types have also been removed, causing compile errors if they are imported.
Migration Steps
- Add a declaration merging block for `@apollo/client` that extends `GraphQLCodegenDataMasking.TypeOverrides` as shown in the release notes.
- Remove any `mode` property from your `DataMasking` type declarations.
- Delete imports or usages of the now‑removed `Masked` and `MaskedDocumentNode` types.
✨ New Features
- Opt‑in support for GraphQL Codegen data‑masking types through declaration merging on `TypeOverrides`.
🔧 Affected Symbols
DataMaskingMaskedMaskedDocumentNodeTypeOverridesGraphQLCodegenDataMasking