@apollo/client 4.0.0-alpha.6 → 4.0.0-alpha.7

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 (356) hide show
  1. package/.changeset/dirty-eagles-poke.md +5 -0
  2. package/.changeset/nice-dots-matter.md +5 -0
  3. package/.changeset/pre.json +3 -0
  4. package/.changeset/purple-bears-flash.md +5 -0
  5. package/CHANGELOG.md +12 -0
  6. package/__cjs/cache/core/cache.cjs +1 -1
  7. package/__cjs/cache/index.cjs +4 -4
  8. package/__cjs/cache/index.cjs.map +1 -1
  9. package/__cjs/cache/index.d.cts +3 -3
  10. package/__cjs/cache/inmemory/entityStore.cjs +3 -3
  11. package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
  12. package/__cjs/cache/inmemory/policies.cjs +4 -4
  13. package/__cjs/cache/inmemory/readFromStore.cjs +2 -2
  14. package/__cjs/cache/inmemory/writeToStore.cjs +4 -4
  15. package/__cjs/core/ApolloClient.cjs +7 -9
  16. package/__cjs/core/ApolloClient.cjs.map +1 -1
  17. package/__cjs/core/ApolloClient.d.cts +0 -2
  18. package/__cjs/core/LocalState.cjs +2 -2
  19. package/__cjs/core/ObservableQuery.cjs +5 -5
  20. package/__cjs/core/QueryInfo.cjs +0 -7
  21. package/__cjs/core/QueryInfo.cjs.map +1 -1
  22. package/__cjs/core/QueryInfo.d.cts +0 -2
  23. package/__cjs/core/QueryManager.cjs +15 -13
  24. package/__cjs/core/QueryManager.cjs.map +1 -1
  25. package/__cjs/core/index.cjs +39 -21
  26. package/__cjs/core/index.cjs.map +1 -1
  27. package/__cjs/core/index.d.cts +12 -11
  28. package/__cjs/index.cjs +1 -0
  29. package/__cjs/index.cjs.map +1 -1
  30. package/__cjs/invariantErrorCodes.cjs +81 -117
  31. package/__cjs/link/batch/index.cjs +4 -2
  32. package/__cjs/link/batch/index.cjs.map +1 -1
  33. package/__cjs/link/batch/index.d.cts +2 -1
  34. package/__cjs/link/batch-http/index.cjs +3 -2
  35. package/__cjs/link/batch-http/index.cjs.map +1 -1
  36. package/__cjs/link/batch-http/index.d.cts +1 -1
  37. package/__cjs/link/core/ApolloLink.cjs +2 -2
  38. package/__cjs/link/core/index.cjs.map +1 -1
  39. package/__cjs/link/core/index.d.cts +1 -1
  40. package/__cjs/link/http/checkFetcher.cjs +1 -1
  41. package/__cjs/link/http/createHttpLink.cjs +1 -1
  42. package/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
  43. package/__cjs/link/http/serializeFetchParameter.cjs +1 -1
  44. package/__cjs/link/persisted-queries/index.cjs +2 -2
  45. package/__cjs/link/retry/index.cjs +3 -2
  46. package/__cjs/link/retry/index.cjs.map +1 -1
  47. package/__cjs/link/retry/index.d.cts +1 -1
  48. package/__cjs/link/utils/validateOperation.cjs +1 -1
  49. package/__cjs/masking/maskDefinition.cjs +2 -2
  50. package/__cjs/masking/maskFragment.cjs +2 -2
  51. package/__cjs/masking/maskOperation.cjs +1 -1
  52. package/__cjs/masking/utils.cjs +1 -1
  53. package/__cjs/react/context/ApolloConsumer.cjs +1 -1
  54. package/__cjs/react/context/ApolloConsumer.cjs.map +1 -1
  55. package/__cjs/react/context/ApolloConsumer.d.cts +6 -3
  56. package/__cjs/react/context/ApolloContext.cjs +1 -1
  57. package/__cjs/react/context/ApolloProvider.cjs +1 -1
  58. package/__cjs/react/context/ApolloProvider.cjs.map +1 -1
  59. package/__cjs/react/context/ApolloProvider.d.cts +6 -4
  60. package/__cjs/react/hooks/internal/wrapHook.cjs.map +1 -1
  61. package/__cjs/react/hooks/internal/wrapHook.d.cts +1 -1
  62. package/__cjs/react/hooks/useApolloClient.cjs +3 -3
  63. package/__cjs/react/hooks/useApolloClient.cjs.map +1 -1
  64. package/__cjs/react/hooks/useLazyQuery.cjs +2 -2
  65. package/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
  66. package/__cjs/react/hooks/useMutation.cjs +0 -2
  67. package/__cjs/react/hooks/useMutation.cjs.map +1 -1
  68. package/__cjs/react/hooks/useMutation.d.cts +1 -2
  69. package/__cjs/react/hooks/useQuery.cjs +0 -2
  70. package/__cjs/react/hooks/useQuery.cjs.map +1 -1
  71. package/__cjs/react/hooks/useSubscription.cjs +1 -3
  72. package/__cjs/react/hooks/useSubscription.cjs.map +1 -1
  73. package/__cjs/react/hooks/useSuspenseQuery.cjs +3 -5
  74. package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
  75. package/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
  76. package/__cjs/react/index.cjs +35 -11
  77. package/__cjs/react/index.cjs.map +1 -1
  78. package/__cjs/react/index.d.cts +21 -7
  79. package/__cjs/react/index.react-server.cjs +1 -5
  80. package/__cjs/react/index.react-server.cjs.map +1 -1
  81. package/__cjs/react/index.react-server.d.cts +0 -1
  82. package/__cjs/react/internal/cache/QueryReference.cjs +1 -1
  83. package/__cjs/react/ssr/prerenderStatic.cjs +4 -4
  84. package/__cjs/react/ssr/prerenderStatic.cjs.map +1 -1
  85. package/__cjs/react/types/deprecated.d.cts +11 -1
  86. package/__cjs/testing/core/index.cjs +5 -3
  87. package/__cjs/testing/core/index.cjs.map +1 -1
  88. package/__cjs/testing/core/index.d.cts +1 -1
  89. package/__cjs/testing/core/mocking/mockLink.cjs +2 -2
  90. package/__cjs/testing/experimental/createSchemaFetch.cjs +2 -2
  91. package/__cjs/testing/experimental/createSchemaFetch.cjs.map +1 -1
  92. package/__cjs/testing/index.cjs +12 -2
  93. package/__cjs/testing/index.cjs.map +1 -1
  94. package/__cjs/testing/index.d.cts +2 -1
  95. package/__cjs/testing/internal/disposables/spyOnConsole.cjs +0 -1
  96. package/__cjs/testing/internal/disposables/spyOnConsole.cjs.map +1 -1
  97. package/__cjs/testing/internal/disposables/spyOnConsole.d.cts +0 -1
  98. package/__cjs/testing/internal/index.cjs +12 -8
  99. package/__cjs/testing/internal/index.cjs.map +1 -1
  100. package/__cjs/testing/internal/index.d.cts +3 -3
  101. package/__cjs/testing/matchers/index.cjs +4 -22
  102. package/__cjs/testing/matchers/index.cjs.map +1 -1
  103. package/__cjs/testing/matchers/toComplete.cjs.map +1 -1
  104. package/__cjs/testing/matchers/toEmitAnything.cjs.map +1 -1
  105. package/__cjs/testing/matchers/toEmitError.cjs.map +1 -1
  106. package/__cjs/testing/matchers/toEmitNext.cjs.map +1 -1
  107. package/__cjs/testing/matchers/{toEmitStrictTyped.cjs → toEmitTypedValue.cjs} +5 -5
  108. package/__cjs/testing/matchers/toEmitTypedValue.cjs.map +1 -0
  109. package/__cjs/testing/matchers/{toEmitValueStrict.d.cts → toEmitTypedValue.d.cts} +2 -2
  110. package/__cjs/testing/matchers/{toEqualStrictTyped.cjs → toStrictEqualTyped.cjs} +5 -5
  111. package/__cjs/testing/matchers/{toEqualStrictTyped.cjs.map → toStrictEqualTyped.cjs.map} +1 -1
  112. package/__cjs/testing/matchers/toStrictEqualTyped.d.cts +3 -0
  113. package/__cjs/testing/react/MockedProvider.cjs +2 -2
  114. package/__cjs/testing/react/MockedProvider.cjs.map +1 -1
  115. package/__cjs/utilities/caching/sizes.cjs +2 -2
  116. package/__cjs/utilities/caching/sizes.cjs.map +1 -1
  117. package/__cjs/utilities/caching/sizes.d.cts +2 -20
  118. package/__cjs/utilities/graphql/getFromAST.cjs +15 -6
  119. package/__cjs/utilities/graphql/getFromAST.cjs.map +1 -1
  120. package/__cjs/utilities/graphql/getFromAST.d.cts +2 -2
  121. package/__cjs/utilities/graphql/storeUtils.cjs +1 -1
  122. package/__cjs/utilities/graphql/transform.cjs +2 -2
  123. package/__cjs/utilities/index.cjs +39 -19
  124. package/__cjs/utilities/index.cjs.map +1 -1
  125. package/__cjs/utilities/index.d.cts +14 -13
  126. package/__cjs/utilities/internal/getMemoryInternals.cjs +0 -2
  127. package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
  128. package/__cjs/utilities/internal/getMemoryInternals.d.cts +0 -1
  129. package/__cjs/utilities/internal/index.production.cjs +1 -0
  130. package/__cjs/utilities/internal/index.production.cjs.map +1 -1
  131. package/__cjs/utilities/invariant/index.development.cjs +1 -0
  132. package/__cjs/utilities/invariant/index.development.cjs.map +1 -1
  133. package/__cjs/version.cjs +1 -1
  134. package/__cjs/version.d.cts +1 -1
  135. package/cache/core/cache.js +1 -1
  136. package/cache/index.d.ts +3 -3
  137. package/cache/index.js +1 -1
  138. package/cache/index.js.map +1 -1
  139. package/cache/inmemory/entityStore.js +3 -3
  140. package/cache/inmemory/key-extractor.js +1 -1
  141. package/cache/inmemory/policies.js +4 -4
  142. package/cache/inmemory/readFromStore.js +2 -2
  143. package/cache/inmemory/writeToStore.js +4 -4
  144. package/core/ApolloClient.d.ts +0 -2
  145. package/core/ApolloClient.js +7 -9
  146. package/core/ApolloClient.js.map +1 -1
  147. package/core/LocalState.js +2 -2
  148. package/core/ObservableQuery.js +5 -5
  149. package/core/QueryInfo.d.ts +0 -2
  150. package/core/QueryInfo.js +0 -7
  151. package/core/QueryInfo.js.map +1 -1
  152. package/core/QueryManager.js +16 -14
  153. package/core/QueryManager.js.map +1 -1
  154. package/core/index.d.ts +12 -11
  155. package/core/index.js +7 -5
  156. package/core/index.js.map +1 -1
  157. package/index.js +1 -0
  158. package/index.js.map +1 -1
  159. package/invariantErrorCodes.js +81 -117
  160. package/legacyEntryPoints/testing/internal/index.d.ts +1 -0
  161. package/legacyEntryPoints/testing/internal/index.js +1 -0
  162. package/legacyEntryPoints/testing/internal/internal.cjs +1 -0
  163. package/legacyEntryPoints/testing/internal/internal.d.cts +1 -0
  164. package/link/batch/index.d.ts +2 -1
  165. package/link/batch/index.js +1 -1
  166. package/link/batch/index.js.map +1 -1
  167. package/link/batch-http/index.d.ts +1 -1
  168. package/link/batch-http/index.js +1 -1
  169. package/link/batch-http/index.js.map +1 -1
  170. package/link/core/ApolloLink.js +2 -2
  171. package/link/core/index.d.ts +1 -1
  172. package/link/core/index.js.map +1 -1
  173. package/link/http/checkFetcher.js +1 -1
  174. package/link/http/createHttpLink.js +1 -1
  175. package/link/http/parseAndCheckHttpResponse.js +1 -1
  176. package/link/http/serializeFetchParameter.js +1 -1
  177. package/link/persisted-queries/index.js +2 -2
  178. package/link/retry/index.d.ts +1 -1
  179. package/link/retry/index.js +1 -1
  180. package/link/retry/index.js.map +1 -1
  181. package/link/utils/validateOperation.js +1 -1
  182. package/masking/maskDefinition.js +2 -2
  183. package/masking/maskFragment.js +2 -2
  184. package/masking/maskOperation.js +1 -1
  185. package/masking/utils.js +1 -1
  186. package/package.json +11 -31
  187. package/react/context/ApolloConsumer.d.ts +6 -3
  188. package/react/context/ApolloConsumer.js +1 -1
  189. package/react/context/ApolloConsumer.js.map +1 -1
  190. package/react/context/ApolloContext.js +1 -1
  191. package/react/context/ApolloProvider.d.ts +6 -4
  192. package/react/context/ApolloProvider.js +1 -1
  193. package/react/context/ApolloProvider.js.map +1 -1
  194. package/react/hooks/internal/wrapHook.d.ts +1 -1
  195. package/react/hooks/internal/wrapHook.js.map +1 -1
  196. package/react/hooks/useApolloClient.js +2 -2
  197. package/react/hooks/useApolloClient.js.map +1 -1
  198. package/react/hooks/useLazyQuery.js +2 -2
  199. package/react/hooks/useLoadableQuery.js +2 -2
  200. package/react/hooks/useMutation.d.ts +1 -2
  201. package/react/hooks/useMutation.js +0 -2
  202. package/react/hooks/useMutation.js.map +1 -1
  203. package/react/hooks/useQuery.js +0 -2
  204. package/react/hooks/useQuery.js.map +1 -1
  205. package/react/hooks/useSubscription.js +1 -3
  206. package/react/hooks/useSubscription.js.map +1 -1
  207. package/react/hooks/useSuspenseQuery.js +3 -5
  208. package/react/hooks/useSuspenseQuery.js.map +1 -1
  209. package/react/hooks/useSyncExternalStore.js +1 -1
  210. package/react/index.d.ts +21 -7
  211. package/react/index.js +17 -3
  212. package/react/index.js.map +1 -1
  213. package/react/index.react-server.d.ts +0 -1
  214. package/react/index.react-server.js +0 -1
  215. package/react/index.react-server.js.map +1 -1
  216. package/react/internal/cache/QueryReference.js +1 -1
  217. package/react/ssr/prerenderStatic.js +3 -3
  218. package/react/ssr/prerenderStatic.js.map +1 -1
  219. package/react/types/deprecated.d.ts +11 -1
  220. package/testing/core/index.d.ts +1 -1
  221. package/testing/core/index.js +1 -1
  222. package/testing/core/index.js.map +1 -1
  223. package/testing/core/mocking/mockLink.js +2 -2
  224. package/testing/experimental/createSchemaFetch.js +1 -1
  225. package/testing/experimental/createSchemaFetch.js.map +1 -1
  226. package/testing/index.d.ts +2 -1
  227. package/testing/index.js +1 -1
  228. package/testing/index.js.map +1 -1
  229. package/testing/internal/disposables/spyOnConsole.d.ts +0 -1
  230. package/testing/internal/disposables/spyOnConsole.js +0 -1
  231. package/testing/internal/disposables/spyOnConsole.js.map +1 -1
  232. package/testing/internal/index.d.ts +3 -3
  233. package/testing/internal/index.js +2 -2
  234. package/testing/internal/index.js.map +1 -1
  235. package/testing/matchers/index.js +4 -22
  236. package/testing/matchers/index.js.map +1 -1
  237. package/testing/matchers/toComplete.js.map +1 -1
  238. package/testing/matchers/toEmitAnything.js.map +1 -1
  239. package/testing/matchers/toEmitError.js.map +1 -1
  240. package/testing/matchers/toEmitNext.js.map +1 -1
  241. package/testing/matchers/{toEmitValueStrict.d.ts → toEmitTypedValue.d.ts} +2 -2
  242. package/testing/matchers/{toEmitStrictTyped.js → toEmitTypedValue.js} +3 -3
  243. package/testing/matchers/toEmitTypedValue.js.map +1 -0
  244. package/testing/matchers/toStrictEqualTyped.d.ts +3 -0
  245. package/testing/matchers/{toEqualStrictTyped.js → toStrictEqualTyped.js} +3 -3
  246. package/testing/matchers/{toEqualStrictTyped.js.map → toStrictEqualTyped.js.map} +1 -1
  247. package/testing/react/MockedProvider.js +1 -1
  248. package/testing/react/MockedProvider.js.map +1 -1
  249. package/utilities/caching/sizes.d.ts +2 -20
  250. package/utilities/caching/sizes.js +2 -2
  251. package/utilities/caching/sizes.js.map +1 -1
  252. package/utilities/graphql/getFromAST.d.ts +2 -2
  253. package/utilities/graphql/getFromAST.js +15 -6
  254. package/utilities/graphql/getFromAST.js.map +1 -1
  255. package/utilities/graphql/storeUtils.js +1 -1
  256. package/utilities/graphql/transform.js +2 -2
  257. package/utilities/index.d.ts +14 -13
  258. package/utilities/index.js +12 -12
  259. package/utilities/index.js.map +1 -1
  260. package/utilities/internal/getMemoryInternals.d.ts +0 -1
  261. package/utilities/internal/getMemoryInternals.js +0 -2
  262. package/utilities/internal/getMemoryInternals.js.map +1 -1
  263. package/utilities/internal/index.production.js +1 -0
  264. package/utilities/internal/index.production.js.map +1 -1
  265. package/utilities/invariant/index.development.js +1 -0
  266. package/utilities/invariant/index.development.js.map +1 -1
  267. package/version.d.ts +1 -1
  268. package/version.js +1 -1
  269. package/__cjs/react/context/index.cjs +0 -10
  270. package/__cjs/react/context/index.cjs.map +0 -1
  271. package/__cjs/react/context/index.d.cts +0 -7
  272. package/__cjs/react/hooks/index.cjs +0 -32
  273. package/__cjs/react/hooks/index.cjs.map +0 -1
  274. package/__cjs/react/hooks/index.d.cts +0 -16
  275. package/__cjs/react/parser/index.cjs +0 -115
  276. package/__cjs/react/parser/index.cjs.map +0 -1
  277. package/__cjs/react/parser/index.d.cts +0 -18
  278. package/__cjs/testing/matchers/toEmitApolloQueryResult.cjs +0 -40
  279. package/__cjs/testing/matchers/toEmitApolloQueryResult.cjs.map +0 -1
  280. package/__cjs/testing/matchers/toEmitApolloQueryResult.d.cts +0 -8
  281. package/__cjs/testing/matchers/toEmitFetchResult.cjs +0 -40
  282. package/__cjs/testing/matchers/toEmitFetchResult.cjs.map +0 -1
  283. package/__cjs/testing/matchers/toEmitFetchResult.d.cts +0 -8
  284. package/__cjs/testing/matchers/toEmitMatchedValue.cjs +0 -40
  285. package/__cjs/testing/matchers/toEmitMatchedValue.cjs.map +0 -1
  286. package/__cjs/testing/matchers/toEmitMatchedValue.d.cts +0 -7
  287. package/__cjs/testing/matchers/toEmitStrictTyped.cjs.map +0 -1
  288. package/__cjs/testing/matchers/toEmitStrictTyped.d.cts +0 -7
  289. package/__cjs/testing/matchers/toEmitValue.cjs +0 -41
  290. package/__cjs/testing/matchers/toEmitValue.cjs.map +0 -1
  291. package/__cjs/testing/matchers/toEmitValue.d.cts +0 -4
  292. package/__cjs/testing/matchers/toEmitValueStrict.cjs +0 -46
  293. package/__cjs/testing/matchers/toEmitValueStrict.cjs.map +0 -1
  294. package/__cjs/testing/matchers/toEqualApolloQueryResult.cjs +0 -24
  295. package/__cjs/testing/matchers/toEqualApolloQueryResult.cjs.map +0 -1
  296. package/__cjs/testing/matchers/toEqualApolloQueryResult.d.cts +0 -6
  297. package/__cjs/testing/matchers/toEqualFetchResult.cjs +0 -24
  298. package/__cjs/testing/matchers/toEqualFetchResult.cjs.map +0 -1
  299. package/__cjs/testing/matchers/toEqualFetchResult.d.cts +0 -4
  300. package/__cjs/testing/matchers/toEqualLazyQueryResult.cjs +0 -40
  301. package/__cjs/testing/matchers/toEqualLazyQueryResult.cjs.map +0 -1
  302. package/__cjs/testing/matchers/toEqualLazyQueryResult.d.cts +0 -10
  303. package/__cjs/testing/matchers/toEqualQueryResult.cjs +0 -39
  304. package/__cjs/testing/matchers/toEqualQueryResult.cjs.map +0 -1
  305. package/__cjs/testing/matchers/toEqualQueryResult.d.cts +0 -9
  306. package/__cjs/testing/matchers/toEqualStrictTyped.d.cts +0 -3
  307. package/legacyEntryPoints/react/context/context.cjs +0 -1
  308. package/legacyEntryPoints/react/context/context.d.cts +0 -1
  309. package/legacyEntryPoints/react/context/index.d.ts +0 -1
  310. package/legacyEntryPoints/react/context/index.js +0 -1
  311. package/legacyEntryPoints/react/hooks/hooks.cjs +0 -1
  312. package/legacyEntryPoints/react/hooks/hooks.d.cts +0 -1
  313. package/legacyEntryPoints/react/hooks/index.d.ts +0 -1
  314. package/legacyEntryPoints/react/hooks/index.js +0 -1
  315. package/legacyEntryPoints/react/parser/index.d.ts +0 -1
  316. package/legacyEntryPoints/react/parser/index.js +0 -1
  317. package/legacyEntryPoints/react/parser/parser.cjs +0 -1
  318. package/legacyEntryPoints/react/parser/parser.d.cts +0 -1
  319. package/react/context/index.d.ts +0 -7
  320. package/react/context/index.js +0 -4
  321. package/react/context/index.js.map +0 -1
  322. package/react/hooks/index.d.ts +0 -16
  323. package/react/hooks/index.js +0 -15
  324. package/react/hooks/index.js.map +0 -1
  325. package/react/parser/index.d.ts +0 -18
  326. package/react/parser/index.js +0 -109
  327. package/react/parser/index.js.map +0 -1
  328. package/testing/matchers/toEmitApolloQueryResult.d.ts +0 -8
  329. package/testing/matchers/toEmitApolloQueryResult.js +0 -36
  330. package/testing/matchers/toEmitApolloQueryResult.js.map +0 -1
  331. package/testing/matchers/toEmitFetchResult.d.ts +0 -8
  332. package/testing/matchers/toEmitFetchResult.js +0 -36
  333. package/testing/matchers/toEmitFetchResult.js.map +0 -1
  334. package/testing/matchers/toEmitMatchedValue.d.ts +0 -7
  335. package/testing/matchers/toEmitMatchedValue.js +0 -36
  336. package/testing/matchers/toEmitMatchedValue.js.map +0 -1
  337. package/testing/matchers/toEmitStrictTyped.d.ts +0 -7
  338. package/testing/matchers/toEmitStrictTyped.js.map +0 -1
  339. package/testing/matchers/toEmitValue.d.ts +0 -4
  340. package/testing/matchers/toEmitValue.js +0 -37
  341. package/testing/matchers/toEmitValue.js.map +0 -1
  342. package/testing/matchers/toEmitValueStrict.js +0 -42
  343. package/testing/matchers/toEmitValueStrict.js.map +0 -1
  344. package/testing/matchers/toEqualApolloQueryResult.d.ts +0 -6
  345. package/testing/matchers/toEqualApolloQueryResult.js +0 -20
  346. package/testing/matchers/toEqualApolloQueryResult.js.map +0 -1
  347. package/testing/matchers/toEqualFetchResult.d.ts +0 -4
  348. package/testing/matchers/toEqualFetchResult.js +0 -20
  349. package/testing/matchers/toEqualFetchResult.js.map +0 -1
  350. package/testing/matchers/toEqualLazyQueryResult.d.ts +0 -10
  351. package/testing/matchers/toEqualLazyQueryResult.js +0 -36
  352. package/testing/matchers/toEqualLazyQueryResult.js.map +0 -1
  353. package/testing/matchers/toEqualQueryResult.d.ts +0 -9
  354. package/testing/matchers/toEqualQueryResult.js +0 -35
  355. package/testing/matchers/toEqualQueryResult.js.map +0 -1
  356. package/testing/matchers/toEqualStrictTyped.d.ts +0 -3
@@ -71,12 +71,18 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
71
71
  },
72
72
 
73
73
  15: {
74
+ file: "@apollo/client/__cjs/utilities/graphql/getFromAST.cjs",
75
+ condition: "operations.length == 1 && operations[0].operation === expectedType",
76
+ message: `Running a %s requires a graphql ` + `%s, but a %s was used instead.`
77
+ },
78
+
79
+ 16: {
74
80
  file: "@apollo/client/__cjs/utilities/graphql/getFromAST.cjs",
75
81
  condition: "queryDef && queryDef.operation === \"query\"",
76
82
  message: "Must contain a query definition."
77
83
  },
78
84
 
79
- 16: {
85
+ 17: {
80
86
  file: "@apollo/client/__cjs/utilities/graphql/getFromAST.cjs",
81
87
  condition: "doc.kind === \"Document\"",
82
88
 
@@ -84,24 +90,24 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
84
90
  string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
85
91
  },
86
92
 
87
- 17: {
93
+ 18: {
88
94
  file: "@apollo/client/__cjs/utilities/graphql/getFromAST.cjs",
89
95
  condition: "doc.definitions.length <= 1",
90
96
  message: "Fragment must have exactly one definition."
91
97
  },
92
98
 
93
- 18: {
99
+ 19: {
94
100
  file: "@apollo/client/__cjs/utilities/graphql/getFromAST.cjs",
95
101
  condition: "fragmentDef.kind === \"FragmentDefinition\"",
96
102
  message: "Must be a fragment definition."
97
103
  },
98
104
 
99
- 19: {
105
+ 20: {
100
106
  file: "@apollo/client/__cjs/utilities/graphql/getFromAST.cjs",
101
107
  message: "Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."
102
108
  },
103
109
 
104
- 20: {
110
+ 21: {
105
111
  file: "@apollo/client/__cjs/utilities/graphql/storeUtils.cjs",
106
112
 
107
113
  message: `The inline argument "%s" of kind "%s"` +
@@ -109,19 +115,19 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
109
115
  "overcome this limitation."
110
116
  },
111
117
 
112
- 23: {
118
+ 24: {
113
119
  file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
114
120
  condition: "queryWithoutClientOnlyDirectives",
115
121
  message: "query is required"
116
122
  },
117
123
 
118
- 24: {
124
+ 25: {
119
125
  file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
120
126
  condition: "mockedResponse.maxUsageCount > 0",
121
127
  message: `Mock response maxUsageCount must be greater than 0, %s given`
122
128
  },
123
129
 
124
- 25: {
130
+ 26: {
125
131
  file: "@apollo/client/__cjs/react/ssr/prerenderStatic.cjs",
126
132
  condition: "renderCount <= maxRerenders",
127
133
 
@@ -131,61 +137,19 @@ and need to increase the \`maxRerender\` option to \`prerenderStatic\`, or that
131
137
  you have an infinite render loop in your application.`
132
138
  },
133
139
 
134
- 26: {
140
+ 27: {
135
141
  file: "@apollo/client/__cjs/react/ssr/prerenderStatic.cjs",
136
142
  condition: "!signal?.aborted",
137
143
  message: "The operation was aborted before it could be attempted."
138
144
  },
139
145
 
140
- 27: {
141
- file: "@apollo/client/__cjs/react/parser/index.cjs",
142
- condition: "!!document && !!document.kind",
143
-
144
- message: `Argument of %s passed to parser was not a valid GraphQL ` +
145
- `DocumentNode. You may need to use 'graphql-tag' or another method ` +
146
- `to convert your operation into a document`
147
- },
148
-
149
146
  28: {
150
- file: "@apollo/client/__cjs/react/parser/index.cjs",
151
- condition: "!fragments.length ||\n queries.length ||\n mutations.length ||\n subscriptions.length",
152
-
153
- message: `Passing only a fragment to 'graphql' is not yet supported. ` +
154
- `You must include a query, subscription or mutation as well`
155
- },
156
-
157
- 29: {
158
- file: "@apollo/client/__cjs/react/parser/index.cjs",
159
- condition: "queries.length + mutations.length + subscriptions.length <= 1",
160
-
161
- message: `react-apollo only supports a query, subscription, or a mutation per HOC. ` +
162
- `%s had %s queries, %s ` +
163
- `subscriptions and %s mutations. ` +
164
- `You can use 'compose' to join multiple operation types to a component`
165
- },
166
-
167
- 30: {
168
- file: "@apollo/client/__cjs/react/parser/index.cjs",
169
- condition: "definitions.length === 1",
170
-
171
- message: `react-apollo only supports one definition per HOC. %s had ` +
172
- `%s definitions. ` +
173
- `You can use 'compose' to join multiple operation types to a component`
174
- },
175
-
176
- 31: {
177
- file: "@apollo/client/__cjs/react/parser/index.cjs",
178
- condition: "operation.type === type",
179
- message: `Running a %s requires a graphql ` + `%s, but a %s was used instead.`
180
- },
181
-
182
- 32: {
183
147
  file: "@apollo/client/__cjs/react/internal/cache/QueryReference.cjs",
184
148
  condition: "!queryRef || QUERY_REFERENCE_SYMBOL in queryRef",
185
149
  message: "Expected a QueryRef object, but got something else instead."
186
150
  },
187
151
 
188
- 33: {
152
+ 29: {
189
153
  file: "@apollo/client/__cjs/react/hooks/useApolloClient.cjs",
190
154
  condition: "!!client",
191
155
 
@@ -194,43 +158,43 @@ you have an infinite render loop in your application.`
194
158
  "instance in via options."
195
159
  },
196
160
 
197
- 34: {
161
+ 30: {
198
162
  file: "@apollo/client/__cjs/react/hooks/useLazyQuery.cjs",
199
163
  condition: "resultRef.current",
200
164
  message: "useLazyQuery: '%s' cannot be called before executing the query."
201
165
  },
202
166
 
203
- 35: {
167
+ 31: {
204
168
  file: "@apollo/client/__cjs/react/hooks/useLazyQuery.cjs",
205
169
  condition: "!calledDuringRender()",
206
170
  message: "useLazyQuery: 'execute' should not be called during render. To start a query during render, use the 'useQuery' hook."
207
171
  },
208
172
 
209
- 36: {
173
+ 32: {
210
174
  file: "@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs",
211
175
  condition: "!calledDuringRender()",
212
176
  message: "useLoadableQuery: 'loadQuery' should not be called during render. To start a query during render, use the 'useBackgroundQuery' hook."
213
177
  },
214
178
 
215
- 37: {
179
+ 33: {
216
180
  file: "@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs",
217
181
  condition: "internalQueryRef",
218
182
  message: "The query has not been loaded. Please load the query."
219
183
  },
220
184
 
221
- 38: {
185
+ 34: {
222
186
  file: "@apollo/client/__cjs/react/hooks/useSubscription.cjs",
223
187
  condition: "!optionsRef.current.skip",
224
188
  message: "A subscription that is skipped cannot be restarted."
225
189
  },
226
190
 
227
- 39: {
191
+ 35: {
228
192
  file: "@apollo/client/__cjs/react/hooks/useSuspenseQuery.cjs",
229
193
  condition: "supportedFetchPolicies.includes(fetchPolicy)",
230
194
  message: `The fetch policy \`%s\` is not supported with suspense.`
231
195
  },
232
196
 
233
- 42: {
197
+ 38: {
234
198
  file: "@apollo/client/__cjs/react/context/ApolloConsumer.cjs",
235
199
  condition: "context && context.client",
236
200
 
@@ -238,7 +202,7 @@ you have an infinite render loop in your application.`
238
202
  "Wrap the root component in an <ApolloProvider>."
239
203
  },
240
204
 
241
- 43: {
205
+ 39: {
242
206
  file: "@apollo/client/__cjs/react/context/ApolloContext.cjs",
243
207
  condition: "\"createContext\" in React",
244
208
 
@@ -249,7 +213,7 @@ you have an infinite render loop in your application.`
249
213
  "For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
250
214
  },
251
215
 
252
- 44: {
216
+ 40: {
253
217
  file: "@apollo/client/__cjs/react/context/ApolloProvider.cjs",
254
218
  condition: "context.client",
255
219
 
@@ -257,36 +221,36 @@ you have an infinite render loop in your application.`
257
221
  'sure you pass in your client via the "client" prop.'
258
222
  },
259
223
 
260
- 45: {
224
+ 41: {
261
225
  file: "@apollo/client/__cjs/masking/maskDefinition.cjs",
262
226
  condition: "fragment",
263
227
  message: "Could not find fragment with name '%s'."
264
228
  },
265
229
 
266
- 47: {
230
+ 43: {
267
231
  file: "@apollo/client/__cjs/masking/maskFragment.cjs",
268
232
  condition: "fragments.length === 1",
269
233
  message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
270
234
  },
271
235
 
272
- 48: {
236
+ 44: {
273
237
  file: "@apollo/client/__cjs/masking/maskFragment.cjs",
274
238
  condition: "!!fragment",
275
239
  message: `Could not find fragment with name "%s".`
276
240
  },
277
241
 
278
- 49: {
242
+ 45: {
279
243
  file: "@apollo/client/__cjs/masking/maskOperation.cjs",
280
244
  condition: "definition",
281
245
  message: "Expected a parsed GraphQL document with a query, mutation, or subscription."
282
246
  },
283
247
 
284
- 51: {
248
+ 47: {
285
249
  file: "@apollo/client/__cjs/link/utils/validateOperation.cjs",
286
250
  message: `illegal argument: %s`
287
251
  },
288
252
 
289
- 52: {
253
+ 48: {
290
254
  file: "@apollo/client/__cjs/link/persisted-queries/index.cjs",
291
255
  condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
292
256
 
@@ -295,13 +259,13 @@ you have an infinite render loop in your application.`
295
259
  "parameter."
296
260
  },
297
261
 
298
- 53: {
262
+ 49: {
299
263
  file: "@apollo/client/__cjs/link/persisted-queries/index.cjs",
300
264
  condition: "forward",
301
265
  message: "PersistedQueryLink cannot be the last link in the chain."
302
266
  },
303
267
 
304
- 54: {
268
+ 50: {
305
269
  file: "@apollo/client/__cjs/link/http/checkFetcher.cjs",
306
270
  condition: "fetcher || typeof fetch !== \"undefined\"",
307
271
 
@@ -319,23 +283,23 @@ const client = new ApolloClient({
319
283
  `
320
284
  },
321
285
 
322
- 56: {
286
+ 52: {
323
287
  file: "@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs",
324
288
  condition: "response.body && typeof response.body.getReader === \"function\"",
325
289
  message: "Unknown type for `response.body`. Please use a `fetch` implementation that is WhatWG-compliant and that uses WhatWG ReadableStreams for `body`."
326
290
  },
327
291
 
328
- 57: {
292
+ 53: {
329
293
  file: "@apollo/client/__cjs/link/http/serializeFetchParameter.cjs",
330
294
  message: `Network request failed. %s is not serializable: %s`
331
295
  },
332
296
 
333
- 59: {
297
+ 55: {
334
298
  file: "@apollo/client/__cjs/link/core/ApolloLink.cjs",
335
299
  message: "request is not implemented"
336
300
  },
337
301
 
338
- 60: {
302
+ 56: {
339
303
  file: "@apollo/client/__cjs/core/ApolloClient.cjs",
340
304
 
341
305
  message: "To initialize Apollo Client, you must specify a 'cache' property " +
@@ -343,7 +307,7 @@ const client = new ApolloClient({
343
307
  "For more information, please visit: https://go.apollo.dev/c/docs"
344
308
  },
345
309
 
346
- 61: {
310
+ 57: {
347
311
  file: "@apollo/client/__cjs/core/ApolloClient.cjs",
348
312
  condition: "options.fetchPolicy !== \"cache-and-network\"",
349
313
 
@@ -353,7 +317,7 @@ const client = new ApolloClient({
353
317
  "using a different fetchPolicy, such as cache-first or network-only."
354
318
  },
355
319
 
356
- 62: {
320
+ 58: {
357
321
  file: "@apollo/client/__cjs/core/ApolloClient.cjs",
358
322
  condition: "options.query",
359
323
 
@@ -361,128 +325,128 @@ const client = new ApolloClient({
361
325
  "in the query option."
362
326
  },
363
327
 
364
- 63: {
328
+ 59: {
365
329
  file: "@apollo/client/__cjs/core/ApolloClient.cjs",
366
330
  condition: "options.query.kind === \"Document\"",
367
331
  message: 'You must wrap the query string in a "gql" tag.'
368
332
  },
369
333
 
370
- 64: {
334
+ 60: {
371
335
  file: "@apollo/client/__cjs/core/ApolloClient.cjs",
372
336
  condition: "!options.returnPartialData",
373
337
  message: "returnPartialData option only supported on watchQuery."
374
338
  },
375
339
 
376
- 65: {
340
+ 61: {
377
341
  file: "@apollo/client/__cjs/core/ApolloClient.cjs",
378
342
  condition: "!options.pollInterval",
379
343
  message: "pollInterval option only supported on watchQuery."
380
344
  },
381
345
 
382
- 67: {
346
+ 63: {
383
347
  file: "@apollo/client/__cjs/core/LocalState.cjs",
384
348
  condition: "fragment",
385
349
  message: `No fragment named %s`
386
350
  },
387
351
 
388
- 68: {
352
+ 64: {
389
353
  file: "@apollo/client/__cjs/core/LocalState.cjs",
390
354
  condition: "fragment",
391
355
  message: `No fragment named %s`
392
356
  },
393
357
 
394
- 70: {
358
+ 66: {
395
359
  file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
396
360
  condition: "updateQuery",
397
361
  message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
398
362
  },
399
363
 
400
- 72: {
364
+ 68: {
401
365
  file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
402
366
  condition: "pollInterval",
403
367
  message: "Attempted to start a polling query without a polling interval."
404
368
  },
405
369
 
406
- 74: {
370
+ 70: {
407
371
  file: "@apollo/client/__cjs/core/QueryManager.cjs",
408
372
  message: "QueryManager stopped while query was in flight"
409
373
  },
410
374
 
411
- 75: {
375
+ 71: {
412
376
  file: "@apollo/client/__cjs/core/QueryManager.cjs",
413
377
  condition: "mutation",
414
378
  message: "mutation option is required. You must specify your GraphQL document in the mutation option."
415
379
  },
416
380
 
417
- 76: {
381
+ 72: {
418
382
  file: "@apollo/client/__cjs/core/QueryManager.cjs",
419
383
  condition: "fetchPolicy === \"network-only\" || fetchPolicy === \"no-cache\"",
420
384
  message: "Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."
421
385
  },
422
386
 
423
- 77: {
387
+ 73: {
424
388
  file: "@apollo/client/__cjs/core/QueryManager.cjs",
425
389
  message: "Store reset while query was in flight (not completed in link chain)"
426
390
  },
427
391
 
428
- 81: {
392
+ 77: {
429
393
  file: "@apollo/client/__cjs/core/QueryManager.cjs",
430
394
  condition: "didEmitValue",
431
395
  message: "The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."
432
396
  },
433
397
 
434
- 82: {
398
+ 78: {
435
399
  file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
436
400
  condition: "typeof dataId === \"string\"",
437
401
  message: "store.merge expects a string ID"
438
402
  },
439
403
 
440
- 85: {
404
+ 81: {
441
405
  file: "@apollo/client/__cjs/cache/inmemory/key-extractor.cjs",
442
406
  condition: "extracted !== void 0",
443
407
  message: `Missing field '%s' while extracting keyFields from %s`
444
408
  },
445
409
 
446
- 86: {
410
+ 82: {
447
411
  file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
448
412
  condition: "!old || old === which",
449
413
  message: `Cannot change root %s __typename more than once`
450
414
  },
451
415
 
452
- 89: {
416
+ 85: {
453
417
  file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
454
418
  message: "Cannot automatically merge arrays"
455
419
  },
456
420
 
457
- 90: {
421
+ 86: {
458
422
  file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
459
423
  message: `No fragment named %s`
460
424
  },
461
425
 
462
- 91: {
426
+ 87: {
463
427
  file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
464
428
  condition: "!(0, utilities_1.isReference)(value)",
465
429
  message: `Missing selection set for object of type %s returned for query field %s`
466
430
  },
467
431
 
468
- 92: {
432
+ 88: {
469
433
  file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
470
434
  message: `Could not identify object %s`
471
435
  },
472
436
 
473
- 94: {
437
+ 90: {
474
438
  file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
475
439
  message: `No fragment named %s`
476
440
  }
477
441
  };
478
442
 
479
443
  export const devDebug = {
480
- 66: {
444
+ 62: {
481
445
  file: "@apollo/client/__cjs/core/ApolloClient.cjs",
482
446
  message: `In client.refetchQueries, Promise.all promise rejected with error %o`
483
447
  },
484
448
 
485
- 73: {
449
+ 69: {
486
450
  file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
487
451
  message: `Missing cache result fields: %o`
488
452
  }
@@ -506,61 +470,61 @@ export const devWarn = {
506
470
  message: "@unmask 'mode' argument does not recognize value '%s'."
507
471
  },
508
472
 
509
- 22: {
473
+ 23: {
510
474
  file: "@apollo/client/__cjs/utilities/graphql/transform.cjs",
511
475
 
512
476
  message: "Removing an @connection directive even though it does not have a key. " +
513
477
  "You may want to use the key parameter to specify a store key."
514
478
  },
515
479
 
516
- 40: {
480
+ 36: {
517
481
  file: "@apollo/client/__cjs/react/hooks/useSuspenseQuery.cjs",
518
482
  message: "Using `returnPartialData` with a `no-cache` fetch policy has no effect. To read partial data from the cache, consider using an alternate fetch policy."
519
483
  },
520
484
 
521
- 46: {
485
+ 42: {
522
486
  file: "@apollo/client/__cjs/masking/maskDefinition.cjs",
523
487
  message: "Accessing unmasked field on %s at path '%s'. This field will not be available when masking is enabled. Please read the field from the fragment instead."
524
488
  },
525
489
 
526
- 50: {
490
+ 46: {
527
491
  file: "@apollo/client/__cjs/masking/utils.cjs",
528
492
  message: "The configured cache does not support data masking which effectively disables it. Please use a cache that supports data masking or disable data masking to silence this warning."
529
493
  },
530
494
 
531
- 55: {
495
+ 51: {
532
496
  file: "@apollo/client/__cjs/link/http/createHttpLink.cjs",
533
497
  message: "Multipart-subscriptions do not support @defer"
534
498
  },
535
499
 
536
- 58: {
500
+ 54: {
537
501
  file: "@apollo/client/__cjs/link/core/ApolloLink.cjs",
538
502
  message: `You are calling concat on a terminating link, which will have no effect %o`
539
503
  },
540
504
 
541
- 69: {
505
+ 65: {
542
506
  file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
543
507
 
544
508
  message: `Called refetch(%o) for query %o, which does not declare a $variables variable.
545
509
  Did you mean to call refetch(variables) instead of refetch({ variables })?`
546
510
  },
547
511
 
548
- 78: {
512
+ 74: {
549
513
  file: "@apollo/client/__cjs/core/QueryManager.cjs",
550
514
  message: `Unknown query named "%s" requested in refetchQueries options.include array`
551
515
  },
552
516
 
553
- 79: {
517
+ 75: {
554
518
  file: "@apollo/client/__cjs/core/QueryManager.cjs",
555
519
  message: `Unknown anonymous query requested in refetchQueries options.include array`
556
520
  },
557
521
 
558
- 80: {
522
+ 76: {
559
523
  file: "@apollo/client/__cjs/core/QueryManager.cjs",
560
524
  message: '[%s]: Fragments masked by data masking are inaccessible when using fetch policy "no-cache". Please add `@unmask` to each fragment spread to access the data.'
561
525
  },
562
526
 
563
- 83: {
527
+ 79: {
564
528
  file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
565
529
 
566
530
  message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
@@ -568,24 +532,24 @@ Did you mean to call refetch(variables) instead of refetch({ variables })?`
568
532
  "`toReference(object, true)`"
569
533
  },
570
534
 
571
- 84: {
535
+ 80: {
572
536
  file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
573
537
 
574
538
  message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
575
539
  "Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
576
540
  },
577
541
 
578
- 87: {
542
+ 83: {
579
543
  file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
580
544
  message: `Inferring subtype %s of supertype %s`
581
545
  },
582
546
 
583
- 88: {
547
+ 84: {
584
548
  file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
585
549
  message: `Undefined 'from' passed to readField with arguments %s`
586
550
  },
587
551
 
588
- 95: {
552
+ 91: {
589
553
  file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
590
554
 
591
555
  message: `Cache data may be lost when replacing the %s field of a %s object.
@@ -604,29 +568,29 @@ For more information about these options, please refer to the documentation:
604
568
  `
605
569
  },
606
570
 
607
- 96: {
571
+ 92: {
608
572
  file: "@apollo/client/__cjs/cache/core/cache.cjs",
609
573
  message: "Could not identify object passed to `from` for '%s' fragment, either because the object is non-normalized or the key fields are missing. If you are masking this object, please ensure the key fields are requested by the parent object."
610
574
  }
611
575
  };
612
576
 
613
577
  export const devError = {
614
- 21: {
578
+ 22: {
615
579
  file: "@apollo/client/__cjs/utilities/graphql/transform.cjs",
616
580
  message: `Could not find operation or fragment`
617
581
  },
618
582
 
619
- 41: {
583
+ 37: {
620
584
  file: "@apollo/client/__cjs/react/hooks/useSyncExternalStore.cjs",
621
585
  message: "The result of getSnapshot should be cached to avoid an infinite loop"
622
586
  },
623
587
 
624
- 71: {
588
+ 67: {
625
589
  file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
626
590
  message: "Unhandled GraphQL subscription error"
627
591
  },
628
592
 
629
- 93: {
593
+ 89: {
630
594
  file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
631
595
  message: `Missing field '%s' while writing result %o`
632
596
  }
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./batchLink.cjs"), exports);
3
+ exports.OperationBatcher = exports.BatchLink = void 0;
4
+ var batchLink_js_1 = require("./batchLink.cjs");
5
+ Object.defineProperty(exports, "BatchLink", { enumerable: true, get: function () { return batchLink_js_1.BatchLink; } });
6
+ Object.defineProperty(exports, "OperationBatcher", { enumerable: true, get: function () { return batchLink_js_1.OperationBatcher; } });
5
7
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../src/link/batch/index.ts"],"sourcesContent":["export * from \"./batchLink.js\";\n"],"names":[],"mappings":";;;AAAA,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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../src/link/batch/index.ts"],"sourcesContent":["export type { BatchableRequest, BatchHandler } from \"./batchLink.js\";\nexport { BatchLink, OperationBatcher } from \"./batchLink.js\";\n"],"names":[],"mappings":";;;AACA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,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;AAAS,CAAT,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,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,EAAlB,EAAA,CAAA,CAAA;AAAoB,CAApB,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,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAApB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoC,EAApC,EAAA,CAAA,CAAA;"}
@@ -1,2 +1,3 @@
1
- export * from "./batchLink.cjs";
1
+ export type { BatchableRequest, BatchHandler } from "./batchLink.cjs";
2
+ export { BatchLink, OperationBatcher } from "./batchLink.cjs";
2
3
  //# sourceMappingURL=index.d.cts.map
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./batchHttpLink.cjs"), exports);
3
+ exports.BatchHttpLink = void 0;
4
+ var batchHttpLink_js_1 = require("./batchHttpLink.cjs");
5
+ Object.defineProperty(exports, "BatchHttpLink", { enumerable: true, get: function () { return batchHttpLink_js_1.BatchHttpLink; } });
5
6
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../src/link/batch-http/index.ts"],"sourcesContent":["export * from \"./batchHttpLink.js\";\n"],"names":[],"mappings":";;;AAAA,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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../src/link/batch-http/index.ts"],"sourcesContent":["export { BatchHttpLink } from \"./batchHttpLink.js\";\n"],"names":[],"mappings":";;;AAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,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;AAAS,CAAT,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,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsB,EAAtB,EAAA,CAAA,CAAA;"}
@@ -1,2 +1,2 @@
1
- export * from "./batchHttpLink.cjs";
1
+ export { BatchHttpLink } from "./batchHttpLink.cjs";
2
2
  //# sourceMappingURL=index.d.cts.map
@@ -52,7 +52,7 @@ class ApolloLink {
52
52
  static concat(first, second) {
53
53
  const firstLink = toLink(first);
54
54
  if (isTerminating(firstLink)) {
55
- __DEV__ && invariant_1.invariant.warn(58, firstLink);
55
+ __DEV__ && invariant_1.invariant.warn(54, firstLink);
56
56
  return firstLink;
57
57
  }
58
58
  const nextLink = toLink(second);
@@ -81,7 +81,7 @@ class ApolloLink {
81
81
  return ApolloLink.concat(this, next);
82
82
  }
83
83
  request(operation, forward) {
84
- throw (0, invariant_1.newInvariantError)(59);
84
+ throw (0, invariant_1.newInvariantError)(55);
85
85
  }
86
86
  onError(error, observer) {
87
87
  if (observer && observer.error) {