@apollo/client 3.10.6 → 3.10.7
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 +12 -0
- package/apollo-client.cjs +13 -4
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.d.cts +1 -0
- package/cache/inmemory/writeToStore.d.ts +2 -2
- package/core/QueryManager.d.ts +1 -1
- package/core/core.cjs +1 -1
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +1 -1
- package/core/core.d.cts +1 -0
- package/dev/dev.cjs +10 -2
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +10 -2
- package/dev/dev.d.cts +1 -0
- package/errors/errors.d.cts +1 -0
- package/link/batch/batch.d.cts +1 -0
- package/link/batch-http/batch-http.d.cts +1 -0
- package/link/context/context.d.cts +1 -0
- package/link/core/core.d.cts +1 -0
- package/link/error/error.d.cts +1 -0
- package/link/http/http.d.cts +1 -0
- package/link/http/iterators/nodeStream.d.ts +0 -1
- package/link/persisted-queries/persisted-queries.d.cts +1 -0
- package/link/remove-typename/remove-typename.d.cts +1 -0
- package/link/retry/retry.d.cts +1 -0
- package/link/schema/schema.d.cts +1 -0
- package/link/subscriptions/subscriptions.d.cts +1 -0
- package/link/utils/utils.d.cts +1 -0
- package/link/ws/ws.d.cts +1 -0
- package/package.json +5 -3
- package/react/components/components.d.cts +1 -0
- package/react/context/context.d.cts +1 -0
- package/react/hoc/hoc-utils.d.ts +0 -1
- package/react/hoc/hoc.d.cts +1 -0
- package/react/hooks/hooks.d.cts +1 -0
- package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts +0 -1
- package/react/hooks/internal/useLazyRef.d.ts +0 -1
- package/react/internal/internal.cjs +10 -2
- package/react/internal/internal.cjs.map +1 -1
- package/react/internal/internal.cjs.native.js +10 -2
- package/react/internal/internal.d.cts +1 -0
- package/react/parser/parser.d.cts +1 -0
- package/react/react.d.cts +1 -0
- package/react/ssr/ssr.d.cts +1 -0
- package/testing/core/core.d.cts +1 -0
- package/testing/experimental/createSchemaFetch.d.ts +0 -1
- package/testing/experimental/experimental.d.cts +1 -0
- package/testing/internal/disposables/disableActWarnings.d.ts +0 -1
- package/testing/internal/disposables/spyOnConsole.d.ts +0 -2
- package/testing/internal/disposables/withCleanup.d.ts +0 -1
- package/testing/internal/profile/Render.d.ts +0 -1
- package/testing/internal/profile/Render.js +2 -2
- package/testing/internal/profile/Render.js.map +1 -1
- package/testing/testing.d.cts +1 -0
- package/utilities/common/canUse.js +3 -2
- package/utilities/common/canUse.js.map +1 -1
- package/utilities/globals/globals.cjs +10 -2
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +10 -2
- package/utilities/globals/globals.d.cts +1 -0
- package/utilities/globals/invariantWrappers.js +9 -1
- package/utilities/globals/invariantWrappers.js.map +1 -1
- package/utilities/subscriptions/relay/relay.d.cts +1 -0
- package/utilities/subscriptions/shared.d.ts +1 -1
- package/utilities/subscriptions/urql/urql.d.cts +1 -0
- package/utilities/utilities.cjs +3 -2
- package/utilities/utilities.cjs.map +1 -1
- package/utilities/utilities.cjs.native.js +3 -2
- package/utilities/utilities.d.cts +1 -0
- package/version.js +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index.d.ts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SelectionSetNode, FieldNode } from "graphql";
|
|
2
2
|
import type { FragmentMap, FragmentMapFunction, StoreObject, Reference } from "../../utilities/index.js";
|
|
3
|
-
import type { NormalizedCache, ReadMergeModifyContext, MergeTree } from "./types.js";
|
|
3
|
+
import type { NormalizedCache, ReadMergeModifyContext, MergeTree, InMemoryCacheConfig } from "./types.js";
|
|
4
4
|
import type { StoreReader } from "./readFromStore.js";
|
|
5
5
|
import type { InMemoryCache } from "./inMemoryCache.js";
|
|
6
6
|
import type { Cache } from "../../core/index.js";
|
|
@@ -26,7 +26,7 @@ export declare class StoreWriter {
|
|
|
26
26
|
readonly cache: InMemoryCache;
|
|
27
27
|
private reader?;
|
|
28
28
|
private fragments?;
|
|
29
|
-
constructor(cache: InMemoryCache, reader?: StoreReader | undefined, fragments?:
|
|
29
|
+
constructor(cache: InMemoryCache, reader?: StoreReader | undefined, fragments?: InMemoryCacheConfig["fragments"]);
|
|
30
30
|
writeToStore(store: NormalizedCache, { query, result, dataId, variables, overwrite }: Cache.WriteOptions): Reference | undefined;
|
|
31
31
|
private processSelectionSet;
|
|
32
32
|
private processFieldValue;
|
package/core/QueryManager.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export declare class QueryManager<TStore> {
|
|
|
118
118
|
broadcastQueries(): void;
|
|
119
119
|
getLocalState(): LocalState<TStore>;
|
|
120
120
|
protected inFlightLinkObservables: Trie<{
|
|
121
|
-
observable?: Observable<FetchResult<any
|
|
121
|
+
observable?: Observable<FetchResult<any>>;
|
|
122
122
|
}>;
|
|
123
123
|
private getObservableFromLink;
|
|
124
124
|
private getResultsFromLink;
|
package/core/core.cjs
CHANGED
|
@@ -20,7 +20,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
|
|
21
21
|
var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
|
|
22
22
|
|
|
23
|
-
var version = "3.10.
|
|
23
|
+
var version = "3.10.7";
|
|
24
24
|
|
|
25
25
|
function isNonNullObject(obj) {
|
|
26
26
|
return obj !== null && typeof obj === "object";
|