Skip to content

Commit 5022938

Browse files
committed
Update limits
1 parent 1d10b6e commit 5022938

5 files changed

+37
-5
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ export function useSubscription<TData = any, TVariables extends OperationVariabl
22382238
// Warning: (ae-forgotten-export) The symbol "UseSuspenseFragmentOptions" needs to be exported by the entry point index.d.ts
22392239
//
22402240
// @public (undocumented)
2241-
export function useSuspenseFragment<TData, TVariables>(options: UseSuspenseFragmentOptions<TData, TVariables>): UseSuspenseFragmentResult<TData>;
2241+
export function useSuspenseFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: UseSuspenseFragmentOptions<TData, TVariables>): UseSuspenseFragmentResult<TData>;
22422242

22432243
// @public (undocumented)
22442244
interface UseSuspenseFragmentOptions<TData, TVars> extends Omit<Cache_2.DiffOptions<NoInfer<TData>, NoInfer<TVars>>, "id" | "query" | "optimistic" | "previousResult" | "returnPartialData">, Omit<Cache_2.ReadFragmentOptions<TData, TVars>, "id" | "variables" | "returnPartialData"> {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ export function useSubscription<TData = any, TVariables extends OperationVariabl
20712071
// Warning: (ae-forgotten-export) The symbol "UseSuspenseFragmentOptions" needs to be exported by the entry point index.d.ts
20722072
//
20732073
// @public (undocumented)
2074-
export function useSuspenseFragment<TData, TVariables>(options: UseSuspenseFragmentOptions<TData, TVariables>): UseSuspenseFragmentResult<TData>;
2074+
export function useSuspenseFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: UseSuspenseFragmentOptions<TData, TVariables>): UseSuspenseFragmentResult<TData>;
20752075

20762076
// @public (undocumented)
20772077
interface UseSuspenseFragmentOptions<TData, TVars> extends Omit<Cache_2.DiffOptions<NoInfer<TData>, NoInfer<TVars>>, "id" | "query" | "optimistic" | "previousResult" | "returnPartialData">, Omit<Cache_2.ReadFragmentOptions<TData, TVars>, "id" | "variables" | "returnPartialData"> {

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

+33-1
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,13 @@ interface FieldSpecifier {
761761
variables?: Record<string, any>;
762762
}
763763

764+
// @public (undocumented)
765+
type FragmentCacheKey = [
766+
cacheId: string,
767+
fragment: DocumentNode,
768+
stringifiedVariables: string
769+
];
770+
764771
// @public (undocumented)
765772
interface FragmentKey {
766773
// (undocumented)
@@ -1888,10 +1895,11 @@ class SuspenseCache {
18881895
constructor(options?: SuspenseCacheOptions);
18891896
// (undocumented)
18901897
add(cacheKey: CacheKey, queryRef: InternalQueryReference<unknown>): void;
1898+
// Warning: (ae-forgotten-export) The symbol "FragmentCacheKey" needs to be exported by the entry point index.d.ts
18911899
// Warning: (ae-forgotten-export) The symbol "FragmentReference" needs to be exported by the entry point index.d.ts
18921900
//
18931901
// (undocumented)
1894-
getFragmentRef<TData>(cacheKey: CacheKey, createObservable: () => Observable<WatchFragmentResult<TData>>): FragmentReference<TData>;
1902+
getFragmentRef<TData>(cacheKey: FragmentCacheKey, createObservable: () => Observable<WatchFragmentResult<TData>>): FragmentReference<TData>;
18951903
// (undocumented)
18961904
getQueryRef<TData = any>(cacheKey: CacheKey, createObservable: () => ObservableQuery<TData>): InternalQueryReference<TData>;
18971905
}
@@ -2118,6 +2126,26 @@ interface UseReadQueryResult<TData = unknown> {
21182126
networkStatus: NetworkStatus;
21192127
}
21202128

2129+
// Warning: (ae-forgotten-export) The symbol "UseSuspenseFragmentOptions" needs to be exported by the entry point index.d.ts
2130+
// Warning: (ae-forgotten-export) The symbol "UseSuspenseFragmentResult" needs to be exported by the entry point index.d.ts
2131+
//
2132+
// @public (undocumented)
2133+
function useSuspenseFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: UseSuspenseFragmentOptions<TData, TVariables>): UseSuspenseFragmentResult<TData>;
2134+
2135+
// @public (undocumented)
2136+
interface UseSuspenseFragmentOptions<TData, TVars> extends Omit<Cache_2.DiffOptions<NoInfer<TData>, NoInfer<TVars>>, "id" | "query" | "optimistic" | "previousResult" | "returnPartialData">, Omit<Cache_2.ReadFragmentOptions<TData, TVars>, "id" | "variables" | "returnPartialData"> {
2137+
client?: ApolloClient<any>;
2138+
// (undocumented)
2139+
from: StoreObject | Reference | string;
2140+
// (undocumented)
2141+
optimistic?: boolean;
2142+
}
2143+
2144+
// @public (undocumented)
2145+
type UseSuspenseFragmentResult<TData> = {
2146+
data: TData;
2147+
};
2148+
21212149
// Warning: (ae-forgotten-export) The symbol "SuspenseQueryHookOptions" needs to be exported by the entry point index.d.ts
21222150
// Warning: (ae-forgotten-export) The symbol "UseSuspenseQueryResult" needs to be exported by the entry point index.d.ts
21232151
//
@@ -2245,6 +2273,10 @@ interface WrappableHooks {
22452273
//
22462274
// (undocumented)
22472275
useReadQuery: typeof useReadQuery;
2276+
// Warning: (ae-forgotten-export) The symbol "useSuspenseFragment" needs to be exported by the entry point index.d.ts
2277+
//
2278+
// (undocumented)
2279+
useSuspenseFragment: typeof useSuspenseFragment;
22482280
// Warning: (ae-forgotten-export) The symbol "useSuspenseQuery" needs to be exported by the entry point index.d.ts
22492281
//
22502282
// (undocumented)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2899,7 +2899,7 @@ export function useSubscription<TData = any, TVariables extends OperationVariabl
28992899
// Warning: (ae-forgotten-export) The symbol "UseSuspenseFragmentOptions" needs to be exported by the entry point index.d.ts
29002900
//
29012901
// @public (undocumented)
2902-
export function useSuspenseFragment<TData, TVariables>(options: UseSuspenseFragmentOptions<TData, TVariables>): UseSuspenseFragmentResult<TData>;
2902+
export function useSuspenseFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: UseSuspenseFragmentOptions<TData, TVariables>): UseSuspenseFragmentResult<TData>;
29032903

29042904
// @public (undocumented)
29052905
interface UseSuspenseFragmentOptions<TData, TVars> extends Omit<Cache_2.DiffOptions<NoInfer<TData>, NoInfer<TVars>>, "id" | "query" | "optimistic" | "previousResult" | "returnPartialData">, Omit<Cache_2.ReadFragmentOptions<TData, TVars>, "id" | "variables" | "returnPartialData"> {

.size-limits.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"dist/apollo-client.min.cjs": 40532,
2+
"dist/apollo-client.min.cjs": 40567,
33
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 33060
44
}

0 commit comments

Comments
 (0)