@apollo/client 4.3.0-alpha.9 → 4.3.0-rc.1

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.
Files changed (232) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/__cjs/cache/core/Scalar.cjs.map +1 -1
  3. package/__cjs/cache/core/Scalar.d.cts +0 -1
  4. package/__cjs/cache/core/cache.cjs +3 -3
  5. package/__cjs/cache/core/cache.cjs.map +1 -1
  6. package/__cjs/cache/core/cache.d.cts +53 -8
  7. package/__cjs/cache/index.cjs.map +1 -1
  8. package/__cjs/cache/index.d.cts +1 -1
  9. package/__cjs/cache/inmemory/entityStore.cjs +25 -10
  10. package/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
  11. package/__cjs/cache/inmemory/helpers.cjs +12 -0
  12. package/__cjs/cache/inmemory/helpers.cjs.map +1 -1
  13. package/__cjs/cache/inmemory/helpers.d.cts +2 -1
  14. package/__cjs/cache/inmemory/inMemoryCache.cjs +34 -22
  15. package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  16. package/__cjs/cache/inmemory/inMemoryCache.d.cts +4 -4
  17. package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
  18. package/__cjs/cache/inmemory/policies.cjs +7 -8
  19. package/__cjs/cache/inmemory/policies.cjs.map +1 -1
  20. package/__cjs/cache/inmemory/policies.d.cts +3 -4
  21. package/__cjs/cache/inmemory/readFromStore.cjs +3 -3
  22. package/__cjs/cache/inmemory/types.d.cts +3 -1
  23. package/__cjs/cache/inmemory/writeToStore.cjs +4 -4
  24. package/__cjs/core/ApolloClient.cjs +14 -14
  25. package/__cjs/core/ObservableQuery.cjs +8 -8
  26. package/__cjs/core/QueryInfo.cjs +1 -1
  27. package/__cjs/core/QueryManager.cjs +12 -12
  28. package/__cjs/core/RefetchEventManager.cjs +3 -3
  29. package/__cjs/core/index.cjs.map +1 -1
  30. package/__cjs/core/index.d.cts +3 -2
  31. package/__cjs/core/types.d.cts +9 -4
  32. package/__cjs/incremental/handlers/graphql17Alpha9.cjs +1 -1
  33. package/__cjs/incremental/handlers/notImplemented.cjs +1 -1
  34. package/__cjs/invariantErrorCodes.cjs +131 -116
  35. package/__cjs/link/core/ApolloLink.cjs +3 -3
  36. package/__cjs/link/http/checkFetcher.cjs +1 -1
  37. package/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
  38. package/__cjs/link/persisted-queries/index.cjs +2 -2
  39. package/__cjs/link/ws/index.cjs +1 -1
  40. package/__cjs/local-state/LocalState.cjs +11 -11
  41. package/__cjs/local-state/LocalState.cjs.map +1 -1
  42. package/__cjs/local-state/LocalState.d.cts +1 -1
  43. package/__cjs/masking/maskDefinition.cjs +2 -2
  44. package/__cjs/masking/maskFragment.cjs +2 -2
  45. package/__cjs/masking/maskOperation.cjs +1 -1
  46. package/__cjs/masking/utils.cjs +3 -3
  47. package/__cjs/react/context/ApolloContext.cjs +1 -1
  48. package/__cjs/react/context/ApolloProvider.cjs +1 -1
  49. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +2 -2
  50. package/__cjs/react/hooks/useApolloClient.cjs +1 -1
  51. package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
  52. package/__cjs/react/hooks/useBackgroundQuery.d.cts +1 -1
  53. package/__cjs/react/hooks/useFragment.cjs.map +1 -1
  54. package/__cjs/react/hooks/useFragment.d.cts +0 -1
  55. package/__cjs/react/hooks/useLazyQuery.cjs +2 -2
  56. package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
  57. package/__cjs/react/hooks/useLazyQuery.d.cts +1 -1
  58. package/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
  59. package/__cjs/react/hooks/useMutation.cjs.map +1 -1
  60. package/__cjs/react/hooks/useMutation.d.cts +1 -1
  61. package/__cjs/react/hooks/useQuery.cjs.map +1 -1
  62. package/__cjs/react/hooks/useQuery.d.cts +1 -1
  63. package/__cjs/react/hooks/useSubscription.cjs +7 -3
  64. package/__cjs/react/hooks/useSubscription.cjs.map +1 -1
  65. package/__cjs/react/hooks/useSubscription.d.cts +7 -4
  66. package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
  67. package/__cjs/react/hooks/useSuspenseFragment.d.cts +1 -1
  68. package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
  69. package/__cjs/react/hooks/useSuspenseQuery.d.cts +1 -1
  70. package/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
  71. package/__cjs/react/internal/cache/QueryReference.cjs +1 -1
  72. package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
  73. package/__cjs/react/query-preloader/createQueryPreloader.d.cts +1 -1
  74. package/__cjs/react/ssr/prerenderStatic.cjs +2 -2
  75. package/__cjs/testing/core/mocking/mockLink.cjs +4 -4
  76. package/__cjs/utilities/graphql/DocumentTransform.cjs +1 -1
  77. package/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs +45 -12
  78. package/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs.map +1 -1
  79. package/__cjs/utilities/internal/getFragmentDefinition.cjs +3 -3
  80. package/__cjs/utilities/internal/getFragmentDefinition.cjs.map +1 -1
  81. package/__cjs/utilities/internal/getFragmentFromSelection.cjs +1 -1
  82. package/__cjs/utilities/internal/getFragmentQueryDocument.cjs +2 -2
  83. package/__cjs/utilities/internal/getMainDefinition.cjs +1 -1
  84. package/__cjs/utilities/internal/getQueryDefinition.cjs +1 -1
  85. package/__cjs/utilities/internal/index.cjs +6 -4
  86. package/__cjs/utilities/internal/index.cjs.map +1 -1
  87. package/__cjs/utilities/internal/index.d.cts +2 -2
  88. package/__cjs/utilities/internal/matchScalarList.cjs +12 -0
  89. package/__cjs/utilities/internal/matchScalarList.cjs.map +1 -0
  90. package/__cjs/utilities/internal/matchScalarList.d.cts +8 -0
  91. package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +1 -1
  92. package/__cjs/utilities/internal/shouldInclude.cjs +4 -4
  93. package/__cjs/utilities/internal/unwrapScalarType.cjs +12 -0
  94. package/__cjs/utilities/internal/unwrapScalarType.cjs.map +1 -0
  95. package/__cjs/utilities/internal/unwrapScalarType.d.cts +10 -0
  96. package/__cjs/utilities/internal/valueToObjectRepresentation.cjs +1 -1
  97. package/__cjs/version.cjs +1 -1
  98. package/__cjs/version.cjs.map +1 -1
  99. package/cache/core/Scalar.d.ts +0 -1
  100. package/cache/core/Scalar.js.map +1 -1
  101. package/cache/core/cache.d.ts +53 -8
  102. package/cache/core/cache.js +3 -3
  103. package/cache/core/cache.js.map +1 -1
  104. package/cache/index.d.ts +1 -1
  105. package/cache/index.js.map +1 -1
  106. package/cache/inmemory/entityStore.js +26 -11
  107. package/cache/inmemory/entityStore.js.map +1 -1
  108. package/cache/inmemory/helpers.d.ts +2 -1
  109. package/cache/inmemory/helpers.js +11 -0
  110. package/cache/inmemory/helpers.js.map +1 -1
  111. package/cache/inmemory/inMemoryCache.d.ts +4 -4
  112. package/cache/inmemory/inMemoryCache.js +36 -24
  113. package/cache/inmemory/inMemoryCache.js.map +1 -1
  114. package/cache/inmemory/key-extractor.js +1 -1
  115. package/cache/inmemory/policies.d.ts +3 -4
  116. package/cache/inmemory/policies.js +7 -8
  117. package/cache/inmemory/policies.js.map +1 -1
  118. package/cache/inmemory/readFromStore.js +3 -3
  119. package/cache/inmemory/types.d.ts +3 -1
  120. package/cache/inmemory/types.js.map +1 -1
  121. package/cache/inmemory/writeToStore.js +4 -4
  122. package/core/ApolloClient.js +14 -14
  123. package/core/ObservableQuery.js +8 -8
  124. package/core/QueryInfo.js +1 -1
  125. package/core/QueryManager.js +12 -12
  126. package/core/RefetchEventManager.js +3 -3
  127. package/core/index.d.ts +3 -2
  128. package/core/index.js.map +1 -1
  129. package/core/types.d.ts +9 -4
  130. package/core/types.js.map +1 -1
  131. package/incremental/handlers/graphql17Alpha9.js +1 -1
  132. package/incremental/handlers/notImplemented.js +1 -1
  133. package/invariantErrorCodes.js +131 -116
  134. package/link/core/ApolloLink.js +3 -3
  135. package/link/http/checkFetcher.js +1 -1
  136. package/link/http/parseAndCheckHttpResponse.js +1 -1
  137. package/link/persisted-queries/index.js +2 -2
  138. package/link/ws/index.js +1 -1
  139. package/local-state/LocalState.d.ts +1 -1
  140. package/local-state/LocalState.js +11 -11
  141. package/local-state/LocalState.js.map +1 -1
  142. package/masking/maskDefinition.js +2 -2
  143. package/masking/maskFragment.js +2 -2
  144. package/masking/maskOperation.js +1 -1
  145. package/masking/utils.js +3 -3
  146. package/package.json +1 -1
  147. package/react/context/ApolloContext.js +1 -1
  148. package/react/context/ApolloProvider.js +1 -1
  149. package/react/hooks/internal/validateSuspenseHookOptions.js +2 -2
  150. package/react/hooks/useApolloClient.js +1 -1
  151. package/react/hooks/useBackgroundQuery.d.ts +1 -1
  152. package/react/hooks/useBackgroundQuery.js.map +1 -1
  153. package/react/hooks/useFragment.d.ts +0 -1
  154. package/react/hooks/useFragment.js.map +1 -1
  155. package/react/hooks/useLazyQuery.d.ts +1 -1
  156. package/react/hooks/useLazyQuery.js +2 -2
  157. package/react/hooks/useLazyQuery.js.map +1 -1
  158. package/react/hooks/useLoadableQuery.js +2 -2
  159. package/react/hooks/useMutation.d.ts +1 -1
  160. package/react/hooks/useMutation.js.map +1 -1
  161. package/react/hooks/useQuery.d.ts +1 -1
  162. package/react/hooks/useQuery.js.map +1 -1
  163. package/react/hooks/useSubscription.d.ts +7 -4
  164. package/react/hooks/useSubscription.js +7 -3
  165. package/react/hooks/useSubscription.js.map +1 -1
  166. package/react/hooks/useSuspenseFragment.d.ts +1 -1
  167. package/react/hooks/useSuspenseFragment.js.map +1 -1
  168. package/react/hooks/useSuspenseQuery.d.ts +1 -1
  169. package/react/hooks/useSuspenseQuery.js.map +1 -1
  170. package/react/hooks/useSyncExternalStore.js +1 -1
  171. package/react/hooks-compiled/internal/validateSuspenseHookOptions.js +2 -2
  172. package/react/hooks-compiled/useApolloClient.js +1 -1
  173. package/react/hooks-compiled/useBackgroundQuery.d.ts +1 -1
  174. package/react/hooks-compiled/useBackgroundQuery.js.map +1 -1
  175. package/react/hooks-compiled/useFragment.d.ts +0 -1
  176. package/react/hooks-compiled/useFragment.js.map +1 -1
  177. package/react/hooks-compiled/useLazyQuery.d.ts +1 -1
  178. package/react/hooks-compiled/useLazyQuery.js +2 -2
  179. package/react/hooks-compiled/useLazyQuery.js.map +1 -1
  180. package/react/hooks-compiled/useLoadableQuery.js +2 -2
  181. package/react/hooks-compiled/useMutation.d.ts +1 -1
  182. package/react/hooks-compiled/useMutation.js.map +1 -1
  183. package/react/hooks-compiled/useQuery.d.ts +1 -1
  184. package/react/hooks-compiled/useQuery.js.map +1 -1
  185. package/react/hooks-compiled/useSubscription.d.ts +7 -4
  186. package/react/hooks-compiled/useSubscription.js +107 -93
  187. package/react/hooks-compiled/useSubscription.js.map +1 -1
  188. package/react/hooks-compiled/useSuspenseFragment.d.ts +1 -1
  189. package/react/hooks-compiled/useSuspenseFragment.js.map +1 -1
  190. package/react/hooks-compiled/useSuspenseQuery.d.ts +1 -1
  191. package/react/hooks-compiled/useSuspenseQuery.js.map +1 -1
  192. package/react/hooks-compiled/useSyncExternalStore.js +1 -1
  193. package/react/internal/cache/QueryReference.js +1 -1
  194. package/react/query-preloader/createQueryPreloader.d.ts +1 -1
  195. package/react/query-preloader/createQueryPreloader.js.map +1 -1
  196. package/react/ssr/prerenderStatic.js +2 -2
  197. package/testing/core/mocking/mockLink.js +4 -4
  198. package/utilities/graphql/DocumentTransform.js +1 -1
  199. package/utilities/internal/coerceScalarFieldsToParsed.js +40 -11
  200. package/utilities/internal/coerceScalarFieldsToParsed.js.map +1 -1
  201. package/utilities/internal/getFragmentDefinition.js +3 -3
  202. package/utilities/internal/getFragmentDefinition.js.map +1 -1
  203. package/utilities/internal/getFragmentFromSelection.js +1 -1
  204. package/utilities/internal/getFragmentQueryDocument.js +2 -2
  205. package/utilities/internal/getMainDefinition.js +1 -1
  206. package/utilities/internal/getQueryDefinition.js +1 -1
  207. package/utilities/internal/index.d.ts +2 -2
  208. package/utilities/internal/index.js +2 -1
  209. package/utilities/internal/index.js.map +1 -1
  210. package/utilities/internal/matchScalarList.d.ts +8 -0
  211. package/utilities/internal/matchScalarList.js +9 -0
  212. package/utilities/internal/matchScalarList.js.map +1 -0
  213. package/utilities/internal/removeDirectivesFromDocument.js +1 -1
  214. package/utilities/internal/shouldInclude.js +4 -4
  215. package/utilities/internal/unwrapScalarType.d.ts +10 -0
  216. package/utilities/internal/unwrapScalarType.js +9 -0
  217. package/utilities/internal/unwrapScalarType.js.map +1 -0
  218. package/utilities/internal/valueToObjectRepresentation.js +1 -1
  219. package/version.js +1 -1
  220. package/version.js.map +1 -1
  221. package/__cjs/utilities/internal/getUnwrappedType.cjs +0 -20
  222. package/__cjs/utilities/internal/getUnwrappedType.cjs.map +0 -1
  223. package/__cjs/utilities/internal/getUnwrappedType.d.cts +0 -8
  224. package/__cjs/utilities/internal/types/NoInfer.cjs +0 -3
  225. package/__cjs/utilities/internal/types/NoInfer.cjs.map +0 -1
  226. package/__cjs/utilities/internal/types/NoInfer.d.cts +0 -35
  227. package/utilities/internal/getUnwrappedType.d.ts +0 -8
  228. package/utilities/internal/getUnwrappedType.js +0 -17
  229. package/utilities/internal/getUnwrappedType.js.map +0 -1
  230. package/utilities/internal/types/NoInfer.d.ts +0 -35
  231. package/utilities/internal/types/NoInfer.js +0 -2
  232. package/utilities/internal/types/NoInfer.js.map +0 -1
@@ -107,7 +107,7 @@ class ApolloLink {
107
107
  const result = test(operation);
108
108
  if (environment_1.__DEV__) {
109
109
  if (typeof result !== "boolean") {
110
- __DEV__ && invariant_1.invariant.warn(64, result);
110
+ __DEV__ && invariant_1.invariant.warn(65, result);
111
111
  }
112
112
  }
113
113
  return result ?
@@ -149,7 +149,7 @@ class ApolloLink {
149
149
  static execute(link, request, context) {
150
150
  return link.request((0, utils_1.createOperation)(request, context), () => {
151
151
  if (environment_1.__DEV__) {
152
- __DEV__ && invariant_1.invariant.warn(65);
152
+ __DEV__ && invariant_1.invariant.warn(66);
153
153
  }
154
154
  return rxjs_1.EMPTY;
155
155
  });
@@ -253,7 +253,7 @@ class ApolloLink {
253
253
  * > request instead.
254
254
  */
255
255
  request(operation, forward) {
256
- throw (0, invariant_1.newInvariantError)(66);
256
+ throw (0, invariant_1.newInvariantError)(67);
257
257
  }
258
258
  /**
259
259
  * @internal
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.checkFetcher = void 0;
4
4
  const invariant_1 = require("@apollo/client/utilities/invariant");
5
5
  const checkFetcher = (fetcher) => {
6
- (0, invariant_1.invariant)(fetcher || typeof fetch !== "undefined", 62);
6
+ (0, invariant_1.invariant)(fetcher || typeof fetch !== "undefined", 63);
7
7
  };
8
8
  exports.checkFetcher = checkFetcher;
9
9
  //# sourceMappingURL=checkFetcher.cjs.map
@@ -37,7 +37,7 @@ async function* consumeMultipartBody(response) {
37
37
  /;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i);
38
38
  const boundary = "\r\n--" + (match ? match[1] ?? match[2] ?? match[3] ?? "-" : "-");
39
39
  let buffer = "";
40
- (0, invariant_1.invariant)(response.body && typeof response.body.getReader === "function", 63);
40
+ (0, invariant_1.invariant)(response.body && typeof response.body.getReader === "function", 64);
41
41
  const stream = response.body;
42
42
  const reader = stream.getReader();
43
43
  let done = false;
@@ -70,7 +70,7 @@ class PersistedQueryLink extends link_1.ApolloLink {
70
70
  // hashing with something other than SHA-256.
71
71
  (0, invariant_1.invariant)(options &&
72
72
  (typeof options.sha256 === "function" ||
73
- typeof options.generateHash === "function"), 60);
73
+ typeof options.generateHash === "function"), 61);
74
74
  const { sha256,
75
75
  // If both a `sha256` and `generateHash` option are provided, the
76
76
  // `sha256` option will be ignored. Developers can configure and
@@ -96,7 +96,7 @@ class PersistedQueryLink extends link_1.ApolloLink {
96
96
  return hash;
97
97
  }
98
98
  super((operation, forward) => {
99
- (0, invariant_1.invariant)(forward, 61);
99
+ (0, invariant_1.invariant)(forward, 62);
100
100
  const { query } = operation;
101
101
  return new rxjs_1.Observable((observer) => {
102
102
  let subscription;
@@ -40,7 +40,7 @@ class WebSocketLink extends link_1.ApolloLink {
40
40
  constructor(paramsOrClient) {
41
41
  super();
42
42
  if (environment_1.__DEV__) {
43
- __DEV__ && invariant_1.invariant.warn(59);
43
+ __DEV__ && invariant_1.invariant.warn(60);
44
44
  }
45
45
  if (paramsOrClient instanceof subscriptions_transport_ws_1.SubscriptionClient) {
46
46
  this.subscriptionClient = paramsOrClient;
@@ -73,7 +73,7 @@ class LocalState {
73
73
  }
74
74
  async execute({ document, client, context, remoteResult, variables = {}, onlyRunForcedResolvers = false, returnPartialData = false, fetchPolicy, }) {
75
75
  if (environment_1.__DEV__) {
76
- (0, invariant_1.invariant)((0, internal_1.hasDirectives)(["client"], document), 48);
76
+ (0, invariant_1.invariant)((0, internal_1.hasDirectives)(["client"], document), 49);
77
77
  validateCacheImplementation(client.cache);
78
78
  }
79
79
  // note: if `remoteResult` is `undefined`, we will execute resolvers since
@@ -129,7 +129,7 @@ class LocalState {
129
129
  }
130
130
  async getExportedVariables({ document, client, context, variables, }) {
131
131
  if (environment_1.__DEV__) {
132
- (0, invariant_1.invariant)((0, internal_1.hasDirectives)(["client"], document), 49);
132
+ (0, invariant_1.invariant)((0, internal_1.hasDirectives)(["client"], document), 50);
133
133
  validateCacheImplementation(client.cache);
134
134
  }
135
135
  const { exportsToResolve, exportedVariableDefs, fragmentMap, operationDefinition, } = this.collectQueryDetail(document);
@@ -211,7 +211,7 @@ class LocalState {
211
211
  }
212
212
  if (selection.kind === graphql_1.Kind.FRAGMENT_SPREAD) {
213
213
  const fragment = fragmentMap[selection.name.value];
214
- (0, invariant_1.invariant)(fragment, 50, selection.name.value);
214
+ (0, invariant_1.invariant)(fragment, 51, selection.name.value);
215
215
  const typename = rootValue?.__typename;
216
216
  const typeCondition = fragment.typeCondition.name.value;
217
217
  const matches = typename === typeCondition ||
@@ -276,7 +276,7 @@ class LocalState {
276
276
  }
277
277
  if (client.cache.resolvesClientField?.(typename, fieldName)) {
278
278
  if (fetchPolicy === "no-cache") {
279
- __DEV__ && invariant_1.invariant.warn(51, resolverName);
279
+ __DEV__ && invariant_1.invariant.warn(52, resolverName);
280
280
  return null;
281
281
  }
282
282
  // assume the cache will handle returning the correct value
@@ -284,7 +284,7 @@ class LocalState {
284
284
  return;
285
285
  }
286
286
  if (!returnPartialData) {
287
- __DEV__ && invariant_1.invariant.warn(52, resolverName);
287
+ __DEV__ && invariant_1.invariant.warn(53, resolverName);
288
288
  return null;
289
289
  }
290
290
  });
@@ -350,13 +350,13 @@ class LocalState {
350
350
  if (result === undefined && !returnPartialData) {
351
351
  if (environment_1.__DEV__ && phase === "resolve") {
352
352
  if (resolver && !onlyRunForcedResolvers) {
353
- __DEV__ && invariant_1.invariant.warn(53, resolverName);
353
+ __DEV__ && invariant_1.invariant.warn(54, resolverName);
354
354
  }
355
355
  else if (onlyRunForcedResolvers) {
356
- __DEV__ && invariant_1.invariant.warn(54, resolverName);
356
+ __DEV__ && invariant_1.invariant.warn(55, resolverName);
357
357
  }
358
358
  else {
359
- __DEV__ && invariant_1.invariant.warn(55, fieldName, rootValue);
359
+ __DEV__ && invariant_1.invariant.warn(56, fieldName, rootValue);
360
360
  }
361
361
  }
362
362
  result = null;
@@ -368,7 +368,7 @@ class LocalState {
368
368
  return this.resolveSubSelectedArray(field, true, result, execContext, path);
369
369
  }
370
370
  if (phase === "resolve" && !result.__typename) {
371
- this.addError((0, invariant_1.newInvariantError)(56, result, resolverName), path, execContext, { resolver: resolverName });
371
+ this.addError((0, invariant_1.newInvariantError)(57, result, resolverName), path, execContext, { resolver: resolverName });
372
372
  return null;
373
373
  }
374
374
  return this.resolveSelectionSet(field.selectionSet, true, result, execContext, path);
@@ -479,7 +479,7 @@ class LocalState {
479
479
  },
480
480
  FragmentSpread(spread, _, __, ___, ancestors) {
481
481
  const fragment = fragmentMap[spread.name.value];
482
- (0, invariant_1.invariant)(fragment, 57, spread.name.value);
482
+ (0, invariant_1.invariant)(fragment, 58, spread.name.value);
483
483
  const { selectionsToResolve: fragmentSelections } = traverse(fragment);
484
484
  if (fragmentSelections.size > 0) {
485
485
  // Fragment for this spread contains @client directive (either directly or transitively)
@@ -539,7 +539,7 @@ function getExportedVariableName(directive) {
539
539
  }
540
540
  }
541
541
  function validateCacheImplementation(cache) {
542
- (0, invariant_1.invariant)(cache.fragmentMatches, 58);
542
+ (0, invariant_1.invariant)(cache.fragmentMatches, 59);
543
543
  }
544
544
  function getCacheResultAtPath(diff, path) {
545
545
  if (diff.result === null) {