Skip to content

Commit 65b503f

Browse files
authored
Remove the DataMasking interface (#12841)
1 parent 83e132a commit 65b503f

File tree

7 files changed

+6
-20
lines changed

7 files changed

+6
-20
lines changed

.api-reports/api-report-core.api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { CombinedProtocolErrors } from '@apollo/client/errors';
1717
import { concat } from '@apollo/client/link';
1818
import { createHttpLink } from '@apollo/client/link/http';
1919
import { createSignalIfSupported } from '@apollo/client/link/http';
20-
import { DataMasking } from '@apollo/client/masking';
2120
import type { DeepPartial } from '@apollo/client/utilities';
2221
import { defaultDataIdFromObject } from '@apollo/client/cache';
2322
import { defaultPrinter } from '@apollo/client/link/http';
@@ -394,8 +393,6 @@ export { createHttpLink }
394393

395394
export { createSignalIfSupported }
396395

397-
export { DataMasking }
398-
399396
// @public (undocumented)
400397
export type DataState<TData> = {
401398
data: DataValue.Complete<TData>;

.api-reports/api-report-masking.api.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ type CombineIntersection<T> = Exclude<T, {
3939
// @public (undocumented)
4040
type ContainsFragmentsRefs<TData, Seen = never> = true extends (IsAny<TData>) ? false : TData extends object ? Exact<TData> extends Seen ? false : " $fragmentRefs" extends keyof RemoveIndexSignature<TData> ? true : ContainsFragmentsRefs<TData[keyof TData], Seen | Exact<TData>> : false;
4141

42-
// @public (undocumented)
43-
export interface DataMasking {
44-
}
45-
4642
// @internal @deprecated (undocumented)
4743
export const disableWarningsSlot: {
4844
readonly id: string;

.api-reports/api-report.api.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,6 @@ export const createSignalIfSupported: () => {
807807
signal: AbortSignal;
808808
};
809809

810-
// @public (undocumented)
811-
export interface DataMasking {
812-
}
813-
814810
// @public (undocumented)
815811
export type DataState<TData> = {
816812
data: DataValue.Complete<TData>;

.changeset/weak-goats-melt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apollo/client": major
3+
---
4+
5+
Remove the `DataMasking` interface exported from `@apollo/client` and `@apollo/client/masking`.

src/core/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ export {
137137

138138
/* Masking */
139139
export type {
140-
DataMasking,
141140
FragmentType,
142141
MaybeMasked,
143142
Unmasked,

src/masking/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
export type {
2-
DataMasking,
3-
FragmentType,
4-
MaybeMasked,
5-
Unmasked,
6-
} from "./types.js";
1+
export type { FragmentType, MaybeMasked, Unmasked } from "./types.js";
72
export type { GraphQLCodegenDataMasking } from "./GraphQLCodegenDataMasking.js";
83
export { disableWarningsSlot } from "./utils.js";
94
export { maskFragment } from "./maskFragment.js";

src/masking/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import type { ApplyHKTImplementationWithDefault } from "@apollo/client/utilities
33

44
import type { PreserveTypes } from "./PreserveTypes.js";
55

6-
export interface DataMasking {}
7-
86
export type FragmentType<TData> = ApplyHKTImplementationWithDefault<
97
TypeOverrides,
108
"FragmentType",

0 commit comments

Comments
 (0)