@apollo/client 4.3.0-alpha.0 → 4.3.0-alpha.10

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