@apollo/client 3.8.4 → 3.8.6
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/apollo-client.cjs +168 -149
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs +46 -11
- package/cache/cache.cjs.map +1 -1
- package/cache/cache.cjs.native.js +46 -11
- package/cache/core/types/common.d.ts +2 -2
- package/cache/core/types/common.d.ts.map +1 -1
- package/cache/core/types/common.js.map +1 -1
- package/cache/inmemory/entityStore.d.ts.map +1 -1
- package/cache/inmemory/entityStore.js +35 -0
- package/cache/inmemory/entityStore.js.map +1 -1
- package/cache/inmemory/key-extractor.js +1 -1
- package/cache/inmemory/policies.js +4 -4
- package/cache/inmemory/readFromStore.js +2 -2
- package/cache/inmemory/writeToStore.js +4 -4
- package/core/ApolloClient.js +3 -3
- package/core/LocalState.js +2 -2
- package/core/ObservableQuery.d.ts.map +1 -1
- package/core/ObservableQuery.js +10 -11
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryInfo.d.ts +0 -2
- package/core/QueryInfo.d.ts.map +1 -1
- package/core/QueryInfo.js +0 -2
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.js +11 -11
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs +27 -30
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +27 -30
- package/dev/dev.cjs +124 -100
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +124 -100
- package/dev/loadErrorMessageHandler.js +2 -2
- package/dev/loadErrorMessageHandler.js.map +1 -1
- package/invariantErrorCodes.js +95 -80
- package/link/core/ApolloLink.js +2 -2
- package/link/core/core.cjs +2 -2
- package/link/core/core.cjs.map +1 -1
- package/link/core/core.cjs.native.js +2 -2
- package/link/http/checkFetcher.js +1 -1
- package/link/http/createHttpLink.js +1 -1
- package/link/http/http.cjs +3 -3
- package/link/http/http.cjs.map +1 -1
- package/link/http/http.cjs.native.js +3 -3
- package/link/http/serializeFetchParameter.js +1 -1
- package/link/persisted-queries/index.js +2 -2
- package/link/persisted-queries/persisted-queries.cjs +2 -2
- package/link/persisted-queries/persisted-queries.cjs.map +1 -1
- package/link/persisted-queries/persisted-queries.cjs.native.js +2 -2
- package/link/utils/toPromise.js +1 -1
- package/link/utils/utils.cjs +2 -2
- package/link/utils/utils.cjs.map +1 -1
- package/link/utils/utils.cjs.native.js +2 -2
- package/link/utils/validateOperation.js +1 -1
- package/package.json +22 -22
- package/react/cache/QueryReference.d.ts.map +1 -1
- package/react/cache/QueryReference.js +7 -2
- package/react/cache/QueryReference.js.map +1 -1
- package/react/cache/index.d.ts +0 -4
- package/react/cache/index.d.ts.map +1 -1
- package/react/cache/index.js +0 -14
- package/react/cache/index.js.map +1 -1
- package/react/context/ApolloConsumer.js +1 -1
- package/react/context/ApolloContext.js +1 -1
- package/react/context/ApolloProvider.js +1 -1
- package/react/context/context.cjs +3 -3
- package/react/context/context.cjs.map +1 -1
- package/react/context/context.cjs.native.js +3 -3
- package/react/hoc/hoc-utils.js +1 -1
- package/react/hoc/hoc.cjs +2 -2
- package/react/hoc/hoc.cjs.map +1 -1
- package/react/hoc/hoc.cjs.native.js +2 -2
- package/react/hoc/withApollo.js +1 -1
- package/react/hooks/hooks.cjs +15 -10
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +15 -10
- package/react/hooks/useApolloClient.js +1 -1
- package/react/hooks/useQuery.js +1 -1
- package/react/hooks/useReadQuery.js +1 -1
- package/react/hooks/useSubscription.js +2 -2
- package/react/hooks/useSuspenseQuery.js +2 -2
- package/react/hooks/useSyncExternalStore.js +1 -1
- package/react/index.d.ts +0 -1
- package/react/index.d.ts.map +1 -1
- package/react/index.js +0 -1
- package/react/index.js.map +1 -1
- package/react/parser/index.js +5 -5
- package/react/parser/parser.cjs +5 -5
- package/react/parser/parser.cjs.map +1 -1
- package/react/parser/parser.cjs.native.js +5 -5
- package/react/react.cjs +1 -218
- package/react/react.cjs.map +1 -1
- package/react/react.cjs.native.js +1 -218
- package/react/types/types.d.ts +0 -3
- package/react/types/types.d.ts.map +1 -1
- package/react/types/types.js.map +1 -1
- package/testing/core/core.cjs +1 -1
- package/testing/core/core.cjs.map +1 -1
- package/testing/core/core.cjs.native.js +1 -1
- package/testing/core/mocking/mockLink.js +1 -1
- package/testing/internal/ObservableStream.d.ts +26 -0
- package/testing/internal/ObservableStream.d.ts.map +1 -0
- package/testing/internal/ObservableStream.js +101 -0
- package/testing/internal/ObservableStream.js.map +1 -0
- package/testing/internal/index.d.ts +1 -0
- package/testing/internal/index.d.ts.map +1 -1
- package/testing/internal/index.js +1 -0
- package/testing/internal/index.js.map +1 -1
- package/testing/react/MockedProvider.d.ts +1 -0
- package/testing/react/MockedProvider.d.ts.map +1 -1
- package/testing/react/MockedProvider.js +2 -1
- package/testing/react/MockedProvider.js.map +1 -1
- package/testing/testing.cjs +2 -1
- package/testing/testing.cjs.map +1 -1
- package/testing/testing.cjs.native.js +2 -1
- package/utilities/globals/globals.cjs +29 -19
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +29 -19
- package/utilities/globals/invariantWrappers.d.ts.map +1 -1
- package/utilities/globals/invariantWrappers.js +28 -18
- package/utilities/globals/invariantWrappers.js.map +1 -1
- package/utilities/graphql/DocumentTransform.js +1 -1
- package/utilities/graphql/directives.js +4 -4
- package/utilities/graphql/fragments.js +3 -3
- package/utilities/graphql/getFromAST.js +8 -8
- package/utilities/graphql/storeUtils.d.ts +5 -0
- package/utilities/graphql/storeUtils.d.ts.map +1 -1
- package/utilities/graphql/storeUtils.js +1 -1
- package/utilities/graphql/storeUtils.js.map +1 -1
- package/utilities/graphql/transform.js +2 -2
- package/utilities/index.d.ts +1 -1
- package/utilities/index.d.ts.map +1 -1
- package/utilities/index.js.map +1 -1
- package/utilities/observables/asyncMap.d.ts.map +1 -1
- package/utilities/observables/asyncMap.js +17 -34
- package/utilities/observables/asyncMap.js.map +1 -1
- package/utilities/utilities.cjs +36 -53
- package/utilities/utilities.cjs.map +1 -1
- package/utilities/utilities.cjs.native.js +36 -53
- package/version.js +1 -1
|
@@ -31,7 +31,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
31
31
|
function useApolloClient(override) {
|
|
32
32
|
var context$1 = React__namespace.useContext(context.getApolloContext());
|
|
33
33
|
var client = override || context$1.client;
|
|
34
|
-
globals.invariant(!!client,
|
|
34
|
+
globals.invariant(!!client, 49);
|
|
35
35
|
return client;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -45,7 +45,7 @@ var useSyncExternalStore = realHook$1 ||
|
|
|
45
45
|
!didWarnUncachedGetSnapshot &&
|
|
46
46
|
value !== getSnapshot()) {
|
|
47
47
|
didWarnUncachedGetSnapshot = true;
|
|
48
|
-
globalThis.__DEV__ !== false && globals.invariant.error(
|
|
48
|
+
globalThis.__DEV__ !== false && globals.invariant.error(58);
|
|
49
49
|
}
|
|
50
50
|
var _a = React__namespace.useState({
|
|
51
51
|
inst: { value: value, getSnapshot: getSnapshot },
|
|
@@ -126,7 +126,7 @@ var InternalState = (function () {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
InternalState.prototype.forceUpdateState = function () {
|
|
129
|
-
globalThis.__DEV__ !== false && globals.invariant.warn(
|
|
129
|
+
globalThis.__DEV__ !== false && globals.invariant.warn(50);
|
|
130
130
|
};
|
|
131
131
|
InternalState.prototype.executeQuery = function (options) {
|
|
132
132
|
var _this = this;
|
|
@@ -547,10 +547,10 @@ function useSubscription(subscription, options) {
|
|
|
547
547
|
if (!hasIssuedDeprecationWarningRef.current) {
|
|
548
548
|
hasIssuedDeprecationWarningRef.current = true;
|
|
549
549
|
if (options === null || options === void 0 ? void 0 : options.onSubscriptionData) {
|
|
550
|
-
globalThis.__DEV__ !== false && globals.invariant.warn(options.onData ?
|
|
550
|
+
globalThis.__DEV__ !== false && globals.invariant.warn(options.onData ? 52 : 53);
|
|
551
551
|
}
|
|
552
552
|
if (options === null || options === void 0 ? void 0 : options.onSubscriptionComplete) {
|
|
553
|
-
globalThis.__DEV__ !== false && globals.invariant.warn(options.onComplete ?
|
|
553
|
+
globalThis.__DEV__ !== false && globals.invariant.warn(options.onComplete ? 54 : 55);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
var _b = React__namespace.useState(function () {
|
|
@@ -767,7 +767,6 @@ var OBSERVED_CHANGED_OPTIONS = [
|
|
|
767
767
|
var InternalQueryReference = (function () {
|
|
768
768
|
function InternalQueryReference(observable, options) {
|
|
769
769
|
var _this = this;
|
|
770
|
-
var _a;
|
|
771
770
|
this.listeners = new Set();
|
|
772
771
|
this.status = "loading";
|
|
773
772
|
this.references = 0;
|
|
@@ -801,7 +800,13 @@ var InternalQueryReference = (function () {
|
|
|
801
800
|
next: this.handleNext,
|
|
802
801
|
error: this.handleError,
|
|
803
802
|
});
|
|
804
|
-
|
|
803
|
+
var startDisposeTimer = function () {
|
|
804
|
+
var _a;
|
|
805
|
+
if (!_this.references) {
|
|
806
|
+
_this.autoDisposeTimeoutId = setTimeout(_this.dispose, (_a = options.autoDisposeTimeoutMs) !== null && _a !== void 0 ? _a : 30000);
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
this.promise.then(startDisposeTimer, startDisposeTimer);
|
|
805
810
|
}
|
|
806
811
|
Object.defineProperty(InternalQueryReference.prototype, "watchQueryOptions", {
|
|
807
812
|
get: function () {
|
|
@@ -1056,11 +1061,11 @@ function validateFetchPolicy(fetchPolicy) {
|
|
|
1056
1061
|
"no-cache",
|
|
1057
1062
|
"cache-and-network",
|
|
1058
1063
|
];
|
|
1059
|
-
globals.invariant(supportedFetchPolicies.includes(fetchPolicy),
|
|
1064
|
+
globals.invariant(supportedFetchPolicies.includes(fetchPolicy), 56, fetchPolicy);
|
|
1060
1065
|
}
|
|
1061
1066
|
function validatePartialDataReturn(fetchPolicy, returnPartialData) {
|
|
1062
1067
|
if (fetchPolicy === "no-cache" && returnPartialData) {
|
|
1063
|
-
globalThis.__DEV__ !== false && globals.invariant.warn(
|
|
1068
|
+
globalThis.__DEV__ !== false && globals.invariant.warn(57);
|
|
1064
1069
|
}
|
|
1065
1070
|
}
|
|
1066
1071
|
function toApolloError(result) {
|
|
@@ -1135,7 +1140,7 @@ function useBackgroundQuery(query, options) {
|
|
|
1135
1140
|
|
|
1136
1141
|
function useReadQuery(queryRef) {
|
|
1137
1142
|
var internalQueryRef = unwrapQueryRef(queryRef);
|
|
1138
|
-
globals.invariant(internalQueryRef.promiseCache,
|
|
1143
|
+
globals.invariant(internalQueryRef.promiseCache, 51);
|
|
1139
1144
|
var promiseCache = internalQueryRef.promiseCache, key = internalQueryRef.key;
|
|
1140
1145
|
if (!promiseCache.has(key)) {
|
|
1141
1146
|
promiseCache.set(key, internalQueryRef.promise);
|
|
@@ -4,7 +4,7 @@ import { getApolloContext } from "../context/index.js";
|
|
|
4
4
|
export function useApolloClient(override) {
|
|
5
5
|
var context = React.useContext(getApolloContext());
|
|
6
6
|
var client = override || context.client;
|
|
7
|
-
invariant(!!client,
|
|
7
|
+
invariant(!!client, 49);
|
|
8
8
|
return client;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=useApolloClient.js.map
|
package/react/hooks/useQuery.js
CHANGED
|
@@ -53,7 +53,7 @@ var InternalState = (function () {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
InternalState.prototype.forceUpdateState = function () {
|
|
56
|
-
globalThis.__DEV__ !== false && invariant.warn(
|
|
56
|
+
globalThis.__DEV__ !== false && invariant.warn(50);
|
|
57
57
|
};
|
|
58
58
|
InternalState.prototype.executeQuery = function (options) {
|
|
59
59
|
var _this = this;
|
|
@@ -6,7 +6,7 @@ import { invariant } from "../../utilities/globals/index.js";
|
|
|
6
6
|
import { useSyncExternalStore } from "./useSyncExternalStore.js";
|
|
7
7
|
export function useReadQuery(queryRef) {
|
|
8
8
|
var internalQueryRef = unwrapQueryRef(queryRef);
|
|
9
|
-
invariant(internalQueryRef.promiseCache,
|
|
9
|
+
invariant(internalQueryRef.promiseCache, 51);
|
|
10
10
|
var promiseCache = internalQueryRef.promiseCache, key = internalQueryRef.key;
|
|
11
11
|
if (!promiseCache.has(key)) {
|
|
12
12
|
promiseCache.set(key, internalQueryRef.promise);
|
|
@@ -16,10 +16,10 @@ export function useSubscription(subscription, options) {
|
|
|
16
16
|
if (!hasIssuedDeprecationWarningRef.current) {
|
|
17
17
|
hasIssuedDeprecationWarningRef.current = true;
|
|
18
18
|
if (options === null || options === void 0 ? void 0 : options.onSubscriptionData) {
|
|
19
|
-
globalThis.__DEV__ !== false && invariant.warn(options.onData ?
|
|
19
|
+
globalThis.__DEV__ !== false && invariant.warn(options.onData ? 52 : 53);
|
|
20
20
|
}
|
|
21
21
|
if (options === null || options === void 0 ? void 0 : options.onSubscriptionComplete) {
|
|
22
|
-
globalThis.__DEV__ !== false && invariant.warn(options.onComplete ?
|
|
22
|
+
globalThis.__DEV__ !== false && invariant.warn(options.onComplete ? 54 : 55);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
var _b = React.useState(function () {
|
|
@@ -96,11 +96,11 @@ function validateFetchPolicy(fetchPolicy) {
|
|
|
96
96
|
"no-cache",
|
|
97
97
|
"cache-and-network",
|
|
98
98
|
];
|
|
99
|
-
invariant(supportedFetchPolicies.includes(fetchPolicy),
|
|
99
|
+
invariant(supportedFetchPolicies.includes(fetchPolicy), 56, fetchPolicy);
|
|
100
100
|
}
|
|
101
101
|
function validatePartialDataReturn(fetchPolicy, returnPartialData) {
|
|
102
102
|
if (fetchPolicy === "no-cache" && returnPartialData) {
|
|
103
|
-
globalThis.__DEV__ !== false && invariant.warn(
|
|
103
|
+
globalThis.__DEV__ !== false && invariant.warn(57);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
export function toApolloError(result) {
|
|
@@ -11,7 +11,7 @@ export var useSyncExternalStore = realHook ||
|
|
|
11
11
|
!didWarnUncachedGetSnapshot &&
|
|
12
12
|
value !== getSnapshot()) {
|
|
13
13
|
didWarnUncachedGetSnapshot = true;
|
|
14
|
-
globalThis.__DEV__ !== false && invariant.error(
|
|
14
|
+
globalThis.__DEV__ !== false && invariant.error(58);
|
|
15
15
|
}
|
|
16
16
|
var _a = React.useState({
|
|
17
17
|
inst: { value: value, getSnapshot: getSnapshot },
|
package/react/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import "../utilities/globals/index.js";
|
|
|
2
2
|
export type { ApolloContextValue } from "./context/index.js";
|
|
3
3
|
export { ApolloProvider, ApolloConsumer, getApolloContext, resetApolloContext, } from "./context/index.js";
|
|
4
4
|
export * from "./hooks/index.js";
|
|
5
|
-
export { SuspenseCache } from "./cache/index.js";
|
|
6
5
|
export type { IDocumentDefinition } from "./parser/index.js";
|
|
7
6
|
export { DocumentType, operationName, parser } from "./parser/index.js";
|
|
8
7
|
export * from "./types/types.js";
|
package/react/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,kBAAkB,CAAC;AAEjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,kBAAkB,CAAC;AAEjC,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAExE,cAAc,kBAAkB,CAAC"}
|
package/react/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "../utilities/globals/index.js";
|
|
2
2
|
export { ApolloProvider, ApolloConsumer, getApolloContext, resetApolloContext, } from "./context/index.js";
|
|
3
3
|
export * from "./hooks/index.js";
|
|
4
|
-
export { SuspenseCache } from "./cache/index.js";
|
|
5
4
|
export { DocumentType, operationName, parser } from "./parser/index.js";
|
|
6
5
|
export * from "./types/types.js";
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
package/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAGvC,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAGvC,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAExE,cAAc,kBAAkB,CAAC","sourcesContent":["import \"../utilities/globals/index.js\";\n\nexport type { ApolloContextValue } from \"./context/index.js\";\nexport {\n ApolloProvider,\n ApolloConsumer,\n getApolloContext,\n resetApolloContext,\n} from \"./context/index.js\";\n\nexport * from \"./hooks/index.js\";\n\nexport type { IDocumentDefinition } from \"./parser/index.js\";\nexport { DocumentType, operationName, parser } from \"./parser/index.js\";\n\nexport * from \"./types/types.js\";\n"]}
|
package/react/parser/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export function parser(document) {
|
|
|
26
26
|
if (cached)
|
|
27
27
|
return cached;
|
|
28
28
|
var variables, type, name;
|
|
29
|
-
invariant(!!document && !!document.kind,
|
|
29
|
+
invariant(!!document && !!document.kind, 59, document);
|
|
30
30
|
var fragments = [];
|
|
31
31
|
var queries = [];
|
|
32
32
|
var mutations = [];
|
|
@@ -54,10 +54,10 @@ export function parser(document) {
|
|
|
54
54
|
invariant(!fragments.length ||
|
|
55
55
|
queries.length ||
|
|
56
56
|
mutations.length ||
|
|
57
|
-
subscriptions.length,
|
|
57
|
+
subscriptions.length, 60);
|
|
58
58
|
invariant(
|
|
59
59
|
queries.length + mutations.length + subscriptions.length <= 1,
|
|
60
|
-
|
|
60
|
+
61,
|
|
61
61
|
document,
|
|
62
62
|
queries.length,
|
|
63
63
|
subscriptions.length,
|
|
@@ -71,7 +71,7 @@ export function parser(document) {
|
|
|
71
71
|
: mutations.length
|
|
72
72
|
? mutations
|
|
73
73
|
: subscriptions;
|
|
74
|
-
invariant(definitions.length === 1,
|
|
74
|
+
invariant(definitions.length === 1, 62, document, definitions.length);
|
|
75
75
|
var definition = definitions[0];
|
|
76
76
|
variables = definition.variableDefinitions || [];
|
|
77
77
|
if (definition.name && definition.name.kind === "Name") {
|
|
@@ -90,7 +90,7 @@ export function verifyDocumentType(document, type) {
|
|
|
90
90
|
var usedOperationName = operationName(operation.type);
|
|
91
91
|
invariant(
|
|
92
92
|
operation.type === type,
|
|
93
|
-
|
|
93
|
+
63,
|
|
94
94
|
requiredOperationName,
|
|
95
95
|
requiredOperationName,
|
|
96
96
|
usedOperationName
|
package/react/parser/parser.cjs
CHANGED
|
@@ -31,7 +31,7 @@ function parser(document) {
|
|
|
31
31
|
if (cached)
|
|
32
32
|
return cached;
|
|
33
33
|
var variables, type, name;
|
|
34
|
-
globals.invariant(!!document && !!document.kind,
|
|
34
|
+
globals.invariant(!!document && !!document.kind, 59, document);
|
|
35
35
|
var fragments = [];
|
|
36
36
|
var queries = [];
|
|
37
37
|
var mutations = [];
|
|
@@ -59,10 +59,10 @@ function parser(document) {
|
|
|
59
59
|
globals.invariant(!fragments.length ||
|
|
60
60
|
queries.length ||
|
|
61
61
|
mutations.length ||
|
|
62
|
-
subscriptions.length,
|
|
62
|
+
subscriptions.length, 60);
|
|
63
63
|
globals.invariant(
|
|
64
64
|
queries.length + mutations.length + subscriptions.length <= 1,
|
|
65
|
-
|
|
65
|
+
61,
|
|
66
66
|
document,
|
|
67
67
|
queries.length,
|
|
68
68
|
subscriptions.length,
|
|
@@ -76,7 +76,7 @@ function parser(document) {
|
|
|
76
76
|
: mutations.length
|
|
77
77
|
? mutations
|
|
78
78
|
: subscriptions;
|
|
79
|
-
globals.invariant(definitions.length === 1,
|
|
79
|
+
globals.invariant(definitions.length === 1, 62, document, definitions.length);
|
|
80
80
|
var definition = definitions[0];
|
|
81
81
|
variables = definition.variableDefinitions || [];
|
|
82
82
|
if (definition.name && definition.name.kind === "Name") {
|
|
@@ -95,7 +95,7 @@ function verifyDocumentType(document, type) {
|
|
|
95
95
|
var usedOperationName = operationName(operation.type);
|
|
96
96
|
globals.invariant(
|
|
97
97
|
operation.type === type,
|
|
98
|
-
|
|
98
|
+
63,
|
|
99
99
|
requiredOperationName,
|
|
100
100
|
requiredOperationName,
|
|
101
101
|
usedOperationName
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.cjs","sources":["index.js"],"sourcesContent":["import { invariant } from \"../../utilities/globals/index.js\";\nexport var DocumentType;\n(function (DocumentType) {\n DocumentType[DocumentType[\"Query\"] = 0] = \"Query\";\n DocumentType[DocumentType[\"Mutation\"] = 1] = \"Mutation\";\n DocumentType[DocumentType[\"Subscription\"] = 2] = \"Subscription\";\n})(DocumentType || (DocumentType = {}));\nvar cache = new Map();\nexport function operationName(type) {\n var name;\n switch (type) {\n case DocumentType.Query:\n name = \"Query\";\n break;\n case DocumentType.Mutation:\n name = \"Mutation\";\n break;\n case DocumentType.Subscription:\n name = \"Subscription\";\n break;\n }\n return name;\n}\nexport function parser(document) {\n var cached = cache.get(document);\n if (cached)\n return cached;\n var variables, type, name;\n invariant(!!document && !!document.kind,
|
|
1
|
+
{"version":3,"file":"parser.cjs","sources":["index.js"],"sourcesContent":["import { invariant } from \"../../utilities/globals/index.js\";\nexport var DocumentType;\n(function (DocumentType) {\n DocumentType[DocumentType[\"Query\"] = 0] = \"Query\";\n DocumentType[DocumentType[\"Mutation\"] = 1] = \"Mutation\";\n DocumentType[DocumentType[\"Subscription\"] = 2] = \"Subscription\";\n})(DocumentType || (DocumentType = {}));\nvar cache = new Map();\nexport function operationName(type) {\n var name;\n switch (type) {\n case DocumentType.Query:\n name = \"Query\";\n break;\n case DocumentType.Mutation:\n name = \"Mutation\";\n break;\n case DocumentType.Subscription:\n name = \"Subscription\";\n break;\n }\n return name;\n}\nexport function parser(document) {\n var cached = cache.get(document);\n if (cached)\n return cached;\n var variables, type, name;\n invariant(!!document && !!document.kind, 59, document);\n var fragments = [];\n var queries = [];\n var mutations = [];\n var subscriptions = [];\n for (var _i = 0, _a = document.definitions; _i < _a.length; _i++) {\n var x = _a[_i];\n if (x.kind === \"FragmentDefinition\") {\n fragments.push(x);\n continue;\n }\n if (x.kind === \"OperationDefinition\") {\n switch (x.operation) {\n case \"query\":\n queries.push(x);\n break;\n case \"mutation\":\n mutations.push(x);\n break;\n case \"subscription\":\n subscriptions.push(x);\n break;\n }\n }\n }\n invariant(!fragments.length ||\n queries.length ||\n mutations.length ||\n subscriptions.length, 60);\n invariant(\n queries.length + mutations.length + subscriptions.length <= 1,\n 61,\n document,\n queries.length,\n subscriptions.length,\n mutations.length\n );\n type = queries.length ? DocumentType.Query : DocumentType.Mutation;\n if (!queries.length && !mutations.length)\n type = DocumentType.Subscription;\n var definitions = queries.length\n ? queries\n : mutations.length\n ? mutations\n : subscriptions;\n invariant(definitions.length === 1, 62, document, definitions.length);\n var definition = definitions[0];\n variables = definition.variableDefinitions || [];\n if (definition.name && definition.name.kind === \"Name\") {\n name = definition.name.value;\n }\n else {\n name = \"data\";\n }\n var payload = { name: name, type: type, variables: variables };\n cache.set(document, payload);\n return payload;\n}\nexport function verifyDocumentType(document, type) {\n var operation = parser(document);\n var requiredOperationName = operationName(type);\n var usedOperationName = operationName(operation.type);\n invariant(\n operation.type === type,\n 63,\n requiredOperationName,\n requiredOperationName,\n usedOperationName\n );\n}\n//# sourceMappingURL=index.js.map"],"names":["DocumentType","invariant"],"mappings":";;;;;;AACWA,8BAAa;AACxB,CAAC,UAAU,YAAY,EAAE;AACzB,IAAI,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;AACtD,IAAI,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;AAC5D,IAAI,YAAY,CAAC,YAAY,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC;AACpE,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AACxC,IAAI,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;AACf,SAAS,aAAa,CAAC,IAAI,EAAE;AACpC,IAAI,IAAI,IAAI,CAAC;AACb,IAAI,QAAQ,IAAI;AAChB,QAAQ,KAAKA,oBAAY,CAAC,KAAK;AAC/B,YAAY,IAAI,GAAG,OAAO,CAAC;AAC3B,YAAY,MAAM;AAClB,QAAQ,KAAKA,oBAAY,CAAC,QAAQ;AAClC,YAAY,IAAI,GAAG,UAAU,CAAC;AAC9B,YAAY,MAAM;AAClB,QAAQ,KAAKA,oBAAY,CAAC,YAAY;AACtC,YAAY,IAAI,GAAG,cAAc,CAAC;AAClC,YAAY,MAAM;AAClB,KAAK;AACL,IAAI,OAAO,IAAI,CAAC;AAChB,CAAC;AACM,SAAS,MAAM,CAAC,QAAQ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C;AACrC,KAAK;AACL,SAAS;AACT,QAAQ,IAAI,GAAG,MAAM,CAAC;AACtB,KAAK;AACL,IAAI,IAAI,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACnE,IAAI,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACjC,IAAI,OAAO,OAAO,CAAC;AACnB,CAAC;AACM,SAAS,kBAAkB,CAAC,QAAQ,EAAE,IAAI,EAAE;AACnD,IAAI,IAAI,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AACrC,IAAI,IAAI,qBAAqB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;AACpD,IAAI,IAAI,iBAAiB,GAAG,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAC1D,IAAIA,iBAAS;AACb,QAAQ,SAAS,CAAC,IAAI,KAAK,IAAI;AAC/B,QAAQ,EAAE;AACV,QAAQ,qBAAqB;AAC7B,QAAQ,qBAAqB;AAC7B,QAAQ,iBAAiB;AACzB,KAAK,CAAC;AACN;;;;;;"}
|
|
@@ -31,7 +31,7 @@ function parser(document) {
|
|
|
31
31
|
if (cached)
|
|
32
32
|
return cached;
|
|
33
33
|
var variables, type, name;
|
|
34
|
-
globals.invariant(!!document && !!document.kind,
|
|
34
|
+
globals.invariant(!!document && !!document.kind, 59, document);
|
|
35
35
|
var fragments = [];
|
|
36
36
|
var queries = [];
|
|
37
37
|
var mutations = [];
|
|
@@ -59,10 +59,10 @@ function parser(document) {
|
|
|
59
59
|
globals.invariant(!fragments.length ||
|
|
60
60
|
queries.length ||
|
|
61
61
|
mutations.length ||
|
|
62
|
-
subscriptions.length,
|
|
62
|
+
subscriptions.length, 60);
|
|
63
63
|
globals.invariant(
|
|
64
64
|
queries.length + mutations.length + subscriptions.length <= 1,
|
|
65
|
-
|
|
65
|
+
61,
|
|
66
66
|
document,
|
|
67
67
|
queries.length,
|
|
68
68
|
subscriptions.length,
|
|
@@ -76,7 +76,7 @@ function parser(document) {
|
|
|
76
76
|
: mutations.length
|
|
77
77
|
? mutations
|
|
78
78
|
: subscriptions;
|
|
79
|
-
globals.invariant(definitions.length === 1,
|
|
79
|
+
globals.invariant(definitions.length === 1, 62, document, definitions.length);
|
|
80
80
|
var definition = definitions[0];
|
|
81
81
|
variables = definition.variableDefinitions || [];
|
|
82
82
|
if (definition.name && definition.name.kind === "Name") {
|
|
@@ -95,7 +95,7 @@ function verifyDocumentType(document, type) {
|
|
|
95
95
|
var usedOperationName = operationName(operation.type);
|
|
96
96
|
globals.invariant(
|
|
97
97
|
operation.type === type,
|
|
98
|
-
|
|
98
|
+
63,
|
|
99
99
|
requiredOperationName,
|
|
100
100
|
requiredOperationName,
|
|
101
101
|
usedOperationName
|
package/react/react.cjs
CHANGED
|
@@ -5,225 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
require('../utilities/globals');
|
|
6
6
|
var context = require('./context');
|
|
7
7
|
var hooks = require('./hooks');
|
|
8
|
-
var tslib = require('tslib');
|
|
9
|
-
var trie = require('@wry/trie');
|
|
10
|
-
var utilities = require('../utilities');
|
|
11
|
-
var equality = require('@wry/equality');
|
|
12
|
-
var core = require('../core');
|
|
13
8
|
var parser = require('./parser');
|
|
14
9
|
|
|
15
|
-
var OBSERVED_CHANGED_OPTIONS = [
|
|
16
|
-
"canonizeResults",
|
|
17
|
-
"context",
|
|
18
|
-
"errorPolicy",
|
|
19
|
-
"fetchPolicy",
|
|
20
|
-
"refetchWritePolicy",
|
|
21
|
-
"returnPartialData",
|
|
22
|
-
];
|
|
23
|
-
var InternalQueryReference = (function () {
|
|
24
|
-
function InternalQueryReference(observable, options) {
|
|
25
|
-
var _this = this;
|
|
26
|
-
var _a;
|
|
27
|
-
this.listeners = new Set();
|
|
28
|
-
this.status = "loading";
|
|
29
|
-
this.references = 0;
|
|
30
|
-
this.handleNext = this.handleNext.bind(this);
|
|
31
|
-
this.handleError = this.handleError.bind(this);
|
|
32
|
-
this.dispose = this.dispose.bind(this);
|
|
33
|
-
this.observable = observable;
|
|
34
|
-
this.result = observable.getCurrentResult(false);
|
|
35
|
-
this.key = options.key;
|
|
36
|
-
if (options.onDispose) {
|
|
37
|
-
this.onDispose = options.onDispose;
|
|
38
|
-
}
|
|
39
|
-
if (core.isNetworkRequestSettled(this.result.networkStatus) ||
|
|
40
|
-
(this.result.data &&
|
|
41
|
-
(!this.result.partial || this.watchQueryOptions.returnPartialData))) {
|
|
42
|
-
this.promise = utilities.createFulfilledPromise(this.result);
|
|
43
|
-
this.status = "idle";
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.promise = new Promise(function (resolve, reject) {
|
|
47
|
-
_this.resolve = resolve;
|
|
48
|
-
_this.reject = reject;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
this.subscription = observable
|
|
52
|
-
.filter(function (_a) {
|
|
53
|
-
var data = _a.data;
|
|
54
|
-
return !equality.equal(data, {});
|
|
55
|
-
})
|
|
56
|
-
.subscribe({
|
|
57
|
-
next: this.handleNext,
|
|
58
|
-
error: this.handleError,
|
|
59
|
-
});
|
|
60
|
-
this.autoDisposeTimeoutId = setTimeout(this.dispose, (_a = options.autoDisposeTimeoutMs) !== null && _a !== void 0 ? _a : 30000);
|
|
61
|
-
}
|
|
62
|
-
Object.defineProperty(InternalQueryReference.prototype, "watchQueryOptions", {
|
|
63
|
-
get: function () {
|
|
64
|
-
return this.observable.options;
|
|
65
|
-
},
|
|
66
|
-
enumerable: false,
|
|
67
|
-
configurable: true
|
|
68
|
-
});
|
|
69
|
-
InternalQueryReference.prototype.retain = function () {
|
|
70
|
-
var _this = this;
|
|
71
|
-
this.references++;
|
|
72
|
-
clearTimeout(this.autoDisposeTimeoutId);
|
|
73
|
-
var disposed = false;
|
|
74
|
-
return function () {
|
|
75
|
-
if (disposed) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
disposed = true;
|
|
79
|
-
_this.references--;
|
|
80
|
-
setTimeout(function () {
|
|
81
|
-
if (!_this.references) {
|
|
82
|
-
_this.dispose();
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
InternalQueryReference.prototype.didChangeOptions = function (watchQueryOptions) {
|
|
88
|
-
var _this = this;
|
|
89
|
-
return OBSERVED_CHANGED_OPTIONS.some(function (option) {
|
|
90
|
-
return !equality.equal(_this.watchQueryOptions[option], watchQueryOptions[option]);
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
InternalQueryReference.prototype.applyOptions = function (watchQueryOptions) {
|
|
94
|
-
var _a = this.watchQueryOptions, currentFetchPolicy = _a.fetchPolicy, currentCanonizeResults = _a.canonizeResults;
|
|
95
|
-
if (currentFetchPolicy === "standby" &&
|
|
96
|
-
currentFetchPolicy !== watchQueryOptions.fetchPolicy) {
|
|
97
|
-
this.initiateFetch(this.observable.reobserve(watchQueryOptions));
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
this.observable.silentSetOptions(watchQueryOptions);
|
|
101
|
-
if (currentCanonizeResults !== watchQueryOptions.canonizeResults) {
|
|
102
|
-
this.result = tslib.__assign(tslib.__assign({}, this.result), this.observable.getCurrentResult());
|
|
103
|
-
this.promise = utilities.createFulfilledPromise(this.result);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return this.promise;
|
|
107
|
-
};
|
|
108
|
-
InternalQueryReference.prototype.listen = function (listener) {
|
|
109
|
-
var _this = this;
|
|
110
|
-
this.listeners.add(listener);
|
|
111
|
-
return function () {
|
|
112
|
-
_this.listeners.delete(listener);
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
InternalQueryReference.prototype.refetch = function (variables) {
|
|
116
|
-
return this.initiateFetch(this.observable.refetch(variables));
|
|
117
|
-
};
|
|
118
|
-
InternalQueryReference.prototype.fetchMore = function (options) {
|
|
119
|
-
return this.initiateFetch(this.observable.fetchMore(options));
|
|
120
|
-
};
|
|
121
|
-
InternalQueryReference.prototype.dispose = function () {
|
|
122
|
-
this.subscription.unsubscribe();
|
|
123
|
-
this.onDispose();
|
|
124
|
-
};
|
|
125
|
-
InternalQueryReference.prototype.onDispose = function () {
|
|
126
|
-
};
|
|
127
|
-
InternalQueryReference.prototype.handleNext = function (result) {
|
|
128
|
-
var _a;
|
|
129
|
-
switch (this.status) {
|
|
130
|
-
case "loading": {
|
|
131
|
-
if (result.data === void 0) {
|
|
132
|
-
result.data = this.result.data;
|
|
133
|
-
}
|
|
134
|
-
this.status = "idle";
|
|
135
|
-
this.result = result;
|
|
136
|
-
(_a = this.resolve) === null || _a === void 0 ? void 0 : _a.call(this, result);
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
case "idle": {
|
|
140
|
-
if (result.data === this.result.data) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (result.data === void 0) {
|
|
144
|
-
result.data = this.result.data;
|
|
145
|
-
}
|
|
146
|
-
this.result = result;
|
|
147
|
-
this.promise = utilities.createFulfilledPromise(result);
|
|
148
|
-
this.deliver(this.promise);
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
InternalQueryReference.prototype.handleError = function (error) {
|
|
154
|
-
var _a;
|
|
155
|
-
this.subscription.unsubscribe();
|
|
156
|
-
this.subscription = this.observable.resubscribeAfterError(this.handleNext, this.handleError);
|
|
157
|
-
switch (this.status) {
|
|
158
|
-
case "loading": {
|
|
159
|
-
this.status = "idle";
|
|
160
|
-
(_a = this.reject) === null || _a === void 0 ? void 0 : _a.call(this, error);
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
case "idle": {
|
|
164
|
-
this.promise = utilities.createRejectedPromise(error);
|
|
165
|
-
this.deliver(this.promise);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
InternalQueryReference.prototype.deliver = function (promise) {
|
|
170
|
-
this.listeners.forEach(function (listener) { return listener(promise); });
|
|
171
|
-
};
|
|
172
|
-
InternalQueryReference.prototype.initiateFetch = function (returnedPromise) {
|
|
173
|
-
var _this = this;
|
|
174
|
-
this.status = "loading";
|
|
175
|
-
this.promise = new Promise(function (resolve, reject) {
|
|
176
|
-
_this.resolve = resolve;
|
|
177
|
-
_this.reject = reject;
|
|
178
|
-
});
|
|
179
|
-
this.promise.catch(function () { });
|
|
180
|
-
returnedPromise
|
|
181
|
-
.then(function (result) {
|
|
182
|
-
var _a;
|
|
183
|
-
if (_this.status === "loading") {
|
|
184
|
-
_this.status = "idle";
|
|
185
|
-
_this.result = result;
|
|
186
|
-
(_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, result);
|
|
187
|
-
}
|
|
188
|
-
})
|
|
189
|
-
.catch(function () { });
|
|
190
|
-
return returnedPromise;
|
|
191
|
-
};
|
|
192
|
-
return InternalQueryReference;
|
|
193
|
-
}());
|
|
194
10
|
|
|
195
|
-
var SuspenseCache$1 = (function () {
|
|
196
|
-
function SuspenseCache(options) {
|
|
197
|
-
if (options === void 0) { options = Object.create(null); }
|
|
198
|
-
this.queryRefs = new trie.Trie(utilities.canUseWeakMap);
|
|
199
|
-
this.options = options;
|
|
200
|
-
}
|
|
201
|
-
SuspenseCache.prototype.getQueryRef = function (cacheKey, createObservable) {
|
|
202
|
-
var ref = this.queryRefs.lookupArray(cacheKey);
|
|
203
|
-
if (!ref.current) {
|
|
204
|
-
ref.current = new InternalQueryReference(createObservable(), {
|
|
205
|
-
key: cacheKey,
|
|
206
|
-
autoDisposeTimeoutMs: this.options.autoDisposeTimeoutMs,
|
|
207
|
-
onDispose: function () {
|
|
208
|
-
delete ref.current;
|
|
209
|
-
},
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
return ref.current;
|
|
213
|
-
};
|
|
214
|
-
return SuspenseCache;
|
|
215
|
-
}());
|
|
216
|
-
|
|
217
|
-
var SuspenseCache = (function (_super) {
|
|
218
|
-
tslib.__extends(SuspenseCache, _super);
|
|
219
|
-
function SuspenseCache() {
|
|
220
|
-
_super.call(this) || this;
|
|
221
|
-
throw new Error("It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\n" +
|
|
222
|
-
"Please remove this code from your application. \n\n" +
|
|
223
|
-
"This export will be removed with the final 3.8 release.");
|
|
224
|
-
}
|
|
225
|
-
return SuspenseCache;
|
|
226
|
-
}(SuspenseCache$1));
|
|
227
11
|
|
|
228
12
|
exports.ApolloConsumer = context.ApolloConsumer;
|
|
229
13
|
exports.ApolloProvider = context.ApolloProvider;
|
|
@@ -232,8 +16,7 @@ exports.resetApolloContext = context.resetApolloContext;
|
|
|
232
16
|
exports.DocumentType = parser.DocumentType;
|
|
233
17
|
exports.operationName = parser.operationName;
|
|
234
18
|
exports.parser = parser.parser;
|
|
235
|
-
exports.SuspenseCache = SuspenseCache;
|
|
236
19
|
for (var k in hooks) {
|
|
237
|
-
|
|
20
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = hooks[k];
|
|
238
21
|
}
|
|
239
22
|
//# sourceMappingURL=react.cjs.map
|
package/react/react.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.cjs","sources":["cache/QueryReference.js","cache/SuspenseCache.js","cache/index.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { equal } from \"@wry/equality\";\nimport { isNetworkRequestSettled } from \"../../core/index.js\";\nimport { createFulfilledPromise, createRejectedPromise, } from \"../../utilities/index.js\";\nvar QUERY_REFERENCE_SYMBOL = Symbol();\nexport function wrapQueryRef(internalQueryRef) {\n var _a;\n return _a = {}, _a[QUERY_REFERENCE_SYMBOL] = internalQueryRef, _a;\n}\nexport function unwrapQueryRef(queryRef) {\n return queryRef[QUERY_REFERENCE_SYMBOL];\n}\nvar OBSERVED_CHANGED_OPTIONS = [\n \"canonizeResults\",\n \"context\",\n \"errorPolicy\",\n \"fetchPolicy\",\n \"refetchWritePolicy\",\n \"returnPartialData\",\n];\nvar InternalQueryReference = (function () {\n function InternalQueryReference(observable, options) {\n var _this = this;\n var _a;\n this.listeners = new Set();\n this.status = \"loading\";\n this.references = 0;\n this.handleNext = this.handleNext.bind(this);\n this.handleError = this.handleError.bind(this);\n this.dispose = this.dispose.bind(this);\n this.observable = observable;\n this.result = observable.getCurrentResult(false);\n this.key = options.key;\n if (options.onDispose) {\n this.onDispose = options.onDispose;\n }\n if (isNetworkRequestSettled(this.result.networkStatus) ||\n (this.result.data &&\n (!this.result.partial || this.watchQueryOptions.returnPartialData))) {\n this.promise = createFulfilledPromise(this.result);\n this.status = \"idle\";\n }\n else {\n this.promise = new Promise(function (resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n }\n this.subscription = observable\n .filter(function (_a) {\n var data = _a.data;\n return !equal(data, {});\n })\n .subscribe({\n next: this.handleNext,\n error: this.handleError,\n });\n this.autoDisposeTimeoutId = setTimeout(this.dispose, (_a = options.autoDisposeTimeoutMs) !== null && _a !== void 0 ? _a : 30000);\n }\n Object.defineProperty(InternalQueryReference.prototype, \"watchQueryOptions\", {\n get: function () {\n return this.observable.options;\n },\n enumerable: false,\n configurable: true\n });\n InternalQueryReference.prototype.retain = function () {\n var _this = this;\n this.references++;\n clearTimeout(this.autoDisposeTimeoutId);\n var disposed = false;\n return function () {\n if (disposed) {\n return;\n }\n disposed = true;\n _this.references--;\n setTimeout(function () {\n if (!_this.references) {\n _this.dispose();\n }\n });\n };\n };\n InternalQueryReference.prototype.didChangeOptions = function (watchQueryOptions) {\n var _this = this;\n return OBSERVED_CHANGED_OPTIONS.some(function (option) {\n return !equal(_this.watchQueryOptions[option], watchQueryOptions[option]);\n });\n };\n InternalQueryReference.prototype.applyOptions = function (watchQueryOptions) {\n var _a = this.watchQueryOptions, currentFetchPolicy = _a.fetchPolicy, currentCanonizeResults = _a.canonizeResults;\n if (currentFetchPolicy === \"standby\" &&\n currentFetchPolicy !== watchQueryOptions.fetchPolicy) {\n this.initiateFetch(this.observable.reobserve(watchQueryOptions));\n }\n else {\n this.observable.silentSetOptions(watchQueryOptions);\n if (currentCanonizeResults !== watchQueryOptions.canonizeResults) {\n this.result = __assign(__assign({}, this.result), this.observable.getCurrentResult());\n this.promise = createFulfilledPromise(this.result);\n }\n }\n return this.promise;\n };\n InternalQueryReference.prototype.listen = function (listener) {\n var _this = this;\n this.listeners.add(listener);\n return function () {\n _this.listeners.delete(listener);\n };\n };\n InternalQueryReference.prototype.refetch = function (variables) {\n return this.initiateFetch(this.observable.refetch(variables));\n };\n InternalQueryReference.prototype.fetchMore = function (options) {\n return this.initiateFetch(this.observable.fetchMore(options));\n };\n InternalQueryReference.prototype.dispose = function () {\n this.subscription.unsubscribe();\n this.onDispose();\n };\n InternalQueryReference.prototype.onDispose = function () {\n };\n InternalQueryReference.prototype.handleNext = function (result) {\n var _a;\n switch (this.status) {\n case \"loading\": {\n if (result.data === void 0) {\n result.data = this.result.data;\n }\n this.status = \"idle\";\n this.result = result;\n (_a = this.resolve) === null || _a === void 0 ? void 0 : _a.call(this, result);\n break;\n }\n case \"idle\": {\n if (result.data === this.result.data) {\n return;\n }\n if (result.data === void 0) {\n result.data = this.result.data;\n }\n this.result = result;\n this.promise = createFulfilledPromise(result);\n this.deliver(this.promise);\n break;\n }\n }\n };\n InternalQueryReference.prototype.handleError = function (error) {\n var _a;\n this.subscription.unsubscribe();\n this.subscription = this.observable.resubscribeAfterError(this.handleNext, this.handleError);\n switch (this.status) {\n case \"loading\": {\n this.status = \"idle\";\n (_a = this.reject) === null || _a === void 0 ? void 0 : _a.call(this, error);\n break;\n }\n case \"idle\": {\n this.promise = createRejectedPromise(error);\n this.deliver(this.promise);\n }\n }\n };\n InternalQueryReference.prototype.deliver = function (promise) {\n this.listeners.forEach(function (listener) { return listener(promise); });\n };\n InternalQueryReference.prototype.initiateFetch = function (returnedPromise) {\n var _this = this;\n this.status = \"loading\";\n this.promise = new Promise(function (resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n this.promise.catch(function () { });\n returnedPromise\n .then(function (result) {\n var _a;\n if (_this.status === \"loading\") {\n _this.status = \"idle\";\n _this.result = result;\n (_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, result);\n }\n })\n .catch(function () { });\n return returnedPromise;\n };\n return InternalQueryReference;\n}());\nexport { InternalQueryReference };\n//# sourceMappingURL=QueryReference.js.map","import { Trie } from \"@wry/trie\";\nimport { canUseWeakMap } from \"../../utilities/index.js\";\nimport { InternalQueryReference } from \"./QueryReference.js\";\nvar SuspenseCache = (function () {\n function SuspenseCache(options) {\n if (options === void 0) { options = Object.create(null); }\n this.queryRefs = new Trie(canUseWeakMap);\n this.options = options;\n }\n SuspenseCache.prototype.getQueryRef = function (cacheKey, createObservable) {\n var ref = this.queryRefs.lookupArray(cacheKey);\n if (!ref.current) {\n ref.current = new InternalQueryReference(createObservable(), {\n key: cacheKey,\n autoDisposeTimeoutMs: this.options.autoDisposeTimeoutMs,\n onDispose: function () {\n delete ref.current;\n },\n });\n }\n return ref.current;\n };\n return SuspenseCache;\n}());\nexport { SuspenseCache };\n//# sourceMappingURL=SuspenseCache.js.map","import { __extends } from \"tslib\";\nexport { getSuspenseCache } from \"./getSuspenseCache.js\";\nimport { SuspenseCache as RealSuspenseCache } from \"./SuspenseCache.js\";\nvar SuspenseCache = (function (_super) {\n __extends(SuspenseCache, _super);\n function SuspenseCache() {\n var _this = _super.call(this) || this;\n throw new Error(\"It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\\n\" +\n \"Please remove this code from your application. \\n\\n\" +\n \"This export will be removed with the final 3.8 release.\");\n return _this;\n }\n return SuspenseCache;\n}(RealSuspenseCache));\nexport { SuspenseCache };\n//# sourceMappingURL=index.js.map"],"names":["isNetworkRequestSettled","createFulfilledPromise","equal","__assign","createRejectedPromise","SuspenseCache","Trie","canUseWeakMap","__extends","RealSuspenseCache"],"mappings":";;;;;;;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