From c372bad4ebd01a4f2e772cd76e873143bf043fe6 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Wed, 20 Sep 2023 18:30:58 +0200 Subject: [PATCH 1/2] 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[]; /** From 2539a0b7cf4f65cad35b85865744bde962d1830f Mon Sep 17 00:00:00 2001 From: Anton Sitnikov Date: Thu, 21 Sep 2023 01:53:32 +0700 Subject: [PATCH 2/2] Remove unused split import --- docs/source/networking/authentication.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/networking/authentication.mdx b/docs/source/networking/authentication.mdx index 8005e01d542..e7b328c7710 100644 --- a/docs/source/networking/authentication.mdx +++ b/docs/source/networking/authentication.mdx @@ -69,7 +69,7 @@ VueJS example: ```js import ApolloClient from "apollo-client"; import { HttpLink } from "apollo-link-http"; -import { ApolloLink, concat, split } from "apollo-link"; +import { ApolloLink, concat } from "apollo-link"; import { InMemoryCache } from "apollo-cache-inmemory"; import { getMainDefinition } from "apollo-utilities";