@apollo/client 4.0.0-alpha.21 → 4.0.0-alpha.23

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