@apollo/client 4.0.0-alpha.1 → 4.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (839) hide show
  1. package/.changeset/afraid-moons-arrive.md +5 -0
  2. package/.changeset/beige-mirrors-talk.md +15 -0
  3. package/.changeset/cool-kiwis-hunt.md +15 -0
  4. package/.changeset/cuddly-spiders-tie.md +5 -0
  5. package/.changeset/dirty-eagles-poke.md +5 -0
  6. package/.changeset/early-eggs-develop.md +22 -0
  7. package/.changeset/eighty-squids-fix.md +15 -0
  8. package/.changeset/eleven-kangaroos-jump.md +5 -0
  9. package/.changeset/forty-shrimps-fry.md +5 -0
  10. package/.changeset/forty-tomatoes-punch.md +5 -0
  11. package/.changeset/four-countries-clean.md +24 -0
  12. package/.changeset/four-ghosts-watch.md +5 -0
  13. package/.changeset/funny-jeans-invent.md +16 -0
  14. package/.changeset/funny-terms-deny.md +5 -0
  15. package/.changeset/fuzzy-tips-sit.md +5 -0
  16. package/.changeset/gentle-badgers-train.md +5 -0
  17. package/.changeset/giant-apes-thank.md +5 -0
  18. package/.changeset/giant-bags-share.md +5 -0
  19. package/.changeset/gorgeous-chefs-tap.md +5 -0
  20. package/.changeset/great-roses-jog.md +15 -0
  21. package/.changeset/grumpy-vans-type.md +5 -0
  22. package/.changeset/hip-vans-act.md +5 -0
  23. package/.changeset/hungry-bikes-cough.md +5 -0
  24. package/.changeset/itchy-chefs-run.md +23 -0
  25. package/.changeset/khaki-keys-deliver.md +5 -0
  26. package/.changeset/khaki-spies-work.md +11 -0
  27. package/.changeset/large-plants-know.md +5 -0
  28. package/.changeset/light-apes-rescue.md +5 -0
  29. package/.changeset/little-spoons-kick.md +7 -0
  30. package/.changeset/loud-cows-raise.md +7 -0
  31. package/.changeset/many-buses-allow.md +5 -0
  32. package/.changeset/mean-lizards-think.md +5 -0
  33. package/.changeset/nervous-fireants-bow.md +5 -0
  34. package/.changeset/nervous-goats-allow.md +5 -0
  35. package/.changeset/nice-dots-matter.md +5 -0
  36. package/.changeset/ninety-bags-bake.md +17 -0
  37. package/.changeset/odd-chicken-hide.md +17 -0
  38. package/.changeset/odd-lemons-relax.md +5 -0
  39. package/.changeset/perfect-vans-give.md +7 -0
  40. package/.changeset/poor-eels-punch.md +5 -0
  41. package/.changeset/pre.json +63 -0
  42. package/.changeset/purple-bears-flash.md +5 -0
  43. package/.changeset/real-teachers-peel.md +5 -0
  44. package/.changeset/serious-moons-juggle.md +5 -0
  45. package/.changeset/seven-dragons-repair.md +14 -0
  46. package/.changeset/shaggy-pugs-add.md +52 -0
  47. package/.changeset/short-months-complain.md +5 -0
  48. package/.changeset/slimy-chicken-melt.md +5 -0
  49. package/.changeset/slimy-maps-press.md +5 -0
  50. package/.changeset/small-buttons-rhyme.md +5 -0
  51. package/.changeset/swift-rivers-share.md +13 -0
  52. package/.changeset/tall-bikes-develop.md +5 -0
  53. package/.changeset/tame-points-work.md +11 -0
  54. package/.changeset/tender-swans-flash.md +16 -0
  55. package/.changeset/thick-books-grin.md +5 -0
  56. package/.changeset/thin-peas-hear.md +16 -0
  57. package/.changeset/tidy-pandas-punch.md +5 -0
  58. package/.changeset/tough-rockets-allow.md +5 -0
  59. package/.changeset/tricky-tables-shave.md +5 -0
  60. package/.changeset/unlucky-kiwis-sell.md +5 -0
  61. package/.changeset/warm-ties-sit.md +7 -0
  62. package/.changeset/wicked-forks-double.md +33 -0
  63. package/.changeset/young-phones-fold.md +5 -0
  64. package/.changeset/young-snails-grin.md +5 -0
  65. package/CHANGELOG.md +476 -0
  66. package/__cjs/cache/core/cache.cjs +2 -2
  67. package/__cjs/cache/core/cache.cjs.map +1 -1
  68. package/__cjs/cache/core/cache.d.cts +18 -18
  69. package/__cjs/cache/core/types/Cache.cjs.map +1 -1
  70. package/__cjs/cache/core/types/Cache.d.cts +9 -16
  71. package/__cjs/cache/core/types/DataProxy.d.cts +8 -23
  72. package/__cjs/cache/core/types/common.cjs +1 -0
  73. package/__cjs/cache/core/types/common.cjs.map +1 -1
  74. package/__cjs/cache/index.cjs +4 -4
  75. package/__cjs/cache/index.cjs.map +1 -1
  76. package/__cjs/cache/index.d.cts +3 -3
  77. package/__cjs/cache/inmemory/entityStore.cjs +9 -8
  78. package/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
  79. package/__cjs/cache/inmemory/entityStore.d.cts +3 -2
  80. package/__cjs/cache/inmemory/fragmentRegistry.cjs +3 -3
  81. package/__cjs/cache/inmemory/fragmentRegistry.cjs.map +1 -1
  82. package/__cjs/cache/inmemory/helpers.cjs +0 -8
  83. package/__cjs/cache/inmemory/helpers.cjs.map +1 -1
  84. package/__cjs/cache/inmemory/helpers.d.cts +3 -4
  85. package/__cjs/cache/inmemory/inMemoryCache.cjs +4 -12
  86. package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  87. package/__cjs/cache/inmemory/inMemoryCache.d.cts +8 -9
  88. package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
  89. package/__cjs/cache/inmemory/policies.cjs +9 -9
  90. package/__cjs/cache/inmemory/policies.cjs.map +1 -1
  91. package/__cjs/cache/inmemory/policies.d.cts +1 -1
  92. package/__cjs/cache/inmemory/reactiveVars.cjs.map +1 -1
  93. package/__cjs/cache/inmemory/reactiveVars.d.cts +7 -7
  94. package/__cjs/cache/inmemory/readFromStore.cjs +14 -56
  95. package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
  96. package/__cjs/cache/inmemory/readFromStore.d.cts +1 -6
  97. package/__cjs/cache/inmemory/types.d.cts +3 -17
  98. package/__cjs/cache/inmemory/writeToStore.cjs +8 -8
  99. package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
  100. package/__cjs/cache/inmemory/writeToStore.d.cts +2 -2
  101. package/__cjs/config/jest/areCombinedGraphQLErrorsEqual.cjs +6 -4
  102. package/__cjs/config/jest/areCombinedGraphQLErrorsEqual.cjs.map +1 -1
  103. package/__cjs/config/jest/areCombinedProtocolErrorsEqual.cjs +3 -3
  104. package/__cjs/config/jest/areCombinedProtocolErrorsEqual.cjs.map +1 -1
  105. package/__cjs/config/jest/areMissingFieldErrorsEqual.cjs +2 -3
  106. package/__cjs/config/jest/areMissingFieldErrorsEqual.cjs.map +1 -1
  107. package/__cjs/config/jest/areServerErrorsEqual.cjs +22 -0
  108. package/__cjs/config/jest/areServerErrorsEqual.cjs.map +1 -0
  109. package/__cjs/config/jest/areServerErrorsEqual.d.cts +3 -0
  110. package/__cjs/config/jest/resolver.cjs +11 -0
  111. package/__cjs/config/jest/resolver.cjs.map +1 -1
  112. package/__cjs/config/jest/setup.cjs +18 -1
  113. package/__cjs/config/jest/setup.cjs.map +1 -1
  114. package/__cjs/core/ApolloClient.cjs +34 -17
  115. package/__cjs/core/ApolloClient.cjs.map +1 -1
  116. package/__cjs/core/ApolloClient.d.cts +35 -25
  117. package/__cjs/core/LocalState.cjs +2 -2
  118. package/__cjs/core/LocalState.cjs.map +1 -1
  119. package/__cjs/core/LocalState.d.cts +8 -8
  120. package/__cjs/core/ObservableQuery.cjs +268 -104
  121. package/__cjs/core/ObservableQuery.cjs.map +1 -1
  122. package/__cjs/core/ObservableQuery.d.cts +156 -17
  123. package/__cjs/core/QueryInfo.cjs +12 -86
  124. package/__cjs/core/QueryInfo.cjs.map +1 -1
  125. package/__cjs/core/QueryInfo.d.cts +2 -11
  126. package/__cjs/core/QueryManager.cjs +148 -104
  127. package/__cjs/core/QueryManager.cjs.map +1 -1
  128. package/__cjs/core/QueryManager.d.cts +45 -24
  129. package/__cjs/core/index.cjs +42 -21
  130. package/__cjs/core/index.cjs.map +1 -1
  131. package/__cjs/core/index.d.cts +12 -11
  132. package/__cjs/core/types.d.cts +60 -7
  133. package/__cjs/core/watchQueryOptions.d.cts +32 -119
  134. package/__cjs/errors/CombinedGraphQLErrors.cjs +30 -11
  135. package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -1
  136. package/__cjs/errors/CombinedGraphQLErrors.d.cts +21 -2
  137. package/__cjs/errors/CombinedProtocolErrors.cjs +13 -6
  138. package/__cjs/errors/CombinedProtocolErrors.cjs.map +1 -1
  139. package/__cjs/errors/CombinedProtocolErrors.d.cts +9 -0
  140. package/__cjs/errors/LinkError.cjs +20 -0
  141. package/__cjs/errors/LinkError.cjs.map +1 -0
  142. package/__cjs/errors/LinkError.d.cts +14 -0
  143. package/__cjs/errors/ServerError.cjs +6 -0
  144. package/__cjs/errors/ServerError.cjs.map +1 -1
  145. package/__cjs/errors/ServerError.d.cts +2 -0
  146. package/__cjs/errors/ServerParseError.cjs +6 -0
  147. package/__cjs/errors/ServerParseError.cjs.map +1 -1
  148. package/__cjs/errors/ServerParseError.d.cts +2 -0
  149. package/__cjs/errors/UnconventionalError.cjs +6 -0
  150. package/__cjs/errors/UnconventionalError.cjs.map +1 -1
  151. package/__cjs/errors/UnconventionalError.d.cts +2 -0
  152. package/__cjs/errors/index.cjs +19 -4
  153. package/__cjs/errors/index.cjs.map +1 -1
  154. package/__cjs/errors/index.d.cts +2 -3
  155. package/__cjs/errors/isErrorLike.cjs +12 -0
  156. package/__cjs/errors/isErrorLike.cjs.map +1 -0
  157. package/__cjs/errors/isErrorLike.d.cts +3 -0
  158. package/__cjs/errors/utils.cjs +18 -0
  159. package/__cjs/errors/utils.cjs.map +1 -0
  160. package/__cjs/errors/utils.d.cts +3 -0
  161. package/__cjs/invariantErrorCodes.cjs +131 -138
  162. package/__cjs/link/batch/index.cjs +4 -2
  163. package/__cjs/link/batch/index.cjs.map +1 -1
  164. package/__cjs/link/batch/index.d.cts +2 -1
  165. package/__cjs/link/batch-http/index.cjs +3 -2
  166. package/__cjs/link/batch-http/index.cjs.map +1 -1
  167. package/__cjs/link/batch-http/index.d.cts +1 -1
  168. package/__cjs/link/context/index.cjs.map +1 -1
  169. package/__cjs/link/context/index.d.cts +1 -1
  170. package/__cjs/link/core/ApolloLink.cjs +2 -20
  171. package/__cjs/link/core/ApolloLink.cjs.map +1 -1
  172. package/__cjs/link/core/ApolloLink.d.cts +1 -3
  173. package/__cjs/link/core/index.cjs.map +1 -1
  174. package/__cjs/link/core/index.d.cts +1 -1
  175. package/__cjs/link/core/types.d.cts +1 -1
  176. package/__cjs/link/error/index.cjs +13 -28
  177. package/__cjs/link/error/index.cjs.map +1 -1
  178. package/__cjs/link/error/index.d.cts +4 -15
  179. package/__cjs/link/http/checkFetcher.cjs +1 -1
  180. package/__cjs/link/http/createHttpLink.cjs +1 -1
  181. package/__cjs/link/http/createHttpLink.d.cts +2 -1
  182. package/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
  183. package/__cjs/link/http/serializeFetchParameter.cjs +1 -1
  184. package/__cjs/link/persisted-queries/index.cjs +3 -3
  185. package/__cjs/link/persisted-queries/index.cjs.map +1 -1
  186. package/__cjs/link/persisted-queries/index.d.cts +14 -3
  187. package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs +1 -1
  188. package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs.map +1 -1
  189. package/__cjs/link/remove-typename/removeTypenameFromVariables.d.cts +10 -1
  190. package/__cjs/link/retry/index.cjs +3 -2
  191. package/__cjs/link/retry/index.cjs.map +1 -1
  192. package/__cjs/link/retry/index.d.cts +1 -1
  193. package/__cjs/link/subscriptions/index.cjs +3 -1
  194. package/__cjs/link/subscriptions/index.cjs.map +1 -1
  195. package/__cjs/link/utils/validateOperation.cjs +1 -1
  196. package/__cjs/masking/maskDefinition.cjs +2 -2
  197. package/__cjs/masking/maskDefinition.cjs.map +1 -1
  198. package/__cjs/masking/maskDefinition.d.cts +1 -1
  199. package/__cjs/masking/maskFragment.cjs +2 -2
  200. package/__cjs/masking/maskFragment.cjs.map +1 -1
  201. package/__cjs/masking/maskFragment.d.cts +2 -2
  202. package/__cjs/masking/maskOperation.cjs +1 -1
  203. package/__cjs/masking/maskOperation.cjs.map +1 -1
  204. package/__cjs/masking/maskOperation.d.cts +2 -2
  205. package/__cjs/masking/utils.cjs +1 -1
  206. package/__cjs/react/context/ApolloConsumer.cjs +1 -1
  207. package/__cjs/react/context/ApolloConsumer.cjs.map +1 -1
  208. package/__cjs/react/context/ApolloConsumer.d.cts +7 -4
  209. package/__cjs/react/context/ApolloContext.cjs +1 -1
  210. package/__cjs/react/context/ApolloContext.cjs.map +1 -1
  211. package/__cjs/react/context/ApolloContext.d.cts +4 -4
  212. package/__cjs/react/context/ApolloProvider.cjs +1 -1
  213. package/__cjs/react/context/ApolloProvider.cjs.map +1 -1
  214. package/__cjs/react/context/ApolloProvider.d.cts +7 -5
  215. package/__cjs/react/hooks/internal/__use.d.cts +3 -1
  216. package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.d.cts +1 -1
  217. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +28 -0
  218. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs.map +1 -0
  219. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.d.cts +3 -0
  220. package/__cjs/react/hooks/internal/wrapHook.cjs +26 -5
  221. package/__cjs/react/hooks/internal/wrapHook.cjs.map +1 -1
  222. package/__cjs/react/hooks/internal/wrapHook.d.cts +7 -5
  223. package/__cjs/react/hooks/useApolloClient.cjs +2 -2
  224. package/__cjs/react/hooks/useApolloClient.cjs.map +1 -1
  225. package/__cjs/react/hooks/useApolloClient.d.cts +2 -2
  226. package/__cjs/react/hooks/useBackgroundQuery.cjs +2 -2
  227. package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
  228. package/__cjs/react/hooks/useBackgroundQuery.d.cts +143 -46
  229. package/__cjs/react/hooks/useFragment.cjs.map +1 -1
  230. package/__cjs/react/hooks/useFragment.d.cts +51 -26
  231. package/__cjs/react/hooks/useLazyQuery.cjs +31 -32
  232. package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
  233. package/__cjs/react/hooks/useLazyQuery.d.cts +278 -276
  234. package/__cjs/react/hooks/useLoadableQuery.cjs +21 -2
  235. package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -1
  236. package/__cjs/react/hooks/useLoadableQuery.d.cts +106 -34
  237. package/__cjs/react/hooks/useMutation.cjs +14 -21
  238. package/__cjs/react/hooks/useMutation.cjs.map +1 -1
  239. package/__cjs/react/hooks/useMutation.d.cts +198 -4
  240. package/__cjs/react/hooks/useQuery.cjs +87 -206
  241. package/__cjs/react/hooks/useQuery.cjs.map +1 -1
  242. package/__cjs/react/hooks/useQuery.d.cts +274 -4
  243. package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -1
  244. package/__cjs/react/hooks/useQueryRefHandlers.d.cts +23 -22
  245. package/__cjs/react/hooks/useReactiveVar.cjs.map +1 -1
  246. package/__cjs/react/hooks/useReactiveVar.d.cts +1 -1
  247. package/__cjs/react/hooks/useReadQuery.cjs.map +1 -1
  248. package/__cjs/react/hooks/useReadQuery.d.cts +27 -25
  249. package/__cjs/react/hooks/useSubscription.cjs +9 -60
  250. package/__cjs/react/hooks/useSubscription.cjs.map +1 -1
  251. package/__cjs/react/hooks/useSubscription.d.cts +94 -3
  252. package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
  253. package/__cjs/react/hooks/useSuspenseFragment.d.cts +40 -38
  254. package/__cjs/react/hooks/useSuspenseQuery.cjs +7 -32
  255. package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
  256. package/__cjs/react/hooks/useSuspenseQuery.d.cts +199 -38
  257. package/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
  258. package/__cjs/react/index.cjs +35 -11
  259. package/__cjs/react/index.cjs.map +1 -1
  260. package/__cjs/react/index.d.cts +21 -6
  261. package/__cjs/react/index.react-server.cjs +1 -5
  262. package/__cjs/react/index.react-server.cjs.map +1 -1
  263. package/__cjs/react/index.react-server.d.cts +0 -1
  264. package/__cjs/react/internal/cache/FragmentReference.cjs.map +1 -1
  265. package/__cjs/react/internal/cache/FragmentReference.d.cts +3 -3
  266. package/__cjs/react/internal/cache/QueryReference.cjs +3 -14
  267. package/__cjs/react/internal/cache/QueryReference.cjs.map +1 -1
  268. package/__cjs/react/internal/cache/QueryReference.d.cts +7 -7
  269. package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -1
  270. package/__cjs/react/internal/cache/SuspenseCache.d.cts +3 -3
  271. package/__cjs/react/internal/cache/getSuspenseCache.cjs.map +1 -1
  272. package/__cjs/react/internal/cache/getSuspenseCache.d.cts +4 -4
  273. package/__cjs/react/internal/index.cjs +3 -1
  274. package/__cjs/react/internal/index.cjs.map +1 -1
  275. package/__cjs/react/internal/index.d.cts +2 -0
  276. package/__cjs/react/internal/types.d.cts +9 -0
  277. package/__cjs/react/query-preloader/createQueryPreloader.cjs +1 -0
  278. package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
  279. package/__cjs/react/query-preloader/createQueryPreloader.d.cts +6 -45
  280. package/__cjs/react/ssr/getDataFromTree.cjs +24 -30
  281. package/__cjs/react/ssr/getDataFromTree.cjs.map +1 -1
  282. package/__cjs/react/ssr/getDataFromTree.d.cts +12 -1
  283. package/__cjs/react/ssr/index.cjs +3 -3
  284. package/__cjs/react/ssr/index.cjs.map +1 -1
  285. package/__cjs/react/ssr/index.d.cts +1 -1
  286. package/__cjs/react/ssr/prerenderStatic.cjs +151 -0
  287. package/__cjs/react/ssr/prerenderStatic.cjs.map +1 -0
  288. package/__cjs/react/ssr/prerenderStatic.d.cts +122 -0
  289. package/__cjs/react/ssr/renderToStringWithData.cjs +11 -5
  290. package/__cjs/react/ssr/renderToStringWithData.cjs.map +1 -1
  291. package/__cjs/react/ssr/renderToStringWithData.d.cts +5 -0
  292. package/__cjs/react/ssr/useSSRQuery.cjs +60 -0
  293. package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -0
  294. package/__cjs/react/ssr/useSSRQuery.d.cts +5 -0
  295. package/__cjs/{utilities/types/TODO.cjs → react/types/deprecated.cjs} +1 -1
  296. package/__cjs/react/types/deprecated.cjs.map +1 -0
  297. package/__cjs/react/types/deprecated.d.cts +75 -0
  298. package/__cjs/react/types/types.documentation.d.cts +6 -34
  299. package/__cjs/testing/core/index.cjs +6 -3
  300. package/__cjs/testing/core/index.cjs.map +1 -1
  301. package/__cjs/testing/core/index.d.cts +3 -3
  302. package/__cjs/testing/core/mocking/mockClient.cjs +3 -4
  303. package/__cjs/testing/core/mocking/mockClient.cjs.map +1 -1
  304. package/__cjs/testing/core/mocking/mockClient.d.cts +2 -3
  305. package/__cjs/testing/core/mocking/mockLink.cjs +118 -112
  306. package/__cjs/testing/core/mocking/mockLink.cjs.map +1 -1
  307. package/__cjs/testing/core/mocking/mockLink.d.cts +26 -7
  308. package/__cjs/testing/experimental/createSchemaFetch.cjs +4 -4
  309. package/__cjs/testing/experimental/createSchemaFetch.cjs.map +1 -1
  310. package/__cjs/testing/experimental/createTestSchema.cjs.map +1 -1
  311. package/__cjs/testing/experimental/createTestSchema.d.cts +1 -1
  312. package/__cjs/testing/index.cjs +13 -2
  313. package/__cjs/testing/index.cjs.map +1 -1
  314. package/__cjs/testing/index.d.cts +2 -1
  315. package/__cjs/testing/internal/disposables/spyOnConsole.cjs +0 -1
  316. package/__cjs/testing/internal/disposables/spyOnConsole.cjs.map +1 -1
  317. package/__cjs/testing/internal/disposables/spyOnConsole.d.cts +0 -1
  318. package/__cjs/testing/internal/disposables/withProdMode.d.cts +1 -1
  319. package/__cjs/testing/internal/incremental.cjs.map +1 -1
  320. package/__cjs/testing/internal/incremental.d.cts +4 -3
  321. package/__cjs/testing/internal/index.cjs +14 -8
  322. package/__cjs/testing/internal/index.cjs.map +1 -1
  323. package/__cjs/testing/internal/index.d.cts +4 -3
  324. package/__cjs/testing/internal/renderHelpers.cjs.map +1 -1
  325. package/__cjs/testing/internal/renderHelpers.d.cts +3 -3
  326. package/__cjs/testing/internal/resetApolloContext.cjs +24 -0
  327. package/__cjs/testing/internal/resetApolloContext.cjs.map +1 -0
  328. package/__cjs/testing/internal/resetApolloContext.d.cts +10 -0
  329. package/__cjs/testing/internal/scenarios/index.cjs +9 -7
  330. package/__cjs/testing/internal/scenarios/index.cjs.map +1 -1
  331. package/__cjs/testing/internal/scenarios/index.d.cts +14 -5
  332. package/__cjs/testing/matchers/arrayWithLength.cjs +15 -0
  333. package/__cjs/testing/matchers/arrayWithLength.cjs.map +1 -0
  334. package/__cjs/testing/matchers/arrayWithLength.d.cts +3 -0
  335. package/__cjs/testing/matchers/index.cjs +6 -18
  336. package/__cjs/testing/matchers/index.cjs.map +1 -1
  337. package/__cjs/testing/matchers/toComplete.cjs.map +1 -1
  338. package/__cjs/testing/matchers/toEmitAnything.cjs.map +1 -1
  339. package/__cjs/testing/matchers/toEmitError.cjs.map +1 -1
  340. package/__cjs/testing/matchers/toEmitNext.cjs.map +1 -1
  341. package/__cjs/testing/matchers/{toEmitFetchResult.cjs → toEmitTypedValue.cjs} +9 -7
  342. package/__cjs/testing/matchers/toEmitTypedValue.cjs.map +1 -0
  343. package/__cjs/testing/matchers/{toEmitValueStrict.d.cts → toEmitTypedValue.d.cts} +2 -2
  344. package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.cjs +2 -2
  345. package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.cjs.map +1 -1
  346. package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.d.cts +1 -1
  347. package/__cjs/testing/matchers/toMatchDocument.cjs.map +1 -1
  348. package/__cjs/testing/matchers/toMatchDocument.d.cts +1 -1
  349. package/__cjs/testing/matchers/toStrictEqualTyped.cjs +26 -0
  350. package/__cjs/testing/matchers/toStrictEqualTyped.cjs.map +1 -0
  351. package/__cjs/testing/matchers/toStrictEqualTyped.d.cts +3 -0
  352. package/__cjs/testing/matchers/utils/getSerializableProperties.cjs +23 -0
  353. package/__cjs/testing/matchers/utils/getSerializableProperties.cjs.map +1 -0
  354. package/__cjs/testing/matchers/utils/getSerializableProperties.d.cts +2 -0
  355. package/__cjs/testing/react/MockedProvider.cjs +11 -7
  356. package/__cjs/testing/react/MockedProvider.cjs.map +1 -1
  357. package/__cjs/testing/react/MockedProvider.d.cts +8 -6
  358. package/__cjs/utilities/caching/sizes.cjs +2 -2
  359. package/__cjs/utilities/caching/sizes.cjs.map +1 -1
  360. package/__cjs/utilities/caching/sizes.d.cts +2 -20
  361. package/__cjs/utilities/common/errorHandling.d.cts +1 -1
  362. package/__cjs/utilities/common/mergeOptions.cjs.map +1 -1
  363. package/__cjs/utilities/common/mergeOptions.d.cts +1 -1
  364. package/__cjs/utilities/graphql/getFromAST.cjs +15 -6
  365. package/__cjs/utilities/graphql/getFromAST.cjs.map +1 -1
  366. package/__cjs/utilities/graphql/getFromAST.d.cts +2 -2
  367. package/__cjs/utilities/graphql/operations.cjs.map +1 -1
  368. package/__cjs/utilities/graphql/operations.d.cts +1 -1
  369. package/__cjs/utilities/graphql/storeUtils.cjs +1 -1
  370. package/__cjs/utilities/graphql/transform.cjs +2 -2
  371. package/__cjs/utilities/index.cjs +39 -19
  372. package/__cjs/utilities/index.cjs.map +1 -1
  373. package/__cjs/utilities/index.d.cts +16 -15
  374. package/__cjs/utilities/internal/getMemoryInternals.cjs +0 -2
  375. package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
  376. package/__cjs/utilities/internal/getMemoryInternals.d.cts +1 -2
  377. package/__cjs/utilities/internal/index.cjs +3 -1
  378. package/__cjs/utilities/internal/index.cjs.map +1 -1
  379. package/__cjs/utilities/internal/index.d.cts +1 -0
  380. package/__cjs/utilities/internal/index.production.cjs +1 -0
  381. package/__cjs/utilities/internal/index.production.cjs.map +1 -1
  382. package/__cjs/utilities/internal/toQueryResult.cjs +13 -0
  383. package/__cjs/utilities/internal/toQueryResult.cjs.map +1 -0
  384. package/__cjs/utilities/internal/toQueryResult.d.cts +3 -0
  385. package/__cjs/utilities/invariant/index.development.cjs +1 -0
  386. package/__cjs/utilities/invariant/index.development.cjs.map +1 -1
  387. package/__cjs/utilities/subscriptions/relay/index.cjs +2 -2
  388. package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -1
  389. package/__cjs/utilities/subscriptions/relay/index.d.cts +1 -1
  390. package/__cjs/utilities/types/NoInfer.d.cts +1 -1
  391. package/__cjs/utilities/types/{OnlyRequiredProperties.cjs → VariablesOption.cjs} +1 -1
  392. package/__cjs/utilities/types/VariablesOption.cjs.map +1 -0
  393. package/__cjs/utilities/types/VariablesOption.d.cts +25 -0
  394. package/__cjs/version.cjs +1 -1
  395. package/__cjs/version.cjs.map +1 -1
  396. package/__cjs/version.d.cts +1 -1
  397. package/cache/core/cache.d.ts +18 -18
  398. package/cache/core/cache.js +1 -1
  399. package/cache/core/cache.js.map +1 -1
  400. package/cache/core/types/Cache.d.ts +9 -16
  401. package/cache/core/types/Cache.js.map +1 -1
  402. package/cache/core/types/DataProxy.d.ts +8 -23
  403. package/cache/core/types/common.js +1 -0
  404. package/cache/core/types/common.js.map +1 -1
  405. package/cache/index.d.ts +3 -3
  406. package/cache/index.js +1 -1
  407. package/cache/index.js.map +1 -1
  408. package/cache/inmemory/entityStore.d.ts +3 -2
  409. package/cache/inmemory/entityStore.js +9 -8
  410. package/cache/inmemory/entityStore.js.map +1 -1
  411. package/cache/inmemory/fragmentRegistry.js +1 -1
  412. package/cache/inmemory/fragmentRegistry.js.map +1 -1
  413. package/cache/inmemory/helpers.d.ts +0 -1
  414. package/cache/inmemory/helpers.js +0 -7
  415. package/cache/inmemory/helpers.js.map +1 -1
  416. package/cache/inmemory/inMemoryCache.d.ts +8 -9
  417. package/cache/inmemory/inMemoryCache.js +4 -12
  418. package/cache/inmemory/inMemoryCache.js.map +1 -1
  419. package/cache/inmemory/key-extractor.js +1 -1
  420. package/cache/inmemory/policies.d.ts +1 -1
  421. package/cache/inmemory/policies.js +9 -9
  422. package/cache/inmemory/policies.js.map +1 -1
  423. package/cache/inmemory/reactiveVars.d.ts +7 -7
  424. package/cache/inmemory/reactiveVars.js.map +1 -1
  425. package/cache/inmemory/readFromStore.d.ts +1 -6
  426. package/cache/inmemory/readFromStore.js +14 -56
  427. package/cache/inmemory/readFromStore.js.map +1 -1
  428. package/cache/inmemory/types.d.ts +3 -17
  429. package/cache/inmemory/writeToStore.d.ts +2 -2
  430. package/cache/inmemory/writeToStore.js +8 -8
  431. package/cache/inmemory/writeToStore.js.map +1 -1
  432. package/config/jest/areCombinedGraphQLErrorsEqual.js +6 -4
  433. package/config/jest/areCombinedGraphQLErrorsEqual.js.map +1 -1
  434. package/config/jest/areCombinedProtocolErrorsEqual.js +3 -3
  435. package/config/jest/areCombinedProtocolErrorsEqual.js.map +1 -1
  436. package/config/jest/areMissingFieldErrorsEqual.js +2 -3
  437. package/config/jest/areMissingFieldErrorsEqual.js.map +1 -1
  438. package/config/jest/areServerErrorsEqual.d.ts +3 -0
  439. package/config/jest/areServerErrorsEqual.js +18 -0
  440. package/config/jest/areServerErrorsEqual.js.map +1 -0
  441. package/config/jest/resolver.js +12 -1
  442. package/config/jest/resolver.js.map +1 -1
  443. package/config/jest/setup.js +19 -2
  444. package/config/jest/setup.js.map +1 -1
  445. package/core/ApolloClient.d.ts +35 -25
  446. package/core/ApolloClient.js +35 -18
  447. package/core/ApolloClient.js.map +1 -1
  448. package/core/LocalState.d.ts +6 -6
  449. package/core/LocalState.js +2 -2
  450. package/core/LocalState.js.map +1 -1
  451. package/core/ObservableQuery.d.ts +156 -17
  452. package/core/ObservableQuery.js +267 -102
  453. package/core/ObservableQuery.js.map +1 -1
  454. package/core/QueryInfo.d.ts +2 -11
  455. package/core/QueryInfo.js +12 -86
  456. package/core/QueryInfo.js.map +1 -1
  457. package/core/QueryManager.d.ts +32 -21
  458. package/core/QueryManager.js +151 -107
  459. package/core/QueryManager.js.map +1 -1
  460. package/core/index.d.ts +12 -11
  461. package/core/index.js +9 -6
  462. package/core/index.js.map +1 -1
  463. package/core/types.d.ts +60 -7
  464. package/core/watchQueryOptions.d.ts +32 -119
  465. package/errors/CombinedGraphQLErrors.d.ts +21 -2
  466. package/errors/CombinedGraphQLErrors.js +30 -11
  467. package/errors/CombinedGraphQLErrors.js.map +1 -1
  468. package/errors/CombinedProtocolErrors.d.ts +9 -0
  469. package/errors/CombinedProtocolErrors.js +13 -6
  470. package/errors/CombinedProtocolErrors.js.map +1 -1
  471. package/errors/LinkError.d.ts +14 -0
  472. package/errors/LinkError.js +16 -0
  473. package/errors/LinkError.js.map +1 -0
  474. package/errors/ServerError.d.ts +2 -0
  475. package/errors/ServerError.js +6 -0
  476. package/errors/ServerError.js.map +1 -1
  477. package/errors/ServerParseError.d.ts +2 -0
  478. package/errors/ServerParseError.js +6 -0
  479. package/errors/ServerParseError.js.map +1 -1
  480. package/errors/UnconventionalError.d.ts +2 -0
  481. package/errors/UnconventionalError.js +6 -0
  482. package/errors/UnconventionalError.js.map +1 -1
  483. package/errors/index.d.ts +2 -3
  484. package/errors/index.js +13 -1
  485. package/errors/index.js.map +1 -1
  486. package/errors/isErrorLike.d.ts +3 -0
  487. package/errors/isErrorLike.js +9 -0
  488. package/errors/isErrorLike.js.map +1 -0
  489. package/errors/utils.d.ts +3 -0
  490. package/errors/utils.js +14 -0
  491. package/errors/utils.js.map +1 -0
  492. package/invariantErrorCodes.js +131 -138
  493. package/legacyEntryPoints/testing/internal/index.d.ts +1 -0
  494. package/legacyEntryPoints/testing/internal/index.js +1 -0
  495. package/legacyEntryPoints/testing/internal/internal.cjs +1 -0
  496. package/legacyEntryPoints/testing/internal/internal.d.cts +1 -0
  497. package/link/batch/index.d.ts +2 -1
  498. package/link/batch/index.js +1 -1
  499. package/link/batch/index.js.map +1 -1
  500. package/link/batch-http/index.d.ts +1 -1
  501. package/link/batch-http/index.js +1 -1
  502. package/link/batch-http/index.js.map +1 -1
  503. package/link/context/index.d.ts +1 -1
  504. package/link/context/index.js.map +1 -1
  505. package/link/core/ApolloLink.d.ts +1 -3
  506. package/link/core/ApolloLink.js +2 -20
  507. package/link/core/ApolloLink.js.map +1 -1
  508. package/link/core/index.d.ts +1 -1
  509. package/link/core/index.js.map +1 -1
  510. package/link/core/types.d.ts +1 -1
  511. package/link/error/index.d.ts +4 -15
  512. package/link/error/index.js +14 -29
  513. package/link/error/index.js.map +1 -1
  514. package/link/http/checkFetcher.js +1 -1
  515. package/link/http/createHttpLink.js +1 -1
  516. package/link/http/parseAndCheckHttpResponse.js +1 -1
  517. package/link/http/serializeFetchParameter.js +1 -1
  518. package/link/persisted-queries/index.d.ts +2 -2
  519. package/link/persisted-queries/index.js +3 -3
  520. package/link/persisted-queries/index.js.map +1 -1
  521. package/link/remove-typename/removeTypenameFromVariables.js.map +1 -1
  522. package/link/retry/index.d.ts +1 -1
  523. package/link/retry/index.js +1 -1
  524. package/link/retry/index.js.map +1 -1
  525. package/link/subscriptions/index.js +3 -1
  526. package/link/subscriptions/index.js.map +1 -1
  527. package/link/utils/validateOperation.js +1 -1
  528. package/masking/maskDefinition.d.ts +1 -1
  529. package/masking/maskDefinition.js +2 -2
  530. package/masking/maskDefinition.js.map +1 -1
  531. package/masking/maskFragment.d.ts +2 -2
  532. package/masking/maskFragment.js +2 -2
  533. package/masking/maskFragment.js.map +1 -1
  534. package/masking/maskOperation.d.ts +2 -2
  535. package/masking/maskOperation.js +1 -1
  536. package/masking/maskOperation.js.map +1 -1
  537. package/masking/utils.js +1 -1
  538. package/package.json +20 -40
  539. package/react/context/ApolloConsumer.d.ts +7 -4
  540. package/react/context/ApolloConsumer.js +1 -1
  541. package/react/context/ApolloConsumer.js.map +1 -1
  542. package/react/context/ApolloContext.d.ts +4 -4
  543. package/react/context/ApolloContext.js +1 -1
  544. package/react/context/ApolloContext.js.map +1 -1
  545. package/react/context/ApolloProvider.d.ts +7 -5
  546. package/react/context/ApolloProvider.js +1 -1
  547. package/react/context/ApolloProvider.js.map +1 -1
  548. package/react/hooks/internal/validateSuspenseHookOptions.d.ts +3 -0
  549. package/react/hooks/internal/validateSuspenseHookOptions.js +22 -0
  550. package/react/hooks/internal/validateSuspenseHookOptions.js.map +1 -0
  551. package/react/hooks/internal/wrapHook.d.ts +7 -5
  552. package/react/hooks/internal/wrapHook.js +24 -5
  553. package/react/hooks/internal/wrapHook.js.map +1 -1
  554. package/react/hooks/useApolloClient.d.ts +2 -2
  555. package/react/hooks/useApolloClient.js +1 -1
  556. package/react/hooks/useApolloClient.js.map +1 -1
  557. package/react/hooks/useBackgroundQuery.d.ts +143 -46
  558. package/react/hooks/useBackgroundQuery.js +2 -2
  559. package/react/hooks/useBackgroundQuery.js.map +1 -1
  560. package/react/hooks/useFragment.d.ts +51 -26
  561. package/react/hooks/useFragment.js.map +1 -1
  562. package/react/hooks/useLazyQuery.d.ts +278 -276
  563. package/react/hooks/useLazyQuery.js +30 -31
  564. package/react/hooks/useLazyQuery.js.map +1 -1
  565. package/react/hooks/useLoadableQuery.d.ts +106 -34
  566. package/react/hooks/useLoadableQuery.js +21 -2
  567. package/react/hooks/useLoadableQuery.js.map +1 -1
  568. package/react/hooks/useMutation.d.ts +198 -4
  569. package/react/hooks/useMutation.js +14 -21
  570. package/react/hooks/useMutation.js.map +1 -1
  571. package/react/hooks/useQuery.d.ts +274 -4
  572. package/react/hooks/useQuery.js +86 -205
  573. package/react/hooks/useQuery.js.map +1 -1
  574. package/react/hooks/useQueryRefHandlers.d.ts +23 -22
  575. package/react/hooks/useQueryRefHandlers.js.map +1 -1
  576. package/react/hooks/useReactiveVar.d.ts +1 -1
  577. package/react/hooks/useReactiveVar.js.map +1 -1
  578. package/react/hooks/useReadQuery.d.ts +27 -25
  579. package/react/hooks/useReadQuery.js.map +1 -1
  580. package/react/hooks/useSubscription.d.ts +94 -9
  581. package/react/hooks/useSubscription.js +8 -56
  582. package/react/hooks/useSubscription.js.map +1 -1
  583. package/react/hooks/useSuspenseFragment.d.ts +40 -38
  584. package/react/hooks/useSuspenseFragment.js.map +1 -1
  585. package/react/hooks/useSuspenseQuery.d.ts +199 -38
  586. package/react/hooks/useSuspenseQuery.js +5 -26
  587. package/react/hooks/useSuspenseQuery.js.map +1 -1
  588. package/react/hooks/useSyncExternalStore.js +1 -1
  589. package/react/index.d.ts +21 -6
  590. package/react/index.js +17 -3
  591. package/react/index.js.map +1 -1
  592. package/react/index.react-server.d.ts +0 -1
  593. package/react/index.react-server.js +0 -1
  594. package/react/index.react-server.js.map +1 -1
  595. package/react/internal/cache/FragmentReference.d.ts +3 -3
  596. package/react/internal/cache/FragmentReference.js.map +1 -1
  597. package/react/internal/cache/QueryReference.d.ts +5 -5
  598. package/react/internal/cache/QueryReference.js +3 -14
  599. package/react/internal/cache/QueryReference.js.map +1 -1
  600. package/react/internal/cache/SuspenseCache.d.ts +3 -3
  601. package/react/internal/cache/SuspenseCache.js.map +1 -1
  602. package/react/internal/cache/getSuspenseCache.d.ts +3 -3
  603. package/react/internal/cache/getSuspenseCache.js.map +1 -1
  604. package/react/internal/index.d.ts +2 -0
  605. package/react/internal/index.js +2 -1
  606. package/react/internal/index.js.map +1 -1
  607. package/react/internal/types.d.ts +9 -0
  608. package/react/query-preloader/createQueryPreloader.d.ts +6 -45
  609. package/react/query-preloader/createQueryPreloader.js +1 -0
  610. package/react/query-preloader/createQueryPreloader.js.map +1 -1
  611. package/react/ssr/getDataFromTree.d.ts +12 -1
  612. package/react/ssr/getDataFromTree.js +24 -29
  613. package/react/ssr/getDataFromTree.js.map +1 -1
  614. package/react/ssr/index.d.ts +1 -1
  615. package/react/ssr/index.js +1 -1
  616. package/react/ssr/index.js.map +1 -1
  617. package/react/ssr/prerenderStatic.d.ts +122 -0
  618. package/react/ssr/prerenderStatic.js +147 -0
  619. package/react/ssr/prerenderStatic.js.map +1 -0
  620. package/react/ssr/renderToStringWithData.d.ts +5 -0
  621. package/react/ssr/renderToStringWithData.js +11 -5
  622. package/react/ssr/renderToStringWithData.js.map +1 -1
  623. package/react/ssr/useSSRQuery.d.ts +5 -0
  624. package/react/ssr/useSSRQuery.js +56 -0
  625. package/react/ssr/useSSRQuery.js.map +1 -0
  626. package/react/types/deprecated.d.ts +75 -0
  627. package/react/types/deprecated.js +2 -0
  628. package/react/types/deprecated.js.map +1 -0
  629. package/react/types/types.documentation.d.ts +6 -34
  630. package/testing/core/index.d.ts +3 -3
  631. package/testing/core/index.js +2 -2
  632. package/testing/core/index.js.map +1 -1
  633. package/testing/core/mocking/mockClient.d.ts +2 -3
  634. package/testing/core/mocking/mockClient.js +2 -3
  635. package/testing/core/mocking/mockClient.js.map +1 -1
  636. package/testing/core/mocking/mockLink.d.ts +26 -7
  637. package/testing/core/mocking/mockLink.js +117 -113
  638. package/testing/core/mocking/mockLink.js.map +1 -1
  639. package/testing/experimental/createSchemaFetch.js +2 -2
  640. package/testing/experimental/createSchemaFetch.js.map +1 -1
  641. package/testing/experimental/createTestSchema.d.ts +1 -1
  642. package/testing/experimental/createTestSchema.js.map +1 -1
  643. package/testing/index.d.ts +2 -1
  644. package/testing/index.js +1 -1
  645. package/testing/index.js.map +1 -1
  646. package/testing/internal/disposables/spyOnConsole.d.ts +0 -1
  647. package/testing/internal/disposables/spyOnConsole.js +0 -1
  648. package/testing/internal/disposables/spyOnConsole.js.map +1 -1
  649. package/testing/internal/incremental.d.ts +1 -1
  650. package/testing/internal/incremental.js.map +1 -1
  651. package/testing/internal/index.d.ts +4 -3
  652. package/testing/internal/index.js +4 -3
  653. package/testing/internal/index.js.map +1 -1
  654. package/testing/internal/renderHelpers.d.ts +3 -3
  655. package/testing/internal/renderHelpers.js.map +1 -1
  656. package/testing/internal/resetApolloContext.d.ts +10 -0
  657. package/testing/internal/resetApolloContext.js +20 -0
  658. package/testing/internal/resetApolloContext.js.map +1 -0
  659. package/testing/internal/scenarios/index.d.ts +6 -8
  660. package/testing/internal/scenarios/index.js +4 -2
  661. package/testing/internal/scenarios/index.js.map +1 -1
  662. package/testing/matchers/arrayWithLength.d.ts +3 -0
  663. package/testing/matchers/arrayWithLength.js +11 -0
  664. package/testing/matchers/arrayWithLength.js.map +1 -0
  665. package/testing/matchers/index.js +6 -18
  666. package/testing/matchers/index.js.map +1 -1
  667. package/testing/matchers/toComplete.js.map +1 -1
  668. package/testing/matchers/toEmitAnything.js.map +1 -1
  669. package/testing/matchers/toEmitError.js.map +1 -1
  670. package/testing/matchers/toEmitNext.js.map +1 -1
  671. package/testing/matchers/{toEmitValueStrict.d.ts → toEmitTypedValue.d.ts} +2 -2
  672. package/testing/matchers/{toEmitFetchResult.js → toEmitTypedValue.js} +7 -5
  673. package/testing/matchers/toEmitTypedValue.js.map +1 -0
  674. package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts +1 -1
  675. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js +1 -1
  676. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +1 -1
  677. package/testing/matchers/toMatchDocument.d.ts +1 -1
  678. package/testing/matchers/toMatchDocument.js.map +1 -1
  679. package/testing/matchers/toStrictEqualTyped.d.ts +3 -0
  680. package/testing/matchers/toStrictEqualTyped.js +22 -0
  681. package/testing/matchers/toStrictEqualTyped.js.map +1 -0
  682. package/testing/matchers/utils/getSerializableProperties.d.ts +2 -0
  683. package/testing/matchers/utils/getSerializableProperties.js +20 -0
  684. package/testing/matchers/utils/getSerializableProperties.js.map +1 -0
  685. package/testing/react/MockedProvider.d.ts +8 -6
  686. package/testing/react/MockedProvider.js +8 -4
  687. package/testing/react/MockedProvider.js.map +1 -1
  688. package/utilities/caching/sizes.d.ts +2 -20
  689. package/utilities/caching/sizes.js +2 -2
  690. package/utilities/caching/sizes.js.map +1 -1
  691. package/utilities/common/mergeOptions.d.ts +1 -1
  692. package/utilities/common/mergeOptions.js.map +1 -1
  693. package/utilities/graphql/getFromAST.d.ts +2 -2
  694. package/utilities/graphql/getFromAST.js +15 -6
  695. package/utilities/graphql/getFromAST.js.map +1 -1
  696. package/utilities/graphql/operations.d.ts +1 -1
  697. package/utilities/graphql/operations.js.map +1 -1
  698. package/utilities/graphql/storeUtils.js +1 -1
  699. package/utilities/graphql/transform.js +2 -2
  700. package/utilities/index.d.ts +16 -15
  701. package/utilities/index.js +12 -12
  702. package/utilities/index.js.map +1 -1
  703. package/utilities/internal/getMemoryInternals.d.ts +0 -1
  704. package/utilities/internal/getMemoryInternals.js +0 -2
  705. package/utilities/internal/getMemoryInternals.js.map +1 -1
  706. package/utilities/internal/index.d.ts +1 -0
  707. package/utilities/internal/index.js +2 -1
  708. package/utilities/internal/index.js.map +1 -1
  709. package/utilities/internal/index.production.js +1 -0
  710. package/utilities/internal/index.production.js.map +1 -1
  711. package/utilities/internal/toQueryResult.d.ts +3 -0
  712. package/utilities/internal/toQueryResult.js +10 -0
  713. package/utilities/internal/toQueryResult.js.map +1 -0
  714. package/utilities/invariant/index.development.js +1 -0
  715. package/utilities/invariant/index.development.js.map +1 -1
  716. package/utilities/subscriptions/relay/index.d.ts +1 -1
  717. package/utilities/subscriptions/relay/index.js +1 -1
  718. package/utilities/subscriptions/relay/index.js.map +1 -1
  719. package/utilities/types/NoInfer.d.ts +1 -1
  720. package/utilities/types/VariablesOption.d.ts +25 -0
  721. package/utilities/types/VariablesOption.js +2 -0
  722. package/utilities/types/VariablesOption.js.map +1 -0
  723. package/version.d.ts +1 -1
  724. package/version.js +1 -1
  725. package/version.js.map +1 -1
  726. package/__cjs/cache/inmemory/object-canon.cjs +0 -180
  727. package/__cjs/cache/inmemory/object-canon.cjs.map +0 -1
  728. package/__cjs/cache/inmemory/object-canon.d.cts +0 -12
  729. package/__cjs/index.cjs +0 -8
  730. package/__cjs/index.cjs.map +0 -1
  731. package/__cjs/index.d.cts +0 -3
  732. package/__cjs/react/context/index.cjs +0 -10
  733. package/__cjs/react/context/index.cjs.map +0 -1
  734. package/__cjs/react/context/index.d.cts +0 -7
  735. package/__cjs/react/hooks/index.cjs +0 -27
  736. package/__cjs/react/hooks/index.cjs.map +0 -1
  737. package/__cjs/react/hooks/index.d.cts +0 -22
  738. package/__cjs/react/parser/index.cjs +0 -115
  739. package/__cjs/react/parser/index.cjs.map +0 -1
  740. package/__cjs/react/parser/index.d.cts +0 -18
  741. package/__cjs/react/ssr/RenderPromises.cjs +0 -104
  742. package/__cjs/react/ssr/RenderPromises.cjs.map +0 -1
  743. package/__cjs/react/ssr/RenderPromises.d.cts +0 -22
  744. package/__cjs/react/types/types.d.cts +0 -689
  745. package/__cjs/testing/matchers/toEmitApolloQueryResult.cjs +0 -40
  746. package/__cjs/testing/matchers/toEmitApolloQueryResult.cjs.map +0 -1
  747. package/__cjs/testing/matchers/toEmitApolloQueryResult.d.cts +0 -8
  748. package/__cjs/testing/matchers/toEmitFetchResult.cjs.map +0 -1
  749. package/__cjs/testing/matchers/toEmitFetchResult.d.cts +0 -8
  750. package/__cjs/testing/matchers/toEmitMatchedValue.cjs +0 -40
  751. package/__cjs/testing/matchers/toEmitMatchedValue.cjs.map +0 -1
  752. package/__cjs/testing/matchers/toEmitMatchedValue.d.cts +0 -7
  753. package/__cjs/testing/matchers/toEmitValue.cjs +0 -41
  754. package/__cjs/testing/matchers/toEmitValue.cjs.map +0 -1
  755. package/__cjs/testing/matchers/toEmitValue.d.cts +0 -4
  756. package/__cjs/testing/matchers/toEmitValueStrict.cjs +0 -46
  757. package/__cjs/testing/matchers/toEmitValueStrict.cjs.map +0 -1
  758. package/__cjs/testing/matchers/toEqualApolloQueryResult.cjs +0 -24
  759. package/__cjs/testing/matchers/toEqualApolloQueryResult.cjs.map +0 -1
  760. package/__cjs/testing/matchers/toEqualApolloQueryResult.d.cts +0 -6
  761. package/__cjs/testing/matchers/toEqualFetchResult.cjs +0 -24
  762. package/__cjs/testing/matchers/toEqualFetchResult.cjs.map +0 -1
  763. package/__cjs/testing/matchers/toEqualFetchResult.d.cts +0 -4
  764. package/__cjs/testing/matchers/toEqualLazyQueryResult.cjs +0 -40
  765. package/__cjs/testing/matchers/toEqualLazyQueryResult.cjs.map +0 -1
  766. package/__cjs/testing/matchers/toEqualLazyQueryResult.d.cts +0 -10
  767. package/__cjs/testing/matchers/toEqualQueryResult.cjs +0 -40
  768. package/__cjs/testing/matchers/toEqualQueryResult.cjs.map +0 -1
  769. package/__cjs/testing/matchers/toEqualQueryResult.d.cts +0 -9
  770. package/__cjs/utilities/types/OnlyRequiredProperties.cjs.map +0 -1
  771. package/__cjs/utilities/types/OnlyRequiredProperties.d.cts +0 -7
  772. package/__cjs/utilities/types/TODO.cjs.map +0 -1
  773. package/__cjs/utilities/types/TODO.d.cts +0 -3
  774. package/cache/inmemory/object-canon.d.ts +0 -12
  775. package/cache/inmemory/object-canon.js +0 -176
  776. package/cache/inmemory/object-canon.js.map +0 -1
  777. package/index.d.ts +0 -3
  778. package/index.js +0 -3
  779. package/index.js.map +0 -1
  780. package/legacyEntryPoints/react/context/context.cjs +0 -1
  781. package/legacyEntryPoints/react/context/context.d.cts +0 -1
  782. package/legacyEntryPoints/react/context/index.d.ts +0 -1
  783. package/legacyEntryPoints/react/context/index.js +0 -1
  784. package/legacyEntryPoints/react/hooks/hooks.cjs +0 -1
  785. package/legacyEntryPoints/react/hooks/hooks.d.cts +0 -1
  786. package/legacyEntryPoints/react/hooks/index.d.ts +0 -1
  787. package/legacyEntryPoints/react/hooks/index.js +0 -1
  788. package/legacyEntryPoints/react/parser/index.d.ts +0 -1
  789. package/legacyEntryPoints/react/parser/index.js +0 -1
  790. package/legacyEntryPoints/react/parser/parser.cjs +0 -1
  791. package/legacyEntryPoints/react/parser/parser.d.cts +0 -1
  792. package/react/context/index.d.ts +0 -7
  793. package/react/context/index.js +0 -4
  794. package/react/context/index.js.map +0 -1
  795. package/react/hooks/index.d.ts +0 -22
  796. package/react/hooks/index.js +0 -15
  797. package/react/hooks/index.js.map +0 -1
  798. package/react/parser/index.d.ts +0 -18
  799. package/react/parser/index.js +0 -109
  800. package/react/parser/index.js.map +0 -1
  801. package/react/ssr/RenderPromises.d.ts +0 -22
  802. package/react/ssr/RenderPromises.js +0 -100
  803. package/react/ssr/RenderPromises.js.map +0 -1
  804. package/react/types/types.d.ts +0 -689
  805. package/testing/matchers/toEmitApolloQueryResult.d.ts +0 -8
  806. package/testing/matchers/toEmitApolloQueryResult.js +0 -36
  807. package/testing/matchers/toEmitApolloQueryResult.js.map +0 -1
  808. package/testing/matchers/toEmitFetchResult.d.ts +0 -8
  809. package/testing/matchers/toEmitFetchResult.js.map +0 -1
  810. package/testing/matchers/toEmitMatchedValue.d.ts +0 -7
  811. package/testing/matchers/toEmitMatchedValue.js +0 -36
  812. package/testing/matchers/toEmitMatchedValue.js.map +0 -1
  813. package/testing/matchers/toEmitValue.d.ts +0 -4
  814. package/testing/matchers/toEmitValue.js +0 -37
  815. package/testing/matchers/toEmitValue.js.map +0 -1
  816. package/testing/matchers/toEmitValueStrict.js +0 -42
  817. package/testing/matchers/toEmitValueStrict.js.map +0 -1
  818. package/testing/matchers/toEqualApolloQueryResult.d.ts +0 -6
  819. package/testing/matchers/toEqualApolloQueryResult.js +0 -20
  820. package/testing/matchers/toEqualApolloQueryResult.js.map +0 -1
  821. package/testing/matchers/toEqualFetchResult.d.ts +0 -4
  822. package/testing/matchers/toEqualFetchResult.js +0 -20
  823. package/testing/matchers/toEqualFetchResult.js.map +0 -1
  824. package/testing/matchers/toEqualLazyQueryResult.d.ts +0 -10
  825. package/testing/matchers/toEqualLazyQueryResult.js +0 -36
  826. package/testing/matchers/toEqualLazyQueryResult.js.map +0 -1
  827. package/testing/matchers/toEqualQueryResult.d.ts +0 -9
  828. package/testing/matchers/toEqualQueryResult.js +0 -36
  829. package/testing/matchers/toEqualQueryResult.js.map +0 -1
  830. package/utilities/types/OnlyRequiredProperties.d.ts +0 -7
  831. package/utilities/types/OnlyRequiredProperties.js +0 -2
  832. package/utilities/types/OnlyRequiredProperties.js.map +0 -1
  833. package/utilities/types/TODO.d.ts +0 -3
  834. package/utilities/types/TODO.js +0 -2
  835. package/utilities/types/TODO.js.map +0 -1
  836. /package/__cjs/react/{types → internal}/types.cjs +0 -0
  837. /package/__cjs/react/{types → internal}/types.cjs.map +0 -0
  838. /package/react/{types → internal}/types.js +0 -0
  839. /package/react/{types → internal}/types.js.map +0 -0
package/core/index.d.ts CHANGED
@@ -4,18 +4,19 @@ export type { FetchMoreOptions } from "./ObservableQuery.js";
4
4
  export { ObservableQuery } from "./ObservableQuery.js";
5
5
  export type { ErrorPolicy, FetchMoreQueryOptions, FetchPolicy, MutationFetchPolicy, MutationOptions, QueryOptions, RefetchWritePolicy, SubscribeToMoreFunction, SubscribeToMoreOptions, SubscribeToMoreUpdateQueryFn, SubscriptionOptions, UpdateQueryMapFn, UpdateQueryOptions, WatchQueryFetchPolicy, WatchQueryOptions, } from "./watchQueryOptions.js";
6
6
  export { isNetworkRequestSettled, NetworkStatus } from "./networkStatus.js";
7
- export type * from "./types.js";
7
+ export type { ApolloQueryResult, DefaultContext, ErrorLike, InternalRefetchQueriesInclude, InternalRefetchQueriesMap, InternalRefetchQueriesOptions, InternalRefetchQueriesResult, InternalRefetchQueryDescriptor, MethodKeys, MutateResult, MutationQueryReducer, MutationQueryReducersMap, MutationUpdaterFn, MutationUpdaterFunction, OnQueryUpdated, OperationVariables, QueryListener, QueryResult, RefetchQueriesInclude, RefetchQueriesOptions, RefetchQueriesPromiseResults, RefetchQueriesResult, RefetchQueryDescriptor, Resolvers, SubscribeResult, TypedDocumentNode, } from "./types.js";
8
8
  export type { FragmentMatcher, Resolver } from "./LocalState.js";
9
- export { CombinedGraphQLErrors, CombinedProtocolErrors, ServerError, ServerParseError, UnconventionalError, } from "../errors/index.js";
10
- export type { DataProxy, FieldFunctionOptions, FieldMergeFunction, FieldPolicy, FieldReadFunction, InMemoryCacheConfig, PossibleTypesMap, ReactiveVar, Transaction, TypePolicies, TypePolicy, WatchFragmentOptions, WatchFragmentResult, } from "../cache/index.js";
11
- export type { Cache } from "../cache/index.js";
12
- export { ApolloCache, defaultDataIdFromObject, InMemoryCache, makeVar, MissingFieldError, } from "../cache/index.js";
13
- export type * from "../cache/inmemory/types.js";
14
- export * from "../link/core/index.js";
15
- export * from "../link/http/index.js";
16
- export type { DataMasking, FragmentType, Masked, MaskedDocumentNode, MaybeMasked, Unmasked, } from "../masking/index.js";
17
- export type { DocumentTransformCacheKey, Reference, StoreObject, } from "../utilities/index.js";
18
- export { DocumentTransform, isReference, makeReference, Observable, } from "../utilities/index.js";
9
+ export { CombinedGraphQLErrors, CombinedProtocolErrors, LinkError, ServerError, ServerParseError, UnconventionalError, } from "@apollo/client/errors";
10
+ export type { ApolloReducerConfig, Cache, DataProxy, DiffQueryAgainstStoreOptions, FieldFunctionOptions, FieldMergeFunction, FieldPolicy, FieldReadFunction, IdGetter, IdGetterObj, InMemoryCacheConfig, MergeInfo, MergeTree, NormalizedCache, NormalizedCacheObject, OptimisticStoreItem, PossibleTypesMap, ReactiveVar, ReadMergeModifyContext, ReadQueryOptions, StoreValue, Transaction, TypePolicies, TypePolicy, WatchFragmentOptions, WatchFragmentResult, } from "@apollo/client/cache";
11
+ export { ApolloCache, defaultDataIdFromObject, InMemoryCache, makeVar, MissingFieldError, } from "@apollo/client/cache";
12
+ export { ApolloLink, concat, empty, execute, from, split, } from "@apollo/client/link/core";
13
+ export type { ApolloPayloadResult, DocumentNode, ExecutionPatchIncrementalResult, ExecutionPatchInitialResult, ExecutionPatchResult, FetchResult, GraphQLRequest, IncrementalPayload, NextLink, Operation, Path, RequestHandler, SingleExecutionResult, } from "@apollo/client/link/core";
14
+ export { checkFetcher, createHttpLink, createSignalIfSupported, defaultPrinter, fallbackHttpConfig, HttpLink, parseAndCheckHttpResponse, rewriteURIForGET, selectHttpOptionsAndBody, selectHttpOptionsAndBodyInternal, selectURI, serializeFetchParameter, } from "@apollo/client/link/http";
15
+ export type { ClientParseError, HttpOptions, UriFunction, } from "@apollo/client/link/http";
16
+ export type { DataMasking, FragmentType, Masked, MaskedDocumentNode, MaybeMasked, Unmasked, } from "@apollo/client/masking";
17
+ export type { DocumentTransformCacheKey, Reference, StoreObject, } from "@apollo/client/utilities";
18
+ export { DocumentTransform, isReference, makeReference, Observable, } from "@apollo/client/utilities";
19
19
  export { setVerbosity as setLogVerbosity } from "@apollo/client/utilities/invariant";
20
20
  export { disableExperimentalFragmentVariables, disableFragmentWarnings, enableExperimentalFragmentVariables, gql, resetCaches, } from "graphql-tag";
21
+ export { version } from "../version.js";
21
22
  //# sourceMappingURL=index.d.ts.map
package/core/index.js CHANGED
@@ -2,12 +2,14 @@
2
2
  export { ApolloClient, mergeOptions } from "./ApolloClient.js";
3
3
  export { ObservableQuery } from "./ObservableQuery.js";
4
4
  export { isNetworkRequestSettled, NetworkStatus } from "./networkStatus.js";
5
- export { CombinedGraphQLErrors, CombinedProtocolErrors, ServerError, ServerParseError, UnconventionalError, } from "../errors/index.js";
6
- export { ApolloCache, defaultDataIdFromObject, InMemoryCache, makeVar, MissingFieldError, } from "../cache/index.js";
5
+ export { CombinedGraphQLErrors, CombinedProtocolErrors, LinkError, ServerError, ServerParseError, UnconventionalError, } from "@apollo/client/errors";
6
+ export { ApolloCache, defaultDataIdFromObject, InMemoryCache, makeVar, MissingFieldError, } from "@apollo/client/cache";
7
7
  /* Link */
8
- export * from "../link/core/index.js";
9
- export * from "../link/http/index.js";
10
- export { DocumentTransform, isReference, makeReference, Observable, } from "../utilities/index.js";
8
+ export { ApolloLink, concat, empty, execute, from, split, } from "@apollo/client/link/core";
9
+ export { checkFetcher, createHttpLink, createSignalIfSupported, defaultPrinter, fallbackHttpConfig, HttpLink, parseAndCheckHttpResponse, rewriteURIForGET, selectHttpOptionsAndBody,
10
+ // TODO remove: needed by @apollo/client/link/batch-http but not public
11
+ selectHttpOptionsAndBodyInternal, selectURI, serializeFetchParameter, } from "@apollo/client/link/http";
12
+ export { DocumentTransform, isReference, makeReference, Observable, } from "@apollo/client/utilities";
11
13
  /* Supporting */
12
14
  // The verbosity of invariant.{log,warn,error} can be controlled globally
13
15
  // by passing "log", "warn", "error", or "silent" to setVerbosity ("log" is the default).
@@ -25,5 +27,6 @@ export { setVerbosity as setLogVerbosity } from "@apollo/client/utilities/invari
25
27
  // workaround of pulling the extra properties off the `gql` function,
26
28
  // then re-exporting them separately, helps keeps bundlers happy without any
27
29
  // additional config changes.
28
- export { disableExperimentalFragmentVariables, disableFragmentWarnings, enableExperimentalFragmentVariables, gql, resetCaches } from "graphql-tag";
30
+ export { disableExperimentalFragmentVariables, disableFragmentWarnings, enableExperimentalFragmentVariables, gql, resetCaches, } from "graphql-tag";
31
+ export { version } from "../version.js";
29
32
  //# sourceMappingURL=index.js.map
package/core/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/core/index.ts"],"sourcesContent":["/* Core */\n\nexport type { ApolloClientOptions, DefaultOptions } from \"./ApolloClient.js\";\nexport { ApolloClient, mergeOptions } from \"./ApolloClient.js\";\nexport type { FetchMoreOptions } from \"./ObservableQuery.js\";\nexport { ObservableQuery } from \"./ObservableQuery.js\";\nexport type {\n ErrorPolicy,\n FetchMoreQueryOptions,\n FetchPolicy,\n MutationFetchPolicy,\n MutationOptions,\n QueryOptions,\n RefetchWritePolicy,\n SubscribeToMoreFunction,\n SubscribeToMoreOptions,\n SubscribeToMoreUpdateQueryFn,\n SubscriptionOptions,\n UpdateQueryMapFn,\n UpdateQueryOptions,\n WatchQueryFetchPolicy,\n WatchQueryOptions,\n} from \"./watchQueryOptions.js\";\nexport { isNetworkRequestSettled, NetworkStatus } from \"./networkStatus.js\";\nexport type * from \"./types.js\";\nexport type { FragmentMatcher, Resolver } from \"./LocalState.js\";\nexport {\n CombinedGraphQLErrors,\n CombinedProtocolErrors,\n ServerError,\n ServerParseError,\n UnconventionalError,\n} from \"../errors/index.js\";\n/* Cache */\n\nexport type {\n DataProxy,\n FieldFunctionOptions,\n FieldMergeFunction,\n FieldPolicy,\n FieldReadFunction,\n InMemoryCacheConfig,\n PossibleTypesMap,\n ReactiveVar,\n // All the exports (types) from ../cache, minus cacheSlot,\n // which we want to keep semi-private.\n Transaction,\n TypePolicies,\n TypePolicy,\n WatchFragmentOptions,\n WatchFragmentResult,\n} from \"../cache/index.js\";\nexport type { Cache } from \"../cache/index.js\";\nexport {\n ApolloCache,\n defaultDataIdFromObject,\n InMemoryCache,\n makeVar,\n MissingFieldError,\n} from \"../cache/index.js\";\n\nexport type * from \"../cache/inmemory/types.js\";\n\n/* Link */\n\nexport * from \"../link/core/index.js\";\nexport * from \"../link/http/index.js\";\n\n/* Masking */\nexport type {\n DataMasking,\n FragmentType,\n Masked,\n MaskedDocumentNode,\n MaybeMasked,\n Unmasked,\n} from \"../masking/index.js\";\n\n/* Utilities */\n\nexport type {\n DocumentTransformCacheKey,\n Reference,\n StoreObject,\n} from \"../utilities/index.js\";\nexport {\n DocumentTransform,\n isReference,\n makeReference,\n Observable,\n} from \"../utilities/index.js\";\n\n/* Supporting */\n\n// The verbosity of invariant.{log,warn,error} can be controlled globally\n// by passing \"log\", \"warn\", \"error\", or \"silent\" to setVerbosity (\"log\" is the default).\n// Note that all invariant.* logging is hidden in production.\nexport { setVerbosity as setLogVerbosity } from \"@apollo/client/utilities/invariant\";\n\n// Note that importing `gql` by itself, then destructuring\n// additional properties separately before exporting, is intentional.\n// Due to the way the `graphql-tag` library is setup, certain bundlers\n// can't find the properties added to the exported `gql` function without\n// additional guidance (e.g. Rollup - see\n// https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module).\n// Instead of having people that are using bundlers with `@apollo/client` add\n// extra bundler config to help `graphql-tag` exports be found (which would be\n// awkward since they aren't importing `graphql-tag` themselves), this\n// workaround of pulling the extra properties off the `gql` function,\n// then re-exporting them separately, helps keeps bundlers happy without any\n// additional config changes.\nexport {\n disableExperimentalFragmentVariables,\n disableFragmentWarnings,\n enableExperimentalFragmentVariables,\n gql,\n resetCaches,\n} from \"graphql-tag\";\n"],"names":[],"mappings":"AAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA;AAGA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,EAAE,CAAvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA2C,CAA3C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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CAAA,CACA;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/core/index.ts"],"sourcesContent":["/* Core */\n\nexport type { ApolloClientOptions, DefaultOptions } from \"./ApolloClient.js\";\nexport { ApolloClient, mergeOptions } from \"./ApolloClient.js\";\nexport type { FetchMoreOptions } from \"./ObservableQuery.js\";\nexport { ObservableQuery } from \"./ObservableQuery.js\";\nexport type {\n ErrorPolicy,\n FetchMoreQueryOptions,\n FetchPolicy,\n MutationFetchPolicy,\n MutationOptions,\n QueryOptions,\n RefetchWritePolicy,\n SubscribeToMoreFunction,\n SubscribeToMoreOptions,\n SubscribeToMoreUpdateQueryFn,\n SubscriptionOptions,\n UpdateQueryMapFn,\n UpdateQueryOptions,\n WatchQueryFetchPolicy,\n WatchQueryOptions,\n} from \"./watchQueryOptions.js\";\nexport { isNetworkRequestSettled, NetworkStatus } from \"./networkStatus.js\";\nexport type {\n ApolloQueryResult,\n DefaultContext,\n ErrorLike,\n InternalRefetchQueriesInclude,\n InternalRefetchQueriesMap,\n InternalRefetchQueriesOptions,\n InternalRefetchQueriesResult,\n InternalRefetchQueryDescriptor,\n MethodKeys,\n MutateResult,\n MutationQueryReducer,\n MutationQueryReducersMap,\n MutationUpdaterFn,\n MutationUpdaterFunction,\n OnQueryUpdated,\n OperationVariables,\n QueryListener,\n QueryResult,\n RefetchQueriesInclude,\n RefetchQueriesOptions,\n RefetchQueriesPromiseResults,\n RefetchQueriesResult,\n RefetchQueryDescriptor,\n Resolvers,\n SubscribeResult,\n TypedDocumentNode,\n} from \"./types.js\";\nexport type { FragmentMatcher, Resolver } from \"./LocalState.js\";\nexport {\n CombinedGraphQLErrors,\n CombinedProtocolErrors,\n LinkError,\n ServerError,\n ServerParseError,\n UnconventionalError,\n} from \"@apollo/client/errors\";\n/* Cache */\n\nexport type {\n ApolloReducerConfig,\n Cache,\n DataProxy,\n DiffQueryAgainstStoreOptions,\n FieldFunctionOptions,\n FieldMergeFunction,\n FieldPolicy,\n FieldReadFunction,\n IdGetter,\n IdGetterObj,\n InMemoryCacheConfig,\n MergeInfo,\n MergeTree,\n NormalizedCache,\n NormalizedCacheObject,\n OptimisticStoreItem,\n PossibleTypesMap,\n ReactiveVar,\n ReadMergeModifyContext,\n ReadQueryOptions,\n StoreValue,\n // All the exports (types) from ../cache, minus cacheSlot,\n // which we want to keep semi-private.\n Transaction,\n TypePolicies,\n TypePolicy,\n WatchFragmentOptions,\n WatchFragmentResult,\n} from \"@apollo/client/cache\";\n\nexport {\n ApolloCache,\n defaultDataIdFromObject,\n InMemoryCache,\n makeVar,\n MissingFieldError,\n} from \"@apollo/client/cache\";\n\n/* Link */\n\nexport {\n ApolloLink,\n concat,\n empty,\n execute,\n from,\n split,\n} from \"@apollo/client/link/core\";\nexport type {\n ApolloPayloadResult,\n DocumentNode,\n ExecutionPatchIncrementalResult,\n ExecutionPatchInitialResult,\n ExecutionPatchResult,\n FetchResult,\n GraphQLRequest,\n IncrementalPayload,\n NextLink,\n Operation,\n Path,\n RequestHandler,\n SingleExecutionResult,\n} from \"@apollo/client/link/core\";\n\nexport {\n checkFetcher,\n createHttpLink,\n createSignalIfSupported,\n defaultPrinter,\n fallbackHttpConfig,\n HttpLink,\n parseAndCheckHttpResponse,\n rewriteURIForGET,\n selectHttpOptionsAndBody,\n // TODO remove: needed by @apollo/client/link/batch-http but not public\n selectHttpOptionsAndBodyInternal,\n selectURI,\n serializeFetchParameter,\n} from \"@apollo/client/link/http\";\nexport type {\n ClientParseError,\n HttpOptions,\n UriFunction,\n} from \"@apollo/client/link/http\";\n\n/* Masking */\nexport type {\n DataMasking,\n FragmentType,\n Masked,\n MaskedDocumentNode,\n MaybeMasked,\n Unmasked,\n} from \"@apollo/client/masking\";\n\n/* Utilities */\n\nexport type {\n DocumentTransformCacheKey,\n Reference,\n StoreObject,\n} from \"@apollo/client/utilities\";\nexport {\n DocumentTransform,\n isReference,\n makeReference,\n Observable,\n} from \"@apollo/client/utilities\";\n\n/* Supporting */\n\n// The verbosity of invariant.{log,warn,error} can be controlled globally\n// by passing \"log\", \"warn\", \"error\", or \"silent\" to setVerbosity (\"log\" is the default).\n// Note that all invariant.* logging is hidden in production.\nexport { setVerbosity as setLogVerbosity } from \"@apollo/client/utilities/invariant\";\n\n// Note that importing `gql` by itself, then destructuring\n// additional properties separately before exporting, is intentional.\n// Due to the way the `graphql-tag` library is setup, certain bundlers\n// can't find the properties added to the exported `gql` function without\n// additional guidance (e.g. Rollup - see\n// https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module).\n// Instead of having people that are using bundlers with `@apollo/client` add\n// extra bundler config to help `graphql-tag` exports be found (which would be\n// awkward since they aren't importing `graphql-tag` themselves), this\n// workaround of pulling the extra properties off the `gql` function,\n// then re-exporting them separately, helps keeps bundlers happy without any\n// additional config changes.\nexport {\n disableExperimentalFragmentVariables,\n disableFragmentWarnings,\n enableExperimentalFragmentVariables,\n gql,\n resetCaches,\n} from \"graphql-tag\";\nexport { version } from \"../version.js\";\n"],"names":[],"mappings":"AAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA;AAGA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,EAAE,CAAvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA2C,CAA3C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA8D;AAE9D,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAAgC,CAAhC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CA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AA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACsC,EACpC,CAFF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAEyB,EACvB,CAHF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAGqC,EACnC,CAJF,CAAA,CAIK,EACH,CALF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAKa,EALb,EAAA,CAAA,CAAA,CAAA,EAMO,CANP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAMoB;AACpB,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAAwB,CAAxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;"}
package/core/types.d.ts CHANGED
@@ -55,24 +55,23 @@ export type InternalRefetchQueryDescriptor = RefetchQueryDescriptor | QueryOptio
55
55
  type RefetchQueriesIncludeShorthand = "all" | "active";
56
56
  export type RefetchQueriesInclude = RefetchQueryDescriptor[] | RefetchQueriesIncludeShorthand;
57
57
  export type InternalRefetchQueriesInclude = InternalRefetchQueryDescriptor[] | RefetchQueriesIncludeShorthand;
58
- export interface RefetchQueriesOptions<TCache extends ApolloCache<any>, TResult> {
58
+ export interface RefetchQueriesOptions<TCache extends ApolloCache, TResult> {
59
59
  updateCache?: (cache: TCache) => void;
60
60
  include?: RefetchQueriesInclude;
61
61
  optimistic?: boolean;
62
62
  onQueryUpdated?: OnQueryUpdated<TResult> | null;
63
63
  }
64
- export type RefetchQueriesPromiseResults<TResult> = IsStrictlyAny<TResult> extends true ? any[] : TResult extends boolean ? ApolloQueryResult<any>[] : TResult extends PromiseLike<infer U> ? U[] : TResult[];
64
+ export type RefetchQueriesPromiseResults<TResult> = IsStrictlyAny<TResult> extends true ? any[] : TResult extends boolean ? QueryResult<any>[] : TResult extends PromiseLike<infer U> ? U[] : TResult[];
65
65
  export interface RefetchQueriesResult<TResult> extends Promise<RefetchQueriesPromiseResults<TResult>> {
66
66
  queries: ObservableQuery<any>[];
67
67
  results: InternalRefetchQueriesResult<TResult>[];
68
68
  }
69
- export interface InternalRefetchQueriesOptions<TCache extends ApolloCache<any>, TResult> extends Omit<RefetchQueriesOptions<TCache, TResult>, "include"> {
69
+ export interface InternalRefetchQueriesOptions<TCache extends ApolloCache, TResult> extends Omit<RefetchQueriesOptions<TCache, TResult>, "include"> {
70
70
  include?: InternalRefetchQueriesInclude;
71
71
  removeOptimistic?: string;
72
72
  }
73
- export type InternalRefetchQueriesResult<TResult> = TResult extends boolean ? Promise<ApolloQueryResult<any>> : TResult;
73
+ export type InternalRefetchQueriesResult<TResult> = TResult extends boolean ? Promise<QueryResult<any>> : TResult;
74
74
  export type InternalRefetchQueriesMap<TResult> = Map<ObservableQuery<any>, InternalRefetchQueriesResult<TResult>>;
75
- export type { QueryOptions as PureQueryOptions };
76
75
  export type OperationVariables = Record<string, any>;
77
76
  export interface ApolloQueryResult<T> {
78
77
  data: T | undefined;
@@ -107,8 +106,8 @@ export type MutationQueryReducersMap<T = {
107
106
  */
108
107
  export type MutationUpdaterFn<T = {
109
108
  [key: string]: any;
110
- }> = (cache: ApolloCache<T>, mutationResult: FetchResult<T>) => void;
111
- export type MutationUpdaterFunction<TData, TVariables, TContext, TCache extends ApolloCache<any>> = (cache: TCache, result: Omit<FetchResult<Unmasked<TData>>, "context">, options: {
109
+ }> = (cache: ApolloCache, mutationResult: FetchResult<T>) => void;
110
+ export type MutationUpdaterFunction<TData, TVariables, TContext, TCache extends ApolloCache> = (cache: TCache, result: Omit<FetchResult<Unmasked<TData>>, "context">, options: {
112
111
  context?: TContext;
113
112
  variables?: TVariables;
114
113
  }) => void;
@@ -117,4 +116,58 @@ export interface Resolvers {
117
116
  [field: string]: Resolver;
118
117
  };
119
118
  }
119
+ export interface MutateResult<TData = unknown> {
120
+ /**
121
+ * The data returned from your mutation. Can be `undefined` if `ignoreResults` is `true`.
122
+ */
123
+ data: TData | undefined;
124
+ /**
125
+ * If the mutation produces one or more errors, this object contains either an array of `graphQLErrors` or a single `networkError`. Otherwise, this value is `undefined`.
126
+ *
127
+ * For more information, see [Handling operation errors](https://www.apollographql.com/docs/react/data/error-handling/).
128
+ */
129
+ error?: ErrorLike;
130
+ /**
131
+ * Custom extensions returned from the GraphQL server
132
+ */
133
+ extensions?: Record<string, unknown>;
134
+ }
135
+ export interface SubscribeResult<TData = unknown> {
136
+ /**
137
+ * The data returned from your mutation. Can be `undefined` if `ignoreResults` is `true`.
138
+ */
139
+ data: TData | undefined;
140
+ /**
141
+ * If the mutation produces one or more errors, this object contains either an array of `graphQLErrors` or a single `networkError`. Otherwise, this value is `undefined`.
142
+ *
143
+ * For more information, see [Handling operation errors](https://www.apollographql.com/docs/react/data/error-handling/).
144
+ */
145
+ error?: ErrorLike;
146
+ /**
147
+ * Custom extensions returned from the GraphQL server
148
+ */
149
+ extensions?: Record<string, unknown>;
150
+ }
151
+ export interface QueryResult<TData = unknown> {
152
+ /**
153
+ * An object containing the result of your GraphQL query after it completes.
154
+ *
155
+ * This value might be `undefined` if a query results in one or more errors (depending on the query's `errorPolicy`).
156
+ *
157
+ * @docGroup
158
+ *
159
+ * 1. Operation data
160
+ */
161
+ data: TData | undefined;
162
+ /**
163
+ * If the query produces one or more errors, this object contains either an array of `graphQLErrors` or a single `networkError`. Otherwise, this value is `undefined`.
164
+ *
165
+ * For more information, see [Handling operation errors](https://www.apollographql.com/docs/react/data/error-handling/).
166
+ *
167
+ * @docGroup
168
+ *
169
+ * 1. Operation data
170
+ */
171
+ error?: ErrorLike;
172
+ }
120
173
  //# sourceMappingURL=types.d.ts.map
@@ -3,7 +3,7 @@ import type { DocumentNode } from "graphql";
3
3
  import type { ApolloCache } from "@apollo/client/cache";
4
4
  import type { FetchResult } from "@apollo/client/link/core";
5
5
  import type { Unmasked } from "@apollo/client/masking";
6
- import type { DeepPartial, NoInfer } from "@apollo/client/utilities";
6
+ import type { DeepPartial, NoInfer, VariablesOption } from "@apollo/client/utilities";
7
7
  import type { IgnoreModifier } from "../cache/core/types/common.js";
8
8
  import type { ObservableQuery } from "./ObservableQuery.js";
9
9
  import type { DefaultContext, InternalRefetchQueriesInclude, MutationQueryReducersMap, MutationUpdaterFunction, OnQueryUpdated, OperationVariables } from "./types.js";
@@ -16,8 +16,8 @@ import type { DefaultContext, InternalRefetchQueriesInclude, MutationQueryReduce
16
16
  * - network-only: return result from network, fail if network call doesn't succeed, save to cache
17
17
  * - standby: only for queries that aren't actively watched, but should be available for refetch and updateQueries.
18
18
  */
19
- export type FetchPolicy = "cache-first" | "network-only" | "cache-only" | "no-cache" | "standby";
20
- export type WatchQueryFetchPolicy = FetchPolicy | "cache-and-network";
19
+ export type FetchPolicy = "cache-first" | "network-only" | "cache-only" | "no-cache";
20
+ export type WatchQueryFetchPolicy = FetchPolicy | "cache-and-network" | "standby";
21
21
  export type MutationFetchPolicy = Extract<FetchPolicy, "network-only" | "no-cache">;
22
22
  export type RefetchWritePolicy = "merge" | "overwrite";
23
23
  /**
@@ -30,7 +30,7 @@ export type ErrorPolicy = "none" | "ignore" | "all";
30
30
  /**
31
31
  * Query options.
32
32
  */
33
- export interface QueryOptions<TVariables = OperationVariables, TData = any> {
33
+ export type QueryOptions<TVariables extends OperationVariables = OperationVariables, TData = unknown> = {
34
34
  /**
35
35
  * A GraphQL query string parsed into an AST with the gql template literal.
36
36
  *
@@ -40,16 +40,6 @@ export interface QueryOptions<TVariables = OperationVariables, TData = any> {
40
40
  */
41
41
  query: DocumentNode | TypedDocumentNode<TData, TVariables>;
42
42
  /**
43
- * An object containing all of the GraphQL variables your query requires to execute.
44
- *
45
- * Each key in the object corresponds to a variable name, and that key's value corresponds to the variable value.
46
- *
47
- * @docGroup
48
- *
49
- * 1. Operation options
50
- */
51
- variables?: TVariables;
52
- /**
53
43
  * Specifies how the query handles a response that returns both GraphQL errors and partial results.
54
44
  *
55
45
  * For details, see [GraphQL error policies](https://www.apollographql.com/docs/react/data/error-handling/#graphql-error-policies).
@@ -81,59 +71,11 @@ export interface QueryOptions<TVariables = OperationVariables, TData = any> {
81
71
  * 3. Caching options
82
72
  */
83
73
  fetchPolicy?: FetchPolicy;
84
- /**
85
- * Specifies the interval (in milliseconds) at which the query polls for updated results.
86
- *
87
- * The default value is `0` (no polling).
88
- *
89
- * @docGroup
90
- *
91
- * 2. Networking options
92
- */
93
- pollInterval?: number;
94
- /**
95
- * If `true`, the in-progress query's associated component re-renders whenever the network status changes or a network error occurs.
96
- *
97
- * The default value is `false`.
98
- *
99
- * @docGroup
100
- *
101
- * 2. Networking options
102
- */
103
- notifyOnNetworkStatusChange?: boolean;
104
- /**
105
- * If `true`, the query can return partial results from the cache if the cache doesn't contain results for all queried fields.
106
- *
107
- * The default value is `false`.
108
- *
109
- * @docGroup
110
- *
111
- * 3. Caching options
112
- */
113
- returnPartialData?: boolean;
114
- /**
115
- * Whether to canonize cache results before returning them. Canonization takes some extra time, but it speeds up future deep equality comparisons. Defaults to false.
116
- *
117
- * @deprecated
118
- *
119
- * Using `canonizeResults` can result in memory leaks so we generally do not recommend using this option anymore. A future version of Apollo Client will contain a similar feature without the risk of memory leaks.
120
- */
121
- canonizeResults?: boolean;
122
- }
74
+ } & VariablesOption<NoInfer<TVariables>>;
123
75
  /**
124
76
  * Watched query options.
125
77
  */
126
- export interface WatchQueryOptions<TVariables extends OperationVariables = OperationVariables, TData = any> extends SharedWatchQueryOptions<TVariables, TData> {
127
- /**
128
- * A GraphQL query string parsed into an AST with the gql template literal.
129
- *
130
- * @docGroup
131
- *
132
- * 1. Operation options
133
- */
134
- query: DocumentNode | TypedDocumentNode<TData, TVariables>;
135
- }
136
- export interface SharedWatchQueryOptions<TVariables extends OperationVariables, TData> {
78
+ export type WatchQueryOptions<TVariables extends OperationVariables = OperationVariables, TData = unknown> = {
137
79
  /**
138
80
  * Specifies how the query interacts with the Apollo Client cache during execution (for example, whether it checks the cache for results before sending a request to the server).
139
81
  *
@@ -171,16 +113,6 @@ export interface SharedWatchQueryOptions<TVariables extends OperationVariables,
171
113
  */
172
114
  refetchWritePolicy?: RefetchWritePolicy;
173
115
  /**
174
- * An object containing all of the GraphQL variables your query requires to execute.
175
- *
176
- * Each key in the object corresponds to a variable name, and that key's value corresponds to the variable value.
177
- *
178
- * @docGroup
179
- *
180
- * 1. Operation options
181
- */
182
- variables?: TVariables;
183
- /**
184
116
  * Specifies how the query handles a response that returns both GraphQL errors and partial results.
185
117
  *
186
118
  * For details, see [GraphQL error policies](https://www.apollographql.com/docs/react/data/error-handling/#graphql-error-policies).
@@ -213,7 +145,7 @@ export interface SharedWatchQueryOptions<TVariables extends OperationVariables,
213
145
  /**
214
146
  * If `true`, the in-progress query's associated component re-renders whenever the network status changes or a network error occurs.
215
147
  *
216
- * The default value is `false`.
148
+ * The default value is `true`.
217
149
  *
218
150
  * @docGroup
219
151
  *
@@ -231,29 +163,29 @@ export interface SharedWatchQueryOptions<TVariables extends OperationVariables,
231
163
  */
232
164
  returnPartialData?: boolean;
233
165
  /**
234
- * Whether to canonize cache results before returning them. Canonization takes some extra time, but it speeds up future deep equality comparisons. Defaults to false.
166
+ * A callback function that's called whenever a refetch attempt occurs while polling. If the function returns `true`, the refetch is skipped and not reattempted until the next poll interval.
235
167
  *
236
- * @deprecated
168
+ * @docGroup
237
169
  *
238
- * Using `canonizeResults` can result in memory leaks so we generally do not recommend using this option anymore. A future version of Apollo Client will contain a similar feature without the risk of memory leaks.
170
+ * 2. Networking options
239
171
  */
240
- canonizeResults?: boolean;
172
+ skipPollAttempt?: () => boolean;
241
173
  /**
242
- * A callback function that's called whenever a refetch attempt occurs while polling. If the function returns `true`, the refetch is skipped and not reattempted until the next poll interval.
174
+ * A GraphQL query string parsed into an AST with the gql template literal.
243
175
  *
244
176
  * @docGroup
245
177
  *
246
- * 2. Networking options
178
+ * 1. Operation options
247
179
  */
248
- skipPollAttempt?: () => boolean;
249
- }
180
+ query: DocumentNode | TypedDocumentNode<TData, TVariables>;
181
+ } & VariablesOption<NoInfer<TVariables>>;
250
182
  export interface NextFetchPolicyContext<TData, TVariables extends OperationVariables> {
251
183
  reason: "after-fetch" | "variables-changed";
252
184
  observable: ObservableQuery<TData, TVariables>;
253
185
  options: WatchQueryOptions<TVariables, TData>;
254
186
  initialFetchPolicy: WatchQueryFetchPolicy;
255
187
  }
256
- export interface FetchMoreQueryOptions<TVariables, TData = any> {
188
+ export interface FetchMoreQueryOptions<TVariables, TData = unknown> {
257
189
  /**
258
190
  * A GraphQL query string parsed into an AST with the gql template literal.
259
191
  *
@@ -271,7 +203,7 @@ export interface FetchMoreQueryOptions<TVariables, TData = any> {
271
203
  *
272
204
  * 1. Operation options
273
205
  */
274
- variables?: Partial<TVariables>;
206
+ variables?: Partial<NoInfer<TVariables>>;
275
207
  context?: DefaultContext;
276
208
  }
277
209
  export type UpdateQueryOptions<TData, TVariables> = {
@@ -290,7 +222,7 @@ export type UpdateQueryOptions<TData, TVariables> = {
290
222
  complete: false;
291
223
  previousData: DeepPartial<Unmasked<TData>> | undefined;
292
224
  });
293
- export interface UpdateQueryMapFn<TData = any, TVariables = OperationVariables> {
225
+ export interface UpdateQueryMapFn<TData = unknown, TVariables = OperationVariables> {
294
226
  (
295
227
  /**
296
228
  * @deprecated This value is not type-safe and may contain partial data. This
@@ -299,7 +231,7 @@ export interface UpdateQueryMapFn<TData = any, TVariables = OperationVariables>
299
231
  */
300
232
  unsafePreviousData: Unmasked<TData>, options: UpdateQueryOptions<TData, TVariables>): Unmasked<TData> | void;
301
233
  }
302
- export type SubscribeToMoreUpdateQueryFn<TData = any, TVariables extends OperationVariables = OperationVariables, TSubscriptionData = TData> = {
234
+ export type SubscribeToMoreUpdateQueryFn<TData = unknown, TVariables extends OperationVariables = OperationVariables, TSubscriptionData = TData> = {
303
235
  (
304
236
  /**
305
237
  * @deprecated This value is not type-safe and may contain partial data. This
@@ -312,7 +244,7 @@ export type SubscribeToMoreUpdateQueryFn<TData = any, TVariables extends Operati
312
244
  };
313
245
  }): Unmasked<TData> | void;
314
246
  };
315
- export interface SubscribeToMoreOptions<TData = any, TSubscriptionVariables extends OperationVariables = OperationVariables, TSubscriptionData = TData, TVariables extends OperationVariables = TSubscriptionVariables> {
247
+ export interface SubscribeToMoreOptions<TData = unknown, TSubscriptionVariables extends OperationVariables = OperationVariables, TSubscriptionData = TData, TVariables extends OperationVariables = TSubscriptionVariables> {
316
248
  document: DocumentNode | TypedDocumentNode<TSubscriptionData, TSubscriptionVariables>;
317
249
  variables?: TSubscriptionVariables;
318
250
  updateQuery?: SubscribeToMoreUpdateQueryFn<TData, TVariables, TSubscriptionData>;
@@ -322,16 +254,12 @@ export interface SubscribeToMoreOptions<TData = any, TSubscriptionVariables exte
322
254
  export interface SubscribeToMoreFunction<TData, TVariables extends OperationVariables = OperationVariables> {
323
255
  <TSubscriptionData = TData, TSubscriptionVariables extends OperationVariables = TVariables>(options: SubscribeToMoreOptions<TData, TSubscriptionVariables, TSubscriptionData, TVariables>): () => void;
324
256
  }
325
- export interface SubscriptionOptions<TVariables = OperationVariables, TData = any> {
257
+ export type SubscriptionOptions<TVariables extends OperationVariables = OperationVariables, TData = unknown> = {
326
258
  /**
327
259
  * A GraphQL document, often created with `gql` from the `graphql-tag` package, that contains a single subscription inside of it.
328
260
  */
329
261
  query: DocumentNode | TypedDocumentNode<TData, TVariables>;
330
262
  /**
331
- * An object containing all of the variables your subscription needs to execute
332
- */
333
- variables?: TVariables;
334
- /**
335
263
  * How you want your component to interact with the Apollo cache. For details, see [Setting a fetch policy](https://www.apollographql.com/docs/react/data/queries/#setting-a-fetch-policy).
336
264
  */
337
265
  fetchPolicy?: FetchPolicy;
@@ -347,8 +275,8 @@ export interface SubscriptionOptions<TVariables = OperationVariables, TData = an
347
275
  * Shared context between your component and your network interface (Apollo Link).
348
276
  */
349
277
  extensions?: Record<string, any>;
350
- }
351
- interface MutationBaseOptions<TData = any, TVariables = OperationVariables, TContext = DefaultContext, TCache extends ApolloCache<any> = ApolloCache<any>> {
278
+ } & VariablesOption<NoInfer<TVariables>>;
279
+ export type MutationOptions<TData = unknown, TVariables extends OperationVariables = OperationVariables, TContext = DefaultContext, TCache extends ApolloCache = ApolloCache> = {
352
280
  /**
353
281
  * By providing either an object or a callback function that, when invoked after a mutation, allows you to return optimistic data and optionally skip updates via the `IGNORE` sentinel object, Apollo Client caches this temporary (and potentially incorrect) response until the mutation completes, enabling more responsive UI updates.
354
282
  *
@@ -422,16 +350,6 @@ interface MutationBaseOptions<TData = any, TVariables = OperationVariables, TCon
422
350
  */
423
351
  errorPolicy?: ErrorPolicy;
424
352
  /**
425
- * An object containing all of the GraphQL variables your mutation requires to execute.
426
- *
427
- * Each key in the object corresponds to a variable name, and that key's value corresponds to the variable value.
428
- *
429
- * @docGroup
430
- *
431
- * 1. Operation options
432
- */
433
- variables?: TVariables;
434
- /**
435
353
  * If you're using [Apollo Link](https://www.apollographql.com/docs/react/api/link/introduction/), this object is the initial value of the `context` object that's passed along your link chain.
436
354
  *
437
355
  * @docGroup
@@ -439,18 +357,6 @@ interface MutationBaseOptions<TData = any, TVariables = OperationVariables, TCon
439
357
  * 2. Networking options
440
358
  */
441
359
  context?: TContext;
442
- }
443
- export interface MutationOptions<TData = any, TVariables = OperationVariables, TContext = DefaultContext, TCache extends ApolloCache<any> = ApolloCache<any>> extends MutationSharedOptions<TData, TVariables, TContext, TCache> {
444
- /**
445
- * A GraphQL document, often created with `gql` from the `graphql-tag` package, that contains a single mutation inside of it.
446
- *
447
- * @docGroup
448
- *
449
- * 1. Operation options
450
- */
451
- mutation: DocumentNode | TypedDocumentNode<TData, TVariables>;
452
- }
453
- export interface MutationSharedOptions<TData = any, TVariables = OperationVariables, TContext = DefaultContext, TCache extends ApolloCache<any> = ApolloCache<any>> extends MutationBaseOptions<TData, TVariables, TContext, TCache> {
454
360
  /**
455
361
  * Provide `no-cache` if the mutation's result should _not_ be written to the Apollo Client cache.
456
362
  *
@@ -467,6 +373,13 @@ export interface MutationSharedOptions<TData = any, TVariables = OperationVariab
467
373
  * To avoid retaining sensitive information from mutation root field arguments, Apollo Client v3.4+ automatically clears any `ROOT_MUTATION` fields from the cache after each mutation finishes. If you need this information to remain in the cache, you can prevent the removal by passing `keepRootFields: true` to the mutation. `ROOT_MUTATION` result data are also passed to the mutation `update` function, so we recommend obtaining the results that way, rather than using this option, if possible.
468
374
  */
469
375
  keepRootFields?: boolean;
470
- }
471
- export {};
376
+ /**
377
+ * A GraphQL document, often created with `gql` from the `graphql-tag` package, that contains a single mutation inside of it.
378
+ *
379
+ * @docGroup
380
+ *
381
+ * 1. Operation options
382
+ */
383
+ mutation: DocumentNode | TypedDocumentNode<TData, TVariables>;
384
+ } & VariablesOption<NoInfer<TVariables>>;
472
385
  //# sourceMappingURL=watchQueryOptions.d.ts.map
@@ -1,13 +1,32 @@
1
1
  import type { GraphQLFormattedError } from "graphql";
2
+ import type { FetchResult } from "@apollo/client";
3
+ export declare namespace CombinedGraphQLErrors {
4
+ interface MessageFormatterOptions {
5
+ result: FetchResult<unknown>;
6
+ defaultFormatMessage: (errors: ReadonlyArray<GraphQLFormattedError>) => string;
7
+ }
8
+ type MessageFormatter = (errors: ReadonlyArray<GraphQLFormattedError>, options: MessageFormatterOptions) => string;
9
+ }
2
10
  /**
3
11
  * Represents the combined list of GraphQL errors returned from the server in a
4
12
  * GraphQL response.
5
13
  */
6
14
  export declare class CombinedGraphQLErrors extends Error {
15
+ /** Determine if an error is a `CombinedGraphQLErrors` instance */
16
+ static is(error: unknown): error is CombinedGraphQLErrors;
17
+ /**
18
+ * Formats the error message used for the error `message` property. Override
19
+ * to provide your own formatting.
20
+ */
21
+ static formatMessage: CombinedGraphQLErrors.MessageFormatter;
7
22
  /**
8
23
  * The raw list of GraphQL errors returned in a GraphQL response.
9
24
  */
10
- errors: ReadonlyArray<GraphQLFormattedError>;
11
- constructor(errors: Array<GraphQLFormattedError> | ReadonlyArray<GraphQLFormattedError>);
25
+ readonly errors: ReadonlyArray<GraphQLFormattedError>;
26
+ /**
27
+ * Partial data returned in the GraphQL response.
28
+ */
29
+ readonly data: Record<string, unknown> | null | undefined;
30
+ constructor(result: FetchResult<unknown>);
12
31
  }
13
32
  //# sourceMappingURL=CombinedGraphQLErrors.d.ts.map
@@ -1,26 +1,45 @@
1
+ import { getGraphQLErrorsFromResult } from "@apollo/client/utilities";
2
+ import { brand, isBranded } from "./utils.js";
3
+ function defaultFormatMessage(errors) {
4
+ return (errors
5
+ // Handle non-spec-compliant servers: See #1185
6
+ .filter((e) => e)
7
+ .map((e) => e.message || "Error message not found.")
8
+ .join("\n"));
9
+ }
1
10
  /**
2
11
  * Represents the combined list of GraphQL errors returned from the server in a
3
12
  * GraphQL response.
4
13
  */
5
14
  export class CombinedGraphQLErrors extends Error {
15
+ /** Determine if an error is a `CombinedGraphQLErrors` instance */
16
+ static is(error) {
17
+ return isBranded(error, "CombinedGraphQLErrors");
18
+ }
19
+ /**
20
+ * Formats the error message used for the error `message` property. Override
21
+ * to provide your own formatting.
22
+ */
23
+ static formatMessage = defaultFormatMessage;
6
24
  /**
7
25
  * The raw list of GraphQL errors returned in a GraphQL response.
8
26
  */
9
27
  errors;
10
- constructor(errors) {
11
- super(formatMessage(errors));
28
+ /**
29
+ * Partial data returned in the GraphQL response.
30
+ */
31
+ data;
32
+ constructor(result) {
33
+ const errors = getGraphQLErrorsFromResult(result);
34
+ super(CombinedGraphQLErrors.formatMessage(errors, {
35
+ result,
36
+ defaultFormatMessage,
37
+ }));
12
38
  this.errors = errors;
39
+ this.data = result.data;
13
40
  this.name = "CombinedGraphQLErrors";
41
+ brand(this);
14
42
  Object.setPrototypeOf(this, CombinedGraphQLErrors.prototype);
15
43
  }
16
44
  }
17
- function formatMessage(errors) {
18
- const messageList = errors
19
- // Handle non-spec-compliant servers: See #1185
20
- .filter((e) => e)
21
- .map((e) => `- ${e.message}`)
22
- .join("\n");
23
- return `The GraphQL server returned with errors:
24
- ${messageList}`;
25
- }
26
45
  //# sourceMappingURL=CombinedGraphQLErrors.js.map