From 92f7afd5628bcdc06e2d97e048646bce39c14266 Mon Sep 17 00:00:00 2001 From: Aleksandr Vishniakov Date: Wed, 1 Nov 2023 05:58:34 +0200 Subject: [PATCH 1/3] Add missed reexports for MutationFetchPolicy and RefetchWritePolicy --- src/core/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/index.ts b/src/core/index.ts index 72340d689d7..5757cdb2071 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -14,6 +14,8 @@ export type { SubscriptionOptions, FetchPolicy, WatchQueryFetchPolicy, + MutationFetchPolicy, + RefetchWritePolicy, ErrorPolicy, FetchMoreQueryOptions, SubscribeToMoreOptions, From ce20e006251d5de8cd3c0b1b93f27bf47616a32f Mon Sep 17 00:00:00 2001 From: Aleksandr Vishniakov Date: Wed, 1 Nov 2023 06:22:09 +0200 Subject: [PATCH 2/3] Generate changeset --- .changeset/ninety-suits-flash.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/ninety-suits-flash.md diff --git a/.changeset/ninety-suits-flash.md b/.changeset/ninety-suits-flash.md new file mode 100644 index 00000000000..bba930c377e --- /dev/null +++ b/.changeset/ninety-suits-flash.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Add missed reexports of MutationFetchPolicy and RefetchWritePolicy to @apollo/client/core From 2702a5a6673cfe44fb424da0ae73dd506dcb12a7 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Wed, 8 Nov 2023 11:26:14 +0100 Subject: [PATCH 3/3] api reports --- .api-reports/api-report-core.md | 8 ++------ .api-reports/api-report.md | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.api-reports/api-report-core.md b/.api-reports/api-report-core.md index c5d9202d915..29a4f1286af 100644 --- a/.api-reports/api-report-core.md +++ b/.api-reports/api-report-core.md @@ -1316,14 +1316,12 @@ interface MutationBaseOptions; +export type MutationFetchPolicy = Extract; // Warning: (ae-forgotten-export) The symbol "MutationBaseOptions" needs to be exported by the entry point index.d.ts // // @public (undocumented) export interface MutationOptions = ApolloCache> extends MutationBaseOptions { - // Warning: (ae-forgotten-export) The symbol "MutationFetchPolicy" needs to be exported by the entry point index.d.ts - // // (undocumented) fetchPolicy?: MutationFetchPolicy; // (undocumented) @@ -1916,7 +1914,7 @@ export interface RefetchQueriesResult extends Promise Observable | null; @@ -2146,8 +2144,6 @@ export interface WatchQueryOptions, currentFetchPolicy: WatchQueryFetchPolicy, context: NextFetchPolicyContext) => WatchQueryFetchPolicy); - // Warning: (ae-forgotten-export) The symbol "RefetchWritePolicy" needs to be exported by the entry point index.d.ts - // // (undocumented) refetchWritePolicy?: RefetchWritePolicy; } diff --git a/.api-reports/api-report.md b/.api-reports/api-report.md index c73cfb60ec7..231d1ada070 100644 --- a/.api-reports/api-report.md +++ b/.api-reports/api-report.md @@ -1580,7 +1580,7 @@ export interface MutationDataOptions; +export type MutationFetchPolicy = Extract; // @public (undocumented) export type MutationFunction = ApolloCache> = (options?: MutationFunctionOptions) => Promise>; @@ -1599,8 +1599,6 @@ export interface MutationHookOptions = ApolloCache> extends MutationBaseOptions { - // Warning: (ae-forgotten-export) The symbol "MutationFetchPolicy" needs to be exported by the entry point index.d.ts - // // (undocumented) fetchPolicy?: MutationFetchPolicy; // (undocumented) @@ -2334,7 +2332,7 @@ export interface RefetchQueriesResult extends Promise, currentFetchPolicy: WatchQueryFetchPolicy, context: NextFetchPolicyContext) => WatchQueryFetchPolicy); - // Warning: (ae-forgotten-export) The symbol "RefetchWritePolicy" needs to be exported by the entry point index.d.ts - // // (undocumented) refetchWritePolicy?: RefetchWritePolicy; }