@apollo/client 4.3.8 → 4.4.0-alpha.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 (324) hide show
  1. package/CHANGELOG.md +76 -3
  2. package/__cjs/cache/core/cache.cjs +50 -15
  3. package/__cjs/cache/core/cache.cjs.map +1 -1
  4. package/__cjs/cache/core/cache.d.cts +22 -4
  5. package/__cjs/cache/index.cjs.map +1 -1
  6. package/__cjs/cache/index.d.cts +1 -1
  7. package/__cjs/cache/inmemory/entityStore.cjs +4 -4
  8. package/__cjs/cache/inmemory/helpers.cjs +12 -0
  9. package/__cjs/cache/inmemory/helpers.cjs.map +1 -1
  10. package/__cjs/cache/inmemory/helpers.d.cts +10 -5
  11. package/__cjs/cache/inmemory/inMemoryCache.cjs +13 -2
  12. package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  13. package/__cjs/cache/inmemory/inMemoryCache.d.cts +19 -4
  14. package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
  15. package/__cjs/cache/inmemory/policies.cjs +9 -9
  16. package/__cjs/cache/inmemory/policies.cjs.map +1 -1
  17. package/__cjs/cache/inmemory/policies.d.cts +1 -1
  18. package/__cjs/cache/inmemory/readFromStore.cjs +112 -19
  19. package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
  20. package/__cjs/cache/inmemory/types.d.cts +12 -1
  21. package/__cjs/cache/inmemory/writeToStore.cjs +53 -23
  22. package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
  23. package/__cjs/cache/inmemory/writeToStore.d.cts +8 -4
  24. package/__cjs/core/ApolloClient.cjs +19 -15
  25. package/__cjs/core/ApolloClient.cjs.map +1 -1
  26. package/__cjs/core/ApolloClient.d.cts +1 -0
  27. package/__cjs/core/ObservableQuery.cjs +8 -8
  28. package/__cjs/core/QueryInfo.cjs +1 -1
  29. package/__cjs/core/QueryManager.cjs +12 -12
  30. package/__cjs/core/RefetchEventManager.cjs +3 -3
  31. package/__cjs/errors/CombinedGraphQLErrors.cjs +3 -7
  32. package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -1
  33. package/__cjs/errors/CombinedGraphQLErrors.d.cts +2 -2
  34. package/__cjs/errors/CombinedProtocolErrors.cjs +3 -8
  35. package/__cjs/errors/CombinedProtocolErrors.cjs.map +1 -1
  36. package/__cjs/errors/CombinedProtocolErrors.d.cts +2 -2
  37. package/__cjs/incremental/handlers/graphql17Alpha9.cjs +2 -2
  38. package/__cjs/incremental/handlers/notImplemented.cjs +1 -1
  39. package/__cjs/invariantErrorCodes.cjs +125 -120
  40. package/__cjs/link/batch-http/BaseBatchHttpLink.cjs +9 -18
  41. package/__cjs/link/batch-http/BaseBatchHttpLink.cjs.map +1 -1
  42. package/__cjs/link/batch-http/BaseBatchHttpLink.d.cts +0 -7
  43. package/__cjs/link/core/ApolloLink.cjs +3 -3
  44. package/__cjs/link/http/checkFetcher.cjs +1 -1
  45. package/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
  46. package/__cjs/link/persisted-queries/index.cjs +2 -2
  47. package/__cjs/link/ws/index.cjs +1 -1
  48. package/__cjs/local-state/LocalState.cjs +28 -16
  49. package/__cjs/local-state/LocalState.cjs.map +1 -1
  50. package/__cjs/masking/maskDefinition.cjs +20 -2
  51. package/__cjs/masking/maskDefinition.cjs.map +1 -1
  52. package/__cjs/masking/maskFragment.cjs +2 -2
  53. package/__cjs/masking/maskOperation.cjs +1 -1
  54. package/__cjs/masking/utils.cjs +3 -3
  55. package/__cjs/react/context/ApolloContext.cjs +1 -1
  56. package/__cjs/react/context/ApolloProvider.cjs +1 -1
  57. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +2 -2
  58. package/__cjs/react/hooks/useApolloClient.cjs +1 -1
  59. package/__cjs/react/hooks/useFragment.cjs +8 -2
  60. package/__cjs/react/hooks/useFragment.cjs.map +1 -1
  61. package/__cjs/react/hooks/useLazyQuery.cjs +2 -2
  62. package/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
  63. package/__cjs/react/hooks/useSubscription.cjs +1 -1
  64. package/__cjs/react/hooks/useSuspenseFragment.cjs +10 -4
  65. package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
  66. package/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
  67. package/__cjs/react/internal/cache/FragmentReference.cjs +2 -2
  68. package/__cjs/react/internal/cache/FragmentReference.cjs.map +1 -1
  69. package/__cjs/react/internal/cache/FragmentReference.d.cts +4 -5
  70. package/__cjs/react/internal/cache/QueryReference.cjs +1 -1
  71. package/__cjs/react/internal/cache/SuspenseCache.cjs +3 -3
  72. package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -1
  73. package/__cjs/react/internal/cache/SuspenseCache.d.cts +4 -5
  74. package/__cjs/react/internal/cache/types.d.cts +0 -5
  75. package/__cjs/react/ssr/prerenderStatic.cjs +2 -2
  76. package/__cjs/testing/core/mocking/mockLink.cjs +4 -4
  77. package/__cjs/utilities/graphql/DocumentTransform.cjs +1 -1
  78. package/__cjs/utilities/internal/DeepMerger.cjs +6 -2
  79. package/__cjs/utilities/internal/DeepMerger.cjs.map +1 -1
  80. package/__cjs/utilities/internal/DeepMerger.d.cts +13 -3
  81. package/__cjs/utilities/internal/argumentsObjectFromField.cjs.map +1 -1
  82. package/__cjs/utilities/internal/argumentsObjectFromField.d.cts +2 -2
  83. package/__cjs/utilities/internal/constants.cjs +33 -1
  84. package/__cjs/utilities/internal/constants.cjs.map +1 -1
  85. package/__cjs/utilities/internal/constants.d.cts +32 -0
  86. package/__cjs/utilities/internal/createArgumentNode.cjs +14 -0
  87. package/__cjs/utilities/internal/createArgumentNode.cjs.map +1 -0
  88. package/__cjs/utilities/internal/createArgumentNode.d.cts +3 -0
  89. package/__cjs/utilities/internal/createDirectiveNode.cjs +14 -0
  90. package/__cjs/utilities/internal/createDirectiveNode.cjs.map +1 -0
  91. package/__cjs/utilities/internal/createDirectiveNode.d.cts +3 -0
  92. package/__cjs/utilities/internal/createFragmentArgumentNode.cjs +13 -0
  93. package/__cjs/utilities/internal/createFragmentArgumentNode.cjs.map +1 -0
  94. package/__cjs/utilities/internal/createFragmentArgumentNode.d.cts +3 -0
  95. package/__cjs/utilities/internal/createFragmentSpreadNode.cjs +20 -0
  96. package/__cjs/utilities/internal/createFragmentSpreadNode.cjs.map +1 -0
  97. package/__cjs/utilities/internal/createFragmentSpreadNode.d.cts +6 -0
  98. package/__cjs/utilities/internal/createNameNode.cjs +8 -0
  99. package/__cjs/utilities/internal/createNameNode.cjs.map +1 -0
  100. package/__cjs/utilities/internal/createNameNode.d.cts +3 -0
  101. package/__cjs/utilities/internal/createValueNode.cjs +27 -0
  102. package/__cjs/utilities/internal/createValueNode.cjs.map +1 -0
  103. package/__cjs/utilities/internal/createValueNode.d.cts +12 -0
  104. package/__cjs/utilities/internal/createVariableNode.cjs +9 -0
  105. package/__cjs/utilities/internal/createVariableNode.cjs.map +1 -0
  106. package/__cjs/utilities/internal/createVariableNode.d.cts +3 -0
  107. package/__cjs/utilities/internal/equalByQuery.cjs +16 -3
  108. package/__cjs/utilities/internal/equalByQuery.cjs.map +1 -1
  109. package/__cjs/utilities/internal/equalByQuery.d.cts +2 -3
  110. package/__cjs/utilities/internal/getDefaultValues.cjs.map +1 -1
  111. package/__cjs/utilities/internal/getDefaultValues.d.cts +2 -2
  112. package/__cjs/utilities/internal/getFragmentDefinition.cjs +3 -3
  113. package/__cjs/utilities/internal/getFragmentDefinition.cjs.map +1 -1
  114. package/__cjs/utilities/internal/getFragmentFromSelection.cjs +1 -1
  115. package/__cjs/utilities/internal/getFragmentQueryDocument.cjs +20 -9
  116. package/__cjs/utilities/internal/getFragmentQueryDocument.cjs.map +1 -1
  117. package/__cjs/utilities/internal/getFragmentScope.cjs +23 -0
  118. package/__cjs/utilities/internal/getFragmentScope.cjs.map +1 -0
  119. package/__cjs/utilities/internal/getFragmentScope.d.cts +13 -0
  120. package/__cjs/utilities/internal/getFragmentVariables.cjs +33 -0
  121. package/__cjs/utilities/internal/getFragmentVariables.cjs.map +1 -0
  122. package/__cjs/utilities/internal/getFragmentVariables.d.cts +12 -0
  123. package/__cjs/utilities/internal/getMainDefinition.cjs +1 -1
  124. package/__cjs/utilities/internal/getQueryDefinition.cjs +1 -1
  125. package/__cjs/utilities/internal/index.cjs +11 -2
  126. package/__cjs/utilities/internal/index.cjs.map +1 -1
  127. package/__cjs/utilities/internal/index.d.cts +6 -1
  128. package/__cjs/utilities/internal/isNonEmptyObject.cjs +13 -0
  129. package/__cjs/utilities/internal/isNonEmptyObject.cjs.map +1 -0
  130. package/__cjs/utilities/internal/isNonEmptyObject.d.cts +7 -0
  131. package/__cjs/utilities/internal/isNonNullObject.cjs.map +1 -1
  132. package/__cjs/utilities/internal/isNonNullObject.d.cts +1 -1
  133. package/__cjs/utilities/internal/mapObservableFragment.cjs +14 -9
  134. package/__cjs/utilities/internal/mapObservableFragment.cjs.map +1 -1
  135. package/__cjs/utilities/internal/mapObservableFragment.d.cts +5 -1
  136. package/__cjs/utilities/internal/mergeDeepArray.cjs +2 -2
  137. package/__cjs/utilities/internal/mergeDeepArray.cjs.map +1 -1
  138. package/__cjs/utilities/internal/mergeDeepArray.d.cts +2 -1
  139. package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +121 -62
  140. package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs.map +1 -1
  141. package/__cjs/utilities/internal/removeFragmentSpreads.cjs +55 -2
  142. package/__cjs/utilities/internal/removeFragmentSpreads.cjs.map +1 -1
  143. package/__cjs/utilities/internal/removeFragmentSpreads.d.cts +17 -1
  144. package/__cjs/utilities/internal/shouldInclude.cjs +4 -4
  145. package/__cjs/utilities/internal/types/FragmentInfo.cjs +3 -0
  146. package/__cjs/utilities/internal/types/FragmentInfo.cjs.map +1 -0
  147. package/__cjs/utilities/internal/types/FragmentInfo.d.cts +14 -0
  148. package/__cjs/utilities/internal/types/Mutable.cjs +3 -0
  149. package/__cjs/utilities/internal/types/Mutable.cjs.map +1 -0
  150. package/__cjs/utilities/internal/types/Mutable.d.cts +4 -0
  151. package/__cjs/utilities/internal/types/ObjectWithFragmentInfo.cjs +3 -0
  152. package/__cjs/utilities/internal/types/ObjectWithFragmentInfo.cjs.map +1 -0
  153. package/__cjs/utilities/internal/types/ObjectWithFragmentInfo.d.cts +13 -0
  154. package/__cjs/utilities/internal/valueToObjectRepresentation.cjs +1 -1
  155. package/__cjs/version.cjs +1 -1
  156. package/__cjs/version.cjs.map +1 -1
  157. package/cache/core/cache.d.ts +22 -4
  158. package/cache/core/cache.js +51 -16
  159. package/cache/core/cache.js.map +1 -1
  160. package/cache/index.d.ts +1 -1
  161. package/cache/index.js.map +1 -1
  162. package/cache/inmemory/entityStore.js +4 -4
  163. package/cache/inmemory/helpers.d.ts +10 -5
  164. package/cache/inmemory/helpers.js +12 -1
  165. package/cache/inmemory/helpers.js.map +1 -1
  166. package/cache/inmemory/inMemoryCache.d.ts +19 -4
  167. package/cache/inmemory/inMemoryCache.js +14 -3
  168. package/cache/inmemory/inMemoryCache.js.map +1 -1
  169. package/cache/inmemory/key-extractor.js +1 -1
  170. package/cache/inmemory/policies.d.ts +1 -1
  171. package/cache/inmemory/policies.js +9 -9
  172. package/cache/inmemory/policies.js.map +1 -1
  173. package/cache/inmemory/readFromStore.js +115 -22
  174. package/cache/inmemory/readFromStore.js.map +1 -1
  175. package/cache/inmemory/types.d.ts +12 -1
  176. package/cache/inmemory/types.js.map +1 -1
  177. package/cache/inmemory/writeToStore.d.ts +8 -4
  178. package/cache/inmemory/writeToStore.js +56 -26
  179. package/cache/inmemory/writeToStore.js.map +1 -1
  180. package/core/ApolloClient.d.ts +1 -0
  181. package/core/ApolloClient.js +20 -16
  182. package/core/ApolloClient.js.map +1 -1
  183. package/core/ObservableQuery.js +8 -8
  184. package/core/QueryInfo.js +1 -1
  185. package/core/QueryManager.js +12 -12
  186. package/core/RefetchEventManager.js +3 -3
  187. package/errors/CombinedGraphQLErrors.d.ts +2 -2
  188. package/errors/CombinedGraphQLErrors.js +3 -7
  189. package/errors/CombinedGraphQLErrors.js.map +1 -1
  190. package/errors/CombinedProtocolErrors.d.ts +2 -2
  191. package/errors/CombinedProtocolErrors.js +3 -8
  192. package/errors/CombinedProtocolErrors.js.map +1 -1
  193. package/incremental/handlers/graphql17Alpha9.js +2 -2
  194. package/incremental/handlers/notImplemented.js +1 -1
  195. package/invariantErrorCodes.js +125 -120
  196. package/link/batch-http/BaseBatchHttpLink.d.ts +0 -7
  197. package/link/batch-http/BaseBatchHttpLink.js +9 -18
  198. package/link/batch-http/BaseBatchHttpLink.js.map +1 -1
  199. package/link/core/ApolloLink.js +3 -3
  200. package/link/http/checkFetcher.js +1 -1
  201. package/link/http/parseAndCheckHttpResponse.js +1 -1
  202. package/link/persisted-queries/index.js +2 -2
  203. package/link/ws/index.js +1 -1
  204. package/local-state/LocalState.js +29 -17
  205. package/local-state/LocalState.js.map +1 -1
  206. package/masking/maskDefinition.js +21 -3
  207. package/masking/maskDefinition.js.map +1 -1
  208. package/masking/maskFragment.js +2 -2
  209. package/masking/maskOperation.js +1 -1
  210. package/masking/utils.js +3 -3
  211. package/package.json +2 -2
  212. package/react/context/ApolloContext.js +1 -1
  213. package/react/context/ApolloProvider.js +1 -1
  214. package/react/hooks/internal/validateSuspenseHookOptions.js +2 -2
  215. package/react/hooks/useApolloClient.js +1 -1
  216. package/react/hooks/useFragment.js +8 -2
  217. package/react/hooks/useFragment.js.map +1 -1
  218. package/react/hooks/useLazyQuery.js +2 -2
  219. package/react/hooks/useLoadableQuery.js +2 -2
  220. package/react/hooks/useSubscription.js +1 -1
  221. package/react/hooks/useSuspenseFragment.js +10 -4
  222. package/react/hooks/useSuspenseFragment.js.map +1 -1
  223. package/react/hooks/useSyncExternalStore.js +1 -1
  224. package/react/hooks-compiled/internal/validateSuspenseHookOptions.js +2 -2
  225. package/react/hooks-compiled/useApolloClient.js +1 -1
  226. package/react/hooks-compiled/useFragment.js +56 -32
  227. package/react/hooks-compiled/useFragment.js.map +1 -1
  228. package/react/hooks-compiled/useLazyQuery.js +2 -2
  229. package/react/hooks-compiled/useLoadableQuery.js +2 -2
  230. package/react/hooks-compiled/useSubscription.js +1 -1
  231. package/react/hooks-compiled/useSuspenseFragment.js +10 -4
  232. package/react/hooks-compiled/useSuspenseFragment.js.map +1 -1
  233. package/react/hooks-compiled/useSyncExternalStore.js +1 -1
  234. package/react/internal/cache/FragmentReference.d.ts +4 -5
  235. package/react/internal/cache/FragmentReference.js +2 -2
  236. package/react/internal/cache/FragmentReference.js.map +1 -1
  237. package/react/internal/cache/QueryReference.js +1 -1
  238. package/react/internal/cache/SuspenseCache.d.ts +4 -5
  239. package/react/internal/cache/SuspenseCache.js +3 -3
  240. package/react/internal/cache/SuspenseCache.js.map +1 -1
  241. package/react/internal/cache/types.d.ts +0 -5
  242. package/react/internal/cache/types.js.map +1 -1
  243. package/react/ssr/prerenderStatic.js +2 -2
  244. package/testing/core/mocking/mockLink.js +4 -4
  245. package/utilities/graphql/DocumentTransform.js +1 -1
  246. package/utilities/internal/DeepMerger.d.ts +13 -3
  247. package/utilities/internal/DeepMerger.js +6 -2
  248. package/utilities/internal/DeepMerger.js.map +1 -1
  249. package/utilities/internal/argumentsObjectFromField.d.ts +2 -2
  250. package/utilities/internal/argumentsObjectFromField.js.map +1 -1
  251. package/utilities/internal/constants.d.ts +32 -0
  252. package/utilities/internal/constants.js +32 -0
  253. package/utilities/internal/constants.js.map +1 -1
  254. package/utilities/internal/createArgumentNode.d.ts +3 -0
  255. package/utilities/internal/createArgumentNode.js +11 -0
  256. package/utilities/internal/createArgumentNode.js.map +1 -0
  257. package/utilities/internal/createDirectiveNode.d.ts +3 -0
  258. package/utilities/internal/createDirectiveNode.js +11 -0
  259. package/utilities/internal/createDirectiveNode.js.map +1 -0
  260. package/utilities/internal/createFragmentArgumentNode.d.ts +3 -0
  261. package/utilities/internal/createFragmentArgumentNode.js +10 -0
  262. package/utilities/internal/createFragmentArgumentNode.js.map +1 -0
  263. package/utilities/internal/createFragmentSpreadNode.d.ts +6 -0
  264. package/utilities/internal/createFragmentSpreadNode.js +17 -0
  265. package/utilities/internal/createFragmentSpreadNode.js.map +1 -0
  266. package/utilities/internal/createNameNode.d.ts +3 -0
  267. package/utilities/internal/createNameNode.js +5 -0
  268. package/utilities/internal/createNameNode.js.map +1 -0
  269. package/utilities/internal/createValueNode.d.ts +12 -0
  270. package/utilities/internal/createValueNode.js +24 -0
  271. package/utilities/internal/createValueNode.js.map +1 -0
  272. package/utilities/internal/createVariableNode.d.ts +3 -0
  273. package/utilities/internal/createVariableNode.js +6 -0
  274. package/utilities/internal/createVariableNode.js.map +1 -0
  275. package/utilities/internal/equalByQuery.d.ts +2 -3
  276. package/utilities/internal/equalByQuery.js +16 -3
  277. package/utilities/internal/equalByQuery.js.map +1 -1
  278. package/utilities/internal/getDefaultValues.d.ts +2 -2
  279. package/utilities/internal/getDefaultValues.js.map +1 -1
  280. package/utilities/internal/getFragmentDefinition.js +3 -3
  281. package/utilities/internal/getFragmentDefinition.js.map +1 -1
  282. package/utilities/internal/getFragmentFromSelection.js +1 -1
  283. package/utilities/internal/getFragmentQueryDocument.js +20 -9
  284. package/utilities/internal/getFragmentQueryDocument.js.map +1 -1
  285. package/utilities/internal/getFragmentScope.d.ts +13 -0
  286. package/utilities/internal/getFragmentScope.js +20 -0
  287. package/utilities/internal/getFragmentScope.js.map +1 -0
  288. package/utilities/internal/getFragmentVariables.d.ts +12 -0
  289. package/utilities/internal/getFragmentVariables.js +30 -0
  290. package/utilities/internal/getFragmentVariables.js.map +1 -0
  291. package/utilities/internal/getMainDefinition.js +1 -1
  292. package/utilities/internal/getQueryDefinition.js +1 -1
  293. package/utilities/internal/index.d.ts +6 -1
  294. package/utilities/internal/index.js +4 -1
  295. package/utilities/internal/index.js.map +1 -1
  296. package/utilities/internal/isNonEmptyObject.d.ts +7 -0
  297. package/utilities/internal/isNonEmptyObject.js +10 -0
  298. package/utilities/internal/isNonEmptyObject.js.map +1 -0
  299. package/utilities/internal/isNonNullObject.d.ts +1 -1
  300. package/utilities/internal/isNonNullObject.js.map +1 -1
  301. package/utilities/internal/mapObservableFragment.d.ts +5 -1
  302. package/utilities/internal/mapObservableFragment.js +14 -9
  303. package/utilities/internal/mapObservableFragment.js.map +1 -1
  304. package/utilities/internal/mergeDeepArray.d.ts +2 -1
  305. package/utilities/internal/mergeDeepArray.js +2 -2
  306. package/utilities/internal/mergeDeepArray.js.map +1 -1
  307. package/utilities/internal/removeDirectivesFromDocument.js +121 -62
  308. package/utilities/internal/removeDirectivesFromDocument.js.map +1 -1
  309. package/utilities/internal/removeFragmentSpreads.d.ts +18 -2
  310. package/utilities/internal/removeFragmentSpreads.js +56 -3
  311. package/utilities/internal/removeFragmentSpreads.js.map +1 -1
  312. package/utilities/internal/shouldInclude.js +4 -4
  313. package/utilities/internal/types/FragmentInfo.d.ts +14 -0
  314. package/utilities/internal/types/FragmentInfo.js +2 -0
  315. package/utilities/internal/types/FragmentInfo.js.map +1 -0
  316. package/utilities/internal/types/Mutable.d.ts +4 -0
  317. package/utilities/internal/types/Mutable.js +2 -0
  318. package/utilities/internal/types/Mutable.js.map +1 -0
  319. package/utilities/internal/types/ObjectWithFragmentInfo.d.ts +13 -0
  320. package/utilities/internal/types/ObjectWithFragmentInfo.js +2 -0
  321. package/utilities/internal/types/ObjectWithFragmentInfo.js.map +1 -0
  322. package/utilities/internal/valueToObjectRepresentation.js +1 -1
  323. package/version.js +1 -1
  324. package/version.js.map +1 -1
@@ -39,6 +39,11 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
39
39
  },
40
40
 
41
41
  8: {
42
+ file: "@apollo/client/utilities/internal/createValueNode.js",
43
+ message: "%s is not a supported node creation type"
44
+ },
45
+
46
+ 9: {
42
47
  file: "@apollo/client/utilities/internal/getFragmentDefinition.js",
43
48
  condition: "doc.kind === \"Document\"",
44
49
 
@@ -46,73 +51,73 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
46
51
  string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
47
52
  },
48
53
 
49
- 9: {
54
+ 10: {
50
55
  file: "@apollo/client/utilities/internal/getFragmentDefinition.js",
51
56
  condition: "doc.definitions.length <= 1",
52
57
  message: "Fragment must have exactly one definition."
53
58
  },
54
59
 
55
- 10: {
60
+ 11: {
56
61
  file: "@apollo/client/utilities/internal/getFragmentDefinition.js",
57
62
  condition: "fragmentDef.kind === \"FragmentDefinition\"",
58
63
  message: "Must be a fragment definition."
59
64
  },
60
65
 
61
- 11: {
66
+ 12: {
62
67
  file: "@apollo/client/utilities/internal/getFragmentFromSelection.js",
63
68
  condition: "fragment",
64
69
  message: `No fragment named %s`
65
70
  },
66
71
 
67
- 12: {
72
+ 13: {
68
73
  file: "@apollo/client/utilities/internal/getFragmentQueryDocument.js",
69
74
 
70
75
  message: `Found a %s operation%s. ` +
71
76
  "No operations are allowed when using a fragment as a query. Only fragments are allowed."
72
77
  },
73
78
 
74
- 13: {
79
+ 14: {
75
80
  file: "@apollo/client/utilities/internal/getFragmentQueryDocument.js",
76
81
  condition: "fragments.length === 1",
77
82
  message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
78
83
  },
79
84
 
80
- 14: {
85
+ 15: {
81
86
  file: "@apollo/client/utilities/internal/getMainDefinition.js",
82
87
  message: "Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."
83
88
  },
84
89
 
85
- 15: {
90
+ 16: {
86
91
  file: "@apollo/client/utilities/internal/getQueryDefinition.js",
87
92
  condition: "queryDef && queryDef.operation === \"query\"",
88
93
  message: "Must contain a query definition."
89
94
  },
90
95
 
91
- 17: {
96
+ 18: {
92
97
  file: "@apollo/client/utilities/internal/shouldInclude.js",
93
98
  condition: "evaledValue !== void 0",
94
99
  message: `Invalid variable referenced in @%s directive.`
95
100
  },
96
101
 
97
- 18: {
102
+ 19: {
98
103
  file: "@apollo/client/utilities/internal/shouldInclude.js",
99
104
  condition: "directiveArguments && directiveArguments.length === 1",
100
105
  message: `Incorrect number of arguments for the @%s directive.`
101
106
  },
102
107
 
103
- 19: {
108
+ 20: {
104
109
  file: "@apollo/client/utilities/internal/shouldInclude.js",
105
110
  condition: "ifArgument.name && ifArgument.name.value === \"if\"",
106
111
  message: `Invalid argument for the @%s directive.`
107
112
  },
108
113
 
109
- 20: {
114
+ 21: {
110
115
  file: "@apollo/client/utilities/internal/shouldInclude.js",
111
116
  condition: "ifValue &&\n (ifValue.kind === \"Variable\" || ifValue.kind === \"BooleanValue\")",
112
117
  message: `Argument for the @%s directive must be a variable or a boolean value.`
113
118
  },
114
119
 
115
- 21: {
120
+ 22: {
116
121
  file: "@apollo/client/utilities/internal/valueToObjectRepresentation.js",
117
122
 
118
123
  message: `The inline argument "%s" of kind "%s"` +
@@ -120,37 +125,37 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
120
125
  "overcome this limitation."
121
126
  },
122
127
 
123
- 22: {
128
+ 23: {
124
129
  file: "@apollo/client/utilities/graphql/DocumentTransform.js",
125
130
  condition: "Array.isArray(cacheKeys)",
126
131
  message: "`getCacheKey` must return an array or undefined"
127
132
  },
128
133
 
129
- 23: {
134
+ 24: {
130
135
  file: "@apollo/client/testing/core/mocking/mockLink.js",
131
136
  condition: "max > min",
132
137
  message: "realisticDelay: `min` must be less than `max`"
133
138
  },
134
139
 
135
- 24: {
140
+ 25: {
136
141
  file: "@apollo/client/testing/core/mocking/mockLink.js",
137
142
  condition: "queryWithoutClientOnlyDirectives",
138
143
  message: "query is required"
139
144
  },
140
145
 
141
- 25: {
146
+ 26: {
142
147
  file: "@apollo/client/testing/core/mocking/mockLink.js",
143
148
  condition: "serverQuery",
144
149
  message: "Cannot mock a client-only query. Mocked responses should contain at least one non-client field."
145
150
  },
146
151
 
147
- 26: {
152
+ 27: {
148
153
  file: "@apollo/client/testing/core/mocking/mockLink.js",
149
154
  condition: "(mock.maxUsageCount ?? 1) > 0",
150
155
  message: "Mocked response `maxUsageCount` must be greater than 0. Given %s"
151
156
  },
152
157
 
153
- 27: {
158
+ 28: {
154
159
  file: "@apollo/client/react/ssr/prerenderStatic.js",
155
160
  condition: "renderCount <= maxRerenders",
156
161
 
@@ -160,19 +165,19 @@ and need to increase the \`maxRerender\` option to \`prerenderStatic\`, or that
160
165
  you have an infinite render loop in your application.`
161
166
  },
162
167
 
163
- 28: {
168
+ 29: {
164
169
  file: "@apollo/client/react/ssr/prerenderStatic.js",
165
170
  condition: "!signal?.aborted",
166
171
  message: "The operation was aborted before it could be attempted."
167
172
  },
168
173
 
169
- 29: {
174
+ 30: {
170
175
  file: "@apollo/client/react/internal/cache/QueryReference.js",
171
176
  condition: "!queryRef || QUERY_REFERENCE_SYMBOL in queryRef",
172
177
  message: "Expected a QueryRef object, but got something else instead."
173
178
  },
174
179
 
175
- 30: {
180
+ 31: {
176
181
  file: "@apollo/client/react/hooks/useApolloClient.js",
177
182
  condition: "!!client",
178
183
 
@@ -181,43 +186,43 @@ you have an infinite render loop in your application.`
181
186
  "instance in via options."
182
187
  },
183
188
 
184
- 31: {
189
+ 32: {
185
190
  file: "@apollo/client/react/hooks/useLazyQuery.js",
186
191
  condition: "resultRef.current",
187
192
  message: "useLazyQuery: '%s' cannot be called before executing the query."
188
193
  },
189
194
 
190
- 32: {
195
+ 33: {
191
196
  file: "@apollo/client/react/hooks/useLazyQuery.js",
192
197
  condition: "!calledDuringRender()",
193
198
  message: "useLazyQuery: 'execute' should not be called during render. To start a query during render, use the 'useQuery' hook."
194
199
  },
195
200
 
196
- 33: {
201
+ 34: {
197
202
  file: "@apollo/client/react/hooks/useLoadableQuery.js",
198
203
  condition: "!calledDuringRender()",
199
204
  message: "useLoadableQuery: 'loadQuery' should not be called during render. To start a query during render, use the 'useBackgroundQuery' hook."
200
205
  },
201
206
 
202
- 34: {
207
+ 35: {
203
208
  file: "@apollo/client/react/hooks/useLoadableQuery.js",
204
209
  condition: "internalQueryRef",
205
210
  message: "The query has not been loaded. Please load the query."
206
211
  },
207
212
 
208
- 35: {
213
+ 36: {
209
214
  file: "@apollo/client/react/hooks/useSubscription.js",
210
215
  condition: "!optionsRef.current.skip",
211
216
  message: "A subscription that is skipped cannot be restarted."
212
217
  },
213
218
 
214
- 37: {
219
+ 38: {
215
220
  file: "@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js",
216
221
  condition: "supportedFetchPolicies.includes(fetchPolicy)",
217
222
  message: `The fetch policy \`%s\` is not supported with suspense.`
218
223
  },
219
224
 
220
- 39: {
225
+ 40: {
221
226
  file: "@apollo/client/react/context/ApolloContext.js",
222
227
  condition: "\"createContext\" in React",
223
228
 
@@ -228,7 +233,7 @@ you have an infinite render loop in your application.`
228
233
  "For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
229
234
  },
230
235
 
231
- 40: {
236
+ 41: {
232
237
  file: "@apollo/client/react/context/ApolloProvider.js",
233
238
  condition: "context.client",
234
239
 
@@ -236,66 +241,66 @@ you have an infinite render loop in your application.`
236
241
  'sure you pass in your client via the "client" prop.'
237
242
  },
238
243
 
239
- 41: {
244
+ 42: {
240
245
  file: "@apollo/client/masking/maskDefinition.js",
241
246
  condition: "fragment",
242
247
  message: "Could not find fragment with name '%s'."
243
248
  },
244
249
 
245
- 43: {
250
+ 44: {
246
251
  file: "@apollo/client/masking/maskFragment.js",
247
252
  condition: "fragments.length === 1",
248
253
  message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
249
254
  },
250
255
 
251
- 44: {
256
+ 45: {
252
257
  file: "@apollo/client/masking/maskFragment.js",
253
258
  condition: "!!fragment",
254
259
  message: `Could not find fragment with name "%s".`
255
260
  },
256
261
 
257
- 45: {
262
+ 46: {
258
263
  file: "@apollo/client/masking/maskOperation.js",
259
264
  condition: "definition",
260
265
  message: "Expected a parsed GraphQL document with a query, mutation, or subscription."
261
266
  },
262
267
 
263
- 49: {
268
+ 50: {
264
269
  file: "@apollo/client/local-state/LocalState.js",
265
270
  condition: "hasDirectives([\"client\"], document)",
266
271
  message: "Expected document to contain `@client` fields."
267
272
  },
268
273
 
269
- 50: {
274
+ 51: {
270
275
  file: "@apollo/client/local-state/LocalState.js",
271
276
  condition: "hasDirectives([\"client\"], document)",
272
277
  message: "Expected document to contain `@client` fields."
273
278
  },
274
279
 
275
- 51: {
280
+ 52: {
276
281
  file: "@apollo/client/local-state/LocalState.js",
277
282
  condition: "fragment",
278
283
  message: "No fragment named %s"
279
284
  },
280
285
 
281
- 57: {
286
+ 58: {
282
287
  file: "@apollo/client/local-state/LocalState.js",
283
288
  message: "Could not resolve __typename on object %o returned from resolver '%s'. '__typename' needs to be returned to properly resolve child fields."
284
289
  },
285
290
 
286
- 58: {
291
+ 59: {
287
292
  file: "@apollo/client/local-state/LocalState.js",
288
293
  condition: "fragment",
289
294
  message: `No fragment named %s`
290
295
  },
291
296
 
292
- 59: {
297
+ 60: {
293
298
  file: "@apollo/client/local-state/LocalState.js",
294
299
  condition: "cache.fragmentMatches",
295
300
  message: "The configured cache does not support fragment matching which will lead to incorrect results when executing local resolvers. Please use a cache that implements `fragmetMatches`."
296
301
  },
297
302
 
298
- 61: {
303
+ 62: {
299
304
  file: "@apollo/client/link/persisted-queries/index.js",
300
305
  condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
301
306
 
@@ -304,13 +309,13 @@ you have an infinite render loop in your application.`
304
309
  "parameter."
305
310
  },
306
311
 
307
- 62: {
312
+ 63: {
308
313
  file: "@apollo/client/link/persisted-queries/index.js",
309
314
  condition: "forward",
310
315
  message: "PersistedQueryLink cannot be the last link in the chain."
311
316
  },
312
317
 
313
- 63: {
318
+ 64: {
314
319
  file: "@apollo/client/link/http/checkFetcher.js",
315
320
  condition: "fetcher || typeof fetch !== \"undefined\"",
316
321
 
@@ -328,36 +333,36 @@ const client = new ApolloClient({
328
333
  `
329
334
  },
330
335
 
331
- 64: {
336
+ 65: {
332
337
  file: "@apollo/client/link/http/parseAndCheckHttpResponse.js",
333
338
  condition: "response.body && typeof response.body.getReader === \"function\"",
334
339
  message: "Unknown type for `response.body`. Please use a `fetch` implementation that is WhatWG-compliant and that uses WhatWG ReadableStreams for `body`."
335
340
  },
336
341
 
337
- 67: {
342
+ 68: {
338
343
  file: "@apollo/client/link/core/ApolloLink.js",
339
344
  message: "request is not implemented"
340
345
  },
341
346
 
342
- 68: {
347
+ 69: {
343
348
  file: "@apollo/client/incremental/handlers/graphql17Alpha9.js",
344
349
  condition: "labelNode && labelNode.value.kind === \"StringValue\"",
345
350
  message: "Expected a label for @defer directive"
346
351
  },
347
352
 
348
- 69: {
353
+ 70: {
349
354
  file: "@apollo/client/incremental/handlers/graphql17Alpha9.js",
350
355
  condition: "pending",
351
356
  message: "Could not find pending chunk for incremental value. Please file an issue for the Apollo Client team to investigate."
352
357
  },
353
358
 
354
- 70: {
359
+ 71: {
355
360
  file: "@apollo/client/incremental/handlers/notImplemented.js",
356
361
  condition: "!hasDirectives([\"defer\", \"stream\"], request.query)",
357
362
  message: "`@defer` and `@stream` are not supported without specifying an incremental handler. Please pass a handler as the `incrementalHandler` option to the `ApolloClient` constructor."
358
363
  },
359
364
 
360
- 71: {
365
+ 72: {
361
366
  file: "@apollo/client/core/ApolloClient.js",
362
367
  condition: "options.cache",
363
368
 
@@ -366,7 +371,7 @@ const client = new ApolloClient({
366
371
  "For more information, please visit: https://go.apollo.dev/c/docs"
367
372
  },
368
373
 
369
- 72: {
374
+ 73: {
370
375
  file: "@apollo/client/core/ApolloClient.js",
371
376
  condition: "options.link",
372
377
 
@@ -375,7 +380,7 @@ const client = new ApolloClient({
375
380
  "For more information, please visit: https://go.apollo.dev/c/docs"
376
381
  },
377
382
 
378
- 75: {
383
+ 76: {
379
384
  file: "@apollo/client/core/ApolloClient.js",
380
385
  condition: "options.fetchPolicy !== \"cache-and-network\"",
381
386
 
@@ -385,7 +390,7 @@ const client = new ApolloClient({
385
390
  "using a different fetchPolicy, such as cache-first or network-only."
386
391
  },
387
392
 
388
- 76: {
393
+ 77: {
389
394
  file: "@apollo/client/core/ApolloClient.js",
390
395
  condition: "options.fetchPolicy !== \"standby\"",
391
396
 
@@ -394,7 +399,7 @@ const client = new ApolloClient({
394
399
  "as cache-first or network-only."
395
400
  },
396
401
 
397
- 77: {
402
+ 78: {
398
403
  file: "@apollo/client/core/ApolloClient.js",
399
404
  condition: "options.query",
400
405
 
@@ -402,164 +407,164 @@ const client = new ApolloClient({
402
407
  "in the query option."
403
408
  },
404
409
 
405
- 78: {
410
+ 79: {
406
411
  file: "@apollo/client/core/ApolloClient.js",
407
412
  condition: "options.query.kind === \"Document\"",
408
413
  message: 'You must wrap the query string in a "gql" tag.'
409
414
  },
410
415
 
411
- 79: {
416
+ 80: {
412
417
  file: "@apollo/client/core/ApolloClient.js",
413
418
  condition: "!options.returnPartialData",
414
419
  message: "returnPartialData option only supported on watchQuery."
415
420
  },
416
421
 
417
- 80: {
422
+ 81: {
418
423
  file: "@apollo/client/core/ApolloClient.js",
419
424
  condition: "!options.pollInterval",
420
425
  message: "pollInterval option only supported on watchQuery."
421
426
  },
422
427
 
423
- 81: {
428
+ 82: {
424
429
  file: "@apollo/client/core/ApolloClient.js",
425
430
  condition: "!options.notifyOnNetworkStatusChange",
426
431
  message: "notifyOnNetworkStatusChange option only supported on watchQuery."
427
432
  },
428
433
 
429
- 82: {
434
+ 83: {
430
435
  file: "@apollo/client/core/ApolloClient.js",
431
436
  condition: "optionsWithDefaults.mutation",
432
437
  message: "The `mutation` option is required. Please provide a GraphQL document in the `mutation` option."
433
438
  },
434
439
 
435
- 83: {
440
+ 84: {
436
441
  file: "@apollo/client/core/ApolloClient.js",
437
442
  condition: "optionsWithDefaults.fetchPolicy === \"network-only\" ||\n optionsWithDefaults.fetchPolicy === \"no-cache\"",
438
443
  message: "Mutations only support 'network-only' or 'no-cache' fetch policies. The default 'network-only' behavior automatically writes mutation results to the cache. Passing 'no-cache' skips the cache write."
439
444
  },
440
445
 
441
- 85: {
446
+ 86: {
442
447
  file: "@apollo/client/core/ObservableQuery.js",
443
448
  condition: "fetchPolicy === \"standby\"",
444
449
  message: "The `variablesUnknown` option can only be used together with a `standby` fetch policy."
445
450
  },
446
451
 
447
- 87: {
452
+ 88: {
448
453
  file: "@apollo/client/core/ObservableQuery.js",
449
454
  condition: "this.options.fetchPolicy !== \"cache-only\"",
450
455
  message: "Cannot execute `fetchMore` for 'cache-only' query '%s'. Please use a different fetch policy."
451
456
  },
452
457
 
453
- 88: {
458
+ 89: {
454
459
  file: "@apollo/client/core/ObservableQuery.js",
455
460
  condition: "updateQuery",
456
461
  message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
457
462
  },
458
463
 
459
- 94: {
464
+ 95: {
460
465
  file: "@apollo/client/core/QueryManager.js",
461
466
  message: "QueryManager stopped while query was in flight"
462
467
  },
463
468
 
464
- 95: {
469
+ 96: {
465
470
  file: "@apollo/client/core/QueryManager.js",
466
471
  condition: "this.localState",
467
472
  message: "Mutation '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
468
473
  },
469
474
 
470
- 96: {
475
+ 97: {
471
476
  file: "@apollo/client/core/QueryManager.js",
472
477
  message: "Store reset while query was in flight (not completed in link chain)"
473
478
  },
474
479
 
475
- 99: {
480
+ 100: {
476
481
  file: "@apollo/client/core/QueryManager.js",
477
482
  condition: "!this.getDocumentInfo(query).hasClientExports || this.localState",
478
483
  message: "Subscription '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
479
484
  },
480
485
 
481
- 100: {
486
+ 101: {
482
487
  file: "@apollo/client/core/QueryManager.js",
483
488
  condition: "this.localState",
484
489
  message: "%s '%s' contains `@client` fields but local state has not been configured."
485
490
  },
486
491
 
487
- 101: {
492
+ 102: {
488
493
  file: "@apollo/client/core/QueryManager.js",
489
494
  condition: "!hasIncrementalDirective",
490
495
  message: "%s '%s' contains `@client` and `@defer` directives. These cannot be used together."
491
496
  },
492
497
 
493
- 102: {
498
+ 103: {
494
499
  file: "@apollo/client/core/QueryManager.js",
495
500
  condition: "this.localState",
496
501
  message: "Query '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
497
502
  },
498
503
 
499
- 104: {
504
+ 105: {
500
505
  file: "@apollo/client/core/QueryManager.js",
501
506
  condition: "this.localState",
502
507
  message: "Query '%s' contains `@client` fields but local state has not been configured."
503
508
  },
504
509
 
505
- 105: {
510
+ 106: {
506
511
  file: "@apollo/client/core/QueryManager.js",
507
512
  condition: "didEmitValue",
508
513
  message: "The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."
509
514
  },
510
515
 
511
- 109: {
516
+ 110: {
512
517
  file: "@apollo/client/cache/inmemory/entityStore.js",
513
518
  condition: "typeof dataId === \"string\"",
514
519
  message: "store.merge expects a string ID"
515
520
  },
516
521
 
517
- 114: {
522
+ 115: {
518
523
  file: "@apollo/client/cache/inmemory/key-extractor.js",
519
524
  condition: "extracted !== void 0",
520
525
  message: `Missing field '%s' while extracting keyFields from %s`
521
526
  },
522
527
 
523
- 115: {
528
+ 116: {
524
529
  file: "@apollo/client/cache/inmemory/policies.js",
525
530
  condition: "!old || old === which",
526
531
  message: `Cannot change root %s __typename more than once`
527
532
  },
528
533
 
529
- 119: {
534
+ 120: {
530
535
  file: "@apollo/client/cache/inmemory/policies.js",
531
536
  message: "Cannot automatically merge arrays"
532
537
  },
533
538
 
534
- 122: {
539
+ 123: {
535
540
  file: "@apollo/client/cache/inmemory/readFromStore.js",
536
541
  message: `No fragment named %s`
537
542
  },
538
543
 
539
- 123: {
544
+ 124: {
540
545
  file: "@apollo/client/cache/inmemory/readFromStore.js",
541
546
  condition: "!isReference(value)",
542
547
  message: `Missing selection set for object of type %s returned for query field %s`
543
548
  },
544
549
 
545
- 124: {
550
+ 125: {
546
551
  file: "@apollo/client/cache/inmemory/writeToStore.js",
547
552
  message: `Could not identify object %s`
548
553
  },
549
554
 
550
- 126: {
555
+ 127: {
551
556
  file: "@apollo/client/cache/inmemory/writeToStore.js",
552
557
  message: `No fragment named %s`
553
558
  }
554
559
  };
555
560
 
556
561
  export const devDebug = {
557
- 84: {
562
+ 85: {
558
563
  file: "@apollo/client/core/ApolloClient.js",
559
564
  message: `In client.refetchQueries, Promise.all promise rejected with error %o`
560
565
  },
561
566
 
562
- 91: {
567
+ 92: {
563
568
  file: "@apollo/client/core/ObservableQuery.js",
564
569
  message: `Missing cache result fields: %o`
565
570
  }
@@ -573,67 +578,67 @@ export const devWarn = {
573
578
  message: "The custom scalar configuration for '%s' uses list type '%s', but the value is not an array. The value was coerced as '%s' anyway."
574
579
  },
575
580
 
576
- 38: {
581
+ 39: {
577
582
  file: "@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js",
578
583
  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."
579
584
  },
580
585
 
581
- 42: {
586
+ 43: {
582
587
  file: "@apollo/client/masking/maskDefinition.js",
583
588
  message: "Accessing unmasked field on %s at path '%s'. This field will not be available when masking is enabled. Please read the field from the fragment instead."
584
589
  },
585
590
 
586
- 46: {
591
+ 47: {
587
592
  file: "@apollo/client/masking/utils.js",
588
593
  message: "@unmask 'mode' argument does not support variables."
589
594
  },
590
595
 
591
- 47: {
596
+ 48: {
592
597
  file: "@apollo/client/masking/utils.js",
593
598
  message: "@unmask 'mode' argument must be of type string."
594
599
  },
595
600
 
596
- 48: {
601
+ 49: {
597
602
  file: "@apollo/client/masking/utils.js",
598
603
  message: "@unmask 'mode' argument does not recognize value '%s'."
599
604
  },
600
605
 
601
- 52: {
606
+ 53: {
602
607
  file: "@apollo/client/local-state/LocalState.js",
603
608
  message: "The '%s' field resolves the value from the cache, for example from a 'read' function, but a 'no-cache' fetch policy was used. The field value has been set to `null`. Either define a local resolver or use a fetch policy that uses the cache to ensure the field is resolved correctly."
604
609
  },
605
610
 
606
- 53: {
611
+ 54: {
607
612
  file: "@apollo/client/local-state/LocalState.js",
608
613
  message: "Could not find a resolver for the '%s' field nor does the cache resolve the field. The field value has been set to `null`. Either define a resolver for the field or ensure the cache can resolve the value, for example, by adding a 'read' function to a field policy in 'InMemoryCache'."
609
614
  },
610
615
 
611
- 54: {
616
+ 55: {
612
617
  file: "@apollo/client/local-state/LocalState.js",
613
618
  message: "The '%s' resolver returned `undefined` instead of a value. This is likely a bug in the resolver. If you didn't mean to return a value, return `null` instead."
614
619
  },
615
620
 
616
- 55: {
621
+ 56: {
617
622
  file: "@apollo/client/local-state/LocalState.js",
618
623
  message: "The '%s' field had no cached value and only forced resolvers were run. The value was set to `null`."
619
624
  },
620
625
 
621
- 56: {
626
+ 57: {
622
627
  file: "@apollo/client/local-state/LocalState.js",
623
628
  message: "The '%s' field on object %o returned `undefined` instead of a value. The parent resolver did not include the property in the returned value and there was no resolver defined for the field."
624
629
  },
625
630
 
626
- 60: {
631
+ 61: {
627
632
  file: "@apollo/client/link/ws/index.js",
628
633
  message: "`WebSocketLink` uses the deprecated and unmaintained `subscriptions-transport-ws` library. This link is no longer maintained and will be removed in a future major version of Apollo Client. We recommend switching to `GraphQLWsLink` which uses the `graphql-ws` library to send GraphQL operations through WebSocket connections (https://the-guild.dev/graphql/ws)."
629
634
  },
630
635
 
631
- 65: {
636
+ 66: {
632
637
  file: "@apollo/client/link/core/ApolloLink.js",
633
638
  message: "[ApolloLink.split]: The test function returned a non-boolean value which could result in subtle bugs (e.g. such as using an `async` function which always returns a truthy value). Got `%o`."
634
639
  },
635
640
 
636
- 66: {
641
+ 67: {
637
642
  file: "@apollo/client/link/core/ApolloLink.js",
638
643
 
639
644
  message: "The terminating link provided to `ApolloLink.execute` called `forward` instead of handling the request. " +
@@ -642,29 +647,29 @@ export const devWarn = {
642
647
  "If you are using a split link, ensure each branch contains a terminating link that handles the request."
643
648
  },
644
649
 
645
- 73: {
650
+ 74: {
646
651
  file: "@apollo/client/core/ApolloClient.js",
647
652
  message: "`refetchOn` was set on query '%s' but no `RefetchEventManager` is configured on this `ApolloClient` instance. This option has no effect until a RefetchEventManager is connected to this client. Pass a `RefetchEventManager` instance to the `refetchEventManager` option on the `ApolloClient` constructor."
648
653
  },
649
654
 
650
- 74: {
655
+ 75: {
651
656
  file: "@apollo/client/core/ApolloClient.js",
652
657
  message: "`refetchOn` references the '%s' event on query '%s' but no source is configured for it on the `RefetchEventManager`. This event will never fire. Add a source for the event to the `sources` option or call `setEventSource` on the refetch event manager."
653
658
  },
654
659
 
655
- 86: {
660
+ 87: {
656
661
  file: "@apollo/client/core/ObservableQuery.js",
657
662
 
658
663
  message: `Called refetch(%o) for query %o, which does not declare a $variables variable.
659
664
  Did you mean to call refetch(variables) instead of refetch({ variables })?`
660
665
  },
661
666
 
662
- 90: {
667
+ 91: {
663
668
  file: "@apollo/client/core/ObservableQuery.js",
664
669
  message: "Cannot poll on 'cache-only' query '%s' and as such, polling is disabled. Please use a different fetch policy."
665
670
  },
666
671
 
667
- 92: {
672
+ 93: {
668
673
  file: "@apollo/client/core/ObservableQuery.js",
669
674
 
670
675
  message: `Apollo Client stopped refetching '%s' because the same incomplete cache result was already refetched. Automatic refetching was halted to prevent an endless cycle of network requests.
@@ -684,7 +689,7 @@ For more information about these options, please refer to the documentation:
684
689
  `
685
690
  },
686
691
 
687
- 93: {
692
+ 94: {
688
693
  file: "@apollo/client/core/QueryInfo.js",
689
694
 
690
695
  message: `The network result for query %s was written to the cache, but reading it back returned a partial result.
@@ -703,37 +708,37 @@ For more information, please refer to the documentation:
703
708
  `
704
709
  },
705
710
 
706
- 97: {
711
+ 98: {
707
712
  file: "@apollo/client/core/QueryManager.js",
708
713
  message: `Unknown query named "%s" requested in refetchQueries options.include array`
709
714
  },
710
715
 
711
- 98: {
716
+ 99: {
712
717
  file: "@apollo/client/core/QueryManager.js",
713
718
  message: `Unknown anonymous query requested in refetchQueries options.include array`
714
719
  },
715
720
 
716
- 103: {
721
+ 104: {
717
722
  file: "@apollo/client/core/QueryManager.js",
718
723
  message: '[%s]: Fragments masked by data masking are inaccessible when using fetch policy "no-cache". Please add `@unmask` to each fragment spread to access the data.'
719
724
  },
720
725
 
721
- 106: {
726
+ 107: {
722
727
  file: "@apollo/client/core/RefetchEventManager.js",
723
728
  message: "Connected an `ApolloClient` instance to a `RefetchEventManager` that was already connected to a different `ApolloClient`. The previous client has been disconnected and will no longer receive refetch events from this manager."
724
729
  },
725
730
 
726
- 107: {
731
+ 108: {
727
732
  file: "@apollo/client/core/RefetchEventManager.js",
728
733
  message: "Received '%s' event but an `ApolloClient` instance is not connected to the `RefetchEventManager`. No queries will refetch. Pass the manager to the `refetchEventManager` option on the `ApolloClient` constructor."
729
734
  },
730
735
 
731
- 108: {
736
+ 109: {
732
737
  file: "@apollo/client/core/RefetchEventManager.js",
733
738
  message: "Received '%s' event but no source is configured for it on the `RefetchEventManager`. No queries will refetch. Add the event to the `sources` option or call `setEventSource`."
734
739
  },
735
740
 
736
- 110: {
741
+ 111: {
737
742
  file: "@apollo/client/cache/inmemory/entityStore.js",
738
743
 
739
744
  message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
@@ -741,51 +746,51 @@ For more information, please refer to the documentation:
741
746
  "`toReference(object, true)`"
742
747
  },
743
748
 
744
- 111: {
749
+ 112: {
745
750
  file: "@apollo/client/cache/inmemory/entityStore.js",
746
751
 
747
752
  message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
748
753
  "Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
749
754
  },
750
755
 
751
- 112: {
756
+ 113: {
752
757
  file: "@apollo/client/cache/inmemory/entityStore.js",
753
758
  message: "The custom scalar configuration for '%s' uses list type '%s', but the value is not an array. The value was coerced as '%s' anyway."
754
759
  },
755
760
 
756
- 113: {
761
+ 114: {
757
762
  file: "@apollo/client/cache/inmemory/inMemoryCache.js",
758
763
  message: "The variable '%s' has list type '%s', but the value is not an array. The value was coerced as '%s' anyway."
759
764
  },
760
765
 
761
- 116: {
766
+ 117: {
762
767
  file: "@apollo/client/cache/inmemory/policies.js",
763
768
  message: `Inferring subtype %s of supertype %s`
764
769
  },
765
770
 
766
- 117: {
771
+ 118: {
767
772
  file: "@apollo/client/cache/inmemory/policies.js",
768
773
 
769
774
  message: "Cannot match %s on `%s` against `%s`. This indicates a missing `possibleTypes` entry for the supertype of %s. Data might be lost. \n\n" +
770
775
  "For more information on configuring `possibleTypes`, please refer to the documentation: https://go.apollo.dev/c/possible-types"
771
776
  },
772
777
 
773
- 118: {
778
+ 119: {
774
779
  file: "@apollo/client/cache/inmemory/policies.js",
775
780
  message: `Undefined 'from' passed to readField with arguments %s`
776
781
  },
777
782
 
778
- 120: {
783
+ 121: {
779
784
  file: "@apollo/client/cache/inmemory/policies.js",
780
785
  message: "The field policy for '%s' is configured with the '%s' scalar, so its '%s' function is ignored. Scalar configuration cannot be used with custom read or merge functions."
781
786
  },
782
787
 
783
- 121: {
788
+ 122: {
784
789
  file: "@apollo/client/cache/inmemory/readFromStore.js",
785
790
  message: "The field policy for '%s' is configured with the '%s' scalar, but the field is not a scalar field because it contains a selection set. The field value remains unchanged."
786
791
  },
787
792
 
788
- 127: {
793
+ 128: {
789
794
  file: "@apollo/client/cache/inmemory/writeToStore.js",
790
795
 
791
796
  message: `Cache data may be lost when replacing the %s field of a %s object.
@@ -804,29 +809,29 @@ For more information about these options, please refer to the documentation:
804
809
  `
805
810
  },
806
811
 
807
- 128: {
812
+ 129: {
808
813
  file: "@apollo/client/cache/core/cache.js",
809
814
  message: "Could not identify object passed to `from` for '%s' fragment, either because the object is non-normalized or the key fields are missing. If you are masking this object, please ensure the key fields are requested by the parent object."
810
815
  }
811
816
  };
812
817
 
813
818
  export const devError = {
814
- 16: {
819
+ 17: {
815
820
  file: "@apollo/client/utilities/internal/removeDirectivesFromDocument.js",
816
821
  message: `Could not find operation or fragment`
817
822
  },
818
823
 
819
- 36: {
824
+ 37: {
820
825
  file: "@apollo/client/react/hooks/useSyncExternalStore.js",
821
826
  message: "The result of getSnapshot should be cached to avoid an infinite loop"
822
827
  },
823
828
 
824
- 89: {
829
+ 90: {
825
830
  file: "@apollo/client/core/ObservableQuery.js",
826
831
  message: "Unhandled GraphQL subscription error"
827
832
  },
828
833
 
829
- 125: {
834
+ 126: {
830
835
  file: "@apollo/client/cache/inmemory/writeToStore.js",
831
836
  message: `Missing field '%s' while writing result %o`
832
837
  }