From c372bad4ebd01a4f2e772cd76e873143bf043fe6 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Wed, 20 Sep 2023 18:30:58 +0200 Subject: [PATCH] Remove deprecated SuspenseCache export (#11229) --- .api-reports/api-report-react.md | 25 ------------------- .api-reports/api-report-react_hooks.md | 27 --------------------- .api-reports/api-report.md | 25 ------------------- .changeset/pretty-readers-lick.md | 5 ++++ .size-limit.cjs | 4 +-- src/__tests__/__snapshots__/exports.ts.snap | 2 -- src/react/cache/index.ts | 25 ------------------- src/react/index.ts | 2 -- src/react/types/types.ts | 3 --- 9 files changed, 7 insertions(+), 111 deletions(-) create mode 100644 .changeset/pretty-readers-lick.md diff --git a/.api-reports/api-report-react.md b/.api-reports/api-report-react.md index 504453b9637..3be6c342a55 100644 --- a/.api-reports/api-report-react.md +++ b/.api-reports/api-report-react.md @@ -350,8 +350,6 @@ export interface BackgroundQueryHookOptions { variables?: TVariables; } -// Warning: (ae-forgotten-export) The symbol "SuspenseCache_2" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -export class SuspenseCache extends SuspenseCache_2 { - constructor(); -} - -// @public (undocumented) -class SuspenseCache_2 { - // Warning: (ae-forgotten-export) The symbol "SuspenseCacheOptions" needs to be exported by the entry point index.d.ts - constructor(options?: SuspenseCacheOptions); - // (undocumented) - getQueryRef(cacheKey: CacheKey, createObservable: () => ObservableQuery): InternalQueryReference; -} - -// @public (undocumented) -interface SuspenseCacheOptions { - // (undocumented) - autoDisposeTimeoutMs?: number; -} - // @public (undocumented) export type SuspenseQueryHookFetchPolicy = Extract; @@ -1949,8 +1926,6 @@ export interface SuspenseQueryHookOptions { variables?: TVariables; } -// Warning: (ae-forgotten-export) The symbol "SuspenseCache_2" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -class SuspenseCache extends SuspenseCache_2 { - constructor(); -} - -// @public (undocumented) -class SuspenseCache_2 { - // Warning: (ae-forgotten-export) The symbol "SuspenseCacheOptions" needs to be exported by the entry point index.d.ts - constructor(options?: SuspenseCacheOptions); - // (undocumented) - getQueryRef(cacheKey: CacheKey, createObservable: () => ObservableQuery): InternalQueryReference; -} - -// @public (undocumented) -interface SuspenseCacheOptions { - // (undocumented) - autoDisposeTimeoutMs?: number; -} - // @public (undocumented) type SuspenseQueryHookFetchPolicy = Extract; @@ -1832,8 +1807,6 @@ interface SuspenseQueryHookOptions { variables?: TVariables; } -// Warning: (ae-forgotten-export) The symbol "SuspenseCache_2" needs to be exported by the entry point index.d.ts -// -// @public (undocumented) -export class SuspenseCache extends SuspenseCache_2 { - constructor(); -} - -// @public (undocumented) -class SuspenseCache_2 { - // Warning: (ae-forgotten-export) The symbol "SuspenseCacheOptions" needs to be exported by the entry point index.d.ts - constructor(options?: SuspenseCacheOptions); - // (undocumented) - getQueryRef(cacheKey: CacheKey, createObservable: () => ObservableQuery): InternalQueryReference; -} - -// @public (undocumented) -interface SuspenseCacheOptions { - // (undocumented) - autoDisposeTimeoutMs?: number; -} - // @public (undocumented) export type SuspenseQueryHookFetchPolicy = Extract; @@ -2561,8 +2538,6 @@ export interface SuspenseQueryHookOptions { fetchPolicy?: SuspenseQueryHookFetchPolicy; - suspenseCache?: SuspenseCache; queryKey?: string | number | any[]; /** @@ -172,7 +170,6 @@ export interface BackgroundQueryHookOptions< | "refetchWritePolicy" > { fetchPolicy?: BackgroundQueryHookFetchPolicy; - suspenseCache?: SuspenseCache; queryKey?: string | number | any[]; /**