@apollo/client 4.0.0-alpha.15 → 4.0.0-alpha.17

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 (528) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/__cjs/cache/core/cache.cjs.map +1 -1
  3. package/__cjs/cache/core/cache.d.cts +2 -2
  4. package/__cjs/cache/core/types/DataProxy.d.cts +1 -2
  5. package/__cjs/cache/core/types/common.cjs.map +1 -1
  6. package/__cjs/cache/core/types/common.d.cts +1 -2
  7. package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  8. package/__cjs/cache/inmemory/inMemoryCache.d.cts +1 -2
  9. package/__cjs/core/ObservableQuery.cjs +104 -48
  10. package/__cjs/core/ObservableQuery.cjs.map +1 -1
  11. package/__cjs/core/ObservableQuery.d.cts +19 -2
  12. package/__cjs/core/QueryManager.cjs +21 -6
  13. package/__cjs/core/QueryManager.cjs.map +1 -1
  14. package/__cjs/core/index.cjs.map +1 -1
  15. package/__cjs/core/index.d.cts +1 -1
  16. package/__cjs/core/types.d.cts +25 -3
  17. package/__cjs/core/watchQueryOptions.d.cts +2 -1
  18. package/__cjs/errors/ServerError.cjs +3 -4
  19. package/__cjs/errors/ServerError.cjs.map +1 -1
  20. package/__cjs/errors/ServerError.d.cts +8 -8
  21. package/__cjs/link/batch-http/batchHttpLink.cjs +0 -35
  22. package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -1
  23. package/__cjs/link/http/createHttpLink.cjs +1 -1
  24. package/__cjs/link/http/createHttpLink.cjs.map +1 -1
  25. package/__cjs/link/http/parseAndCheckHttpResponse.cjs +20 -55
  26. package/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
  27. package/__cjs/link/http/parseAndCheckHttpResponse.d.cts +0 -2
  28. package/__cjs/link/http/selectHttpOptionsAndBody.cjs +1 -1
  29. package/__cjs/link/http/selectHttpOptionsAndBody.cjs.map +1 -1
  30. package/__cjs/link/persisted-queries/index.cjs +12 -10
  31. package/__cjs/link/persisted-queries/index.cjs.map +1 -1
  32. package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
  33. package/__cjs/react/hooks/useBackgroundQuery.d.cts +51 -14
  34. package/__cjs/react/hooks/useFragment.cjs.map +1 -1
  35. package/__cjs/react/hooks/useFragment.d.cts +2 -1
  36. package/__cjs/react/hooks/useLazyQuery.cjs +1 -0
  37. package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
  38. package/__cjs/react/hooks/useLazyQuery.d.cts +28 -53
  39. package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -1
  40. package/__cjs/react/hooks/useLoadableQuery.d.cts +7 -8
  41. package/__cjs/react/hooks/useQuery.cjs +3 -2
  42. package/__cjs/react/hooks/useQuery.cjs.map +1 -1
  43. package/__cjs/react/hooks/useQuery.d.cts +10 -48
  44. package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -1
  45. package/__cjs/react/hooks/useQueryRefHandlers.d.cts +2 -2
  46. package/__cjs/react/hooks/useReadQuery.cjs +1 -0
  47. package/__cjs/react/hooks/useReadQuery.cjs.map +1 -1
  48. package/__cjs/react/hooks/useReadQuery.d.cts +4 -11
  49. package/__cjs/react/hooks/useSuspenseQuery.cjs +2 -0
  50. package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
  51. package/__cjs/react/hooks/useSuspenseQuery.d.cts +13 -24
  52. package/__cjs/react/index.cjs.map +1 -1
  53. package/__cjs/react/index.d.cts +1 -1
  54. package/__cjs/react/internal/cache/QueryReference.cjs +7 -1
  55. package/__cjs/react/internal/cache/QueryReference.cjs.map +1 -1
  56. package/__cjs/react/internal/cache/QueryReference.d.cts +25 -65
  57. package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -1
  58. package/__cjs/react/internal/cache/SuspenseCache.d.cts +3 -3
  59. package/__cjs/react/internal/index.cjs.map +1 -1
  60. package/__cjs/react/internal/index.d.cts +1 -1
  61. package/__cjs/react/internal/types.d.cts +2 -2
  62. package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
  63. package/__cjs/react/query-preloader/createQueryPreloader.d.cts +5 -5
  64. package/__cjs/react/ssr/prerenderStatic.cjs.map +1 -1
  65. package/__cjs/react/ssr/useSSRQuery.cjs +1 -0
  66. package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -1
  67. package/__cjs/react/types/types.documentation.d.cts +12 -0
  68. package/__cjs/utilities/DeepPartial.cjs.map +1 -0
  69. package/__cjs/utilities/{internal/types/DeepPartial.d.cts → DeepPartial.d.cts} +3 -5
  70. package/__cjs/utilities/index.cjs.map +1 -1
  71. package/__cjs/utilities/index.d.cts +1 -0
  72. package/__cjs/utilities/internal/index.cjs.map +1 -1
  73. package/__cjs/utilities/internal/index.d.cts +0 -1
  74. package/__cjs/utilities/internal/toQueryResult.cjs.map +1 -1
  75. package/__cjs/utilities/subscriptions/relay/index.cjs +1 -1
  76. package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -1
  77. package/__cjs/version.cjs +1 -1
  78. package/cache/core/cache.d.ts +2 -2
  79. package/cache/core/cache.js.map +1 -1
  80. package/cache/core/types/DataProxy.d.ts +1 -2
  81. package/cache/core/types/common.d.ts +1 -2
  82. package/cache/core/types/common.js.map +1 -1
  83. package/cache/inmemory/inMemoryCache.d.ts +1 -2
  84. package/cache/inmemory/inMemoryCache.js.map +1 -1
  85. package/core/ObservableQuery.d.ts +19 -2
  86. package/core/ObservableQuery.js +105 -49
  87. package/core/ObservableQuery.js.map +1 -1
  88. package/core/QueryManager.js +20 -5
  89. package/core/QueryManager.js.map +1 -1
  90. package/core/index.d.ts +1 -1
  91. package/core/index.js.map +1 -1
  92. package/core/types.d.ts +25 -3
  93. package/core/watchQueryOptions.d.ts +2 -1
  94. package/errors/ServerError.d.ts +8 -8
  95. package/errors/ServerError.js +3 -4
  96. package/errors/ServerError.js.map +1 -1
  97. package/link/batch-http/batchHttpLink.js +0 -35
  98. package/link/batch-http/batchHttpLink.js.map +1 -1
  99. package/link/http/createHttpLink.js +2 -2
  100. package/link/http/createHttpLink.js.map +1 -1
  101. package/link/http/parseAndCheckHttpResponse.d.ts +0 -2
  102. package/link/http/parseAndCheckHttpResponse.js +20 -54
  103. package/link/http/parseAndCheckHttpResponse.js.map +1 -1
  104. package/link/http/selectHttpOptionsAndBody.js +1 -1
  105. package/link/http/selectHttpOptionsAndBody.js.map +1 -1
  106. package/link/persisted-queries/index.js +12 -10
  107. package/link/persisted-queries/index.js.map +1 -1
  108. package/package.json +5 -7
  109. package/react/hooks/useBackgroundQuery.d.ts +51 -14
  110. package/react/hooks/useBackgroundQuery.js.map +1 -1
  111. package/react/hooks/useFragment.d.ts +2 -1
  112. package/react/hooks/useFragment.js.map +1 -1
  113. package/react/hooks/useLazyQuery.d.ts +28 -53
  114. package/react/hooks/useLazyQuery.js +1 -0
  115. package/react/hooks/useLazyQuery.js.map +1 -1
  116. package/react/hooks/useLoadableQuery.d.ts +7 -8
  117. package/react/hooks/useLoadableQuery.js.map +1 -1
  118. package/react/hooks/useQuery.d.ts +10 -48
  119. package/react/hooks/useQuery.js +3 -2
  120. package/react/hooks/useQuery.js.map +1 -1
  121. package/react/hooks/useQueryRefHandlers.d.ts +2 -2
  122. package/react/hooks/useQueryRefHandlers.js.map +1 -1
  123. package/react/hooks/useReadQuery.d.ts +4 -11
  124. package/react/hooks/useReadQuery.js +1 -0
  125. package/react/hooks/useReadQuery.js.map +1 -1
  126. package/react/hooks/useSuspenseQuery.d.ts +13 -24
  127. package/react/hooks/useSuspenseQuery.js +2 -0
  128. package/react/hooks/useSuspenseQuery.js.map +1 -1
  129. package/react/index.d.ts +1 -1
  130. package/react/index.js.map +1 -1
  131. package/react/internal/cache/QueryReference.d.ts +25 -65
  132. package/react/internal/cache/QueryReference.js +7 -1
  133. package/react/internal/cache/QueryReference.js.map +1 -1
  134. package/react/internal/cache/SuspenseCache.d.ts +3 -3
  135. package/react/internal/cache/SuspenseCache.js.map +1 -1
  136. package/react/internal/index.d.ts +1 -1
  137. package/react/internal/index.js.map +1 -1
  138. package/react/internal/types.d.ts +2 -2
  139. package/react/query-preloader/createQueryPreloader.d.ts +5 -5
  140. package/react/query-preloader/createQueryPreloader.js.map +1 -1
  141. package/react/ssr/prerenderStatic.js.map +1 -1
  142. package/react/ssr/useSSRQuery.js +1 -0
  143. package/react/ssr/useSSRQuery.js.map +1 -1
  144. package/react/types/types.documentation.d.ts +12 -0
  145. package/utilities/{internal/types/DeepPartial.d.ts → DeepPartial.d.ts} +3 -5
  146. package/utilities/DeepPartial.js.map +1 -0
  147. package/utilities/index.d.ts +1 -0
  148. package/utilities/index.js.map +1 -1
  149. package/utilities/internal/index.d.ts +0 -1
  150. package/utilities/internal/index.js.map +1 -1
  151. package/utilities/internal/toQueryResult.js.map +1 -1
  152. package/utilities/subscriptions/relay/index.js +2 -2
  153. package/utilities/subscriptions/relay/index.js.map +1 -1
  154. package/version.js +1 -1
  155. package/.changeset/README.md +0 -8
  156. package/.changeset/afraid-grapes-call.md +0 -5
  157. package/.changeset/afraid-moons-arrive.md +0 -5
  158. package/.changeset/beige-mirrors-talk.md +0 -15
  159. package/.changeset/beige-spiders-hope.md +0 -5
  160. package/.changeset/brave-moons-juggle.md +0 -5
  161. package/.changeset/brave-radios-wait.md +0 -5
  162. package/.changeset/bright-ads-share.md +0 -5
  163. package/.changeset/calm-frogs-remain.md +0 -7
  164. package/.changeset/calm-seals-relate.md +0 -5
  165. package/.changeset/chatty-planes-grin.md +0 -5
  166. package/.changeset/clean-sheep-hide.md +0 -6
  167. package/.changeset/clever-zebras-mate.md +0 -5
  168. package/.changeset/config.json +0 -14
  169. package/.changeset/cool-bikes-shake.md +0 -12
  170. package/.changeset/cool-kiwis-hunt.md +0 -15
  171. package/.changeset/cuddly-spiders-tie.md +0 -5
  172. package/.changeset/curvy-flies-accept.md +0 -5
  173. package/.changeset/curvy-pianos-count.md +0 -5
  174. package/.changeset/dirty-cobras-change.md +0 -7
  175. package/.changeset/dirty-eagles-poke.md +0 -5
  176. package/.changeset/dirty-trees-pump.md +0 -5
  177. package/.changeset/early-eggs-develop.md +0 -22
  178. package/.changeset/eighty-squids-fix.md +0 -15
  179. package/.changeset/eleven-kangaroos-jump.md +0 -5
  180. package/.changeset/empty-rabbits-move.md +0 -5
  181. package/.changeset/few-crabs-move.md +0 -6
  182. package/.changeset/fluffy-shoes-applaud.md +0 -5
  183. package/.changeset/forty-hairs-occur.md +0 -5
  184. package/.changeset/forty-shrimps-fry.md +0 -5
  185. package/.changeset/forty-tomatoes-punch.md +0 -5
  186. package/.changeset/four-countries-clean.md +0 -24
  187. package/.changeset/four-ghosts-watch.md +0 -5
  188. package/.changeset/fresh-moose-hope.md +0 -5
  189. package/.changeset/friendly-olives-refuse.md +0 -5
  190. package/.changeset/funny-boats-wink.md +0 -35
  191. package/.changeset/funny-jeans-invent.md +0 -16
  192. package/.changeset/funny-terms-deny.md +0 -5
  193. package/.changeset/fuzzy-seahorses-hunt.md +0 -5
  194. package/.changeset/fuzzy-tips-sit.md +0 -5
  195. package/.changeset/gentle-badgers-train.md +0 -5
  196. package/.changeset/gentle-waves-cough.md +0 -5
  197. package/.changeset/giant-apes-thank.md +0 -5
  198. package/.changeset/giant-bags-share.md +0 -5
  199. package/.changeset/gold-oranges-double.md +0 -5
  200. package/.changeset/good-dolphins-peel.md +0 -113
  201. package/.changeset/gorgeous-chefs-tap.md +0 -5
  202. package/.changeset/great-roses-jog.md +0 -15
  203. package/.changeset/grumpy-vans-type.md +0 -5
  204. package/.changeset/healthy-apes-sneeze.md +0 -5
  205. package/.changeset/hip-vans-act.md +0 -5
  206. package/.changeset/hot-cycles-notice.md +0 -5
  207. package/.changeset/hungry-bikes-cough.md +0 -5
  208. package/.changeset/itchy-chefs-run.md +0 -23
  209. package/.changeset/itchy-drinks-refuse.md +0 -5
  210. package/.changeset/itchy-roses-accept.md +0 -5
  211. package/.changeset/khaki-keys-deliver.md +0 -5
  212. package/.changeset/khaki-spies-work.md +0 -11
  213. package/.changeset/kind-fishes-develop.md +0 -17
  214. package/.changeset/large-plants-know.md +0 -5
  215. package/.changeset/late-trainers-peel.md +0 -7
  216. package/.changeset/light-apes-rescue.md +0 -5
  217. package/.changeset/light-dolphins-taste.md +0 -5
  218. package/.changeset/light-sloths-end.md +0 -16
  219. package/.changeset/little-parrots-bow.md +0 -14
  220. package/.changeset/little-spoons-kick.md +0 -7
  221. package/.changeset/loud-cows-raise.md +0 -7
  222. package/.changeset/lucky-hats-push.md +0 -7
  223. package/.changeset/lucky-sheep-explain.md +0 -34
  224. package/.changeset/many-buses-allow.md +0 -5
  225. package/.changeset/many-papayas-hide.md +0 -5
  226. package/.changeset/mean-lizards-think.md +0 -5
  227. package/.changeset/metal-needles-search.md +0 -5
  228. package/.changeset/mighty-penguins-wink.md +0 -16
  229. package/.changeset/modern-feet-do.md +0 -5
  230. package/.changeset/moody-lobsters-listen.md +0 -7
  231. package/.changeset/nervous-fireants-bow.md +0 -5
  232. package/.changeset/nervous-goats-allow.md +0 -5
  233. package/.changeset/nice-donkeys-reflect.md +0 -5
  234. package/.changeset/nice-dots-matter.md +0 -5
  235. package/.changeset/nice-waves-work.md +0 -7
  236. package/.changeset/ninety-bags-bake.md +0 -17
  237. package/.changeset/odd-chicken-hide.md +0 -17
  238. package/.changeset/odd-lemons-relax.md +0 -5
  239. package/.changeset/olive-cougars-ring.md +0 -9
  240. package/.changeset/orange-suits-laugh.md +0 -5
  241. package/.changeset/perfect-ducks-reflect.md +0 -12
  242. package/.changeset/perfect-vans-give.md +0 -7
  243. package/.changeset/polite-bees-care.md +0 -26
  244. package/.changeset/poor-eels-punch.md +0 -5
  245. package/.changeset/poor-spiders-hunt.md +0 -23
  246. package/.changeset/popular-games-sleep.md +0 -5
  247. package/.changeset/pre.json +0 -168
  248. package/.changeset/purple-bears-flash.md +0 -5
  249. package/.changeset/purple-lions-cough.md +0 -5
  250. package/.changeset/rare-houses-prove.md +0 -5
  251. package/.changeset/real-gorillas-move.md +0 -21
  252. package/.changeset/real-teachers-peel.md +0 -5
  253. package/.changeset/rich-eagles-cross.md +0 -5
  254. package/.changeset/rich-kids-carry.md +0 -9
  255. package/.changeset/rude-fans-study.md +0 -5
  256. package/.changeset/selfish-spoons-approve.md +0 -44
  257. package/.changeset/serious-items-develop.md +0 -17
  258. package/.changeset/serious-moons-juggle.md +0 -5
  259. package/.changeset/seven-dragons-repair.md +0 -14
  260. package/.changeset/seven-foxes-melt.md +0 -5
  261. package/.changeset/seven-schools-carry.md +0 -5
  262. package/.changeset/shaggy-pugs-add.md +0 -52
  263. package/.changeset/shiny-carrots-invent.md +0 -5
  264. package/.changeset/short-jokes-jam.md +0 -27
  265. package/.changeset/short-months-complain.md +0 -5
  266. package/.changeset/short-tomatoes-attend.md +0 -5
  267. package/.changeset/silly-knives-exist.md +0 -5
  268. package/.changeset/silly-seas-confess.md +0 -5
  269. package/.changeset/sixty-bats-cry.md +0 -6
  270. package/.changeset/slimy-ants-bake.md +0 -5
  271. package/.changeset/slimy-chicken-melt.md +0 -5
  272. package/.changeset/slimy-maps-press.md +0 -5
  273. package/.changeset/slow-ravens-explain.md +0 -19
  274. package/.changeset/small-buttons-rhyme.md +0 -5
  275. package/.changeset/small-cycles-rescue.md +0 -5
  276. package/.changeset/small-kids-film.md +0 -14
  277. package/.changeset/small-poems-rest.md +0 -5
  278. package/.changeset/smart-rats-explode.md +0 -5
  279. package/.changeset/smooth-coins-collect.md +0 -5
  280. package/.changeset/smooth-pens-reply.md +0 -7
  281. package/.changeset/soft-mails-clean.md +0 -5
  282. package/.changeset/sour-colts-tell.md +0 -5
  283. package/.changeset/sour-guests-poke.md +0 -5
  284. package/.changeset/sour-kids-deliver.md +0 -5
  285. package/.changeset/sour-pillows-guess.md +0 -7
  286. package/.changeset/spotty-mugs-poke.md +0 -5
  287. package/.changeset/strange-seahorses-impress.md +0 -17
  288. package/.changeset/strange-walls-march.md +0 -5
  289. package/.changeset/strong-rivers-fry.md +0 -34
  290. package/.changeset/stupid-pumpkins-travel.md +0 -13
  291. package/.changeset/swift-rivers-share.md +0 -13
  292. package/.changeset/tall-bikes-develop.md +0 -5
  293. package/.changeset/tall-cups-suffer.md +0 -13
  294. package/.changeset/tame-doors-shop.md +0 -14
  295. package/.changeset/tame-points-work.md +0 -11
  296. package/.changeset/tender-swans-flash.md +0 -16
  297. package/.changeset/thick-books-grin.md +0 -5
  298. package/.changeset/thin-peas-hear.md +0 -16
  299. package/.changeset/thirty-pens-jump.md +0 -5
  300. package/.changeset/tidy-pandas-punch.md +0 -5
  301. package/.changeset/tidy-squids-poke.md +0 -12
  302. package/.changeset/tough-rockets-allow.md +0 -5
  303. package/.changeset/tough-taxis-smoke.md +0 -7
  304. package/.changeset/tough-tips-drop.md +0 -15
  305. package/.changeset/tricky-tables-shave.md +0 -5
  306. package/.changeset/twenty-snakes-sort.md +0 -7
  307. package/.changeset/unlucky-kiwis-sell.md +0 -5
  308. package/.changeset/unlucky-sheep-change.md +0 -5
  309. package/.changeset/warm-ties-sit.md +0 -7
  310. package/.changeset/wicked-forks-double.md +0 -33
  311. package/.changeset/wicked-kiwis-buy.md +0 -5
  312. package/.changeset/witty-paws-marry.md +0 -26
  313. package/.changeset/yellow-cats-judge.md +0 -13
  314. package/.changeset/young-phones-fold.md +0 -5
  315. package/.changeset/young-snails-grin.md +0 -5
  316. package/.changeset/young-turtles-explode.md +0 -5
  317. package/__cjs/masking/__benches__/types.bench.cjs +0 -223
  318. package/__cjs/masking/__benches__/types.bench.cjs.map +0 -1
  319. package/__cjs/masking/__benches__/types.bench.d.cts +0 -2
  320. package/__cjs/testing/internal/ObservableStream.cjs +0 -110
  321. package/__cjs/testing/internal/ObservableStream.cjs.map +0 -1
  322. package/__cjs/testing/internal/ObservableStream.d.cts +0 -39
  323. package/__cjs/testing/internal/disposables/enableFakeTimers.cjs +0 -19
  324. package/__cjs/testing/internal/disposables/enableFakeTimers.cjs.map +0 -1
  325. package/__cjs/testing/internal/disposables/enableFakeTimers.d.cts +0 -7
  326. package/__cjs/testing/internal/disposables/index.cjs +0 -12
  327. package/__cjs/testing/internal/disposables/index.cjs.map +0 -1
  328. package/__cjs/testing/internal/disposables/index.d.cts +0 -5
  329. package/__cjs/testing/internal/disposables/spyOnConsole.cjs +0 -24
  330. package/__cjs/testing/internal/disposables/spyOnConsole.cjs.map +0 -1
  331. package/__cjs/testing/internal/disposables/spyOnConsole.d.cts +0 -8
  332. package/__cjs/testing/internal/disposables/withCleanup.cjs +0 -22
  333. package/__cjs/testing/internal/disposables/withCleanup.cjs.map +0 -1
  334. package/__cjs/testing/internal/disposables/withCleanup.d.cts +0 -7
  335. package/__cjs/testing/internal/disposables/withProdMode.cjs +0 -17
  336. package/__cjs/testing/internal/disposables/withProdMode.cjs.map +0 -1
  337. package/__cjs/testing/internal/disposables/withProdMode.d.cts +0 -4
  338. package/__cjs/testing/internal/incremental.cjs +0 -124
  339. package/__cjs/testing/internal/incremental.cjs.map +0 -1
  340. package/__cjs/testing/internal/incremental.d.cts +0 -16
  341. package/__cjs/testing/internal/index.cjs +0 -36
  342. package/__cjs/testing/internal/index.cjs.map +0 -1
  343. package/__cjs/testing/internal/index.d.cts +0 -13
  344. package/__cjs/testing/internal/link.cjs +0 -22
  345. package/__cjs/testing/internal/link.cjs.map +0 -1
  346. package/__cjs/testing/internal/link.d.cts +0 -6
  347. package/__cjs/testing/internal/messageChannelPolyfill.cjs +0 -18
  348. package/__cjs/testing/internal/messageChannelPolyfill.cjs.map +0 -1
  349. package/__cjs/testing/internal/messageChannelPolyfill.d.cts +0 -2
  350. package/__cjs/testing/internal/renderHelpers.cjs +0 -21
  351. package/__cjs/testing/internal/renderHelpers.cjs.map +0 -1
  352. package/__cjs/testing/internal/renderHelpers.d.cts +0 -14
  353. package/__cjs/testing/internal/resetApolloContext.cjs +0 -24
  354. package/__cjs/testing/internal/resetApolloContext.cjs.map +0 -1
  355. package/__cjs/testing/internal/resetApolloContext.d.cts +0 -10
  356. package/__cjs/testing/internal/rtl/actAsync.cjs +0 -18
  357. package/__cjs/testing/internal/rtl/actAsync.cjs.map +0 -1
  358. package/__cjs/testing/internal/rtl/actAsync.d.cts +0 -2
  359. package/__cjs/testing/internal/rtl/renderAsync.cjs +0 -15
  360. package/__cjs/testing/internal/rtl/renderAsync.cjs.map +0 -1
  361. package/__cjs/testing/internal/rtl/renderAsync.d.cts +0 -9
  362. package/__cjs/testing/internal/rtl/renderHookAsync.cjs +0 -37
  363. package/__cjs/testing/internal/rtl/renderHookAsync.cjs.map +0 -1
  364. package/__cjs/testing/internal/rtl/renderHookAsync.d.cts +0 -8
  365. package/__cjs/testing/internal/scenarios/index.cjs +0 -104
  366. package/__cjs/testing/internal/scenarios/index.cjs.map +0 -1
  367. package/__cjs/testing/internal/scenarios/index.d.cts +0 -83
  368. package/__cjs/testing/internal/wait.cjs +0 -7
  369. package/__cjs/testing/internal/wait.cjs.map +0 -1
  370. package/__cjs/testing/internal/wait.d.cts +0 -2
  371. package/__cjs/testing/matchers/arrayWithLength.cjs +0 -15
  372. package/__cjs/testing/matchers/arrayWithLength.cjs.map +0 -1
  373. package/__cjs/testing/matchers/arrayWithLength.d.cts +0 -3
  374. package/__cjs/testing/matchers/index.cjs +0 -31
  375. package/__cjs/testing/matchers/index.cjs.map +0 -1
  376. package/__cjs/testing/matchers/index.d.cts +0 -2
  377. package/__cjs/testing/matchers/isSameClient.cjs +0 -19
  378. package/__cjs/testing/matchers/isSameClient.cjs.map +0 -1
  379. package/__cjs/testing/matchers/isSameClient.d.cts +0 -3
  380. package/__cjs/testing/matchers/isSameObservableQuery.cjs +0 -19
  381. package/__cjs/testing/matchers/isSameObservableQuery.cjs.map +0 -1
  382. package/__cjs/testing/matchers/isSameObservableQuery.d.cts +0 -3
  383. package/__cjs/testing/matchers/toBeDisposed.cjs +0 -20
  384. package/__cjs/testing/matchers/toBeDisposed.cjs.map +0 -1
  385. package/__cjs/testing/matchers/toBeDisposed.d.cts +0 -3
  386. package/__cjs/testing/matchers/toBeGarbageCollected.cjs +0 -43
  387. package/__cjs/testing/matchers/toBeGarbageCollected.cjs.map +0 -1
  388. package/__cjs/testing/matchers/toBeGarbageCollected.d.cts +0 -8
  389. package/__cjs/testing/matchers/toComplete.cjs +0 -30
  390. package/__cjs/testing/matchers/toComplete.cjs.map +0 -1
  391. package/__cjs/testing/matchers/toComplete.d.cts +0 -4
  392. package/__cjs/testing/matchers/toEmitAnything.cjs +0 -33
  393. package/__cjs/testing/matchers/toEmitAnything.cjs.map +0 -1
  394. package/__cjs/testing/matchers/toEmitAnything.d.cts +0 -4
  395. package/__cjs/testing/matchers/toEmitError.cjs +0 -46
  396. package/__cjs/testing/matchers/toEmitError.cjs.map +0 -1
  397. package/__cjs/testing/matchers/toEmitError.d.cts +0 -7
  398. package/__cjs/testing/matchers/toEmitNext.cjs +0 -30
  399. package/__cjs/testing/matchers/toEmitNext.cjs.map +0 -1
  400. package/__cjs/testing/matchers/toEmitNext.d.cts +0 -4
  401. package/__cjs/testing/matchers/toEmitTypedValue.cjs +0 -42
  402. package/__cjs/testing/matchers/toEmitTypedValue.cjs.map +0 -1
  403. package/__cjs/testing/matchers/toEmitTypedValue.d.cts +0 -12
  404. package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.cjs +0 -26
  405. package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.cjs.map +0 -1
  406. package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.d.cts +0 -11
  407. package/__cjs/testing/matchers/toMatchDocument.cjs +0 -37
  408. package/__cjs/testing/matchers/toMatchDocument.cjs.map +0 -1
  409. package/__cjs/testing/matchers/toMatchDocument.d.cts +0 -4
  410. package/__cjs/testing/matchers/toRerenderWithSimilarSnapshot.cjs +0 -65
  411. package/__cjs/testing/matchers/toRerenderWithSimilarSnapshot.cjs.map +0 -1
  412. package/__cjs/testing/matchers/toRerenderWithSimilarSnapshot.d.cts +0 -20
  413. package/__cjs/testing/matchers/toStrictEqualTyped.cjs +0 -32
  414. package/__cjs/testing/matchers/toStrictEqualTyped.cjs.map +0 -1
  415. package/__cjs/testing/matchers/toStrictEqualTyped.d.cts +0 -12
  416. package/__cjs/testing/matchers/utils/getSerializableProperties.cjs +0 -36
  417. package/__cjs/testing/matchers/utils/getSerializableProperties.cjs.map +0 -1
  418. package/__cjs/testing/matchers/utils/getSerializableProperties.d.cts +0 -4
  419. package/__cjs/utilities/internal/types/DeepPartial.cjs.map +0 -1
  420. package/legacyEntryPoints/testing/internal/index.d.ts +0 -1
  421. package/legacyEntryPoints/testing/internal/index.js +0 -1
  422. package/legacyEntryPoints/testing/internal/internal.cjs +0 -1
  423. package/legacyEntryPoints/testing/internal/internal.d.cts +0 -1
  424. package/masking/__benches__/types.bench.d.ts +0 -2
  425. package/masking/__benches__/types.bench.js +0 -221
  426. package/masking/__benches__/types.bench.js.map +0 -1
  427. package/testing/internal/ObservableStream.d.ts +0 -39
  428. package/testing/internal/ObservableStream.js +0 -105
  429. package/testing/internal/ObservableStream.js.map +0 -1
  430. package/testing/internal/disposables/enableFakeTimers.d.ts +0 -7
  431. package/testing/internal/disposables/enableFakeTimers.js +0 -16
  432. package/testing/internal/disposables/enableFakeTimers.js.map +0 -1
  433. package/testing/internal/disposables/index.d.ts +0 -5
  434. package/testing/internal/disposables/index.js +0 -5
  435. package/testing/internal/disposables/index.js.map +0 -1
  436. package/testing/internal/disposables/spyOnConsole.d.ts +0 -8
  437. package/testing/internal/disposables/spyOnConsole.js +0 -21
  438. package/testing/internal/disposables/spyOnConsole.js.map +0 -1
  439. package/testing/internal/disposables/withCleanup.d.ts +0 -7
  440. package/testing/internal/disposables/withCleanup.js +0 -19
  441. package/testing/internal/disposables/withCleanup.js.map +0 -1
  442. package/testing/internal/disposables/withProdMode.d.ts +0 -4
  443. package/testing/internal/disposables/withProdMode.js +0 -13
  444. package/testing/internal/disposables/withProdMode.js.map +0 -1
  445. package/testing/internal/incremental.d.ts +0 -16
  446. package/testing/internal/incremental.js +0 -120
  447. package/testing/internal/incremental.js.map +0 -1
  448. package/testing/internal/index.d.ts +0 -13
  449. package/testing/internal/index.js +0 -12
  450. package/testing/internal/index.js.map +0 -1
  451. package/testing/internal/link.d.ts +0 -6
  452. package/testing/internal/link.js +0 -18
  453. package/testing/internal/link.js.map +0 -1
  454. package/testing/internal/messageChannelPolyfill.d.ts +0 -2
  455. package/testing/internal/messageChannelPolyfill.js +0 -16
  456. package/testing/internal/messageChannelPolyfill.js.map +0 -1
  457. package/testing/internal/renderHelpers.d.ts +0 -14
  458. package/testing/internal/renderHelpers.js +0 -16
  459. package/testing/internal/renderHelpers.js.map +0 -1
  460. package/testing/internal/resetApolloContext.d.ts +0 -10
  461. package/testing/internal/resetApolloContext.js +0 -20
  462. package/testing/internal/resetApolloContext.js.map +0 -1
  463. package/testing/internal/rtl/actAsync.d.ts +0 -2
  464. package/testing/internal/rtl/actAsync.js +0 -14
  465. package/testing/internal/rtl/actAsync.js.map +0 -1
  466. package/testing/internal/rtl/renderAsync.d.ts +0 -9
  467. package/testing/internal/rtl/renderAsync.js +0 -12
  468. package/testing/internal/rtl/renderAsync.js.map +0 -1
  469. package/testing/internal/rtl/renderHookAsync.d.ts +0 -8
  470. package/testing/internal/rtl/renderHookAsync.js +0 -33
  471. package/testing/internal/rtl/renderHookAsync.js.map +0 -1
  472. package/testing/internal/scenarios/index.d.ts +0 -83
  473. package/testing/internal/scenarios/index.js +0 -97
  474. package/testing/internal/scenarios/index.js.map +0 -1
  475. package/testing/internal/wait.d.ts +0 -2
  476. package/testing/internal/wait.js +0 -4
  477. package/testing/internal/wait.js.map +0 -1
  478. package/testing/matchers/arrayWithLength.d.ts +0 -3
  479. package/testing/matchers/arrayWithLength.js +0 -11
  480. package/testing/matchers/arrayWithLength.js.map +0 -1
  481. package/testing/matchers/index.d.ts +0 -2
  482. package/testing/matchers/index.js +0 -29
  483. package/testing/matchers/index.js.map +0 -1
  484. package/testing/matchers/isSameClient.d.ts +0 -3
  485. package/testing/matchers/isSameClient.js +0 -15
  486. package/testing/matchers/isSameClient.js.map +0 -1
  487. package/testing/matchers/isSameObservableQuery.d.ts +0 -3
  488. package/testing/matchers/isSameObservableQuery.js +0 -15
  489. package/testing/matchers/isSameObservableQuery.js.map +0 -1
  490. package/testing/matchers/toBeDisposed.d.ts +0 -3
  491. package/testing/matchers/toBeDisposed.js +0 -16
  492. package/testing/matchers/toBeDisposed.js.map +0 -1
  493. package/testing/matchers/toBeGarbageCollected.d.ts +0 -8
  494. package/testing/matchers/toBeGarbageCollected.js +0 -39
  495. package/testing/matchers/toBeGarbageCollected.js.map +0 -1
  496. package/testing/matchers/toComplete.d.ts +0 -4
  497. package/testing/matchers/toComplete.js +0 -26
  498. package/testing/matchers/toComplete.js.map +0 -1
  499. package/testing/matchers/toEmitAnything.d.ts +0 -4
  500. package/testing/matchers/toEmitAnything.js +0 -29
  501. package/testing/matchers/toEmitAnything.js.map +0 -1
  502. package/testing/matchers/toEmitError.d.ts +0 -7
  503. package/testing/matchers/toEmitError.js +0 -42
  504. package/testing/matchers/toEmitError.js.map +0 -1
  505. package/testing/matchers/toEmitNext.d.ts +0 -4
  506. package/testing/matchers/toEmitNext.js +0 -26
  507. package/testing/matchers/toEmitNext.js.map +0 -1
  508. package/testing/matchers/toEmitTypedValue.d.ts +0 -12
  509. package/testing/matchers/toEmitTypedValue.js +0 -38
  510. package/testing/matchers/toEmitTypedValue.js.map +0 -1
  511. package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts +0 -11
  512. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js +0 -22
  513. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +0 -1
  514. package/testing/matchers/toMatchDocument.d.ts +0 -4
  515. package/testing/matchers/toMatchDocument.js +0 -33
  516. package/testing/matchers/toMatchDocument.js.map +0 -1
  517. package/testing/matchers/toRerenderWithSimilarSnapshot.d.ts +0 -20
  518. package/testing/matchers/toRerenderWithSimilarSnapshot.js +0 -62
  519. package/testing/matchers/toRerenderWithSimilarSnapshot.js.map +0 -1
  520. package/testing/matchers/toStrictEqualTyped.d.ts +0 -12
  521. package/testing/matchers/toStrictEqualTyped.js +0 -28
  522. package/testing/matchers/toStrictEqualTyped.js.map +0 -1
  523. package/testing/matchers/utils/getSerializableProperties.d.ts +0 -4
  524. package/testing/matchers/utils/getSerializableProperties.js +0 -33
  525. package/testing/matchers/utils/getSerializableProperties.js.map +0 -1
  526. package/utilities/internal/types/DeepPartial.js.map +0 -1
  527. /package/__cjs/utilities/{internal/types/DeepPartial.cjs → DeepPartial.cjs} +0 -0
  528. /package/utilities/{internal/types/DeepPartial.js → DeepPartial.js} +0 -0
@@ -1,16 +0,0 @@
1
- ---
2
- "@apollo/client": minor
3
- ---
4
-
5
- Apollo Client is no longer using `ts-invariant`, but ships with a modified variant of it.
6
-
7
- The existing export `setLogVerbosity` from `@apollo/client` is still available and
8
- now points to this new integration.
9
- **In most cases, you should be using this export.**
10
- It will no longer adjust the verbosity of `ts-invariant` and as such no longer
11
- influence other packages relying on `ts-invariant`.
12
-
13
- The new entry point `@apollo/client/utilities/invariant` now exports `invariant`,
14
- `InvariantError` and `setVerbosity`.
15
- (Note that these tools are mostly meant to be used by Apollo Client and libraries directly
16
- based on Apollo Client like the `@apollo/client-integration-*` packages.)
@@ -1,14 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Removes the `resolvers` option from `ApolloClient`. Local resolvers have instead been moved to the new `LocalState` instance which is assigned to the `localState` option in `ApolloClient`. To migrate, move the `resolvers` values into a `LocalState` instance and assign that instance to `localState`.
6
-
7
- ```diff
8
- new ApolloClient({
9
- - resolvers: { /* ... */ }
10
- + localState: new LocalState({
11
- + resolvers: { /* ... */ }
12
- + }),
13
- });
14
- ```
@@ -1,7 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- `client.mutate` now returns a `MutateResult` instead of `FetchResult`. As a result, the `errors` property has been removed in favor of `error` which is set if either a network error occured or GraphQL errors are returned from the server.
6
-
7
- `useMutation` now also returns a `MutateResult` instead of a `FetchResult`.
@@ -1,7 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- `useQuery` with `ssr: false` - previously, `skip` had a higher priortity than `ssr: false` while `ssr: false` had a higher priority than `fetchPolicy: "standby"` (which is roughly equivalent to `skip`).
6
-
7
- This priority has been adjusted so now both `skip` and `fetchPolicy: "standby"` have a higher priority than `ssr: false` and will return `loading: false`, while `ssr: false` will only come after those and will return `loading: true` if those are not set.
@@ -1,7 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- The execute function returned from `useLazyQuery` now only supports the `context` and `variables` options. This means that passing options supported by the hook no longer override the hook value.
6
-
7
- To change options, rerender the component with new options. These options will take effect with the next query execution.
@@ -1,34 +0,0 @@
1
- ---
2
- "@apollo/client": minor
3
- ---
4
-
5
- Provide an extension to define types for `context` passed to the link chain. To define your own types, use [declaration merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) to add properties to the `DefaultContext` type.
6
-
7
- ```ts
8
- // @apollo-client.d.ts
9
- // This import is necessary to ensure all Apollo Client imports
10
- // are still available to the rest of the application.
11
- import '@apollo/client';
12
-
13
- declare module "@apollo/client" {
14
- interface DefaultContext extends Record<string, any> {
15
- myProperty: string;
16
- }
17
- }
18
- ```
19
-
20
- Links that provide context options can be used with this type to add those context types to `DefaultContext`. For example, to add context options from `HttpLink`, add the following code:
21
-
22
- ```ts
23
- import { HttpLink } from "@apollo/client";
24
-
25
- declare module "@apollo/client" {
26
- interface DefaultContext extends HttpLink.ContextOptions {
27
- myProperty: string;
28
- }
29
- }
30
- ```
31
-
32
- At this time, the following built-in links support context options:
33
- - `HttpLink.ContextOptions`
34
- - `BatchHttpLink.ContextOptions`
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- Fix an issue where passing `onError` to `useMutation` would resolve the promise returned by the `mutate` function instead of rejecting when using an `errorPolicy` of `none`.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- `ObservableQuery` will no longer terminate on errors and will instead emit a `next` value with an `error` property. This ensures that `ObservableQuery` instances can continue to receive updates after errors are returned in requests without the need to resubscribe to the observable.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- Ensure `useLazyQuery` does not return a `partial` property which is not specified by the result type.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- ObservableQuery: implement the `rxjs` `InteropObservable` interface to ensure `from(observableQuery)` stays possible
@@ -1,16 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Removes the `throwServerError` utility function. Now that `ServerError` is an
6
- `Error` subclass, you can throw these errors directly:
7
-
8
- ```js
9
- import { ServerError } from '@apollo/client';
10
-
11
- // instead of
12
- throwServerError(response, result, 'error message')
13
-
14
- // Use
15
- throw new ServerError('error message', { response, result })
16
- ```
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- `@apollo/client`, `@apollo/client/core` and `@apollo/client/cache` no longer export an empty `Cache` runtime object. This is meant to be a type-only namespace.
@@ -1,7 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- The `Cache.DiffResult<T>` type is now a union type with better type safety for both complete and partial results. Checking `diff.complete` will now narrow the type of `result` depending on whether the value is `true` or `false`.
6
-
7
- When `true`, `diff.result` will be a non-null value equal to the `T` generic type. When `false`, `diff.result` now reports `result` as `DeepPartial<T> | null` indicating that fields in the result may be missing (`DeepPartial<T>`) or empty entirely (`null`).
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": minor
3
- ---
4
-
5
- Add a `data` property to `CombinedGraphQLErrors` that captures any partial data returned by the GraphQL response when `errors` are also returned.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Removes the `defaultOptions` option from `useQuery`. Use options directly or use the global `ApolloClient` `defaultOptions`.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Remove the `errors` property from the results emitted from `ObservableQuery` or returned from `client.query`. Read errors from the `error` property instead.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- Removed the `parser` cache. The functionality has been replaced in a way that doesn't need caching.
@@ -1,7 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- The result resolved from the promise returned from the execute function in `useLazyQuery` is now an `ApolloQueryResult` type and no longer includes all the fields returned from the `useLazyQuery` hook tuple.
6
-
7
- If you need access to the additional properties such as `called`, `refetch`, etc. not included in `ApolloQueryResult`, read them from the hook instead.
@@ -1,17 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Mocked responses passed to `MockLink` now accept a callback for the `request.variables` option. This is used to determine if the mock should be matched for a set of request variables. With this change, the `variableMatcher` option has been removed in favor of passing a callback to `variables`. Update by moving the callback function from `variableMatcher` to `request.variables`.
6
-
7
- ```diff
8
- new MockLink([
9
- {
10
- request: {
11
- query,
12
- + variables: (requestVariables) => true
13
- },
14
- - variableMatcher: (requestVariables) => true
15
- }
16
- ]);
17
- ```
@@ -1,17 +0,0 @@
1
- ---
2
- "@apollo/client": minor
3
- ---
4
-
5
- Add the ability to detect if an error was an error was emitted from the link chain. This is useful if your application throws custom errors in other areas of the application and you'd like to differentiate them from errors emitted by the link chain itself.
6
-
7
- To detect if an error was emitted from the link chain, use `LinkError.is`.
8
-
9
- ```ts
10
- import { LinkError } from "@apollo/client";
11
-
12
- client.query({ query }).catch((error) => {
13
- if (LinkError.is(error)) {
14
- // This error originated from the link chain
15
- }
16
- });
17
- ```
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- Rename all React hook result types and options. These types have all moved under a namespace that matches the hook name. For example, `useQuery` exports `useQuery.Options` and `useQuery.Result` types. As such, the old hook types have been deprecated and will be removed in v5.
@@ -1,9 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Remove local resolvers APIs from `ApolloClient` in favor of `localState`. Methods removed are:
6
- - `addResolvers`
7
- - `getResolvers`
8
- - `setResolvers`
9
- - `setLocalStateFragmentMatcher`
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- Adjust `useMutation` types to better handle required variables. When required variables are missing, TypeScript will now complain if they are not provided either to the hook or the returned `mutate` function. Providing required variables to `useMutation` will make them optional in the returned `mutate` function.
@@ -1,12 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- `ApolloLink.execute` now requires a third argument which provides the `client` that initiated the request to the link chain. If you use `execute` directly, add a third argument with a `client` property:
6
-
7
- ```ts
8
- ApolloLink.execute(link, operation, { client });
9
-
10
- // or if you import the `execute` function directly:
11
- execute(link, operation, { client });
12
- ```
@@ -1,7 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- The `@apollo/client` and `@apollo/client/core` entry points are now equal.
6
- In the next major, the `@apollo/client/core` entry point will be removed.
7
- Please change imports over from `@apollo/client/core` to `@apollo/client`.
@@ -1,26 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- `useLazyQuery` will no longer rerender with the loading state when calling the execute function the first time unless the `notifyOnNetworkStatusChange` option is set to `true` (which is the new default).
6
-
7
- If you prefer the behavior from 3.x, rerender the component with
8
- `notifyOnNetworkStatusChange` set to `false` after the execute function is
9
- called the first time.
10
-
11
- ```ts
12
- function MyComponent() {
13
- const [notifyOnNetworkStatusChange, setNotifyOnNetworkStatusChange] = useState(true);
14
- const [execute] = useLazyQuery(query, { notifyOnNetworkStatusChange });
15
-
16
- async function runExecute() {
17
- await execute();
18
-
19
- // Set to false after the initial fetch to stop receiving notifications
20
- // about changes to the loading states.
21
- setNotifyOnNetworkStatusChange(false);
22
- }
23
-
24
- // ...
25
- }
26
- ```
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Mutations no longer report errors if the GraphQL result from the server contains an empty array of errors.
@@ -1,23 +0,0 @@
1
- ---
2
- "@apollo/client": minor
3
- ---
4
-
5
- Move `MockLink` types to `MockLink` namespace. This affects the `MockedResponse`, `MockLinkOptions`, and `ResultFunction` types. These types are still exported but are deprecated in favor of the namespace. To migrate, use the types on the `MockLink` namespace instead.
6
-
7
- ```diff
8
- import {
9
- - MockedResponse,
10
- - MockLinkOptions,
11
- - ResultFunction,
12
- + MockLink
13
- } from "@apollo/client/testing";
14
-
15
- - const mocks: MockedResponse = [];
16
- + const mocks: MockLink.MockedResponse = [];
17
-
18
- - const result: ResultFunction = () => {/* ... */ }
19
- + const result: MockLink.ResultFunction = () => {/* ... */ }
20
-
21
- - const options: MockLinkOptions = {}
22
- + const options: MockLink.Options = {}
23
- ```
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Changes the default `Accept` header to `application/graphql-response+json`.
@@ -1,168 +0,0 @@
1
- {
2
- "mode": "pre",
3
- "tag": "alpha",
4
- "initialVersions": {
5
- "@apollo/client": "3.12.2"
6
- },
7
- "changesets": [
8
- "afraid-grapes-call",
9
- "afraid-moons-arrive",
10
- "beige-mirrors-talk",
11
- "beige-spiders-hope",
12
- "brave-moons-juggle",
13
- "brave-radios-wait",
14
- "bright-ads-share",
15
- "calm-frogs-remain",
16
- "calm-seals-relate",
17
- "chatty-planes-grin",
18
- "clean-sheep-hide",
19
- "clever-zebras-mate",
20
- "cool-bikes-shake",
21
- "cool-kiwis-hunt",
22
- "cuddly-spiders-tie",
23
- "curvy-flies-accept",
24
- "curvy-pianos-count",
25
- "dirty-cobras-change",
26
- "dirty-eagles-poke",
27
- "dirty-trees-pump",
28
- "early-eggs-develop",
29
- "eighty-squids-fix",
30
- "eleven-kangaroos-jump",
31
- "empty-rabbits-move",
32
- "few-crabs-move",
33
- "fluffy-shoes-applaud",
34
- "forty-hairs-occur",
35
- "forty-shrimps-fry",
36
- "forty-tomatoes-punch",
37
- "four-countries-clean",
38
- "four-ghosts-watch",
39
- "fresh-moose-hope",
40
- "friendly-olives-refuse",
41
- "funny-boats-wink",
42
- "funny-jeans-invent",
43
- "funny-terms-deny",
44
- "fuzzy-seahorses-hunt",
45
- "fuzzy-tips-sit",
46
- "gentle-badgers-train",
47
- "gentle-waves-cough",
48
- "giant-apes-thank",
49
- "giant-bags-share",
50
- "gold-oranges-double",
51
- "good-dolphins-peel",
52
- "gorgeous-chefs-tap",
53
- "great-roses-jog",
54
- "grumpy-vans-type",
55
- "healthy-apes-sneeze",
56
- "hip-vans-act",
57
- "hot-cycles-notice",
58
- "hungry-bikes-cough",
59
- "itchy-chefs-run",
60
- "itchy-drinks-refuse",
61
- "itchy-roses-accept",
62
- "khaki-keys-deliver",
63
- "khaki-spies-work",
64
- "kind-fishes-develop",
65
- "large-plants-know",
66
- "late-trainers-peel",
67
- "light-apes-rescue",
68
- "light-dolphins-taste",
69
- "light-sloths-end",
70
- "little-parrots-bow",
71
- "little-spoons-kick",
72
- "loud-cows-raise",
73
- "lucky-hats-push",
74
- "lucky-sheep-explain",
75
- "many-buses-allow",
76
- "many-papayas-hide",
77
- "mean-lizards-think",
78
- "metal-needles-search",
79
- "mighty-penguins-wink",
80
- "modern-feet-do",
81
- "moody-lobsters-listen",
82
- "nervous-fireants-bow",
83
- "nervous-goats-allow",
84
- "nice-donkeys-reflect",
85
- "nice-dots-matter",
86
- "nice-waves-work",
87
- "ninety-bags-bake",
88
- "odd-chicken-hide",
89
- "odd-lemons-relax",
90
- "olive-cougars-ring",
91
- "orange-suits-laugh",
92
- "perfect-ducks-reflect",
93
- "perfect-vans-give",
94
- "polite-bees-care",
95
- "poor-eels-punch",
96
- "poor-spiders-hunt",
97
- "popular-games-sleep",
98
- "purple-bears-flash",
99
- "purple-lions-cough",
100
- "rare-houses-prove",
101
- "real-gorillas-move",
102
- "real-teachers-peel",
103
- "rich-eagles-cross",
104
- "rich-kids-carry",
105
- "rude-fans-study",
106
- "selfish-spoons-approve",
107
- "serious-items-develop",
108
- "serious-moons-juggle",
109
- "seven-dragons-repair",
110
- "seven-foxes-melt",
111
- "seven-schools-carry",
112
- "shaggy-pugs-add",
113
- "shiny-carrots-invent",
114
- "short-jokes-jam",
115
- "short-months-complain",
116
- "short-tomatoes-attend",
117
- "silly-knives-exist",
118
- "silly-seas-confess",
119
- "sixty-bats-cry",
120
- "slimy-ants-bake",
121
- "slimy-chicken-melt",
122
- "slimy-maps-press",
123
- "slow-ravens-explain",
124
- "small-buttons-rhyme",
125
- "small-cycles-rescue",
126
- "small-kids-film",
127
- "small-poems-rest",
128
- "smart-rats-explode",
129
- "smooth-coins-collect",
130
- "smooth-pens-reply",
131
- "soft-mails-clean",
132
- "sour-colts-tell",
133
- "sour-guests-poke",
134
- "sour-kids-deliver",
135
- "sour-pillows-guess",
136
- "spotty-mugs-poke",
137
- "strange-seahorses-impress",
138
- "strange-walls-march",
139
- "strong-rivers-fry",
140
- "stupid-pumpkins-travel",
141
- "swift-rivers-share",
142
- "tall-bikes-develop",
143
- "tall-cups-suffer",
144
- "tame-doors-shop",
145
- "tame-points-work",
146
- "tender-swans-flash",
147
- "thick-books-grin",
148
- "thin-peas-hear",
149
- "thirty-pens-jump",
150
- "tidy-pandas-punch",
151
- "tidy-squids-poke",
152
- "tough-rockets-allow",
153
- "tough-taxis-smoke",
154
- "tough-tips-drop",
155
- "tricky-tables-shave",
156
- "twenty-snakes-sort",
157
- "unlucky-kiwis-sell",
158
- "unlucky-sheep-change",
159
- "warm-ties-sit",
160
- "wicked-forks-double",
161
- "wicked-kiwis-buy",
162
- "witty-paws-marry",
163
- "yellow-cats-judge",
164
- "young-phones-fold",
165
- "young-snails-grin",
166
- "young-turtles-explode"
167
- ]
168
- }
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Removed the `@apollo/client/react/parser` entry point. There is no replacement.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- `ObservableQuery.setVariables` will now resolve with the last emitted result instead of `undefined` when either the variables match the current variables or there are no subscribers to the query.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": minor
3
- ---
4
-
5
- Add `react-server` entry point with stubs for normal exports.
@@ -1,21 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Apollo Client now defaults to production mode, not development mode, if the
6
- environment cannot be determined.
7
-
8
- In modern bundlers, this should automatically be handled by the bundler loading
9
- the bundler with the `development` export condition.
10
-
11
- If neither the `production` nor the `development` export condition are
12
- used by the bundler/runtime, Apollo Client will fall back to `globalThis.__DEV__`
13
- to determine if it should run in production or development mode.
14
-
15
- Unlike Apollo Client 3 though, if `globalThis.__DEV__` is not set to `true`,
16
- Apollo Client will now default to `production`, not to `development`, behaviour.
17
-
18
- This switch to *explicilty* requiring `true` also resolves a situation where
19
- an HTML element with `id="__DEV__"` would create a global `__DEV__` variable
20
- with a referent to the DOM element, which in the past was picked up as "truthy" and
21
- would have triggered development mode.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Unify error behavior on subscriptions for GraphQL errors and network errors by ensuring network errors are subject to the `errorPolicy`. Network errors that terminate the connection will now be emitted on the `error` property passed to the `next` callback followed by a call to the `complete` callback.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- The `reobserve` option is no longer available in the result returned from `useLazyQuery`. This was considered an internal API and should not be used directly.
@@ -1,9 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Fix type of `data` property on `ApolloQueryResult`. Previously this field was non-optional, non-null `TData`, however at runtime this value could be set to `undefined`. This field is now reported as `TData | undefined`.
6
-
7
- This will affect you in a handful of places:
8
- - The `data` property emitted from the result passed to the `next` callback from `client.watchQuery`
9
- - Fetch-based APIs that return an `ApolloQueryResult` type such as `observableQuery.refetch`, `observableQuery.fetchMore`, etc.
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": minor
3
- ---
4
-
5
- Deprecate the `partial` flag on `ApolloQueryResult` and make it a non-optional property. Previously `partial` was only set conditionally if the result emitted was partial. This value is now available with all results that return an `ApolloQueryResult`.
@@ -1,44 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Move internal testing utilities in `@apollo/client/testing` to `@apollo/client/testing/internal` and remove deprecated testing utilities. Some of the testing utilities exported from the `@apollo/client/testing` endpoint were not considered stable. As a result of this change, testing utilities or types exported from `@apollo/client/testing` are now considered stable and will not undergo breaking changes.
6
-
7
- The following APIs were removed. To migrate, update usages of the following APIs as such:
8
-
9
- **`createMockClient`**
10
-
11
- ```diff
12
- - const client = createMockClient(data, query, variables);
13
- + const client = new ApolloClient({
14
- + cache: new InMemoryCache(),
15
- + link: new MockLink([
16
- + {
17
- + request: { query, variables },
18
- + result: { data },
19
- + }
20
- + ]),
21
- + });
22
- ```
23
-
24
- **`mockObservableLink`**
25
-
26
- ```diff
27
- - const link = mockObservableLink();
28
- + const link = new MockSubscriptionLink();
29
- ```
30
-
31
- **`mockSingleLink`**
32
-
33
- ```diff
34
- - const link = mockSingleLink({
35
- - request: { query, variables },
36
- - result: { data },
37
- - });
38
- + const link = new MockLink([
39
- + {
40
- + request: { query, variables },
41
- + result: { data },
42
- + }
43
- + ]);
44
- ```
@@ -1,17 +0,0 @@
1
- ---
2
- "@apollo/client": major
3
- ---
4
-
5
- Third-party caches must now implement the `fragmentMatches` API. Additionally `fragmentMatches` must be able to handle both `InlineFragmentNode` and `FragmentDefinitionNode` nodes.
6
-
7
- ```ts
8
- class MyCache extends ApolloCache {
9
- // This is now required
10
- public fragmentMatches(
11
- fragment: InlineFragmentNode | FragmentDefinitionNode,
12
- typename: string
13
- ): boolean {
14
- return // ... logic to determine if typename matches fragment
15
- }
16
- }
17
- ```
@@ -1,5 +0,0 @@
1
- ---
2
- "@apollo/client": patch
3
- ---
4
-
5
- `client.query` no longer supports `notifyOnNetworkStatusChange` in options. An error will be thrown if this option is set. The effects of this option were not observable by `client.query` since `client.query` emits a single result.