github apollographql/apollo-client @apollo/client@4.0.0-rc.10

latest releases: @apollo/client@4.0.4, @apollo/client@4.0.3, @apollo/client@4.0.2...
pre-release23 days ago

Major Changes

  • #12837 7c49fdc Thanks @jerelmiller! - You must now opt in to use GraphQL Codegen data masking types when using Apollo Client's data masking feature. By default, Apollo Client now uses an identity type to apply to masked/unmasked types.

    If you're using GraphQL Codegen to generate masked types, opt into the GraphQL Codegen masked types using declaration merging on the TypeOverides interface.

    import { GraphQLCodegenDataMasking } from "@apollo/client/masking";
    
    declare module "@apollo/client" {
      export interface TypeOverrides
        extends GraphQLCodegenDataMasking.TypeOverrides {}
    }
  • #12837 7c49fdc Thanks @jerelmiller! - The types mode for data masking has been removed. Adding a types mode to the DataMasking interface has no effect. Remove the mode key in the module where you declare the DataMasking type for the @apollo/client module.

    As a result, the Masked and MaskedDocumentNode types have also been removed since these have no effect when types are preserved.

Don't miss a new apollo-client release

NewReleases is sending notifications on new releases.