From ef544018f84e85681d08d41170bb2482a83d18da Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Thu, 14 Aug 2025 08:42:14 -0600 Subject: [PATCH 1/4] Remove DataMasking interface --- src/core/index.ts | 1 - src/masking/index.ts | 7 +------ src/masking/types.ts | 2 -- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/core/index.ts b/src/core/index.ts index 910007d72ca..c1c33fbbb68 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -137,7 +137,6 @@ export { /* Masking */ export type { - DataMasking, FragmentType, MaybeMasked, Unmasked, diff --git a/src/masking/index.ts b/src/masking/index.ts index 715a840b774..bc0afd5292e 100644 --- a/src/masking/index.ts +++ b/src/masking/index.ts @@ -1,9 +1,4 @@ -export type { - DataMasking, - FragmentType, - MaybeMasked, - Unmasked, -} from "./types.js"; +export type { FragmentType, MaybeMasked, Unmasked } from "./types.js"; export type { GraphQLCodegenDataMasking } from "./GraphQLCodegenDataMasking.js"; export { disableWarningsSlot } from "./utils.js"; export { maskFragment } from "./maskFragment.js"; diff --git a/src/masking/types.ts b/src/masking/types.ts index 9569e8f72f9..f4d3c662cce 100644 --- a/src/masking/types.ts +++ b/src/masking/types.ts @@ -3,8 +3,6 @@ import type { ApplyHKTImplementationWithDefault } from "@apollo/client/utilities import type { PreserveTypes } from "./PreserveTypes.js"; -export interface DataMasking {} - export type FragmentType = ApplyHKTImplementationWithDefault< TypeOverrides, "FragmentType", From cad156a9690aab9a04a21e1a2460ed3ea4142cad Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Thu, 14 Aug 2025 08:44:36 -0600 Subject: [PATCH 2/4] Rerun api report --- .api-reports/api-report-core.api.md | 3 --- .api-reports/api-report-masking.api.md | 4 ---- .api-reports/api-report.api.md | 4 ---- 3 files changed, 11 deletions(-) diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index 6855da91bd0..3d41dcda5c1 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -17,7 +17,6 @@ import { CombinedProtocolErrors } from '@apollo/client/errors'; import { concat } from '@apollo/client/link'; import { createHttpLink } from '@apollo/client/link/http'; import { createSignalIfSupported } from '@apollo/client/link/http'; -import { DataMasking } from '@apollo/client/masking'; import type { DeepPartial } from '@apollo/client/utilities'; import { defaultDataIdFromObject } from '@apollo/client/cache'; import { defaultPrinter } from '@apollo/client/link/http'; @@ -394,8 +393,6 @@ export { createHttpLink } export { createSignalIfSupported } -export { DataMasking } - // @public (undocumented) export type DataState = { data: DataValue.Complete; diff --git a/.api-reports/api-report-masking.api.md b/.api-reports/api-report-masking.api.md index c7b6d47749f..7676ecbeaae 100644 --- a/.api-reports/api-report-masking.api.md +++ b/.api-reports/api-report-masking.api.md @@ -39,10 +39,6 @@ type CombineIntersection = Exclude = true extends (IsAny) ? false : TData extends object ? Exact extends Seen ? false : " $fragmentRefs" extends keyof RemoveIndexSignature ? true : ContainsFragmentsRefs> : false; -// @public (undocumented) -export interface DataMasking { -} - // @internal @deprecated (undocumented) export const disableWarningsSlot: { readonly id: string; diff --git a/.api-reports/api-report.api.md b/.api-reports/api-report.api.md index 368d90feac6..91324911d35 100644 --- a/.api-reports/api-report.api.md +++ b/.api-reports/api-report.api.md @@ -808,10 +808,6 @@ export const createSignalIfSupported: () => { signal: AbortSignal; }; -// @public (undocumented) -export interface DataMasking { -} - // @public (undocumented) export type DataState = { data: DataValue.Complete; From f837fe4aa53e6695b1c200b77e8dd1ddb5566177 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Thu, 14 Aug 2025 08:45:20 -0600 Subject: [PATCH 3/4] Add changeset --- .changeset/weak-goats-melt.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/weak-goats-melt.md diff --git a/.changeset/weak-goats-melt.md b/.changeset/weak-goats-melt.md new file mode 100644 index 00000000000..7282569486b --- /dev/null +++ b/.changeset/weak-goats-melt.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": major +--- + +Remove the `DataMasking` interface exported from `@apollo/client` and `@apollo/client/masking`. From 0620a601832dd316d18ab7b1f076dc227566b48d Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Thu, 14 Aug 2025 08:59:45 -0600 Subject: [PATCH 4/4] Update size limits --- .size-limits.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.size-limits.json b/.size-limits.json index 97d9abc113e..6b8af1f4ab0 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,6 +1,6 @@ { - "import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (CJS)": 43855, - "import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production) (CJS)": 38649, - "import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\"": 33615, - "import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production)": 27649 + "import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (CJS)": 43879, + "import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production) (CJS)": 38651, + "import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\"": 33590, + "import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production)": 27664 }