@apollo/client 3.8.0-beta.4 → 3.8.0-beta.5
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 +130 -108
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/core/ObservableQuery.d.ts +1 -0
- package/core/ObservableQuery.d.ts.map +1 -1
- package/core/ObservableQuery.js +17 -4
- package/core/ObservableQuery.js.map +1 -1
- package/core/core.cjs +18 -5
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +18 -5
- package/dev/dev.cjs +5 -5
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +5 -5
- package/invariantErrorCodes.js +4 -4
- package/package.json +9 -9
- package/react/cache/QueryReference.d.ts +7 -3
- package/react/cache/QueryReference.d.ts.map +1 -1
- package/react/cache/QueryReference.js +21 -16
- package/react/cache/QueryReference.js.map +1 -1
- package/react/cache/SuspenseCache.d.ts +2 -2
- package/react/cache/SuspenseCache.d.ts.map +1 -1
- package/react/cache/SuspenseCache.js +2 -2
- package/react/cache/SuspenseCache.js.map +1 -1
- package/react/hooks/hooks.cjs +137 -12
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +137 -12
- package/react/hooks/index.d.ts +2 -1
- package/react/hooks/index.d.ts.map +1 -1
- package/react/hooks/index.js +2 -1
- package/react/hooks/index.js.map +1 -1
- package/react/hooks/useBackgroundQuery.d.ts +16 -13
- package/react/hooks/useBackgroundQuery.d.ts.map +1 -1
- package/react/hooks/useBackgroundQuery.js +5 -40
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useQuery.js +1 -1
- package/react/hooks/useReadQuery.d.ts +8 -0
- package/react/hooks/useReadQuery.d.ts.map +1 -0
- package/react/hooks/useReadQuery.js +42 -0
- package/react/hooks/useReadQuery.js.map +1 -0
- package/react/hooks/useSuspenseQuery.d.ts +2 -2
- package/react/hooks/useSuspenseQuery.d.ts.map +1 -1
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/react.cjs +20 -16
- package/react/react.cjs.map +1 -1
- package/react/react.cjs.native.js +20 -16
- package/react/types/types.d.ts +6 -0
- package/react/types/types.d.ts.map +1 -1
- package/react/types/types.js.map +1 -1
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/utilities/index.js.map +1 -1
- package/version.js +1 -1
package/core/core.cjs.native.js
CHANGED
|
@@ -19,7 +19,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
19
|
|
|
20
20
|
var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
|
|
21
21
|
|
|
22
|
-
var version = '3.8.0-beta.
|
|
22
|
+
var version = '3.8.0-beta.5';
|
|
23
23
|
|
|
24
24
|
function isNonNullObject(obj) {
|
|
25
25
|
return obj !== null && typeof obj === 'object';
|
|
@@ -223,6 +223,7 @@ var ObservableQuery = (function (_super) {
|
|
|
223
223
|
_this.subscriptions = new Set();
|
|
224
224
|
_this.queryInfo = queryInfo;
|
|
225
225
|
_this.queryManager = queryManager;
|
|
226
|
+
_this.waitForOwnResult = skipCacheDataFor(options.fetchPolicy);
|
|
226
227
|
_this.isTornDown = false;
|
|
227
228
|
var _b = queryManager.defaultOptions.watchQuery, _c = _b === void 0 ? {} : _b, _d = _c.fetchPolicy, defaultFetchPolicy = _d === void 0 ? "cache-first" : _d;
|
|
228
229
|
var _e = options.fetchPolicy, fetchPolicy = _e === void 0 ? defaultFetchPolicy : _e, _f = options.initialFetchPolicy, initialFetchPolicy = _f === void 0 ? (fetchPolicy === "standby" ? defaultFetchPolicy : fetchPolicy) : _f;
|
|
@@ -273,10 +274,11 @@ var ObservableQuery = (function (_super) {
|
|
|
273
274
|
exports.NetworkStatus.ready;
|
|
274
275
|
var result = tslib.__assign(tslib.__assign({}, lastResult), { loading: isNetworkRequestInFlight(networkStatus), networkStatus: networkStatus });
|
|
275
276
|
var _a = this.options.fetchPolicy, fetchPolicy = _a === void 0 ? "cache-first" : _a;
|
|
276
|
-
if (fetchPolicy
|
|
277
|
-
fetchPolicy === 'no-cache' ||
|
|
278
|
-
fetchPolicy === 'standby' ||
|
|
277
|
+
if (skipCacheDataFor(fetchPolicy) ||
|
|
279
278
|
this.queryManager.getDocumentInfo(this.query).hasForcedResolvers) ;
|
|
279
|
+
else if (this.waitForOwnResult) {
|
|
280
|
+
this.queryInfo['updateWatch']();
|
|
281
|
+
}
|
|
280
282
|
else {
|
|
281
283
|
var diff = this.queryInfo.getDiff();
|
|
282
284
|
if (diff.complete || this.options.returnPartialData) {
|
|
@@ -614,13 +616,21 @@ var ObservableQuery = (function (_super) {
|
|
|
614
616
|
}
|
|
615
617
|
}
|
|
616
618
|
var fetchOptions = query === options.query ? options : tslib.__assign(tslib.__assign({}, options), { query: query });
|
|
617
|
-
|
|
619
|
+
this.waitForOwnResult && (this.waitForOwnResult = skipCacheDataFor(fetchOptions.fetchPolicy));
|
|
620
|
+
var finishWaitingForOwnResult = function () {
|
|
621
|
+
if (_this.concast === concast) {
|
|
622
|
+
_this.waitForOwnResult = false;
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
var variables = fetchOptions.variables && tslib.__assign({}, fetchOptions.variables);
|
|
618
626
|
var _a = this.fetch(fetchOptions, newNetworkStatus), concast = _a.concast, fromLink = _a.fromLink;
|
|
619
627
|
var observer = {
|
|
620
628
|
next: function (result) {
|
|
629
|
+
finishWaitingForOwnResult();
|
|
621
630
|
_this.reportResult(result, variables);
|
|
622
631
|
},
|
|
623
632
|
error: function (error) {
|
|
633
|
+
finishWaitingForOwnResult();
|
|
624
634
|
_this.reportError(error, variables);
|
|
625
635
|
},
|
|
626
636
|
};
|
|
@@ -704,6 +714,9 @@ function logMissingFieldErrors(missing) {
|
|
|
704
714
|
globals.__DEV__ && globals.invariant.debug(23, missing);
|
|
705
715
|
}
|
|
706
716
|
}
|
|
717
|
+
function skipCacheDataFor(fetchPolicy) {
|
|
718
|
+
return fetchPolicy === "network-only" || fetchPolicy === "no-cache" || fetchPolicy === "standby";
|
|
719
|
+
}
|
|
707
720
|
|
|
708
721
|
var LocalState = (function () {
|
|
709
722
|
function LocalState(_a) {
|
package/dev/dev.cjs
CHANGED
|
@@ -224,9 +224,9 @@ const errorCodes = // This file is used by the error message display website and
|
|
|
224
224
|
'instance in via options.'
|
|
225
225
|
},
|
|
226
226
|
|
|
227
|
-
|
|
228
|
-
file: "@apollo/client/react/hooks/
|
|
229
|
-
condition: "
|
|
227
|
+
50: {
|
|
228
|
+
file: "@apollo/client/react/hooks/useReadQuery.js",
|
|
229
|
+
condition: "internalQueryRef.promiseCache",
|
|
230
230
|
|
|
231
231
|
message: 'It appears that `useReadQuery` was used outside of `useBackgroundQuery`. ' +
|
|
232
232
|
'`useReadQuery` is only supported for use with `useBackgroundQuery`. ' +
|
|
@@ -469,7 +469,7 @@ const devWarn = {
|
|
|
469
469
|
message: "Promise Wrapper does not support multiple results from Observable"
|
|
470
470
|
},
|
|
471
471
|
|
|
472
|
-
|
|
472
|
+
49: {
|
|
473
473
|
file: "@apollo/client/react/hooks/useQuery.js",
|
|
474
474
|
message: "Calling default no-op implementation of InternalState#forceUpdate"
|
|
475
475
|
},
|
|
@@ -534,7 +534,7 @@ const devError = {
|
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
536
|
|
|
537
|
-
var version = '3.8.0-beta.
|
|
537
|
+
var version = '3.8.0-beta.5';
|
|
538
538
|
|
|
539
539
|
function maybe(thunk) {
|
|
540
540
|
try {
|
package/dev/dev.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.cjs","sources":["../invariantErrorCodes.js","../version.js","../utilities/globals/maybe.js","../utilities/globals/global.js","../utilities/common/makeUniqueId.js","../utilities/common/stringifyForDisplay.js","../utilities/globals/invariantWrappers.js","loadErrorMessageHandler.js","loadDevMessages.js","loadErrorMessages.js"],"sourcesContent":["export const errorCodes = // This file is used by the error message display website and the\n// @apollo/client/includeErrors entry point.\n// This file is not meant to be imported manually.\n{\n 1: {\n file: \"@apollo/client/cache/inmemory/entityStore.js\",\n condition: \"typeof dataId === \\\"string\\\"\",\n message: \"store.merge expects a string ID\"\n },\n\n 2: {\n file: \"@apollo/client/cache/inmemory/key-extractor.js\",\n condition: \"extracted !== void 0\",\n message: \"Missing field '%s' while extracting keyFields from %s\"\n },\n\n 3: {\n file: \"@apollo/client/cache/inmemory/policies.js\",\n condition: \"!old || old === which\",\n message: \"Cannot change root %s __typename more than once\"\n },\n\n 6: {\n file: \"@apollo/client/cache/inmemory/policies.js\",\n message: \"Cannot automatically merge arrays\"\n },\n\n 7: {\n file: \"@apollo/client/cache/inmemory/readFromStore.js\",\n message: \"No fragment named %s\"\n },\n\n 8: {\n file: \"@apollo/client/cache/inmemory/readFromStore.js\",\n condition: \"!isReference(value)\",\n message: \"Missing selection set for object of type %s returned for query field %s\"\n },\n\n 9: {\n file: \"@apollo/client/cache/inmemory/writeToStore.js\",\n message: \"Could not identify object %s\"\n },\n\n 11: {\n file: \"@apollo/client/cache/inmemory/writeToStore.js\",\n message: \"No fragment named %s\"\n },\n\n 13: {\n file: \"@apollo/client/core/ApolloClient.js\",\n\n message: \"To initialize Apollo Client, you must specify a 'cache' property \" +\n \"in the options object. \\n\" +\n \"For more information, please visit: https://go.apollo.dev/c/docs\"\n },\n\n 15: {\n file: \"@apollo/client/core/ApolloClient.js\",\n condition: \"options.fetchPolicy !== 'cache-and-network'\",\n\n message: 'The cache-and-network fetchPolicy does not work with client.query, because ' +\n 'client.query can only return a single result. Please use client.watchQuery ' +\n 'to receive multiple results from the cache and the network, or consider ' +\n 'using a different fetchPolicy, such as cache-first or network-only.'\n },\n\n 17: {\n file: \"@apollo/client/core/LocalState.js\",\n condition: \"fragment\",\n message: \"No fragment named %s\"\n },\n\n 18: {\n file: \"@apollo/client/core/LocalState.js\",\n condition: \"fragment\",\n message: \"No fragment named %s\"\n },\n\n 21: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n condition: \"pollInterval\",\n message: 'Attempted to start a polling query without a polling interval.'\n },\n\n 24: {\n file: \"@apollo/client/core/QueryManager.js\",\n message: 'QueryManager stopped while query was in flight'\n },\n\n 25: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"mutation\",\n message: 'mutation option is required. You must specify your GraphQL document in the mutation option.'\n },\n\n 26: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"fetchPolicy === 'network-only' ||\\n fetchPolicy === 'no-cache'\",\n message: \"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write.\"\n },\n\n 27: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"options.query\",\n\n message: 'query option is required. You must specify your GraphQL document ' +\n 'in the query option.'\n },\n\n 28: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"options.query.kind === 'Document'\",\n message: 'You must wrap the query string in a \"gql\" tag.'\n },\n\n 29: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"!options.returnPartialData\",\n message: 'returnPartialData option only supported on watchQuery.'\n },\n\n 30: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"!options.pollInterval\",\n message: 'pollInterval option only supported on watchQuery.'\n },\n\n 31: {\n file: \"@apollo/client/core/QueryManager.js\",\n message: 'Store reset while query was in flight (not completed in link chain)'\n },\n\n 35: {\n file: \"@apollo/client/link/core/ApolloLink.js\",\n message: 'request is not implemented'\n },\n\n 36: {\n file: \"@apollo/client/link/http/checkFetcher.js\",\n message: \"\\n\\\"fetch\\\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\\n\\nimport fetch from 'cross-fetch';\\nimport { ApolloClient, HttpLink } from '@apollo/client';\\nconst client = new ApolloClient({\\n link: new HttpLink({ uri: '/graphql', fetch })\\n});\\n \"\n },\n\n 38: {\n file: \"@apollo/client/link/http/serializeFetchParameter.js\",\n message: \"Network request failed. %s is not serializable: %s\"\n },\n\n 39: {\n file: \"@apollo/client/link/persisted-queries/index.js\",\n condition: \"options && (typeof options.sha256 === 'function' ||\\n typeof options.generateHash === 'function')\",\n\n message: 'Missing/invalid \"sha256\" or \"generateHash\" function. Please ' +\n 'configure one using the \"createPersistedQueryLink(options)\" options ' +\n 'parameter.'\n },\n\n 40: {\n file: \"@apollo/client/link/persisted-queries/index.js\",\n condition: \"forward\",\n message: 'PersistedQueryLink cannot be the last link in the chain.'\n },\n\n 42: {\n file: \"@apollo/client/link/utils/validateOperation.js\",\n message: \"illegal argument: %s\"\n },\n\n 43: {\n file: \"@apollo/client/react/context/ApolloConsumer.js\",\n condition: \"context && context.client\",\n\n message: 'Could not find \"client\" in the context of ApolloConsumer. ' +\n 'Wrap the root component in an <ApolloProvider>.'\n },\n\n 44: {\n file: \"@apollo/client/react/context/ApolloContext.js\",\n condition: \"'createContext' in React\",\n\n message: 'Invoking `getApolloContext` in an environment where `React.createContext` is not available.\\n' +\n 'The Apollo Client functionality you are trying to use is only available in React Client Components.\\n' +\n 'Please make sure to add \"use client\" at the top of your file.\\n' +\n 'For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components'\n },\n\n 45: {\n file: \"@apollo/client/react/context/ApolloProvider.js\",\n condition: \"context.client\",\n\n message: 'ApolloProvider was not passed a client instance. Make ' +\n 'sure you pass in your client via the \"client\" prop.'\n },\n\n 46: {\n file: \"@apollo/client/react/hoc/hoc-utils.js\",\n condition: \"this.withRef\",\n\n message: \"To access the wrapped instance, you need to specify \" +\n \"{ withRef: true } in the options\"\n },\n\n 47: {\n file: \"@apollo/client/react/hoc/withApollo.js\",\n condition: \"operationOptions.withRef\",\n\n message: \"To access the wrapped instance, you need to specify \" +\n \"{ withRef: true } in the options\"\n },\n\n 48: {\n file: \"@apollo/client/react/hooks/useApolloClient.js\",\n condition: \"!!client\",\n\n message: 'Could not find \"client\" in the context or passed in as an option. ' +\n 'Wrap the root component in an <ApolloProvider>, or pass an ApolloClient ' +\n 'instance in via options.'\n },\n\n 49: {\n file: \"@apollo/client/react/hooks/useBackgroundQuery.js\",\n condition: \"queryRef.promiseCache\",\n\n message: 'It appears that `useReadQuery` was used outside of `useBackgroundQuery`. ' +\n '`useReadQuery` is only supported for use with `useBackgroundQuery`. ' +\n 'Please ensure you are passing the `queryRef` returned from `useBackgroundQuery`.'\n },\n\n 55: {\n file: \"@apollo/client/react/hooks/useSuspenseCache.js\",\n condition: \"suspenseCache\",\n\n message: 'Could not find a \"suspenseCache\" in the context or passed in as an option. ' +\n 'Wrap the root component in an <ApolloProvider> and provide a suspenseCache, ' +\n 'or pass a SuspenseCache instance in via options.'\n },\n\n 56: {\n file: \"@apollo/client/react/hooks/useSuspenseQuery.js\",\n condition: \"supportedFetchPolicies.includes(fetchPolicy)\",\n message: \"The fetch policy `%s` is not supported with suspense.\"\n },\n\n 59: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"!!document && !!document.kind\",\n\n message: \"Argument of %s passed to parser was not a valid GraphQL \" +\n \"DocumentNode. You may need to use 'graphql-tag' or another method \" +\n \"to convert your operation into a document\"\n },\n\n 60: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"!fragments.length ||\\n (queries.length || mutations.length || subscriptions.length)\",\n\n message: \"Passing only a fragment to 'graphql' is not yet supported. \" +\n \"You must include a query, subscription or mutation as well\"\n },\n\n 61: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"queries.length + mutations.length + subscriptions.length <= 1\",\n\n message: \"react-apollo only supports a query, subscription, or a mutation per HOC. \" +\n \"%s had %s queries, %s \" +\n \"subscriptions and %s mutations. \" +\n \"You can use 'compose' to join multiple operation types to a component\"\n },\n\n 62: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"definitions.length === 1\",\n\n message: \"react-apollo only supports one definition per HOC. %s had \" +\n \"%s definitions. \" +\n \"You can use 'compose' to join multiple operation types to a component\"\n },\n\n 63: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"operation.type === type\",\n\n message: \"Running a %s requires a graphql \" +\n \"%s, but a %s was used instead.\"\n },\n\n 64: {\n file: \"@apollo/client/testing/core/mocking/mockLink.js\",\n condition: \"queryWithoutConnection\",\n message: \"query is required\"\n },\n\n 65: {\n file: \"@apollo/client/utilities/graphql/DocumentTransform.js\",\n condition: \"Array.isArray(cacheKeys)\",\n message: '`getCacheKey` must return an array or undefined'\n },\n\n 66: {\n file: \"@apollo/client/utilities/graphql/directives.js\",\n condition: \"evaledValue !== void 0\",\n message: \"Invalid variable referenced in @%s directive.\"\n },\n\n 67: {\n file: \"@apollo/client/utilities/graphql/directives.js\",\n condition: \"directiveArguments && directiveArguments.length === 1\",\n message: \"Incorrect number of arguments for the @%s directive.\"\n },\n\n 68: {\n file: \"@apollo/client/utilities/graphql/directives.js\",\n condition: \"ifArgument.name && ifArgument.name.value === 'if'\",\n message: \"Invalid argument for the @%s directive.\"\n },\n\n 69: {\n file: \"@apollo/client/utilities/graphql/directives.js\",\n condition: \"ifValue &&\\n (ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue')\",\n message: \"Argument for the @%s directive must be a variable or a boolean value.\"\n },\n\n 70: {\n file: \"@apollo/client/utilities/graphql/fragments.js\",\n\n message: \"Found a %s operation%s. \" +\n 'No operations are allowed when using a fragment as a query. Only fragments are allowed.'\n },\n\n 71: {\n file: \"@apollo/client/utilities/graphql/fragments.js\",\n condition: \"fragments.length === 1\",\n message: \"Found %s fragments. `fragmentName` must be provided when there is not exactly 1 fragment.\"\n },\n\n 72: {\n file: \"@apollo/client/utilities/graphql/fragments.js\",\n condition: \"fragment\",\n message: \"No fragment named %s\"\n },\n\n 73: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"doc && doc.kind === 'Document'\",\n message: \"Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \\\"gql\\\" tag? http://docs.apollostack.com/apollo-client/core.html#gql\"\n },\n\n 74: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n message: \"Schema type definitions not allowed in queries. Found: \\\"%s\\\"\"\n },\n\n 75: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"operations.length <= 1\",\n message: \"Ambiguous GraphQL document: contains %s operations\"\n },\n\n 76: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"queryDef && queryDef.operation === 'query'\",\n message: 'Must contain a query definition.'\n },\n\n 77: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"doc.kind === 'Document'\",\n message: \"Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \\\"gql\\\" tag? http://docs.apollostack.com/apollo-client/core.html#gql\"\n },\n\n 78: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"doc.definitions.length <= 1\",\n message: 'Fragment must have exactly one definition.'\n },\n\n 79: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"fragmentDef.kind === 'FragmentDefinition'\",\n message: 'Must be a fragment definition.'\n },\n\n 80: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n message: 'Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.'\n },\n\n 81: {\n file: \"@apollo/client/utilities/graphql/storeUtils.js\",\n\n message: \"The inline argument \\\"%s\\\" of kind \\\"%s\\\"\" +\n 'is not supported. Use variables instead of inline arguments to ' +\n 'overcome this limitation.'\n }\n};\n\nexport const devDebug = {\n 16: {\n file: \"@apollo/client/core/ApolloClient.js\",\n message: \"In client.refetchQueries, Promise.all promise rejected with error %o\"\n },\n\n 23: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n message: \"Missing cache result fields: %o\"\n }\n};\n\nexport const devLog = {\n 14: {\n file: \"@apollo/client/core/ApolloClient.js\",\n\n message: \"Download the Apollo DevTools for a better development \" +\n \"experience: %s\"\n }\n};\n\nexport const devWarn = {\n 4: {\n file: \"@apollo/client/cache/inmemory/policies.js\",\n message: \"Inferring subtype %s of supertype %s\"\n },\n\n 5: {\n file: \"@apollo/client/cache/inmemory/policies.js\",\n message: \"Undefined 'from' passed to readField with arguments %s\"\n },\n\n 12: {\n file: \"@apollo/client/cache/inmemory/writeToStore.js\",\n message: \"Cache data may be lost when replacing the %s field of a %s object.\\n\\nTo address this problem (which is not a bug in Apollo Client), %sdefine a custom merge function for the %s field, so InMemoryCache can safely merge these objects:\\n\\n existing: %s\\n incoming: %s\\n\\nFor more information about these options, please refer to the documentation:\\n\\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\\n\"\n },\n\n 19: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n message: \"Called refetch(%o) for query %o, which does not declare a $variables variable.\\nDid you mean to call refetch(variables) instead of refetch({ variables })?\"\n },\n\n 32: {\n file: \"@apollo/client/core/QueryManager.js\",\n message: \"Unknown query named \\\"%s\\\" requested in refetchQueries options.include array\"\n },\n\n 33: {\n file: \"@apollo/client/core/QueryManager.js\",\n message: \"Unknown query %s requested in refetchQueries options.include array\"\n },\n\n 34: {\n file: \"@apollo/client/link/core/ApolloLink.js\",\n message: \"You are calling concat on a terminating link, which will have no effect %o\"\n },\n\n 37: {\n file: \"@apollo/client/link/http/createHttpLink.js\",\n message: \"Multipart-subscriptions do not support @defer\"\n },\n\n 41: {\n file: \"@apollo/client/link/utils/toPromise.js\",\n message: \"Promise Wrapper does not support multiple results from Observable\"\n },\n\n 50: {\n file: \"@apollo/client/react/hooks/useQuery.js\",\n message: \"Calling default no-op implementation of InternalState#forceUpdate\"\n },\n\n 51: {\n file: \"@apollo/client/react/hooks/useSubscription.js\",\n message: \"'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used.\"\n },\n\n 52: {\n file: \"@apollo/client/react/hooks/useSubscription.js\",\n message: \"'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead.\"\n },\n\n 53: {\n file: \"@apollo/client/react/hooks/useSubscription.js\",\n message: \"'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used.\"\n },\n\n 54: {\n file: \"@apollo/client/react/hooks/useSubscription.js\",\n message: \"'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead.\"\n },\n\n 57: {\n file: \"@apollo/client/react/hooks/useSuspenseQuery.js\",\n message: 'Using `returnPartialData` with a `no-cache` fetch policy has no effect. To read partial data from the cache, consider using an alternate fetch policy.'\n },\n\n 83: {\n file: \"@apollo/client/utilities/graphql/transform.js\",\n\n message: 'Removing an @connection directive even though it does not have a key. ' +\n 'You may want to use the key parameter to specify a store key.'\n }\n};\n\nexport const devError = {\n 10: {\n file: \"@apollo/client/cache/inmemory/writeToStore.js\",\n message: \"Missing field '%s' while writing result %o\"\n },\n\n 20: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n message: 'Unhandled GraphQL subscription error'\n },\n\n 22: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n message: 'Unhandled error'\n },\n\n 58: {\n file: \"@apollo/client/react/hooks/useSyncExternalStore.js\",\n message: 'The result of getSnapshot should be cached to avoid an infinite loop'\n },\n\n 82: {\n file: \"@apollo/client/utilities/graphql/transform.js\",\n message: \"Could not find operation or fragment\"\n }\n};\n","export var version = '3.8.0-beta.4';\n//# sourceMappingURL=version.js.map","export function maybe(thunk) {\n try {\n return thunk();\n }\n catch (_a) { }\n}\n//# sourceMappingURL=maybe.js.map","import { maybe } from \"./maybe\";\nexport default (maybe(function () { return globalThis; }) ||\n maybe(function () { return window; }) ||\n maybe(function () { return self; }) ||\n maybe(function () { return global; }) ||\n maybe(function () { return maybe.constructor(\"return this\")(); }));\n//# sourceMappingURL=global.js.map","var prefixCounts = new Map();\nexport function makeUniqueId(prefix) {\n var count = prefixCounts.get(prefix) || 1;\n prefixCounts.set(prefix, count + 1);\n return \"\".concat(prefix, \":\").concat(count, \":\").concat(Math.random().toString(36).slice(2));\n}\n//# sourceMappingURL=makeUniqueId.js.map","import { makeUniqueId } from \"./makeUniqueId\";\nexport function stringifyForDisplay(value, space) {\n if (space === void 0) { space = 0; }\n var undefId = makeUniqueId(\"stringifyForDisplay\");\n return JSON.stringify(value, function (key, value) {\n return value === void 0 ? undefId : value;\n }, space).split(JSON.stringify(undefId)).join(\"<undefined>\");\n}\n//# sourceMappingURL=stringifyForDisplay.js.map","import { __spreadArray } from \"tslib\";\nimport { invariant as originalInvariant, InvariantError } from 'ts-invariant';\nimport { version } from '../../version';\nimport global from './global';\nimport { stringifyForDisplay } from '../common/stringifyForDisplay';\nfunction wrap(fn) {\n return function (message) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n fn.apply(void 0, __spreadArray([typeof message === 'number' ? getErrorMsg(message) : message], args, false));\n };\n}\nvar invariant = Object.assign(function invariant(condition, message) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n if (!condition) {\n originalInvariant(condition, getErrorMsg(message, args));\n }\n}, {\n debug: wrap(originalInvariant.debug),\n log: wrap(originalInvariant.log),\n warn: wrap(originalInvariant.warn),\n error: wrap(originalInvariant.error),\n});\nfunction newInvariantError(message) {\n var optionalParams = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n optionalParams[_i - 1] = arguments[_i];\n }\n return new InvariantError(getErrorMsg(message, optionalParams));\n}\nvar ApolloErrorMessageHandler = Symbol.for('ApolloErrorMessageHandler_' + version);\nfunction getErrorMsg(message, messageArgs) {\n if (messageArgs === void 0) { messageArgs = []; }\n if (!message)\n return;\n var args = messageArgs.map(function (arg) {\n return typeof arg == 'string' ? arg : stringifyForDisplay(arg, 2).slice(0, 1000);\n });\n return ((global[ApolloErrorMessageHandler] &&\n global[ApolloErrorMessageHandler](message, args)) ||\n \"An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#\".concat(encodeURIComponent(JSON.stringify({\n version: version,\n message: message,\n args: args,\n }))));\n}\nexport { invariant, InvariantError, newInvariantError, ApolloErrorMessageHandler, };\n//# sourceMappingURL=invariantWrappers.js.map","import { global } from '../utilities/globals';\nimport { ApolloErrorMessageHandler } from '../utilities/globals/invariantWrappers';\nexport function loadErrorMessageHandler() {\n var errorCodes = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n errorCodes[_i] = arguments[_i];\n }\n if (!global[ApolloErrorMessageHandler]) {\n global[ApolloErrorMessageHandler] = handler;\n }\n for (var _a = 0, errorCodes_1 = errorCodes; _a < errorCodes_1.length; _a++) {\n var codes = errorCodes_1[_a];\n Object.assign(global[ApolloErrorMessageHandler], codes);\n }\n return global[ApolloErrorMessageHandler];\n function handler(message, args) {\n if (typeof message === 'number') {\n var definition = global[ApolloErrorMessageHandler][message];\n if (!message || !definition.message)\n return;\n message = definition.message;\n }\n return args.reduce(function (msg, arg) { return msg.replace('%s', String(arg)); }, String(message));\n }\n}\n//# sourceMappingURL=loadErrorMessageHandler.js.map","import { devDebug, devError, devLog, devWarn } from '../invariantErrorCodes';\nimport { loadErrorMessageHandler } from './loadErrorMessageHandler';\nexport function loadDevMessages() {\n loadErrorMessageHandler(devDebug, devError, devLog, devWarn);\n}\n//# sourceMappingURL=loadDevMessages.js.map","import { errorCodes } from '../invariantErrorCodes';\nimport { loadErrorMessageHandler } from './loadErrorMessageHandler';\nexport function loadErrorMessages() {\n loadErrorMessageHandler(errorCodes);\n}\n//# sourceMappingURL=loadErrorMessages.js.map"],"names":["__spreadArray","originalInvariant","global"],"mappings":";;;;;;;;AAAO,MAAM,UAAU;AACvB;AACA;AACA;AACA,EAAE,CAAC,EAAE;AACL,IAAI,IAAI,EAAE,8CAA8C;AACxD,IAAI,SAAS,EAAE,8BAA8B;AAC7C,IAAI,OAAO,EAAE,iCAAiC;AAC9C,GAAG;AACH;AACA,EAAE,CAAC,EAAE;AACL,IA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,iBAAiB,GAAG;AACpC,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;AACxC;;;;;;"}
|
|
1
|
+
{"version":3,"file":"dev.cjs","sources":["../invariantErrorCodes.js","../version.js","../utilities/globals/maybe.js","../utilities/globals/global.js","../utilities/common/makeUniqueId.js","../utilities/common/stringifyForDisplay.js","../utilities/globals/invariantWrappers.js","loadErrorMessageHandler.js","loadDevMessages.js","loadErrorMessages.js"],"sourcesContent":["export const errorCodes = // This file is used by the error message display website and the\n// @apollo/client/includeErrors entry point.\n// This file is not meant to be imported manually.\n{\n 1: {\n file: \"@apollo/client/cache/inmemory/entityStore.js\",\n condition: \"typeof dataId === \\\"string\\\"\",\n message: \"store.merge expects a string ID\"\n },\n\n 2: {\n file: \"@apollo/client/cache/inmemory/key-extractor.js\",\n condition: \"extracted !== void 0\",\n message: \"Missing field '%s' while extracting keyFields from %s\"\n },\n\n 3: {\n file: \"@apollo/client/cache/inmemory/policies.js\",\n condition: \"!old || old === which\",\n message: \"Cannot change root %s __typename more than once\"\n },\n\n 6: {\n file: \"@apollo/client/cache/inmemory/policies.js\",\n message: \"Cannot automatically merge arrays\"\n },\n\n 7: {\n file: \"@apollo/client/cache/inmemory/readFromStore.js\",\n message: \"No fragment named %s\"\n },\n\n 8: {\n file: \"@apollo/client/cache/inmemory/readFromStore.js\",\n condition: \"!isReference(value)\",\n message: \"Missing selection set for object of type %s returned for query field %s\"\n },\n\n 9: {\n file: \"@apollo/client/cache/inmemory/writeToStore.js\",\n message: \"Could not identify object %s\"\n },\n\n 11: {\n file: \"@apollo/client/cache/inmemory/writeToStore.js\",\n message: \"No fragment named %s\"\n },\n\n 13: {\n file: \"@apollo/client/core/ApolloClient.js\",\n\n message: \"To initialize Apollo Client, you must specify a 'cache' property \" +\n \"in the options object. \\n\" +\n \"For more information, please visit: https://go.apollo.dev/c/docs\"\n },\n\n 15: {\n file: \"@apollo/client/core/ApolloClient.js\",\n condition: \"options.fetchPolicy !== 'cache-and-network'\",\n\n message: 'The cache-and-network fetchPolicy does not work with client.query, because ' +\n 'client.query can only return a single result. Please use client.watchQuery ' +\n 'to receive multiple results from the cache and the network, or consider ' +\n 'using a different fetchPolicy, such as cache-first or network-only.'\n },\n\n 17: {\n file: \"@apollo/client/core/LocalState.js\",\n condition: \"fragment\",\n message: \"No fragment named %s\"\n },\n\n 18: {\n file: \"@apollo/client/core/LocalState.js\",\n condition: \"fragment\",\n message: \"No fragment named %s\"\n },\n\n 21: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n condition: \"pollInterval\",\n message: 'Attempted to start a polling query without a polling interval.'\n },\n\n 24: {\n file: \"@apollo/client/core/QueryManager.js\",\n message: 'QueryManager stopped while query was in flight'\n },\n\n 25: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"mutation\",\n message: 'mutation option is required. You must specify your GraphQL document in the mutation option.'\n },\n\n 26: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"fetchPolicy === 'network-only' ||\\n fetchPolicy === 'no-cache'\",\n message: \"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write.\"\n },\n\n 27: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"options.query\",\n\n message: 'query option is required. You must specify your GraphQL document ' +\n 'in the query option.'\n },\n\n 28: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"options.query.kind === 'Document'\",\n message: 'You must wrap the query string in a \"gql\" tag.'\n },\n\n 29: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"!options.returnPartialData\",\n message: 'returnPartialData option only supported on watchQuery.'\n },\n\n 30: {\n file: \"@apollo/client/core/QueryManager.js\",\n condition: \"!options.pollInterval\",\n message: 'pollInterval option only supported on watchQuery.'\n },\n\n 31: {\n file: \"@apollo/client/core/QueryManager.js\",\n message: 'Store reset while query was in flight (not completed in link chain)'\n },\n\n 35: {\n file: \"@apollo/client/link/core/ApolloLink.js\",\n message: 'request is not implemented'\n },\n\n 36: {\n file: \"@apollo/client/link/http/checkFetcher.js\",\n message: \"\\n\\\"fetch\\\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\\n\\nimport fetch from 'cross-fetch';\\nimport { ApolloClient, HttpLink } from '@apollo/client';\\nconst client = new ApolloClient({\\n link: new HttpLink({ uri: '/graphql', fetch })\\n});\\n \"\n },\n\n 38: {\n file: \"@apollo/client/link/http/serializeFetchParameter.js\",\n message: \"Network request failed. %s is not serializable: %s\"\n },\n\n 39: {\n file: \"@apollo/client/link/persisted-queries/index.js\",\n condition: \"options && (typeof options.sha256 === 'function' ||\\n typeof options.generateHash === 'function')\",\n\n message: 'Missing/invalid \"sha256\" or \"generateHash\" function. Please ' +\n 'configure one using the \"createPersistedQueryLink(options)\" options ' +\n 'parameter.'\n },\n\n 40: {\n file: \"@apollo/client/link/persisted-queries/index.js\",\n condition: \"forward\",\n message: 'PersistedQueryLink cannot be the last link in the chain.'\n },\n\n 42: {\n file: \"@apollo/client/link/utils/validateOperation.js\",\n message: \"illegal argument: %s\"\n },\n\n 43: {\n file: \"@apollo/client/react/context/ApolloConsumer.js\",\n condition: \"context && context.client\",\n\n message: 'Could not find \"client\" in the context of ApolloConsumer. ' +\n 'Wrap the root component in an <ApolloProvider>.'\n },\n\n 44: {\n file: \"@apollo/client/react/context/ApolloContext.js\",\n condition: \"'createContext' in React\",\n\n message: 'Invoking `getApolloContext` in an environment where `React.createContext` is not available.\\n' +\n 'The Apollo Client functionality you are trying to use is only available in React Client Components.\\n' +\n 'Please make sure to add \"use client\" at the top of your file.\\n' +\n 'For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components'\n },\n\n 45: {\n file: \"@apollo/client/react/context/ApolloProvider.js\",\n condition: \"context.client\",\n\n message: 'ApolloProvider was not passed a client instance. Make ' +\n 'sure you pass in your client via the \"client\" prop.'\n },\n\n 46: {\n file: \"@apollo/client/react/hoc/hoc-utils.js\",\n condition: \"this.withRef\",\n\n message: \"To access the wrapped instance, you need to specify \" +\n \"{ withRef: true } in the options\"\n },\n\n 47: {\n file: \"@apollo/client/react/hoc/withApollo.js\",\n condition: \"operationOptions.withRef\",\n\n message: \"To access the wrapped instance, you need to specify \" +\n \"{ withRef: true } in the options\"\n },\n\n 48: {\n file: \"@apollo/client/react/hooks/useApolloClient.js\",\n condition: \"!!client\",\n\n message: 'Could not find \"client\" in the context or passed in as an option. ' +\n 'Wrap the root component in an <ApolloProvider>, or pass an ApolloClient ' +\n 'instance in via options.'\n },\n\n 50: {\n file: \"@apollo/client/react/hooks/useReadQuery.js\",\n condition: \"internalQueryRef.promiseCache\",\n\n message: 'It appears that `useReadQuery` was used outside of `useBackgroundQuery`. ' +\n '`useReadQuery` is only supported for use with `useBackgroundQuery`. ' +\n 'Please ensure you are passing the `queryRef` returned from `useBackgroundQuery`.'\n },\n\n 55: {\n file: \"@apollo/client/react/hooks/useSuspenseCache.js\",\n condition: \"suspenseCache\",\n\n message: 'Could not find a \"suspenseCache\" in the context or passed in as an option. ' +\n 'Wrap the root component in an <ApolloProvider> and provide a suspenseCache, ' +\n 'or pass a SuspenseCache instance in via options.'\n },\n\n 56: {\n file: \"@apollo/client/react/hooks/useSuspenseQuery.js\",\n condition: \"supportedFetchPolicies.includes(fetchPolicy)\",\n message: \"The fetch policy `%s` is not supported with suspense.\"\n },\n\n 59: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"!!document && !!document.kind\",\n\n message: \"Argument of %s passed to parser was not a valid GraphQL \" +\n \"DocumentNode. You may need to use 'graphql-tag' or another method \" +\n \"to convert your operation into a document\"\n },\n\n 60: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"!fragments.length ||\\n (queries.length || mutations.length || subscriptions.length)\",\n\n message: \"Passing only a fragment to 'graphql' is not yet supported. \" +\n \"You must include a query, subscription or mutation as well\"\n },\n\n 61: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"queries.length + mutations.length + subscriptions.length <= 1\",\n\n message: \"react-apollo only supports a query, subscription, or a mutation per HOC. \" +\n \"%s had %s queries, %s \" +\n \"subscriptions and %s mutations. \" +\n \"You can use 'compose' to join multiple operation types to a component\"\n },\n\n 62: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"definitions.length === 1\",\n\n message: \"react-apollo only supports one definition per HOC. %s had \" +\n \"%s definitions. \" +\n \"You can use 'compose' to join multiple operation types to a component\"\n },\n\n 63: {\n file: \"@apollo/client/react/parser/index.js\",\n condition: \"operation.type === type\",\n\n message: \"Running a %s requires a graphql \" +\n \"%s, but a %s was used instead.\"\n },\n\n 64: {\n file: \"@apollo/client/testing/core/mocking/mockLink.js\",\n condition: \"queryWithoutConnection\",\n message: \"query is required\"\n },\n\n 65: {\n file: \"@apollo/client/utilities/graphql/DocumentTransform.js\",\n condition: \"Array.isArray(cacheKeys)\",\n message: '`getCacheKey` must return an array or undefined'\n },\n\n 66: {\n file: \"@apollo/client/utilities/graphql/directives.js\",\n condition: \"evaledValue !== void 0\",\n message: \"Invalid variable referenced in @%s directive.\"\n },\n\n 67: {\n file: \"@apollo/client/utilities/graphql/directives.js\",\n condition: \"directiveArguments && directiveArguments.length === 1\",\n message: \"Incorrect number of arguments for the @%s directive.\"\n },\n\n 68: {\n file: \"@apollo/client/utilities/graphql/directives.js\",\n condition: \"ifArgument.name && ifArgument.name.value === 'if'\",\n message: \"Invalid argument for the @%s directive.\"\n },\n\n 69: {\n file: \"@apollo/client/utilities/graphql/directives.js\",\n condition: \"ifValue &&\\n (ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue')\",\n message: \"Argument for the @%s directive must be a variable or a boolean value.\"\n },\n\n 70: {\n file: \"@apollo/client/utilities/graphql/fragments.js\",\n\n message: \"Found a %s operation%s. \" +\n 'No operations are allowed when using a fragment as a query. Only fragments are allowed.'\n },\n\n 71: {\n file: \"@apollo/client/utilities/graphql/fragments.js\",\n condition: \"fragments.length === 1\",\n message: \"Found %s fragments. `fragmentName` must be provided when there is not exactly 1 fragment.\"\n },\n\n 72: {\n file: \"@apollo/client/utilities/graphql/fragments.js\",\n condition: \"fragment\",\n message: \"No fragment named %s\"\n },\n\n 73: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"doc && doc.kind === 'Document'\",\n message: \"Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \\\"gql\\\" tag? http://docs.apollostack.com/apollo-client/core.html#gql\"\n },\n\n 74: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n message: \"Schema type definitions not allowed in queries. Found: \\\"%s\\\"\"\n },\n\n 75: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"operations.length <= 1\",\n message: \"Ambiguous GraphQL document: contains %s operations\"\n },\n\n 76: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"queryDef && queryDef.operation === 'query'\",\n message: 'Must contain a query definition.'\n },\n\n 77: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"doc.kind === 'Document'\",\n message: \"Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \\\"gql\\\" tag? http://docs.apollostack.com/apollo-client/core.html#gql\"\n },\n\n 78: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"doc.definitions.length <= 1\",\n message: 'Fragment must have exactly one definition.'\n },\n\n 79: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n condition: \"fragmentDef.kind === 'FragmentDefinition'\",\n message: 'Must be a fragment definition.'\n },\n\n 80: {\n file: \"@apollo/client/utilities/graphql/getFromAST.js\",\n message: 'Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.'\n },\n\n 81: {\n file: \"@apollo/client/utilities/graphql/storeUtils.js\",\n\n message: \"The inline argument \\\"%s\\\" of kind \\\"%s\\\"\" +\n 'is not supported. Use variables instead of inline arguments to ' +\n 'overcome this limitation.'\n }\n};\n\nexport const devDebug = {\n 16: {\n file: \"@apollo/client/core/ApolloClient.js\",\n message: \"In client.refetchQueries, Promise.all promise rejected with error %o\"\n },\n\n 23: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n message: \"Missing cache result fields: %o\"\n }\n};\n\nexport const devLog = {\n 14: {\n file: \"@apollo/client/core/ApolloClient.js\",\n\n message: \"Download the Apollo DevTools for a better development \" +\n \"experience: %s\"\n }\n};\n\nexport const devWarn = {\n 4: {\n file: \"@apollo/client/cache/inmemory/policies.js\",\n message: \"Inferring subtype %s of supertype %s\"\n },\n\n 5: {\n file: \"@apollo/client/cache/inmemory/policies.js\",\n message: \"Undefined 'from' passed to readField with arguments %s\"\n },\n\n 12: {\n file: \"@apollo/client/cache/inmemory/writeToStore.js\",\n message: \"Cache data may be lost when replacing the %s field of a %s object.\\n\\nTo address this problem (which is not a bug in Apollo Client), %sdefine a custom merge function for the %s field, so InMemoryCache can safely merge these objects:\\n\\n existing: %s\\n incoming: %s\\n\\nFor more information about these options, please refer to the documentation:\\n\\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\\n\"\n },\n\n 19: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n message: \"Called refetch(%o) for query %o, which does not declare a $variables variable.\\nDid you mean to call refetch(variables) instead of refetch({ variables })?\"\n },\n\n 32: {\n file: \"@apollo/client/core/QueryManager.js\",\n message: \"Unknown query named \\\"%s\\\" requested in refetchQueries options.include array\"\n },\n\n 33: {\n file: \"@apollo/client/core/QueryManager.js\",\n message: \"Unknown query %s requested in refetchQueries options.include array\"\n },\n\n 34: {\n file: \"@apollo/client/link/core/ApolloLink.js\",\n message: \"You are calling concat on a terminating link, which will have no effect %o\"\n },\n\n 37: {\n file: \"@apollo/client/link/http/createHttpLink.js\",\n message: \"Multipart-subscriptions do not support @defer\"\n },\n\n 41: {\n file: \"@apollo/client/link/utils/toPromise.js\",\n message: \"Promise Wrapper does not support multiple results from Observable\"\n },\n\n 49: {\n file: \"@apollo/client/react/hooks/useQuery.js\",\n message: \"Calling default no-op implementation of InternalState#forceUpdate\"\n },\n\n 51: {\n file: \"@apollo/client/react/hooks/useSubscription.js\",\n message: \"'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used.\"\n },\n\n 52: {\n file: \"@apollo/client/react/hooks/useSubscription.js\",\n message: \"'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead.\"\n },\n\n 53: {\n file: \"@apollo/client/react/hooks/useSubscription.js\",\n message: \"'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used.\"\n },\n\n 54: {\n file: \"@apollo/client/react/hooks/useSubscription.js\",\n message: \"'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead.\"\n },\n\n 57: {\n file: \"@apollo/client/react/hooks/useSuspenseQuery.js\",\n message: 'Using `returnPartialData` with a `no-cache` fetch policy has no effect. To read partial data from the cache, consider using an alternate fetch policy.'\n },\n\n 83: {\n file: \"@apollo/client/utilities/graphql/transform.js\",\n\n message: 'Removing an @connection directive even though it does not have a key. ' +\n 'You may want to use the key parameter to specify a store key.'\n }\n};\n\nexport const devError = {\n 10: {\n file: \"@apollo/client/cache/inmemory/writeToStore.js\",\n message: \"Missing field '%s' while writing result %o\"\n },\n\n 20: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n message: 'Unhandled GraphQL subscription error'\n },\n\n 22: {\n file: \"@apollo/client/core/ObservableQuery.js\",\n message: 'Unhandled error'\n },\n\n 58: {\n file: \"@apollo/client/react/hooks/useSyncExternalStore.js\",\n message: 'The result of getSnapshot should be cached to avoid an infinite loop'\n },\n\n 82: {\n file: \"@apollo/client/utilities/graphql/transform.js\",\n message: \"Could not find operation or fragment\"\n }\n};\n","export var version = '3.8.0-beta.5';\n//# sourceMappingURL=version.js.map","export function maybe(thunk) {\n try {\n return thunk();\n }\n catch (_a) { }\n}\n//# sourceMappingURL=maybe.js.map","import { maybe } from \"./maybe\";\nexport default (maybe(function () { return globalThis; }) ||\n maybe(function () { return window; }) ||\n maybe(function () { return self; }) ||\n maybe(function () { return global; }) ||\n maybe(function () { return maybe.constructor(\"return this\")(); }));\n//# sourceMappingURL=global.js.map","var prefixCounts = new Map();\nexport function makeUniqueId(prefix) {\n var count = prefixCounts.get(prefix) || 1;\n prefixCounts.set(prefix, count + 1);\n return \"\".concat(prefix, \":\").concat(count, \":\").concat(Math.random().toString(36).slice(2));\n}\n//# sourceMappingURL=makeUniqueId.js.map","import { makeUniqueId } from \"./makeUniqueId\";\nexport function stringifyForDisplay(value, space) {\n if (space === void 0) { space = 0; }\n var undefId = makeUniqueId(\"stringifyForDisplay\");\n return JSON.stringify(value, function (key, value) {\n return value === void 0 ? undefId : value;\n }, space).split(JSON.stringify(undefId)).join(\"<undefined>\");\n}\n//# sourceMappingURL=stringifyForDisplay.js.map","import { __spreadArray } from \"tslib\";\nimport { invariant as originalInvariant, InvariantError } from 'ts-invariant';\nimport { version } from '../../version';\nimport global from './global';\nimport { stringifyForDisplay } from '../common/stringifyForDisplay';\nfunction wrap(fn) {\n return function (message) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n fn.apply(void 0, __spreadArray([typeof message === 'number' ? getErrorMsg(message) : message], args, false));\n };\n}\nvar invariant = Object.assign(function invariant(condition, message) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n if (!condition) {\n originalInvariant(condition, getErrorMsg(message, args));\n }\n}, {\n debug: wrap(originalInvariant.debug),\n log: wrap(originalInvariant.log),\n warn: wrap(originalInvariant.warn),\n error: wrap(originalInvariant.error),\n});\nfunction newInvariantError(message) {\n var optionalParams = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n optionalParams[_i - 1] = arguments[_i];\n }\n return new InvariantError(getErrorMsg(message, optionalParams));\n}\nvar ApolloErrorMessageHandler = Symbol.for('ApolloErrorMessageHandler_' + version);\nfunction getErrorMsg(message, messageArgs) {\n if (messageArgs === void 0) { messageArgs = []; }\n if (!message)\n return;\n var args = messageArgs.map(function (arg) {\n return typeof arg == 'string' ? arg : stringifyForDisplay(arg, 2).slice(0, 1000);\n });\n return ((global[ApolloErrorMessageHandler] &&\n global[ApolloErrorMessageHandler](message, args)) ||\n \"An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#\".concat(encodeURIComponent(JSON.stringify({\n version: version,\n message: message,\n args: args,\n }))));\n}\nexport { invariant, InvariantError, newInvariantError, ApolloErrorMessageHandler, };\n//# sourceMappingURL=invariantWrappers.js.map","import { global } from '../utilities/globals';\nimport { ApolloErrorMessageHandler } from '../utilities/globals/invariantWrappers';\nexport function loadErrorMessageHandler() {\n var errorCodes = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n errorCodes[_i] = arguments[_i];\n }\n if (!global[ApolloErrorMessageHandler]) {\n global[ApolloErrorMessageHandler] = handler;\n }\n for (var _a = 0, errorCodes_1 = errorCodes; _a < errorCodes_1.length; _a++) {\n var codes = errorCodes_1[_a];\n Object.assign(global[ApolloErrorMessageHandler], codes);\n }\n return global[ApolloErrorMessageHandler];\n function handler(message, args) {\n if (typeof message === 'number') {\n var definition = global[ApolloErrorMessageHandler][message];\n if (!message || !definition.message)\n return;\n message = definition.message;\n }\n return args.reduce(function (msg, arg) { return msg.replace('%s', String(arg)); }, String(message));\n }\n}\n//# sourceMappingURL=loadErrorMessageHandler.js.map","import { devDebug, devError, devLog, devWarn } from '../invariantErrorCodes';\nimport { loadErrorMessageHandler } from './loadErrorMessageHandler';\nexport function loadDevMessages() {\n loadErrorMessageHandler(devDebug, devError, devLog, devWarn);\n}\n//# sourceMappingURL=loadDevMessages.js.map","import { errorCodes } from '../invariantErrorCodes';\nimport { loadErrorMessageHandler } from './loadErrorMessageHandler';\nexport function loadErrorMessages() {\n loadErrorMessageHandler(errorCodes);\n}\n//# sourceMappingURL=load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AC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AAC5G,KAAK;AACL;;ACtBO,SAAS,eAAe,GAAG;AAClC,IAAI,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACjE;;ACFO,SAAS,iBAAiB,GAAG;AACpC,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;AACxC;;;;;;"}
|
package/dev/dev.cjs.native.js
CHANGED
|
@@ -224,9 +224,9 @@ const errorCodes = // This file is used by the error message display website and
|
|
|
224
224
|
'instance in via options.'
|
|
225
225
|
},
|
|
226
226
|
|
|
227
|
-
|
|
228
|
-
file: "@apollo/client/react/hooks/
|
|
229
|
-
condition: "
|
|
227
|
+
50: {
|
|
228
|
+
file: "@apollo/client/react/hooks/useReadQuery.js",
|
|
229
|
+
condition: "internalQueryRef.promiseCache",
|
|
230
230
|
|
|
231
231
|
message: 'It appears that `useReadQuery` was used outside of `useBackgroundQuery`. ' +
|
|
232
232
|
'`useReadQuery` is only supported for use with `useBackgroundQuery`. ' +
|
|
@@ -469,7 +469,7 @@ const devWarn = {
|
|
|
469
469
|
message: "Promise Wrapper does not support multiple results from Observable"
|
|
470
470
|
},
|
|
471
471
|
|
|
472
|
-
|
|
472
|
+
49: {
|
|
473
473
|
file: "@apollo/client/react/hooks/useQuery.js",
|
|
474
474
|
message: "Calling default no-op implementation of InternalState#forceUpdate"
|
|
475
475
|
},
|
|
@@ -534,7 +534,7 @@ const devError = {
|
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
536
|
|
|
537
|
-
var version = '3.8.0-beta.
|
|
537
|
+
var version = '3.8.0-beta.5';
|
|
538
538
|
|
|
539
539
|
function maybe(thunk) {
|
|
540
540
|
try {
|
package/invariantErrorCodes.js
CHANGED
|
@@ -216,9 +216,9 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
216
216
|
'instance in via options.'
|
|
217
217
|
},
|
|
218
218
|
|
|
219
|
-
|
|
220
|
-
file: "@apollo/client/react/hooks/
|
|
221
|
-
condition: "
|
|
219
|
+
50: {
|
|
220
|
+
file: "@apollo/client/react/hooks/useReadQuery.js",
|
|
221
|
+
condition: "internalQueryRef.promiseCache",
|
|
222
222
|
|
|
223
223
|
message: 'It appears that `useReadQuery` was used outside of `useBackgroundQuery`. ' +
|
|
224
224
|
'`useReadQuery` is only supported for use with `useBackgroundQuery`. ' +
|
|
@@ -461,7 +461,7 @@ export const devWarn = {
|
|
|
461
461
|
message: "Promise Wrapper does not support multiple results from Observable"
|
|
462
462
|
},
|
|
463
463
|
|
|
464
|
-
|
|
464
|
+
49: {
|
|
465
465
|
file: "@apollo/client/react/hooks/useQuery.js",
|
|
466
466
|
message: "Calling default no-op implementation of InternalState#forceUpdate"
|
|
467
467
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo/client",
|
|
3
|
-
"version": "3.8.0-beta.
|
|
3
|
+
"version": "3.8.0-beta.5",
|
|
4
4
|
"description": "A fully-featured caching GraphQL client.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
"zen-observable-ts": "^1.2.5"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@babel/parser": "7.22.
|
|
69
|
+
"@babel/parser": "7.22.5",
|
|
70
70
|
"@changesets/changelog-github": "0.4.8",
|
|
71
71
|
"@changesets/cli": "2.26.1",
|
|
72
72
|
"@graphql-tools/schema": "10.0.0",
|
|
73
73
|
"@rollup/plugin-node-resolve": "11.2.1",
|
|
74
|
-
"@size-limit/esbuild-why": "8.2.
|
|
75
|
-
"@size-limit/preset-small-lib": "8.2.
|
|
74
|
+
"@size-limit/esbuild-why": "8.2.6",
|
|
75
|
+
"@size-limit/preset-small-lib": "8.2.6",
|
|
76
76
|
"@testing-library/jest-dom": "5.16.5",
|
|
77
77
|
"@testing-library/react": "14.0.0",
|
|
78
78
|
"@testing-library/react-12": "npm:@testing-library/react@^12",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"@types/lodash": "4.14.195",
|
|
86
86
|
"@types/node": "20.2.5",
|
|
87
87
|
"@types/node-fetch": "2.6.4",
|
|
88
|
-
"@types/react": "18.2.
|
|
89
|
-
"@types/react-dom": "18.2.
|
|
88
|
+
"@types/react": "18.2.14",
|
|
89
|
+
"@types/react-dom": "18.2.6",
|
|
90
90
|
"@types/use-sync-external-store": "0.0.3",
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "5.59.
|
|
92
|
-
"@typescript-eslint/parser": "5.59.
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "5.59.11",
|
|
92
|
+
"@typescript-eslint/parser": "5.59.11",
|
|
93
93
|
"acorn": "8.8.2",
|
|
94
94
|
"blob-polyfill": "7.0.20220408",
|
|
95
95
|
"bytes": "3.1.2",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"rollup": "2.79.1",
|
|
119
119
|
"rollup-plugin-terser": "7.0.2",
|
|
120
120
|
"rxjs": "7.8.1",
|
|
121
|
-
"size-limit": "8.2.
|
|
121
|
+
"size-limit": "8.2.6",
|
|
122
122
|
"subscriptions-transport-ws": "0.11.0",
|
|
123
123
|
"terser": "5.17.7",
|
|
124
124
|
"ts-jest": "29.1.0",
|
|
@@ -2,12 +2,16 @@ import type { ApolloQueryResult, ObservableQuery, OperationVariables, WatchQuery
|
|
|
2
2
|
import type { CacheKey } from './types';
|
|
3
3
|
type Listener<TData> = (promise: Promise<ApolloQueryResult<TData>>) => void;
|
|
4
4
|
type FetchMoreOptions<TData> = Parameters<ObservableQuery<TData>['fetchMore']>[0];
|
|
5
|
-
|
|
5
|
+
export declare const QUERY_REFERENCE_SYMBOL: unique symbol;
|
|
6
|
+
export interface QueryReference<TData = unknown> {
|
|
7
|
+
[QUERY_REFERENCE_SYMBOL]: InternalQueryReference<TData>;
|
|
8
|
+
}
|
|
9
|
+
interface InternalQueryReferenceOptions {
|
|
6
10
|
key: CacheKey;
|
|
7
11
|
onDispose?: () => void;
|
|
8
12
|
autoDisposeTimeoutMs?: number;
|
|
9
13
|
}
|
|
10
|
-
export declare class
|
|
14
|
+
export declare class InternalQueryReference<TData = unknown> {
|
|
11
15
|
result: ApolloQueryResult<TData>;
|
|
12
16
|
readonly key: CacheKey;
|
|
13
17
|
readonly observable: ObservableQuery<TData>;
|
|
@@ -20,7 +24,7 @@ export declare class QueryReference<TData = unknown> {
|
|
|
20
24
|
private refetching;
|
|
21
25
|
private resolve;
|
|
22
26
|
private reject;
|
|
23
|
-
constructor(observable: ObservableQuery<TData>, options:
|
|
27
|
+
constructor(observable: ObservableQuery<TData>, options: InternalQueryReferenceOptions);
|
|
24
28
|
get watchQueryOptions(): WatchQueryOptions<OperationVariables, TData>;
|
|
25
29
|
listen(listener: Listener<TData>): () => void;
|
|
26
30
|
refetch(variables: OperationVariables | undefined): Promise<ApolloQueryResult<TData>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryReference.d.ts","sourceRoot":"","sources":["../../../src/react/cache/QueryReference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"QueryReference.d.ts","sourceRoot":"","sources":["../../../src/react/cache/QueryReference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,KAAK,QAAQ,CAAC,KAAK,IAAI,CAAC,O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,EAAE,QAAQ,CAAC,KAAK,CAAC;IAahC,OAAO,CAAC,SAAS,EAAE,kBAAkB,GAAG,SAAS;IAUjD,SAAS,CAAC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC;IAQ1C,SAAS,CACP,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;IAS1E,OAAO;IAKP,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,UAAU;IA+BlB,OAAO,CAAC,WAAW;IAyBnB,OAAO,CAAC,OAAO;CAGhB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { NetworkStatus, isNetworkRequestSettled } from "../../core/index.js";
|
|
3
3
|
import { createFulfilledPromise, createRejectedPromise } from "../../utilities/index.js";
|
|
4
|
-
var
|
|
5
|
-
|
|
4
|
+
export var QUERY_REFERENCE_SYMBOL = Symbol();
|
|
5
|
+
var InternalQueryReference = (function () {
|
|
6
|
+
function InternalQueryReference(observable, options) {
|
|
6
7
|
var _this = this;
|
|
7
8
|
var _a;
|
|
8
9
|
this.listeners = new Set();
|
|
@@ -37,14 +38,14 @@ var QueryReference = (function () {
|
|
|
37
38
|
}
|
|
38
39
|
this.autoDisposeTimeoutId = setTimeout(this.dispose, (_a = options.autoDisposeTimeoutMs) !== null && _a !== void 0 ? _a : 30000);
|
|
39
40
|
}
|
|
40
|
-
Object.defineProperty(
|
|
41
|
+
Object.defineProperty(InternalQueryReference.prototype, "watchQueryOptions", {
|
|
41
42
|
get: function () {
|
|
42
43
|
return this.observable.options;
|
|
43
44
|
},
|
|
44
45
|
enumerable: false,
|
|
45
46
|
configurable: true
|
|
46
47
|
});
|
|
47
|
-
|
|
48
|
+
InternalQueryReference.prototype.listen = function (listener) {
|
|
48
49
|
var _this = this;
|
|
49
50
|
clearTimeout(this.autoDisposeTimeoutId);
|
|
50
51
|
this.listeners.add(listener);
|
|
@@ -52,29 +53,29 @@ var QueryReference = (function () {
|
|
|
52
53
|
_this.listeners.delete(listener);
|
|
53
54
|
};
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
+
InternalQueryReference.prototype.refetch = function (variables) {
|
|
56
57
|
this.refetching = true;
|
|
57
58
|
var promise = this.observable.refetch(variables);
|
|
58
59
|
this.promise = promise;
|
|
59
60
|
return promise;
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
+
InternalQueryReference.prototype.fetchMore = function (options) {
|
|
62
63
|
var promise = this.observable.fetchMore(options);
|
|
63
64
|
this.promise = promise;
|
|
64
65
|
return promise;
|
|
65
66
|
};
|
|
66
|
-
|
|
67
|
+
InternalQueryReference.prototype.reobserve = function (watchQueryOptions) {
|
|
67
68
|
var promise = this.observable.reobserve(watchQueryOptions);
|
|
68
69
|
this.promise = promise;
|
|
69
70
|
return promise;
|
|
70
71
|
};
|
|
71
|
-
|
|
72
|
+
InternalQueryReference.prototype.dispose = function () {
|
|
72
73
|
this.subscription.unsubscribe();
|
|
73
74
|
this.onDispose();
|
|
74
75
|
};
|
|
75
|
-
|
|
76
|
+
InternalQueryReference.prototype.onDispose = function () {
|
|
76
77
|
};
|
|
77
|
-
|
|
78
|
+
InternalQueryReference.prototype.handleNext = function (result) {
|
|
78
79
|
if (!this.initialized || this.refetching) {
|
|
79
80
|
if (!isNetworkRequestSettled(result.networkStatus)) {
|
|
80
81
|
return;
|
|
@@ -85,7 +86,9 @@ var QueryReference = (function () {
|
|
|
85
86
|
this.initialized = true;
|
|
86
87
|
this.refetching = false;
|
|
87
88
|
this.result = result;
|
|
88
|
-
this.resolve
|
|
89
|
+
if (this.resolve) {
|
|
90
|
+
this.resolve(result);
|
|
91
|
+
}
|
|
89
92
|
return;
|
|
90
93
|
}
|
|
91
94
|
if (result.data === this.result.data) {
|
|
@@ -95,13 +98,15 @@ var QueryReference = (function () {
|
|
|
95
98
|
this.promise = createFulfilledPromise(result);
|
|
96
99
|
this.deliver(this.promise);
|
|
97
100
|
};
|
|
98
|
-
|
|
101
|
+
InternalQueryReference.prototype.handleError = function (error) {
|
|
99
102
|
var result = __assign(__assign({}, this.result), { error: error, networkStatus: NetworkStatus.error });
|
|
100
103
|
this.result = result;
|
|
101
104
|
if (!this.initialized || this.refetching) {
|
|
102
105
|
this.initialized = true;
|
|
103
106
|
this.refetching = false;
|
|
104
|
-
this.reject
|
|
107
|
+
if (this.reject) {
|
|
108
|
+
this.reject(error);
|
|
109
|
+
}
|
|
105
110
|
return;
|
|
106
111
|
}
|
|
107
112
|
this.result = result;
|
|
@@ -110,10 +115,10 @@ var QueryReference = (function () {
|
|
|
110
115
|
: createRejectedPromise(result);
|
|
111
116
|
this.deliver(this.promise);
|
|
112
117
|
};
|
|
113
|
-
|
|
118
|
+
InternalQueryReference.prototype.deliver = function (promise) {
|
|
114
119
|
this.listeners.forEach(function (listener) { return listener(promise); });
|
|
115
120
|
};
|
|
116
|
-
return
|
|
121
|
+
return InternalQueryReference;
|
|
117
122
|
}());
|
|
118
|
-
export {
|
|
123
|
+
export { InternalQueryReference };
|
|
119
124
|
//# sourceMappingURL=QueryReference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryReference.js","sourceRoot":"","sources":["../../../src/react/cache/QueryReference.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAEpE,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAehF;IAiBE,wBACE,UAAkC,EAClC,OAA8B;QAFhC,iBA8CC;;QAtDO,cAAS,GAAG,IAAI,GAAG,EAAmB,CAAC;QAEvC,gBAAW,GAAG,KAAK,CAAC;QACpB,eAAU,GAAG,KAAK,CAAC;QASzB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CA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AAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI;YACxB,CAAC,CAAC,sBAAsB,CAAC,MAAM,CAAC;YAChC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAEO,gCAAO,GAAf,UAAgB,OAA0C;QACxD,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,OAAO,CAAC,EAAjB,CAAiB,CAAC,CAAC;IAC1D,CAAC;IACH,qBAAC;AAAD,CAAC,AA9KD,IA8KC","sourcesContent":["import type {\n ApolloError,\n ApolloQueryResult,\n ObservableQuery,\n OperationVariables,\n WatchQueryOptions,\n} from '../../core';\nimport { NetworkStatus, isNetworkRequestSettled } from '../../core';\nimport type { ObservableSubscription } from '../../utilities';\nimport { createFulfilledPromise, createRejectedPromise } from '../../utilities';\nimport type { CacheKey } from './types';\n\ntype Listener<TData> = (promise: Promise<ApolloQueryResult<TData>>) => void;\n\ntype FetchMoreOptions<TData> = Parameters<\n ObservableQuery<TData>['fetchMore']\n>[0];\n\ninterface QueryReferenceOptions {\n key: CacheKey;\n onDispose?: () => void;\n autoDisposeTimeoutMs?: number;\n}\n\nexport class QueryReference<TData = unknown> {\n public result: ApolloQueryResult<TData>;\n public readonly key: CacheKey;\n public readonly observable: ObservableQuery<TData>;\n\n public promiseCache?: Map<any[], Promise<ApolloQueryResult<TData>>>;\n public promise: Promise<ApolloQueryResult<TData>>;\n\n private subscription: ObservableSubscription;\n private listeners = new Set<Listener<TData>>();\n private autoDisposeTimeoutId: NodeJS.Timeout;\n private initialized = false;\n private refetching = false;\n\n private resolve: (result: ApolloQueryResult<TData>) => void;\n private reject: (error: unknown) => void;\n\n constructor(\n observable: ObservableQuery<TData>,\n options: QueryReferenceOptions\n ) {\n this.listen = this.listen.bind(this);\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\n if (options.onDispose) {\n this.onDispose = options.onDispose;\n }\n\n if (\n isNetworkRequestSettled(this.result.networkStatus) ||\n (this.result.data &&\n (!this.result.partial || this.observable.options.returnPartialData))\n ) {\n this.promise = createFulfilledPromise(this.result);\n this.initialized = true;\n this.refetching = false;\n }\n\n this.subscription = observable.subscribe({\n next: this.handleNext,\n error: this.handleError,\n });\n\n if (!this.promise) {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n\n // Start a timer that will automatically dispose of the query if the\n // suspended resource does not use this queryRef in the given time. This\n // helps prevent memory leaks when a component has unmounted before the\n // query has finished loading.\n this.autoDisposeTimeoutId = setTimeout(\n this.dispose,\n options.autoDisposeTimeoutMs ?? 30_000\n );\n }\n\n get watchQueryOptions() {\n return this.observable.options;\n }\n\n listen(listener: Listener<TData>) {\n // As soon as the component listens for updates, we know it has finished\n // suspending and is ready to receive updates, so we can remove the auto\n // dispose timer.\n clearTimeout(this.autoDisposeTimeoutId);\n\n this.listeners.add(listener);\n\n return () => {\n this.listeners.delete(listener);\n };\n }\n\n refetch(variables: OperationVariables | undefined) {\n this.refetching = true;\n\n const promise = this.observable.refetch(variables);\n\n this.promise = promise;\n\n return promise;\n }\n\n fetchMore(options: FetchMoreOptions<TData>) {\n const promise = this.observable.fetchMore<TData>(options);\n\n this.promise = promise;\n\n return promise;\n }\n\n reobserve(\n watchQueryOptions: Partial<WatchQueryOptions<OperationVariables, TData>>\n ) {\n const promise = this.observable.reobserve(watchQueryOptions);\n\n this.promise = promise;\n\n return promise;\n }\n\n dispose() {\n this.subscription.unsubscribe();\n this.onDispose();\n }\n\n private onDispose() {\n // noop. overridable by options\n }\n\n private handleNext(result: ApolloQueryResult<TData>) {\n if (!this.initialized || this.refetching) {\n if (!isNetworkRequestSettled(result.networkStatus)) {\n return;\n }\n\n // If we encounter an error with the new result after we have successfully\n // fetched a previous result, set the new result data to the last successful\n // result.\n if (this.result.data && result.data === void 0) {\n result.data = this.result.data;\n }\n\n this.initialized = true;\n this.refetching = false;\n this.result = result;\n this.resolve(result);\n return;\n }\n\n if (result.data === this.result.data) {\n return;\n }\n\n this.result = result;\n this.promise = createFulfilledPromise(result);\n this.deliver(this.promise);\n }\n\n private handleError(error: ApolloError) {\n const result = {\n ...this.result,\n error,\n networkStatus: NetworkStatus.error,\n };\n\n this.result = result;\n\n if (!this.initialized || this.refetching) {\n this.initialized = true;\n this.refetching = false;\n this.reject(error);\n return;\n }\n\n this.result = result;\n this.promise = result.data\n ? createFulfilledPromise(result)\n : createRejectedPromise(result);\n this.deliver(this.promise);\n }\n\n private deliver(promise: Promise<ApolloQueryResult<TData>>) {\n this.listeners.forEach((listener) => listener(promise));\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"QueryReference.js","sourceRoot":"","sources":["../../../src/react/cache/QueryReference.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAEpE,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAUhF,MAAM,CAAC,IAAM,sBAAsB,GAAkB,MAAM,EAAE,CAAC;AAgB9D;IAiBE,gCACE,UAAkC,EAClC,OAAsC;QAFxC,iBA8CC;;QAtDO,cAAS,GAAG,IAAI,GAAG,EAAmB,CAAC;QAEvC,gBAAW,GAAG,KAAK,CAAC;QACpB,eAAU,GAAG,KAAK,CAAC;QASzB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAA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,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI;YACxB,CAAC,CAAC,sBAAsB,CAAC,MAAM,CAAC;YAChC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAEO,wCAAO,GAAf,UAAgB,OAA0C;QACxD,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,OAAO,CAAC,EAAjB,CAAiB,CAAC,CAAC;IAC1D,CAAC;IACH,6BAAC;AAAD,CAAC,AAlLD,IAkLC","sourcesContent":["import type {\n ApolloError,\n ApolloQueryResult,\n ObservableQuery,\n OperationVariables,\n WatchQueryOptions,\n} from '../../core';\nimport { NetworkStatus, isNetworkRequestSettled } from '../../core';\nimport type { ObservableSubscription } from '../../utilities';\nimport { createFulfilledPromise, createRejectedPromise } from '../../utilities';\nimport type { CacheKey } from './types';\nimport type { useBackgroundQuery, useReadQuery } from '../hooks';\n\ntype Listener<TData> = (promise: Promise<ApolloQueryResult<TData>>) => void;\n\ntype FetchMoreOptions<TData> = Parameters<\n ObservableQuery<TData>['fetchMore']\n>[0];\n\nexport const QUERY_REFERENCE_SYMBOL: unique symbol = Symbol();\n/**\n * A `QueryReference` is an opaque object returned by {@link useBackgroundQuery}.\n * A child component reading the `QueryReference` via {@link useReadQuery} will\n * suspend until the promise resolves.\n */\nexport interface QueryReference<TData = unknown> {\n [QUERY_REFERENCE_SYMBOL]: InternalQueryReference<TData>;\n}\n\ninterface InternalQueryReferenceOptions {\n key: CacheKey;\n onDispose?: () => void;\n autoDisposeTimeoutMs?: number;\n}\n\nexport class InternalQueryReference<TData = unknown> {\n public result: ApolloQueryResult<TData>;\n public readonly key: CacheKey;\n public readonly observable: ObservableQuery<TData>;\n\n public promiseCache?: Map<any[], Promise<ApolloQueryResult<TData>>>;\n public promise: Promise<ApolloQueryResult<TData>>;\n\n private subscription: ObservableSubscription;\n private listeners = new Set<Listener<TData>>();\n private autoDisposeTimeoutId: NodeJS.Timeout;\n private initialized = false;\n private refetching = false;\n\n private resolve: ((result: ApolloQueryResult<TData>) => void) | undefined;\n private reject: ((error: unknown) => void) | undefined;\n\n constructor(\n observable: ObservableQuery<TData>,\n options: InternalQueryReferenceOptions\n ) {\n this.listen = this.listen.bind(this);\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\n if (options.onDispose) {\n this.onDispose = options.onDispose;\n }\n\n if (\n isNetworkRequestSettled(this.result.networkStatus) ||\n (this.result.data &&\n (!this.result.partial || this.observable.options.returnPartialData))\n ) {\n this.promise = createFulfilledPromise(this.result);\n this.initialized = true;\n this.refetching = false;\n }\n\n this.subscription = observable.subscribe({\n next: this.handleNext,\n error: this.handleError,\n });\n\n if (!this.promise) {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n\n // Start a timer that will automatically dispose of the query if the\n // suspended resource does not use this queryRef in the given time. This\n // helps prevent memory leaks when a component has unmounted before the\n // query has finished loading.\n this.autoDisposeTimeoutId = setTimeout(\n this.dispose,\n options.autoDisposeTimeoutMs ?? 30_000\n );\n }\n\n get watchQueryOptions() {\n return this.observable.options;\n }\n\n listen(listener: Listener<TData>) {\n // As soon as the component listens for updates, we know it has finished\n // suspending and is ready to receive updates, so we can remove the auto\n // dispose timer.\n clearTimeout(this.autoDisposeTimeoutId);\n\n this.listeners.add(listener);\n\n return () => {\n this.listeners.delete(listener);\n };\n }\n\n refetch(variables: OperationVariables | undefined) {\n this.refetching = true;\n\n const promise = this.observable.refetch(variables);\n\n this.promise = promise;\n\n return promise;\n }\n\n fetchMore(options: FetchMoreOptions<TData>) {\n const promise = this.observable.fetchMore<TData>(options);\n\n this.promise = promise;\n\n return promise;\n }\n\n reobserve(\n watchQueryOptions: Partial<WatchQueryOptions<OperationVariables, TData>>\n ) {\n const promise = this.observable.reobserve(watchQueryOptions);\n\n this.promise = promise;\n\n return promise;\n }\n\n dispose() {\n this.subscription.unsubscribe();\n this.onDispose();\n }\n\n private onDispose() {\n // noop. overridable by options\n }\n\n private handleNext(result: ApolloQueryResult<TData>) {\n if (!this.initialized || this.refetching) {\n if (!isNetworkRequestSettled(result.networkStatus)) {\n return;\n }\n\n // If we encounter an error with the new result after we have successfully\n // fetched a previous result, set the new result data to the last successful\n // result.\n if (this.result.data && result.data === void 0) {\n result.data = this.result.data;\n }\n\n this.initialized = true;\n this.refetching = false;\n this.result = result;\n if (this.resolve) {\n this.resolve(result);\n }\n return;\n }\n\n if (result.data === this.result.data) {\n return;\n }\n\n this.result = result;\n this.promise = createFulfilledPromise(result);\n this.deliver(this.promise);\n }\n\n private handleError(error: ApolloError) {\n const result = {\n ...this.result,\n error,\n networkStatus: NetworkStatus.error,\n };\n\n this.result = result;\n\n if (!this.initialized || this.refetching) {\n this.initialized = true;\n this.refetching = false;\n if (this.reject) {\n this.reject(error);\n }\n return;\n }\n\n this.result = result;\n this.promise = result.data\n ? createFulfilledPromise(result)\n : createRejectedPromise(result);\n this.deliver(this.promise);\n }\n\n private deliver(promise: Promise<ApolloQueryResult<TData>>) {\n this.listeners.forEach((listener) => listener(promise));\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ObservableQuery } from '../../core';
|
|
2
|
-
import {
|
|
2
|
+
import { InternalQueryReference } from './QueryReference';
|
|
3
3
|
import type { CacheKey } from './types';
|
|
4
4
|
interface SuspenseCacheOptions {
|
|
5
5
|
autoDisposeTimeoutMs?: number;
|
|
@@ -8,7 +8,7 @@ export declare class SuspenseCache {
|
|
|
8
8
|
private queryRefs;
|
|
9
9
|
private options;
|
|
10
10
|
constructor(options?: SuspenseCacheOptions);
|
|
11
|
-
getQueryRef<TData = any>(cacheKey: CacheKey, createObservable: () => ObservableQuery<TData>):
|
|
11
|
+
getQueryRef<TData = any>(cacheKey: CacheKey, createObservable: () => ObservableQuery<TData>): InternalQueryReference<TData>;
|
|
12
12
|
}
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=SuspenseCache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseCache.d.ts","sourceRoot":"","sources":["../../../src/react/cache/SuspenseCache.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SuspenseCache.d.ts","sourceRoot":"","sources":["../../../src/react/cache/SuspenseCache.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,UAAU,oBAAoB;IAW5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,SAAS,CAAiE;IAClF,OAAO,CAAC,OAAO,CAAuB;gBAE1B,OAAO,GAAE,oBAA0C;IAI/D,WAAW,CAAC,KAAK,GAAG,GAAG,EACrB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,MAAM,eAAe,CAAC,KAAK,CAAC;CAgBjD"}
|