@apollo/client 4.2.2 → 4.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/__cjs/cache/core/types/Cache.d.cts +5 -2
- package/__cjs/core/ApolloClient.cjs.map +1 -1
- package/__cjs/core/ApolloClient.d.cts +11 -11
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/QueryManager.d.cts +4 -4
- package/__cjs/core/deprecated.d.cts +3 -3
- package/__cjs/core/types.d.cts +1 -1
- package/__cjs/react/hooks/useMutation.cjs.map +1 -1
- package/__cjs/react/hooks/useMutation.d.cts +13 -13
- package/__cjs/version.cjs +1 -1
- package/__cjs/version.cjs.map +1 -1
- package/cache/core/types/Cache.d.ts +5 -2
- package/cache/core/types/Cache.js.map +1 -1
- package/core/ApolloClient.d.ts +11 -11
- package/core/ApolloClient.js.map +1 -1
- package/core/QueryManager.d.ts +4 -4
- package/core/QueryManager.js.map +1 -1
- package/core/deprecated.d.ts +3 -3
- package/core/deprecated.js.map +1 -1
- package/core/types.d.ts +1 -1
- package/core/types.js.map +1 -1
- package/package.json +2 -2
- package/react/hooks/useMutation.d.ts +13 -13
- package/react/hooks/useMutation.js.map +1 -1
- package/react/hooks-compiled/useMutation.d.ts +13 -13
- package/react/hooks-compiled/useMutation.js.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
package/core/QueryManager.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Trie } from "@wry/trie";
|
|
|
2
2
|
import type { DocumentNode } from "graphql";
|
|
3
3
|
import { OperationTypeNode } from "graphql";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
|
-
import type {
|
|
5
|
+
import type { Cache } from "@apollo/client/cache";
|
|
6
6
|
import type { Incremental } from "@apollo/client/incremental";
|
|
7
7
|
import type { ApolloLink } from "@apollo/client/link";
|
|
8
8
|
import type { LocalState } from "@apollo/client/local-state";
|
|
@@ -106,14 +106,14 @@ export declare class QueryManager {
|
|
|
106
106
|
protected fetchCancelFns: Map<string, (error: any) => any>;
|
|
107
107
|
constructor(options: QueryManagerOptions);
|
|
108
108
|
get link(): ApolloLink;
|
|
109
|
-
get cache(): ApolloCache;
|
|
109
|
+
get cache(): import("@apollo/client/cache").ApolloCache;
|
|
110
110
|
/**
|
|
111
111
|
* Call this method to terminate any active query processes, making it safe
|
|
112
112
|
* to dispose of this QueryManager instance.
|
|
113
113
|
*/
|
|
114
114
|
stop(): void;
|
|
115
115
|
private cancelPendingFetches;
|
|
116
|
-
mutate<TData, TVariables extends OperationVariables, TCache extends
|
|
116
|
+
mutate<TData, TVariables extends OperationVariables, TCache extends Cache.Implementation>({ mutation, variables, optimisticResponse, updateQueries, refetchQueries, awaitRefetchQueries, update: updateWithProxyFn, onQueryUpdated, fetchPolicy, errorPolicy, keepRootFields, context, }: ApolloClient.MutateOptions<TData, TVariables, TCache> & {
|
|
117
117
|
errorPolicy: ErrorPolicy;
|
|
118
118
|
fetchPolicy: MutationFetchPolicy;
|
|
119
119
|
}): Promise<ApolloClient.MutateResult<MaybeMasked<TData>>>;
|
|
@@ -154,7 +154,7 @@ export declare class QueryManager {
|
|
|
154
154
|
*/
|
|
155
155
|
exposeExtensions?: boolean;
|
|
156
156
|
}): ObservableAndInfo<TData>;
|
|
157
|
-
refetchQueries<TResult>({ updateCache, include, optimistic, removeOptimistic, onQueryUpdated, }: InternalRefetchQueriesOptions<
|
|
157
|
+
refetchQueries<TResult>({ updateCache, include, optimistic, removeOptimistic, onQueryUpdated, }: InternalRefetchQueriesOptions<Cache.Implementation, TResult>): InternalRefetchQueriesMap<TResult>;
|
|
158
158
|
private noCacheWarningsByCause;
|
|
159
159
|
maskOperation<TData = unknown>(options: MaskOperationOptions<TData>): MaybeMasked<TData>;
|
|
160
160
|
maskFragment<TData = unknown>(options: MaskFragmentOptions<TData>): TData;
|