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