@depup/apollo__client 4.1.6-depup.0

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 (1756) hide show
  1. package/CHANGELOG.md +9911 -0
  2. package/LICENSE +22 -0
  3. package/README.md +35 -0
  4. package/__cjs/cache/core/cache.cjs +362 -0
  5. package/__cjs/cache/core/cache.cjs.map +1 -0
  6. package/__cjs/cache/core/cache.d.cts +291 -0
  7. package/__cjs/cache/core/types/Cache.cjs +3 -0
  8. package/__cjs/cache/core/types/Cache.cjs.map +1 -0
  9. package/__cjs/cache/core/types/Cache.d.cts +302 -0
  10. package/__cjs/cache/core/types/common.cjs +33 -0
  11. package/__cjs/cache/core/types/common.cjs.map +1 -0
  12. package/__cjs/cache/core/types/common.d.cts +64 -0
  13. package/__cjs/cache/deprecated.cjs +3 -0
  14. package/__cjs/cache/deprecated.cjs.map +1 -0
  15. package/__cjs/cache/deprecated.d.cts +6 -0
  16. package/__cjs/cache/index.cjs +25 -0
  17. package/__cjs/cache/index.cjs.map +1 -0
  18. package/__cjs/cache/index.d.cts +19 -0
  19. package/__cjs/cache/inmemory/entityStore.cjs +679 -0
  20. package/__cjs/cache/inmemory/entityStore.cjs.map +1 -0
  21. package/__cjs/cache/inmemory/entityStore.d.cts +94 -0
  22. package/__cjs/cache/inmemory/fragmentRegistry.cjs +134 -0
  23. package/__cjs/cache/inmemory/fragmentRegistry.cjs.map +1 -0
  24. package/__cjs/cache/inmemory/fragmentRegistry.d.cts +9 -0
  25. package/__cjs/cache/inmemory/helpers.cjs +93 -0
  26. package/__cjs/cache/inmemory/helpers.cjs.map +1 -0
  27. package/__cjs/cache/inmemory/helpers.d.cts +21 -0
  28. package/__cjs/cache/inmemory/inMemoryCache.cjs +514 -0
  29. package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -0
  30. package/__cjs/cache/inmemory/inMemoryCache.d.cts +114 -0
  31. package/__cjs/cache/inmemory/key-extractor.cjs +192 -0
  32. package/__cjs/cache/inmemory/key-extractor.cjs.map +1 -0
  33. package/__cjs/cache/inmemory/key-extractor.d.cts +9 -0
  34. package/__cjs/cache/inmemory/policies.cjs +674 -0
  35. package/__cjs/cache/inmemory/policies.cjs.map +1 -0
  36. package/__cjs/cache/inmemory/policies.d.cts +126 -0
  37. package/__cjs/cache/inmemory/reactiveVars.cjs +89 -0
  38. package/__cjs/cache/inmemory/reactiveVars.cjs.map +1 -0
  39. package/__cjs/cache/inmemory/reactiveVars.d.cts +19 -0
  40. package/__cjs/cache/inmemory/readFromStore.cjs +293 -0
  41. package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -0
  42. package/__cjs/cache/inmemory/readFromStore.d.cts +26 -0
  43. package/__cjs/cache/inmemory/types.cjs +3 -0
  44. package/__cjs/cache/inmemory/types.cjs.map +1 -0
  45. package/__cjs/cache/inmemory/types.d.cts +109 -0
  46. package/__cjs/cache/inmemory/writeToStore.cjs +594 -0
  47. package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -0
  48. package/__cjs/cache/inmemory/writeToStore.d.cts +38 -0
  49. package/__cjs/core/ApolloClient.cjs +539 -0
  50. package/__cjs/core/ApolloClient.cjs.map +1 -0
  51. package/__cjs/core/ApolloClient.d.cts +1210 -0
  52. package/__cjs/core/ObservableQuery.cjs +1413 -0
  53. package/__cjs/core/ObservableQuery.cjs.map +1 -0
  54. package/__cjs/core/ObservableQuery.d.cts +467 -0
  55. package/__cjs/core/QueryInfo.cjs +401 -0
  56. package/__cjs/core/QueryInfo.cjs.map +1 -0
  57. package/__cjs/core/QueryInfo.d.cts +70 -0
  58. package/__cjs/core/QueryManager.cjs +1170 -0
  59. package/__cjs/core/QueryManager.cjs.map +1 -0
  60. package/__cjs/core/QueryManager.d.cts +168 -0
  61. package/__cjs/core/deprecated.cjs +3 -0
  62. package/__cjs/core/deprecated.cjs.map +1 -0
  63. package/__cjs/core/deprecated.d.cts +29 -0
  64. package/__cjs/core/index.cjs +79 -0
  65. package/__cjs/core/index.cjs.map +1 -0
  66. package/__cjs/core/index.d.cts +31 -0
  67. package/__cjs/core/networkStatus.cjs +51 -0
  68. package/__cjs/core/networkStatus.cjs.map +1 -0
  69. package/__cjs/core/networkStatus.d.cts +47 -0
  70. package/__cjs/core/types.cjs +3 -0
  71. package/__cjs/core/types.cjs.map +1 -0
  72. package/__cjs/core/types.d.cts +327 -0
  73. package/__cjs/core/watchQueryOptions.cjs +3 -0
  74. package/__cjs/core/watchQueryOptions.cjs.map +1 -0
  75. package/__cjs/core/watchQueryOptions.d.cts +75 -0
  76. package/__cjs/dev/index.cjs +12 -0
  77. package/__cjs/dev/index.cjs.map +1 -0
  78. package/__cjs/dev/index.d.cts +6 -0
  79. package/__cjs/dev/loadDevMessages.cjs +9 -0
  80. package/__cjs/dev/loadDevMessages.cjs.map +1 -0
  81. package/__cjs/dev/loadDevMessages.d.cts +2 -0
  82. package/__cjs/dev/loadErrorMessageHandler.cjs +27 -0
  83. package/__cjs/dev/loadErrorMessageHandler.cjs.map +1 -0
  84. package/__cjs/dev/loadErrorMessageHandler.d.cts +8 -0
  85. package/__cjs/dev/loadErrorMessages.cjs +9 -0
  86. package/__cjs/dev/loadErrorMessages.cjs.map +1 -0
  87. package/__cjs/dev/loadErrorMessages.d.cts +2 -0
  88. package/__cjs/dev/setErrorMessageHandler.cjs +12 -0
  89. package/__cjs/dev/setErrorMessageHandler.cjs.map +1 -0
  90. package/__cjs/dev/setErrorMessageHandler.d.cts +34 -0
  91. package/__cjs/dev/symbol.cjs +7 -0
  92. package/__cjs/dev/symbol.cjs.map +1 -0
  93. package/__cjs/dev/symbol.d.cts +10 -0
  94. package/__cjs/errors/CombinedGraphQLErrors.cjs +105 -0
  95. package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -0
  96. package/__cjs/errors/CombinedGraphQLErrors.d.cts +191 -0
  97. package/__cjs/errors/CombinedProtocolErrors.cjs +84 -0
  98. package/__cjs/errors/CombinedProtocolErrors.cjs.map +1 -0
  99. package/__cjs/errors/CombinedProtocolErrors.d.cts +150 -0
  100. package/__cjs/errors/LinkError.cjs +67 -0
  101. package/__cjs/errors/LinkError.cjs.map +1 -0
  102. package/__cjs/errors/LinkError.d.cts +61 -0
  103. package/__cjs/errors/LocalStateError.cjs +57 -0
  104. package/__cjs/errors/LocalStateError.cjs.map +1 -0
  105. package/__cjs/errors/LocalStateError.d.cts +56 -0
  106. package/__cjs/errors/ServerError.cjs +79 -0
  107. package/__cjs/errors/ServerError.cjs.map +1 -0
  108. package/__cjs/errors/ServerError.d.cts +87 -0
  109. package/__cjs/errors/ServerParseError.cjs +76 -0
  110. package/__cjs/errors/ServerParseError.cjs.map +1 -0
  111. package/__cjs/errors/ServerParseError.d.cts +82 -0
  112. package/__cjs/errors/UnconventionalError.cjs +67 -0
  113. package/__cjs/errors/UnconventionalError.cjs.map +1 -0
  114. package/__cjs/errors/UnconventionalError.d.cts +55 -0
  115. package/__cjs/errors/index.cjs +45 -0
  116. package/__cjs/errors/index.cjs.map +1 -0
  117. package/__cjs/errors/index.d.cts +14 -0
  118. package/__cjs/errors/isErrorLike.cjs +12 -0
  119. package/__cjs/errors/isErrorLike.cjs.map +1 -0
  120. package/__cjs/errors/isErrorLike.d.cts +3 -0
  121. package/__cjs/errors/utils.cjs +18 -0
  122. package/__cjs/errors/utils.cjs.map +1 -0
  123. package/__cjs/errors/utils.d.cts +3 -0
  124. package/__cjs/incremental/handlers/defer20220824.cjs +127 -0
  125. package/__cjs/incremental/handlers/defer20220824.cjs.map +1 -0
  126. package/__cjs/incremental/handlers/defer20220824.d.cts +66 -0
  127. package/__cjs/incremental/handlers/graphql17Alpha9.cjs +227 -0
  128. package/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -0
  129. package/__cjs/incremental/handlers/graphql17Alpha9.d.cts +98 -0
  130. package/__cjs/incremental/handlers/notImplemented.cjs +19 -0
  131. package/__cjs/incremental/handlers/notImplemented.cjs.map +1 -0
  132. package/__cjs/incremental/handlers/notImplemented.d.cts +20 -0
  133. package/__cjs/incremental/index.cjs +11 -0
  134. package/__cjs/incremental/index.cjs.map +1 -0
  135. package/__cjs/incremental/index.d.cts +5 -0
  136. package/__cjs/incremental/types.cjs +3 -0
  137. package/__cjs/incremental/types.cjs.map +1 -0
  138. package/__cjs/incremental/types.d.cts +33 -0
  139. package/__cjs/invariantErrorCodes.cjs +731 -0
  140. package/__cjs/invariantErrorCodes.cjs.map +1 -0
  141. package/__cjs/invariantErrorCodes.d.cts +13 -0
  142. package/__cjs/link/batch/batchLink.cjs +53 -0
  143. package/__cjs/link/batch/batchLink.cjs.map +1 -0
  144. package/__cjs/link/batch/batchLink.d.cts +117 -0
  145. package/__cjs/link/batch/batching.cjs +156 -0
  146. package/__cjs/link/batch/batching.cjs.map +1 -0
  147. package/__cjs/link/batch/batching.d.cts +27 -0
  148. package/__cjs/link/batch/index.cjs +6 -0
  149. package/__cjs/link/batch/index.cjs.map +1 -0
  150. package/__cjs/link/batch/index.d.cts +2 -0
  151. package/__cjs/link/batch-http/BaseBatchHttpLink.cjs +156 -0
  152. package/__cjs/link/batch-http/BaseBatchHttpLink.cjs.map +1 -0
  153. package/__cjs/link/batch-http/BaseBatchHttpLink.d.cts +68 -0
  154. package/__cjs/link/batch-http/batchHttpLink.cjs +42 -0
  155. package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -0
  156. package/__cjs/link/batch-http/batchHttpLink.d.cts +49 -0
  157. package/__cjs/link/batch-http/index.cjs +8 -0
  158. package/__cjs/link/batch-http/index.cjs.map +1 -0
  159. package/__cjs/link/batch-http/index.d.cts +3 -0
  160. package/__cjs/link/client-awareness/ClientAwarenessLink.cjs +90 -0
  161. package/__cjs/link/client-awareness/ClientAwarenessLink.cjs.map +1 -0
  162. package/__cjs/link/client-awareness/ClientAwarenessLink.d.cts +114 -0
  163. package/__cjs/link/client-awareness/index.cjs +6 -0
  164. package/__cjs/link/client-awareness/index.cjs.map +1 -0
  165. package/__cjs/link/client-awareness/index.d.cts +2 -0
  166. package/__cjs/link/context/index.cjs +68 -0
  167. package/__cjs/link/context/index.cjs.map +1 -0
  168. package/__cjs/link/context/index.d.cts +85 -0
  169. package/__cjs/link/core/ApolloLink.cjs +274 -0
  170. package/__cjs/link/core/ApolloLink.cjs.map +1 -0
  171. package/__cjs/link/core/ApolloLink.d.cts +384 -0
  172. package/__cjs/link/core/concat.cjs +10 -0
  173. package/__cjs/link/core/concat.cjs.map +1 -0
  174. package/__cjs/link/core/concat.d.cts +7 -0
  175. package/__cjs/link/core/deprecated.cjs +3 -0
  176. package/__cjs/link/core/deprecated.cjs.map +1 -0
  177. package/__cjs/link/core/deprecated.d.cts +10 -0
  178. package/__cjs/link/core/empty.cjs +10 -0
  179. package/__cjs/link/core/empty.cjs.map +1 -0
  180. package/__cjs/link/core/empty.d.cts +7 -0
  181. package/__cjs/link/core/execute.cjs +6 -0
  182. package/__cjs/link/core/execute.cjs.map +1 -0
  183. package/__cjs/link/core/execute.d.cts +3 -0
  184. package/__cjs/link/core/from.cjs +10 -0
  185. package/__cjs/link/core/from.cjs.map +1 -0
  186. package/__cjs/link/core/from.d.cts +7 -0
  187. package/__cjs/link/core/split.cjs +10 -0
  188. package/__cjs/link/core/split.cjs.map +1 -0
  189. package/__cjs/link/core/split.d.cts +7 -0
  190. package/__cjs/link/core/types.cjs +3 -0
  191. package/__cjs/link/core/types.cjs.map +1 -0
  192. package/__cjs/link/core/types.d.cts +6 -0
  193. package/__cjs/link/error/index.cjs +129 -0
  194. package/__cjs/link/error/index.cjs.map +1 -0
  195. package/__cjs/link/error/index.d.cts +105 -0
  196. package/__cjs/link/http/BaseHttpLink.cjs +161 -0
  197. package/__cjs/link/http/BaseHttpLink.cjs.map +1 -0
  198. package/__cjs/link/http/BaseHttpLink.d.cts +260 -0
  199. package/__cjs/link/http/HttpLink.cjs +46 -0
  200. package/__cjs/link/http/HttpLink.cjs.map +1 -0
  201. package/__cjs/link/http/HttpLink.d.cts +58 -0
  202. package/__cjs/link/http/checkFetcher.cjs +9 -0
  203. package/__cjs/link/http/checkFetcher.cjs.map +1 -0
  204. package/__cjs/link/http/checkFetcher.d.cts +2 -0
  205. package/__cjs/link/http/createSignalIfSupported.cjs +17 -0
  206. package/__cjs/link/http/createSignalIfSupported.cjs.map +1 -0
  207. package/__cjs/link/http/createSignalIfSupported.d.cts +13 -0
  208. package/__cjs/link/http/index.cjs +24 -0
  209. package/__cjs/link/http/index.cjs.map +1 -0
  210. package/__cjs/link/http/index.d.cts +9 -0
  211. package/__cjs/link/http/parseAndCheckHttpResponse.cjs +163 -0
  212. package/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -0
  213. package/__cjs/link/http/parseAndCheckHttpResponse.d.cts +4 -0
  214. package/__cjs/link/http/rewriteURIForGET.cjs +55 -0
  215. package/__cjs/link/http/rewriteURIForGET.cjs.map +1 -0
  216. package/__cjs/link/http/rewriteURIForGET.d.cts +9 -0
  217. package/__cjs/link/http/selectHttpOptionsAndBody.cjs +109 -0
  218. package/__cjs/link/http/selectHttpOptionsAndBody.cjs.map +1 -0
  219. package/__cjs/link/http/selectHttpOptionsAndBody.d.cts +29 -0
  220. package/__cjs/link/http/selectURI.cjs +18 -0
  221. package/__cjs/link/http/selectURI.cjs.map +1 -0
  222. package/__cjs/link/http/selectURI.d.cts +3 -0
  223. package/__cjs/link/index.cjs +16 -0
  224. package/__cjs/link/index.cjs.map +1 -0
  225. package/__cjs/link/index.d.cts +10 -0
  226. package/__cjs/link/persisted-queries/index.cjs +248 -0
  227. package/__cjs/link/persisted-queries/index.cjs.map +1 -0
  228. package/__cjs/link/persisted-queries/index.d.cts +227 -0
  229. package/__cjs/link/remove-typename/index.cjs +8 -0
  230. package/__cjs/link/remove-typename/index.cjs.map +1 -0
  231. package/__cjs/link/remove-typename/index.d.cts +2 -0
  232. package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs +156 -0
  233. package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs.map +1 -0
  234. package/__cjs/link/remove-typename/removeTypenameFromVariables.d.cts +137 -0
  235. package/__cjs/link/retry/delayFunction.cjs +21 -0
  236. package/__cjs/link/retry/delayFunction.cjs.map +1 -0
  237. package/__cjs/link/retry/delayFunction.d.cts +3 -0
  238. package/__cjs/link/retry/index.cjs +6 -0
  239. package/__cjs/link/retry/index.cjs.map +1 -0
  240. package/__cjs/link/retry/index.d.cts +2 -0
  241. package/__cjs/link/retry/retryFunction.cjs +12 -0
  242. package/__cjs/link/retry/retryFunction.cjs.map +1 -0
  243. package/__cjs/link/retry/retryFunction.d.cts +3 -0
  244. package/__cjs/link/retry/retryLink.cjs +122 -0
  245. package/__cjs/link/retry/retryLink.cjs.map +1 -0
  246. package/__cjs/link/retry/retryLink.d.cts +148 -0
  247. package/__cjs/link/schema/index.cjs +75 -0
  248. package/__cjs/link/schema/index.cjs.map +1 -0
  249. package/__cjs/link/schema/index.d.cts +157 -0
  250. package/__cjs/link/subscriptions/index.cjs +101 -0
  251. package/__cjs/link/subscriptions/index.cjs.map +1 -0
  252. package/__cjs/link/subscriptions/index.d.cts +32 -0
  253. package/__cjs/link/utils/createOperation.cjs +37 -0
  254. package/__cjs/link/utils/createOperation.cjs.map +1 -0
  255. package/__cjs/link/utils/createOperation.d.cts +3 -0
  256. package/__cjs/link/utils/filterOperationVariables.cjs +25 -0
  257. package/__cjs/link/utils/filterOperationVariables.cjs.map +1 -0
  258. package/__cjs/link/utils/filterOperationVariables.d.cts +5 -0
  259. package/__cjs/link/utils/index.cjs +8 -0
  260. package/__cjs/link/utils/index.cjs.map +1 -0
  261. package/__cjs/link/utils/index.d.cts +3 -0
  262. package/__cjs/link/ws/index.cjs +56 -0
  263. package/__cjs/link/ws/index.cjs.map +1 -0
  264. package/__cjs/link/ws/index.d.cts +88 -0
  265. package/__cjs/local-state/LocalState.cjs +584 -0
  266. package/__cjs/local-state/LocalState.cjs.map +1 -0
  267. package/__cjs/local-state/LocalState.d.cts +183 -0
  268. package/__cjs/local-state/index.cjs +6 -0
  269. package/__cjs/local-state/index.cjs.map +1 -0
  270. package/__cjs/local-state/index.d.cts +2 -0
  271. package/__cjs/masking/GraphQLCodegenDataMasking.cjs +3 -0
  272. package/__cjs/masking/GraphQLCodegenDataMasking.cjs.map +1 -0
  273. package/__cjs/masking/GraphQLCodegenDataMasking.d.cts +46 -0
  274. package/__cjs/masking/PreserveTypes.cjs +3 -0
  275. package/__cjs/masking/PreserveTypes.cjs.map +1 -0
  276. package/__cjs/masking/PreserveTypes.d.cts +26 -0
  277. package/__cjs/masking/index.cjs +10 -0
  278. package/__cjs/masking/index.cjs.map +1 -0
  279. package/__cjs/masking/index.d.cts +6 -0
  280. package/__cjs/masking/internal/types.cjs +3 -0
  281. package/__cjs/masking/internal/types.cjs.map +1 -0
  282. package/__cjs/masking/internal/types.d.cts +120 -0
  283. package/__cjs/masking/maskDefinition.cjs +139 -0
  284. package/__cjs/masking/maskDefinition.cjs.map +1 -0
  285. package/__cjs/masking/maskDefinition.d.cts +14 -0
  286. package/__cjs/masking/maskFragment.cjs +41 -0
  287. package/__cjs/masking/maskFragment.cjs.map +1 -0
  288. package/__cjs/masking/maskFragment.d.cts +8 -0
  289. package/__cjs/masking/maskOperation.cjs +28 -0
  290. package/__cjs/masking/maskOperation.cjs.map +1 -0
  291. package/__cjs/masking/maskOperation.d.cts +8 -0
  292. package/__cjs/masking/types.cjs +3 -0
  293. package/__cjs/masking/types.cjs.map +1 -0
  294. package/__cjs/masking/types.d.cts +16 -0
  295. package/__cjs/masking/utils.cjs +47 -0
  296. package/__cjs/masking/utils.cjs.map +1 -0
  297. package/__cjs/masking/utils.d.cts +14 -0
  298. package/__cjs/react/context/ApolloContext.cjs +26 -0
  299. package/__cjs/react/context/ApolloContext.cjs.map +1 -0
  300. package/__cjs/react/context/ApolloContext.d.cts +9 -0
  301. package/__cjs/react/context/ApolloProvider.cjs +21 -0
  302. package/__cjs/react/context/ApolloProvider.cjs.map +1 -0
  303. package/__cjs/react/context/ApolloProvider.d.cts +10 -0
  304. package/__cjs/react/hooks/constants.cjs +5 -0
  305. package/__cjs/react/hooks/constants.cjs.map +1 -0
  306. package/__cjs/react/hooks/constants.d.cts +3 -0
  307. package/__cjs/react/hooks/internal/__use.cjs +26 -0
  308. package/__cjs/react/hooks/internal/__use.cjs.map +1 -0
  309. package/__cjs/react/hooks/internal/__use.d.cts +4 -0
  310. package/__cjs/react/hooks/internal/index.cjs +15 -0
  311. package/__cjs/react/hooks/internal/index.cjs.map +1 -0
  312. package/__cjs/react/hooks/internal/index.d.cts +6 -0
  313. package/__cjs/react/hooks/internal/useDeepMemo.cjs +16 -0
  314. package/__cjs/react/hooks/internal/useDeepMemo.cjs.map +1 -0
  315. package/__cjs/react/hooks/internal/useDeepMemo.d.cts +3 -0
  316. package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.cjs +13 -0
  317. package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.cjs.map +1 -0
  318. package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.d.cts +3 -0
  319. package/__cjs/react/hooks/internal/useRenderGuard.cjs +46 -0
  320. package/__cjs/react/hooks/internal/useRenderGuard.cjs.map +1 -0
  321. package/__cjs/react/hooks/internal/useRenderGuard.d.cts +2 -0
  322. package/__cjs/react/hooks/internal/useSuspenseHookCacheKey.cjs +28 -0
  323. package/__cjs/react/hooks/internal/useSuspenseHookCacheKey.cjs.map +1 -0
  324. package/__cjs/react/hooks/internal/useSuspenseHookCacheKey.d.cts +11 -0
  325. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +28 -0
  326. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs.map +1 -0
  327. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.d.cts +3 -0
  328. package/__cjs/react/hooks/internal/wrapHook.cjs +69 -0
  329. package/__cjs/react/hooks/internal/wrapHook.cjs.map +1 -0
  330. package/__cjs/react/hooks/internal/wrapHook.d.cts +66 -0
  331. package/__cjs/react/hooks/useApolloClient.cjs +29 -0
  332. package/__cjs/react/hooks/useApolloClient.cjs.map +1 -0
  333. package/__cjs/react/hooks/useApolloClient.d.cts +18 -0
  334. package/__cjs/react/hooks/useBackgroundQuery.cjs +76 -0
  335. package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -0
  336. package/__cjs/react/hooks/useBackgroundQuery.d.cts +975 -0
  337. package/__cjs/react/hooks/useFragment.cjs +58 -0
  338. package/__cjs/react/hooks/useFragment.cjs.map +1 -0
  339. package/__cjs/react/hooks/useFragment.d.cts +162 -0
  340. package/__cjs/react/hooks/useLazyQuery.cjs +150 -0
  341. package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -0
  342. package/__cjs/react/hooks/useLazyQuery.d.cts +436 -0
  343. package/__cjs/react/hooks/useLoadableQuery.cjs +92 -0
  344. package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -0
  345. package/__cjs/react/hooks/useLoadableQuery.d.cts +353 -0
  346. package/__cjs/react/hooks/useMutation.cjs +163 -0
  347. package/__cjs/react/hooks/useMutation.cjs.map +1 -0
  348. package/__cjs/react/hooks/useMutation.d.cts +316 -0
  349. package/__cjs/react/hooks/useQuery.cjs +219 -0
  350. package/__cjs/react/hooks/useQuery.cjs.map +1 -0
  351. package/__cjs/react/hooks/useQuery.d.cts +549 -0
  352. package/__cjs/react/hooks/useQueryRefHandlers.cjs +72 -0
  353. package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -0
  354. package/__cjs/react/hooks/useQueryRefHandlers.d.cts +78 -0
  355. package/__cjs/react/hooks/useReactiveVar.cjs +39 -0
  356. package/__cjs/react/hooks/useReactiveVar.cjs.map +1 -0
  357. package/__cjs/react/hooks/useReactiveVar.d.cts +22 -0
  358. package/__cjs/react/hooks/useReadQuery.cjs +74 -0
  359. package/__cjs/react/hooks/useReadQuery.cjs.map +1 -0
  360. package/__cjs/react/hooks/useReadQuery.d.cts +100 -0
  361. package/__cjs/react/hooks/useSubscription.cjs +226 -0
  362. package/__cjs/react/hooks/useSubscription.cjs.map +1 -0
  363. package/__cjs/react/hooks/useSubscription.d.cts +270 -0
  364. package/__cjs/react/hooks/useSuspenseFragment.cjs +51 -0
  365. package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -0
  366. package/__cjs/react/hooks/useSuspenseFragment.d.cts +105 -0
  367. package/__cjs/react/hooks/useSuspenseQuery.cjs +123 -0
  368. package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -0
  369. package/__cjs/react/hooks/useSuspenseQuery.d.cts +630 -0
  370. package/__cjs/react/hooks/useSyncExternalStore.cjs +130 -0
  371. package/__cjs/react/hooks/useSyncExternalStore.cjs.map +1 -0
  372. package/__cjs/react/hooks/useSyncExternalStore.d.cts +4 -0
  373. package/__cjs/react/index.cjs +39 -0
  374. package/__cjs/react/index.cjs.map +1 -0
  375. package/__cjs/react/index.d.cts +33 -0
  376. package/__cjs/react/index.react-server.cjs +46 -0
  377. package/__cjs/react/index.react-server.cjs.map +1 -0
  378. package/__cjs/react/index.react-server.d.cts +18 -0
  379. package/__cjs/react/internal/cache/FragmentReference.cjs +116 -0
  380. package/__cjs/react/internal/cache/FragmentReference.cjs.map +1 -0
  381. package/__cjs/react/internal/cache/FragmentReference.d.cts +35 -0
  382. package/__cjs/react/internal/cache/QueryReference.cjs +314 -0
  383. package/__cjs/react/internal/cache/QueryReference.cjs.map +1 -0
  384. package/__cjs/react/internal/cache/QueryReference.d.cts +112 -0
  385. package/__cjs/react/internal/cache/SuspenseCache.cjs +44 -0
  386. package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -0
  387. package/__cjs/react/internal/cache/SuspenseCache.d.cts +29 -0
  388. package/__cjs/react/internal/cache/getSuspenseCache.cjs +12 -0
  389. package/__cjs/react/internal/cache/getSuspenseCache.cjs.map +1 -0
  390. package/__cjs/react/internal/cache/getSuspenseCache.d.cts +18 -0
  391. package/__cjs/react/internal/cache/types.cjs +3 -0
  392. package/__cjs/react/internal/cache/types.cjs.map +1 -0
  393. package/__cjs/react/internal/cache/types.d.cts +18 -0
  394. package/__cjs/react/internal/compiler-runtime/index.cjs +32 -0
  395. package/__cjs/react/internal/compiler-runtime/index.cjs.map +1 -0
  396. package/__cjs/react/internal/compiler-runtime/index.d.cts +8 -0
  397. package/__cjs/react/internal/index.cjs +14 -0
  398. package/__cjs/react/internal/index.cjs.map +1 -0
  399. package/__cjs/react/internal/index.d.cts +10 -0
  400. package/__cjs/react/internal/types.cjs +3 -0
  401. package/__cjs/react/internal/types.cjs.map +1 -0
  402. package/__cjs/react/internal/types.d.cts +4 -0
  403. package/__cjs/react/query-preloader/createQueryPreloader.cjs +85 -0
  404. package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -0
  405. package/__cjs/react/query-preloader/createQueryPreloader.d.cts +256 -0
  406. package/__cjs/react/ssr/getDataFromTree.cjs +43 -0
  407. package/__cjs/react/ssr/getDataFromTree.cjs.map +1 -0
  408. package/__cjs/react/ssr/getDataFromTree.d.cts +25 -0
  409. package/__cjs/react/ssr/index.cjs +11 -0
  410. package/__cjs/react/ssr/index.cjs.map +1 -0
  411. package/__cjs/react/ssr/index.d.cts +4 -0
  412. package/__cjs/react/ssr/prerenderStatic.cjs +172 -0
  413. package/__cjs/react/ssr/prerenderStatic.cjs.map +1 -0
  414. package/__cjs/react/ssr/prerenderStatic.d.cts +143 -0
  415. package/__cjs/react/ssr/renderToStringWithData.cjs +18 -0
  416. package/__cjs/react/ssr/renderToStringWithData.cjs.map +1 -0
  417. package/__cjs/react/ssr/renderToStringWithData.d.cts +8 -0
  418. package/__cjs/react/ssr/useSSRQuery.cjs +73 -0
  419. package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -0
  420. package/__cjs/react/ssr/useSSRQuery.d.cts +6 -0
  421. package/__cjs/react/types/deprecated.cjs +3 -0
  422. package/__cjs/react/types/deprecated.cjs.map +1 -0
  423. package/__cjs/react/types/deprecated.d.cts +75 -0
  424. package/__cjs/react/types/types.documentation.cjs +3 -0
  425. package/__cjs/react/types/types.documentation.cjs.map +1 -0
  426. package/__cjs/react/types/types.documentation.d.cts +533 -0
  427. package/__cjs/testing/core/mocking/mockLink.cjs +193 -0
  428. package/__cjs/testing/core/mocking/mockLink.cjs.map +1 -0
  429. package/__cjs/testing/core/mocking/mockLink.d.cts +66 -0
  430. package/__cjs/testing/core/mocking/mockSubscriptionLink.cjs +56 -0
  431. package/__cjs/testing/core/mocking/mockSubscriptionLink.cjs.map +1 -0
  432. package/__cjs/testing/core/mocking/mockSubscriptionLink.d.cts +22 -0
  433. package/__cjs/testing/core/types/deprecated.cjs +3 -0
  434. package/__cjs/testing/core/types/deprecated.cjs.map +1 -0
  435. package/__cjs/testing/core/types/deprecated.d.cts +11 -0
  436. package/__cjs/testing/index.cjs +9 -0
  437. package/__cjs/testing/index.cjs.map +1 -0
  438. package/__cjs/testing/index.d.cts +4 -0
  439. package/__cjs/testing/react/MockedProvider.cjs +43 -0
  440. package/__cjs/testing/react/MockedProvider.cjs.map +1 -0
  441. package/__cjs/testing/react/MockedProvider.d.cts +33 -0
  442. package/__cjs/testing/react/index.cjs +6 -0
  443. package/__cjs/testing/react/index.cjs.map +1 -0
  444. package/__cjs/testing/react/index.d.cts +3 -0
  445. package/__cjs/utilities/DeepPartial.cjs +7 -0
  446. package/__cjs/utilities/DeepPartial.cjs.map +1 -0
  447. package/__cjs/utilities/DeepPartial.d.cts +15 -0
  448. package/__cjs/utilities/HKT.cjs +3 -0
  449. package/__cjs/utilities/HKT.cjs.map +1 -0
  450. package/__cjs/utilities/HKT.d.cts +36 -0
  451. package/__cjs/utilities/caching/index.cjs +6 -0
  452. package/__cjs/utilities/caching/index.cjs.map +1 -0
  453. package/__cjs/utilities/caching/index.d.cts +3 -0
  454. package/__cjs/utilities/caching/sizes.cjs +29 -0
  455. package/__cjs/utilities/caching/sizes.cjs.map +1 -0
  456. package/__cjs/utilities/caching/sizes.d.cts +286 -0
  457. package/__cjs/utilities/common/stripTypename.cjs +25 -0
  458. package/__cjs/utilities/common/stripTypename.cjs.map +1 -0
  459. package/__cjs/utilities/common/stripTypename.d.cts +19 -0
  460. package/__cjs/utilities/environment/index.cjs +5 -0
  461. package/__cjs/utilities/environment/index.cjs.map +1 -0
  462. package/__cjs/utilities/environment/index.d.cts +2 -0
  463. package/__cjs/utilities/environment/index.development.cjs +5 -0
  464. package/__cjs/utilities/environment/index.development.cjs.map +1 -0
  465. package/__cjs/utilities/environment/index.development.d.cts +2 -0
  466. package/__cjs/utilities/environment/index.production.cjs +5 -0
  467. package/__cjs/utilities/environment/index.production.cjs.map +1 -0
  468. package/__cjs/utilities/environment/index.production.d.cts +2 -0
  469. package/__cjs/utilities/graphql/DocumentTransform.cjs +190 -0
  470. package/__cjs/utilities/graphql/DocumentTransform.cjs.map +1 -0
  471. package/__cjs/utilities/graphql/DocumentTransform.d.cts +143 -0
  472. package/__cjs/utilities/graphql/isFormattedExecutionResult.cjs +36 -0
  473. package/__cjs/utilities/graphql/isFormattedExecutionResult.cjs.map +1 -0
  474. package/__cjs/utilities/graphql/isFormattedExecutionResult.d.cts +30 -0
  475. package/__cjs/utilities/graphql/operations.cjs +91 -0
  476. package/__cjs/utilities/graphql/operations.cjs.map +1 -0
  477. package/__cjs/utilities/graphql/operations.d.cts +77 -0
  478. package/__cjs/utilities/graphql/print.cjs +33 -0
  479. package/__cjs/utilities/graphql/print.cjs.map +1 -0
  480. package/__cjs/utilities/graphql/print.d.cts +13 -0
  481. package/__cjs/utilities/graphql/storeUtils.cjs +21 -0
  482. package/__cjs/utilities/graphql/storeUtils.cjs.map +1 -0
  483. package/__cjs/utilities/graphql/storeUtils.d.cts +52 -0
  484. package/__cjs/utilities/graphql/transform.cjs +74 -0
  485. package/__cjs/utilities/graphql/transform.cjs.map +1 -0
  486. package/__cjs/utilities/graphql/transform.d.cts +21 -0
  487. package/__cjs/utilities/index.cjs +35 -0
  488. package/__cjs/utilities/index.cjs.map +1 -0
  489. package/__cjs/utilities/index.d.cts +19 -0
  490. package/__cjs/utilities/internal/DeepMerger.cjs +99 -0
  491. package/__cjs/utilities/internal/DeepMerger.cjs.map +1 -0
  492. package/__cjs/utilities/internal/DeepMerger.d.cts +33 -0
  493. package/__cjs/utilities/internal/argumentsObjectFromField.cjs +18 -0
  494. package/__cjs/utilities/internal/argumentsObjectFromField.cjs.map +1 -0
  495. package/__cjs/utilities/internal/argumentsObjectFromField.d.cts +8 -0
  496. package/__cjs/utilities/internal/bindCacheKey.cjs +21 -0
  497. package/__cjs/utilities/internal/bindCacheKey.cjs.map +1 -0
  498. package/__cjs/utilities/internal/bindCacheKey.d.cts +15 -0
  499. package/__cjs/utilities/internal/caches.cjs +76 -0
  500. package/__cjs/utilities/internal/caches.cjs.map +1 -0
  501. package/__cjs/utilities/internal/caches.d.cts +42 -0
  502. package/__cjs/utilities/internal/canUseDOM.cjs +11 -0
  503. package/__cjs/utilities/internal/canUseDOM.cjs.map +1 -0
  504. package/__cjs/utilities/internal/canUseDOM.d.cts +7 -0
  505. package/__cjs/utilities/internal/canonicalStringify.cjs +112 -0
  506. package/__cjs/utilities/internal/canonicalStringify.cjs.map +1 -0
  507. package/__cjs/utilities/internal/canonicalStringify.d.cts +44 -0
  508. package/__cjs/utilities/internal/checkDocument.cjs +67 -0
  509. package/__cjs/utilities/internal/checkDocument.cjs.map +1 -0
  510. package/__cjs/utilities/internal/checkDocument.d.cts +10 -0
  511. package/__cjs/utilities/internal/cloneDeep.cjs +45 -0
  512. package/__cjs/utilities/internal/cloneDeep.cjs.map +1 -0
  513. package/__cjs/utilities/internal/cloneDeep.d.cts +9 -0
  514. package/__cjs/utilities/internal/combineLatestBatched.cjs +71 -0
  515. package/__cjs/utilities/internal/combineLatestBatched.cjs.map +1 -0
  516. package/__cjs/utilities/internal/combineLatestBatched.d.cts +14 -0
  517. package/__cjs/utilities/internal/compact.cjs +26 -0
  518. package/__cjs/utilities/internal/compact.cjs.map +1 -0
  519. package/__cjs/utilities/internal/compact.d.cts +11 -0
  520. package/__cjs/utilities/internal/constants.cjs +26 -0
  521. package/__cjs/utilities/internal/constants.cjs.map +1 -0
  522. package/__cjs/utilities/internal/constants.d.cts +23 -0
  523. package/__cjs/utilities/internal/createFragmentMap.cjs +19 -0
  524. package/__cjs/utilities/internal/createFragmentMap.cjs.map +1 -0
  525. package/__cjs/utilities/internal/createFragmentMap.d.cts +12 -0
  526. package/__cjs/utilities/internal/createFulfilledPromise.cjs +15 -0
  527. package/__cjs/utilities/internal/createFulfilledPromise.cjs.map +1 -0
  528. package/__cjs/utilities/internal/createFulfilledPromise.d.cts +8 -0
  529. package/__cjs/utilities/internal/createRejectedPromise.cjs +17 -0
  530. package/__cjs/utilities/internal/createRejectedPromise.cjs.map +1 -0
  531. package/__cjs/utilities/internal/createRejectedPromise.d.cts +8 -0
  532. package/__cjs/utilities/internal/dealias.cjs +21 -0
  533. package/__cjs/utilities/internal/dealias.cjs.map +1 -0
  534. package/__cjs/utilities/internal/dealias.d.cts +5 -0
  535. package/__cjs/utilities/internal/decoratePromise.cjs +33 -0
  536. package/__cjs/utilities/internal/decoratePromise.cjs.map +1 -0
  537. package/__cjs/utilities/internal/decoratePromise.d.cts +8 -0
  538. package/__cjs/utilities/internal/deepFreeze.cjs +39 -0
  539. package/__cjs/utilities/internal/deepFreeze.cjs.map +1 -0
  540. package/__cjs/utilities/internal/deepFreeze.d.cts +7 -0
  541. package/__cjs/utilities/internal/equalByQuery.cjs +93 -0
  542. package/__cjs/utilities/internal/equalByQuery.cjs.map +1 -0
  543. package/__cjs/utilities/internal/equalByQuery.d.cts +5 -0
  544. package/__cjs/utilities/internal/filterMap.cjs +31 -0
  545. package/__cjs/utilities/internal/filterMap.cjs.map +1 -0
  546. package/__cjs/utilities/internal/filterMap.d.cts +4 -0
  547. package/__cjs/utilities/internal/getDefaultValues.cjs +22 -0
  548. package/__cjs/utilities/internal/getDefaultValues.cjs.map +1 -0
  549. package/__cjs/utilities/internal/getDefaultValues.d.cts +8 -0
  550. package/__cjs/utilities/internal/getFragmentDefinition.cjs +17 -0
  551. package/__cjs/utilities/internal/getFragmentDefinition.cjs.map +1 -0
  552. package/__cjs/utilities/internal/getFragmentDefinition.d.cts +8 -0
  553. package/__cjs/utilities/internal/getFragmentDefinitions.cjs +12 -0
  554. package/__cjs/utilities/internal/getFragmentDefinitions.cjs.map +1 -0
  555. package/__cjs/utilities/internal/getFragmentDefinitions.d.cts +8 -0
  556. package/__cjs/utilities/internal/getFragmentFromSelection.cjs +27 -0
  557. package/__cjs/utilities/internal/getFragmentFromSelection.cjs.map +1 -0
  558. package/__cjs/utilities/internal/getFragmentFromSelection.d.cts +10 -0
  559. package/__cjs/utilities/internal/getFragmentQueryDocument.cjs +96 -0
  560. package/__cjs/utilities/internal/getFragmentQueryDocument.cjs.map +1 -0
  561. package/__cjs/utilities/internal/getFragmentQueryDocument.d.cts +39 -0
  562. package/__cjs/utilities/internal/getGraphQLErrorsFromResult.cjs +12 -0
  563. package/__cjs/utilities/internal/getGraphQLErrorsFromResult.cjs.map +1 -0
  564. package/__cjs/utilities/internal/getGraphQLErrorsFromResult.d.cts +10 -0
  565. package/__cjs/utilities/internal/getMainDefinition.cjs +61 -0
  566. package/__cjs/utilities/internal/getMainDefinition.cjs.map +1 -0
  567. package/__cjs/utilities/internal/getMainDefinition.d.cts +40 -0
  568. package/__cjs/utilities/internal/getMemoryInternals.cjs +132 -0
  569. package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -0
  570. package/__cjs/utilities/internal/getMemoryInternals.d.cts +80 -0
  571. package/__cjs/utilities/internal/getOperationDefinition.cjs +14 -0
  572. package/__cjs/utilities/internal/getOperationDefinition.cjs.map +1 -0
  573. package/__cjs/utilities/internal/getOperationDefinition.d.cts +8 -0
  574. package/__cjs/utilities/internal/getOperationName.cjs +12 -0
  575. package/__cjs/utilities/internal/getOperationName.cjs.map +1 -0
  576. package/__cjs/utilities/internal/getOperationName.d.cts +8 -0
  577. package/__cjs/utilities/internal/getQueryDefinition.cjs +16 -0
  578. package/__cjs/utilities/internal/getQueryDefinition.cjs.map +1 -0
  579. package/__cjs/utilities/internal/getQueryDefinition.d.cts +8 -0
  580. package/__cjs/utilities/internal/getStoreKeyName.cjs +76 -0
  581. package/__cjs/utilities/internal/getStoreKeyName.cjs.map +1 -0
  582. package/__cjs/utilities/internal/getStoreKeyName.d.cts +16 -0
  583. package/__cjs/utilities/internal/globals/global.cjs +17 -0
  584. package/__cjs/utilities/internal/globals/global.cjs.map +1 -0
  585. package/__cjs/utilities/internal/globals/global.d.cts +3 -0
  586. package/__cjs/utilities/internal/globals/index.cjs +9 -0
  587. package/__cjs/utilities/internal/globals/index.cjs.map +1 -0
  588. package/__cjs/utilities/internal/globals/index.d.cts +3 -0
  589. package/__cjs/utilities/internal/globals/maybe.cjs +10 -0
  590. package/__cjs/utilities/internal/globals/maybe.cjs.map +1 -0
  591. package/__cjs/utilities/internal/globals/maybe.d.cts +2 -0
  592. package/__cjs/utilities/internal/graphQLResultHasError.cjs +12 -0
  593. package/__cjs/utilities/internal/graphQLResultHasError.cjs.map +1 -0
  594. package/__cjs/utilities/internal/graphQLResultHasError.d.cts +8 -0
  595. package/__cjs/utilities/internal/hasDirectives.cjs +24 -0
  596. package/__cjs/utilities/internal/hasDirectives.cjs.map +1 -0
  597. package/__cjs/utilities/internal/hasDirectives.d.cts +8 -0
  598. package/__cjs/utilities/internal/hasForcedResolvers.cjs +23 -0
  599. package/__cjs/utilities/internal/hasForcedResolvers.cjs.map +1 -0
  600. package/__cjs/utilities/internal/hasForcedResolvers.d.cts +3 -0
  601. package/__cjs/utilities/internal/index.cjs +121 -0
  602. package/__cjs/utilities/internal/index.cjs.map +1 -0
  603. package/__cjs/utilities/internal/index.d.cts +74 -0
  604. package/__cjs/utilities/internal/index.production.cjs +11 -0
  605. package/__cjs/utilities/internal/index.production.cjs.map +1 -0
  606. package/__cjs/utilities/internal/index.production.d.cts +3 -0
  607. package/__cjs/utilities/internal/isArray.cjs +12 -0
  608. package/__cjs/utilities/internal/isArray.cjs.map +1 -0
  609. package/__cjs/utilities/internal/isArray.d.cts +9 -0
  610. package/__cjs/utilities/internal/isDocumentNode.cjs +15 -0
  611. package/__cjs/utilities/internal/isDocumentNode.cjs.map +1 -0
  612. package/__cjs/utilities/internal/isDocumentNode.d.cts +8 -0
  613. package/__cjs/utilities/internal/isField.cjs +12 -0
  614. package/__cjs/utilities/internal/isField.cjs.map +1 -0
  615. package/__cjs/utilities/internal/isField.d.cts +8 -0
  616. package/__cjs/utilities/internal/isNonEmptyArray.cjs +12 -0
  617. package/__cjs/utilities/internal/isNonEmptyArray.cjs.map +1 -0
  618. package/__cjs/utilities/internal/isNonEmptyArray.d.cts +7 -0
  619. package/__cjs/utilities/internal/isNonNullObject.cjs +12 -0
  620. package/__cjs/utilities/internal/isNonNullObject.cjs.map +1 -0
  621. package/__cjs/utilities/internal/isNonNullObject.d.cts +7 -0
  622. package/__cjs/utilities/internal/isPlainObject.cjs +15 -0
  623. package/__cjs/utilities/internal/isPlainObject.cjs.map +1 -0
  624. package/__cjs/utilities/internal/isPlainObject.d.cts +7 -0
  625. package/__cjs/utilities/internal/makeReference.cjs +12 -0
  626. package/__cjs/utilities/internal/makeReference.cjs.map +1 -0
  627. package/__cjs/utilities/internal/makeReference.d.cts +8 -0
  628. package/__cjs/utilities/internal/makeUniqueId.cjs +18 -0
  629. package/__cjs/utilities/internal/makeUniqueId.cjs.map +1 -0
  630. package/__cjs/utilities/internal/makeUniqueId.d.cts +10 -0
  631. package/__cjs/utilities/internal/mapObservableFragment.cjs +27 -0
  632. package/__cjs/utilities/internal/mapObservableFragment.cjs.map +1 -0
  633. package/__cjs/utilities/internal/mapObservableFragment.d.cts +3 -0
  634. package/__cjs/utilities/internal/maybeDeepFreeze.cjs +17 -0
  635. package/__cjs/utilities/internal/maybeDeepFreeze.cjs.map +1 -0
  636. package/__cjs/utilities/internal/maybeDeepFreeze.d.cts +7 -0
  637. package/__cjs/utilities/internal/memoize.cjs +31 -0
  638. package/__cjs/utilities/internal/memoize.cjs.map +1 -0
  639. package/__cjs/utilities/internal/memoize.d.cts +8 -0
  640. package/__cjs/utilities/internal/mergeDeep.cjs +26 -0
  641. package/__cjs/utilities/internal/mergeDeep.cjs.map +1 -0
  642. package/__cjs/utilities/internal/mergeDeep.d.cts +8 -0
  643. package/__cjs/utilities/internal/mergeDeepArray.cjs +27 -0
  644. package/__cjs/utilities/internal/mergeDeepArray.cjs.map +1 -0
  645. package/__cjs/utilities/internal/mergeDeepArray.d.cts +7 -0
  646. package/__cjs/utilities/internal/mergeOptions.cjs +18 -0
  647. package/__cjs/utilities/internal/mergeOptions.cjs.map +1 -0
  648. package/__cjs/utilities/internal/mergeOptions.d.cts +10 -0
  649. package/__cjs/utilities/internal/omitDeep.cjs +48 -0
  650. package/__cjs/utilities/internal/omitDeep.cjs.map +1 -0
  651. package/__cjs/utilities/internal/omitDeep.d.cts +8 -0
  652. package/__cjs/utilities/internal/ponyfills/FinalizationRegistry.cjs +61 -0
  653. package/__cjs/utilities/internal/ponyfills/FinalizationRegistry.cjs.map +1 -0
  654. package/__cjs/utilities/internal/ponyfills/FinalizationRegistry.d.cts +11 -0
  655. package/__cjs/utilities/internal/ponyfills/index.cjs +6 -0
  656. package/__cjs/utilities/internal/ponyfills/index.cjs.map +1 -0
  657. package/__cjs/utilities/internal/ponyfills/index.d.cts +3 -0
  658. package/__cjs/utilities/internal/ponyfills/index.react-native.cjs +6 -0
  659. package/__cjs/utilities/internal/ponyfills/index.react-native.cjs.map +1 -0
  660. package/__cjs/utilities/internal/ponyfills/index.react-native.d.cts +2 -0
  661. package/__cjs/utilities/internal/preventUnhandledRejection.cjs +8 -0
  662. package/__cjs/utilities/internal/preventUnhandledRejection.cjs.map +1 -0
  663. package/__cjs/utilities/internal/preventUnhandledRejection.d.cts +2 -0
  664. package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +302 -0
  665. package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs.map +1 -0
  666. package/__cjs/utilities/internal/removeDirectivesFromDocument.d.cts +14 -0
  667. package/__cjs/utilities/internal/removeFragmentSpreads.cjs +14 -0
  668. package/__cjs/utilities/internal/removeFragmentSpreads.cjs.map +1 -0
  669. package/__cjs/utilities/internal/removeFragmentSpreads.d.cts +3 -0
  670. package/__cjs/utilities/internal/resultKeyNameFromField.cjs +12 -0
  671. package/__cjs/utilities/internal/resultKeyNameFromField.cjs.map +1 -0
  672. package/__cjs/utilities/internal/resultKeyNameFromField.d.cts +8 -0
  673. package/__cjs/utilities/internal/shouldInclude.cjs +50 -0
  674. package/__cjs/utilities/internal/shouldInclude.cjs.map +1 -0
  675. package/__cjs/utilities/internal/shouldInclude.d.cts +8 -0
  676. package/__cjs/utilities/internal/storeKeyNameFromField.cjs +29 -0
  677. package/__cjs/utilities/internal/storeKeyNameFromField.cjs.map +1 -0
  678. package/__cjs/utilities/internal/storeKeyNameFromField.d.cts +8 -0
  679. package/__cjs/utilities/internal/stringifyForDisplay.cjs +18 -0
  680. package/__cjs/utilities/internal/stringifyForDisplay.cjs.map +1 -0
  681. package/__cjs/utilities/internal/stringifyForDisplay.d.cts +7 -0
  682. package/__cjs/utilities/internal/toQueryResult.cjs +18 -0
  683. package/__cjs/utilities/internal/toQueryResult.cjs.map +1 -0
  684. package/__cjs/utilities/internal/toQueryResult.d.cts +8 -0
  685. package/__cjs/utilities/internal/types/ApplyHKT.cjs +3 -0
  686. package/__cjs/utilities/internal/types/ApplyHKT.cjs.map +1 -0
  687. package/__cjs/utilities/internal/types/ApplyHKT.d.cts +13 -0
  688. package/__cjs/utilities/internal/types/ApplyHKTImplementationWithDefault.cjs +3 -0
  689. package/__cjs/utilities/internal/types/ApplyHKTImplementationWithDefault.cjs.map +1 -0
  690. package/__cjs/utilities/internal/types/ApplyHKTImplementationWithDefault.d.cts +11 -0
  691. package/__cjs/utilities/internal/types/DecoratedPromise.cjs +3 -0
  692. package/__cjs/utilities/internal/types/DecoratedPromise.cjs.map +1 -0
  693. package/__cjs/utilities/internal/types/DecoratedPromise.d.cts +10 -0
  694. package/__cjs/utilities/internal/types/DeepOmit.cjs +3 -0
  695. package/__cjs/utilities/internal/types/DeepOmit.cjs.map +1 -0
  696. package/__cjs/utilities/internal/types/DeepOmit.d.cts +15 -0
  697. package/__cjs/utilities/internal/types/DocumentationTypes.cjs +3 -0
  698. package/__cjs/utilities/internal/types/DocumentationTypes.cjs.map +1 -0
  699. package/__cjs/utilities/internal/types/DocumentationTypes.d.cts +88 -0
  700. package/__cjs/utilities/internal/types/ExtensionsWithStreamDetails.cjs +3 -0
  701. package/__cjs/utilities/internal/types/ExtensionsWithStreamDetails.cjs.map +1 -0
  702. package/__cjs/utilities/internal/types/ExtensionsWithStreamDetails.d.cts +12 -0
  703. package/__cjs/utilities/internal/types/FragmentMap.cjs +3 -0
  704. package/__cjs/utilities/internal/types/FragmentMap.cjs.map +1 -0
  705. package/__cjs/utilities/internal/types/FragmentMap.d.cts +12 -0
  706. package/__cjs/utilities/internal/types/FragmentMapFunction.cjs +3 -0
  707. package/__cjs/utilities/internal/types/FragmentMapFunction.cjs.map +1 -0
  708. package/__cjs/utilities/internal/types/FragmentMapFunction.d.cts +8 -0
  709. package/__cjs/utilities/internal/types/FulfilledPromise.cjs +3 -0
  710. package/__cjs/utilities/internal/types/FulfilledPromise.cjs.map +1 -0
  711. package/__cjs/utilities/internal/types/FulfilledPromise.d.cts +10 -0
  712. package/__cjs/utilities/internal/types/IsAny.cjs +3 -0
  713. package/__cjs/utilities/internal/types/IsAny.cjs.map +1 -0
  714. package/__cjs/utilities/internal/types/IsAny.d.cts +7 -0
  715. package/__cjs/utilities/internal/types/NoInfer.cjs +3 -0
  716. package/__cjs/utilities/internal/types/NoInfer.cjs.map +1 -0
  717. package/__cjs/utilities/internal/types/NoInfer.d.cts +35 -0
  718. package/__cjs/utilities/internal/types/PendingPromise.cjs +3 -0
  719. package/__cjs/utilities/internal/types/PendingPromise.cjs.map +1 -0
  720. package/__cjs/utilities/internal/types/PendingPromise.d.cts +9 -0
  721. package/__cjs/utilities/internal/types/Prettify.cjs +3 -0
  722. package/__cjs/utilities/internal/types/Prettify.cjs.map +1 -0
  723. package/__cjs/utilities/internal/types/Prettify.d.cts +9 -0
  724. package/__cjs/utilities/internal/types/Primitive.cjs +3 -0
  725. package/__cjs/utilities/internal/types/Primitive.cjs.map +1 -0
  726. package/__cjs/utilities/internal/types/Primitive.d.cts +7 -0
  727. package/__cjs/utilities/internal/types/RejectedPromise.cjs +3 -0
  728. package/__cjs/utilities/internal/types/RejectedPromise.cjs.map +1 -0
  729. package/__cjs/utilities/internal/types/RejectedPromise.d.cts +10 -0
  730. package/__cjs/utilities/internal/types/RemoveIndexSignature.cjs +3 -0
  731. package/__cjs/utilities/internal/types/RemoveIndexSignature.cjs.map +1 -0
  732. package/__cjs/utilities/internal/types/RemoveIndexSignature.d.cts +9 -0
  733. package/__cjs/utilities/internal/types/StreamInfoTrie.cjs +3 -0
  734. package/__cjs/utilities/internal/types/StreamInfoTrie.cjs.map +1 -0
  735. package/__cjs/utilities/internal/types/StreamInfoTrie.d.cts +16 -0
  736. package/__cjs/utilities/internal/types/TupleToIntersection.cjs +3 -0
  737. package/__cjs/utilities/internal/types/TupleToIntersection.cjs.map +1 -0
  738. package/__cjs/utilities/internal/types/TupleToIntersection.d.cts +2 -0
  739. package/__cjs/utilities/internal/types/VariablesOption.cjs +3 -0
  740. package/__cjs/utilities/internal/types/VariablesOption.cjs.map +1 -0
  741. package/__cjs/utilities/internal/types/VariablesOption.d.cts +26 -0
  742. package/__cjs/utilities/internal/valueToObjectRepresentation.cjs +44 -0
  743. package/__cjs/utilities/internal/valueToObjectRepresentation.cjs.map +1 -0
  744. package/__cjs/utilities/internal/valueToObjectRepresentation.d.cts +8 -0
  745. package/__cjs/utilities/invariant/index.cjs +100 -0
  746. package/__cjs/utilities/invariant/index.cjs.map +1 -0
  747. package/__cjs/utilities/invariant/index.d.cts +47 -0
  748. package/__cjs/utilities/invariant/index.development.cjs +16 -0
  749. package/__cjs/utilities/invariant/index.development.cjs.map +1 -0
  750. package/__cjs/utilities/invariant/index.development.d.cts +4 -0
  751. package/__cjs/utilities/isNetworkRequestInFlight.cjs +12 -0
  752. package/__cjs/utilities/isNetworkRequestInFlight.cjs.map +1 -0
  753. package/__cjs/utilities/isNetworkRequestInFlight.d.cts +7 -0
  754. package/__cjs/utilities/isNetworkRequestSettled.cjs +11 -0
  755. package/__cjs/utilities/isNetworkRequestSettled.cjs.map +1 -0
  756. package/__cjs/utilities/isNetworkRequestSettled.d.cts +7 -0
  757. package/__cjs/utilities/policies/pagination.cjs +238 -0
  758. package/__cjs/utilities/policies/pagination.cjs.map +1 -0
  759. package/__cjs/utilities/policies/pagination.d.cts +51 -0
  760. package/__cjs/utilities/subscriptions/relay/index.cjs +62 -0
  761. package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -0
  762. package/__cjs/utilities/subscriptions/relay/index.d.cts +10 -0
  763. package/__cjs/v4-migration.cjs +9 -0
  764. package/__cjs/v4-migration.cjs.map +1 -0
  765. package/__cjs/v4-migration.d.cts +826 -0
  766. package/__cjs/version.cjs +6 -0
  767. package/__cjs/version.cjs.map +1 -0
  768. package/__cjs/version.d.cts +3 -0
  769. package/cache/core/cache.d.ts +291 -0
  770. package/cache/core/cache.js +354 -0
  771. package/cache/core/cache.js.map +1 -0
  772. package/cache/core/types/Cache.d.ts +302 -0
  773. package/cache/core/types/Cache.js +2 -0
  774. package/cache/core/types/Cache.js.map +1 -0
  775. package/cache/core/types/common.d.ts +64 -0
  776. package/cache/core/types/common.js +29 -0
  777. package/cache/core/types/common.js.map +1 -0
  778. package/cache/deprecated.d.ts +6 -0
  779. package/cache/deprecated.js +2 -0
  780. package/cache/deprecated.js.map +1 -0
  781. package/cache/index.d.ts +19 -0
  782. package/cache/index.js +10 -0
  783. package/cache/index.js.map +1 -0
  784. package/cache/inmemory/entityStore.d.ts +94 -0
  785. package/cache/inmemory/entityStore.js +669 -0
  786. package/cache/inmemory/entityStore.js.map +1 -0
  787. package/cache/inmemory/fragmentRegistry.d.ts +9 -0
  788. package/cache/inmemory/fragmentRegistry.js +131 -0
  789. package/cache/inmemory/fragmentRegistry.js.map +1 -0
  790. package/cache/inmemory/helpers.d.ts +21 -0
  791. package/cache/inmemory/helpers.js +82 -0
  792. package/cache/inmemory/helpers.js.map +1 -0
  793. package/cache/inmemory/inMemoryCache.d.ts +114 -0
  794. package/cache/inmemory/inMemoryCache.js +506 -0
  795. package/cache/inmemory/inMemoryCache.js.map +1 -0
  796. package/cache/inmemory/key-extractor.d.ts +9 -0
  797. package/cache/inmemory/key-extractor.js +185 -0
  798. package/cache/inmemory/key-extractor.js.map +1 -0
  799. package/cache/inmemory/policies.d.ts +126 -0
  800. package/cache/inmemory/policies.js +664 -0
  801. package/cache/inmemory/policies.js.map +1 -0
  802. package/cache/inmemory/reactiveVars.d.ts +19 -0
  803. package/cache/inmemory/reactiveVars.js +83 -0
  804. package/cache/inmemory/reactiveVars.js.map +1 -0
  805. package/cache/inmemory/readFromStore.d.ts +26 -0
  806. package/cache/inmemory/readFromStore.js +289 -0
  807. package/cache/inmemory/readFromStore.js.map +1 -0
  808. package/cache/inmemory/types.d.ts +109 -0
  809. package/cache/inmemory/types.js +2 -0
  810. package/cache/inmemory/types.js.map +1 -0
  811. package/cache/inmemory/writeToStore.d.ts +38 -0
  812. package/cache/inmemory/writeToStore.js +586 -0
  813. package/cache/inmemory/writeToStore.js.map +1 -0
  814. package/changes.json +26 -0
  815. package/core/ApolloClient.d.ts +1210 -0
  816. package/core/ApolloClient.js +531 -0
  817. package/core/ApolloClient.js.map +1 -0
  818. package/core/ObservableQuery.d.ts +467 -0
  819. package/core/ObservableQuery.js +1404 -0
  820. package/core/ObservableQuery.js.map +1 -0
  821. package/core/QueryInfo.d.ts +70 -0
  822. package/core/QueryInfo.js +397 -0
  823. package/core/QueryInfo.js.map +1 -0
  824. package/core/QueryManager.d.ts +168 -0
  825. package/core/QueryManager.js +1147 -0
  826. package/core/QueryManager.js.map +1 -0
  827. package/core/deprecated.d.ts +29 -0
  828. package/core/deprecated.js +2 -0
  829. package/core/deprecated.js.map +1 -0
  830. package/core/index.d.ts +31 -0
  831. package/core/index.js +34 -0
  832. package/core/index.js.map +1 -0
  833. package/core/networkStatus.d.ts +47 -0
  834. package/core/networkStatus.js +48 -0
  835. package/core/networkStatus.js.map +1 -0
  836. package/core/types.d.ts +327 -0
  837. package/core/types.js +2 -0
  838. package/core/types.js.map +1 -0
  839. package/core/watchQueryOptions.d.ts +75 -0
  840. package/core/watchQueryOptions.js +2 -0
  841. package/core/watchQueryOptions.js.map +1 -0
  842. package/dev/index.d.ts +6 -0
  843. package/dev/index.js +5 -0
  844. package/dev/index.js.map +1 -0
  845. package/dev/loadDevMessages.d.ts +2 -0
  846. package/dev/loadDevMessages.js +6 -0
  847. package/dev/loadDevMessages.js.map +1 -0
  848. package/dev/loadErrorMessageHandler.d.ts +8 -0
  849. package/dev/loadErrorMessageHandler.js +24 -0
  850. package/dev/loadErrorMessageHandler.js.map +1 -0
  851. package/dev/loadErrorMessages.d.ts +2 -0
  852. package/dev/loadErrorMessages.js +6 -0
  853. package/dev/loadErrorMessages.js.map +1 -0
  854. package/dev/setErrorMessageHandler.d.ts +34 -0
  855. package/dev/setErrorMessageHandler.js +9 -0
  856. package/dev/setErrorMessageHandler.js.map +1 -0
  857. package/dev/symbol.d.ts +10 -0
  858. package/dev/symbol.js +4 -0
  859. package/dev/symbol.js.map +1 -0
  860. package/errors/CombinedGraphQLErrors.d.ts +191 -0
  861. package/errors/CombinedGraphQLErrors.js +101 -0
  862. package/errors/CombinedGraphQLErrors.js.map +1 -0
  863. package/errors/CombinedProtocolErrors.d.ts +150 -0
  864. package/errors/CombinedProtocolErrors.js +80 -0
  865. package/errors/CombinedProtocolErrors.js.map +1 -0
  866. package/errors/LinkError.d.ts +61 -0
  867. package/errors/LinkError.js +63 -0
  868. package/errors/LinkError.js.map +1 -0
  869. package/errors/LocalStateError.d.ts +56 -0
  870. package/errors/LocalStateError.js +53 -0
  871. package/errors/LocalStateError.js.map +1 -0
  872. package/errors/ServerError.d.ts +87 -0
  873. package/errors/ServerError.js +75 -0
  874. package/errors/ServerError.js.map +1 -0
  875. package/errors/ServerParseError.d.ts +82 -0
  876. package/errors/ServerParseError.js +72 -0
  877. package/errors/ServerParseError.js.map +1 -0
  878. package/errors/UnconventionalError.d.ts +55 -0
  879. package/errors/UnconventionalError.js +63 -0
  880. package/errors/UnconventionalError.js.map +1 -0
  881. package/errors/index.d.ts +14 -0
  882. package/errors/index.js +31 -0
  883. package/errors/index.js.map +1 -0
  884. package/errors/isErrorLike.d.ts +3 -0
  885. package/errors/isErrorLike.js +9 -0
  886. package/errors/isErrorLike.js.map +1 -0
  887. package/errors/utils.d.ts +3 -0
  888. package/errors/utils.js +14 -0
  889. package/errors/utils.js.map +1 -0
  890. package/incremental/handlers/defer20220824.d.ts +66 -0
  891. package/incremental/handlers/defer20220824.js +122 -0
  892. package/incremental/handlers/defer20220824.js.map +1 -0
  893. package/incremental/handlers/graphql17Alpha9.d.ts +98 -0
  894. package/incremental/handlers/graphql17Alpha9.js +223 -0
  895. package/incremental/handlers/graphql17Alpha9.js.map +1 -0
  896. package/incremental/handlers/notImplemented.d.ts +20 -0
  897. package/incremental/handlers/notImplemented.js +15 -0
  898. package/incremental/handlers/notImplemented.js.map +1 -0
  899. package/incremental/index.d.ts +5 -0
  900. package/incremental/index.js +4 -0
  901. package/incremental/index.js.map +1 -0
  902. package/incremental/types.d.ts +33 -0
  903. package/incremental/types.js +2 -0
  904. package/incremental/types.js.map +1 -0
  905. package/invariantErrorCodes.d.ts +13 -0
  906. package/invariantErrorCodes.js +725 -0
  907. package/invariantErrorCodes.js.map +1 -0
  908. package/legacyEntryPoints/apollo-client.cjs +1 -0
  909. package/legacyEntryPoints/apollo-client.d.cts +1 -0
  910. package/legacyEntryPoints/cache/cache.cjs +1 -0
  911. package/legacyEntryPoints/cache/cache.d.cts +1 -0
  912. package/legacyEntryPoints/cache/index.d.ts +1 -0
  913. package/legacyEntryPoints/cache/index.js +1 -0
  914. package/legacyEntryPoints/core/core.cjs +1 -0
  915. package/legacyEntryPoints/core/core.d.cts +1 -0
  916. package/legacyEntryPoints/core/index.d.ts +1 -0
  917. package/legacyEntryPoints/core/index.js +1 -0
  918. package/legacyEntryPoints/dev/dev.cjs +1 -0
  919. package/legacyEntryPoints/dev/dev.d.cts +1 -0
  920. package/legacyEntryPoints/dev/index.d.ts +1 -0
  921. package/legacyEntryPoints/dev/index.js +1 -0
  922. package/legacyEntryPoints/errors/errors.cjs +1 -0
  923. package/legacyEntryPoints/errors/errors.d.cts +1 -0
  924. package/legacyEntryPoints/errors/index.d.ts +1 -0
  925. package/legacyEntryPoints/errors/index.js +1 -0
  926. package/legacyEntryPoints/incremental/incremental.cjs +1 -0
  927. package/legacyEntryPoints/incremental/incremental.d.cts +1 -0
  928. package/legacyEntryPoints/incremental/index.d.ts +1 -0
  929. package/legacyEntryPoints/incremental/index.js +1 -0
  930. package/legacyEntryPoints/index.d.ts +1 -0
  931. package/legacyEntryPoints/index.js +1 -0
  932. package/legacyEntryPoints/link/batch/batch.cjs +1 -0
  933. package/legacyEntryPoints/link/batch/batch.d.cts +1 -0
  934. package/legacyEntryPoints/link/batch/index.d.ts +1 -0
  935. package/legacyEntryPoints/link/batch/index.js +1 -0
  936. package/legacyEntryPoints/link/batch-http/batch-http.cjs +1 -0
  937. package/legacyEntryPoints/link/batch-http/batch-http.d.cts +1 -0
  938. package/legacyEntryPoints/link/batch-http/index.d.ts +1 -0
  939. package/legacyEntryPoints/link/batch-http/index.js +1 -0
  940. package/legacyEntryPoints/link/client-awareness/client-awareness.cjs +1 -0
  941. package/legacyEntryPoints/link/client-awareness/client-awareness.d.cts +1 -0
  942. package/legacyEntryPoints/link/client-awareness/index.d.ts +1 -0
  943. package/legacyEntryPoints/link/client-awareness/index.js +1 -0
  944. package/legacyEntryPoints/link/context/context.cjs +1 -0
  945. package/legacyEntryPoints/link/context/context.d.cts +1 -0
  946. package/legacyEntryPoints/link/context/index.d.ts +1 -0
  947. package/legacyEntryPoints/link/context/index.js +1 -0
  948. package/legacyEntryPoints/link/error/error.cjs +1 -0
  949. package/legacyEntryPoints/link/error/error.d.cts +1 -0
  950. package/legacyEntryPoints/link/error/index.d.ts +1 -0
  951. package/legacyEntryPoints/link/error/index.js +1 -0
  952. package/legacyEntryPoints/link/http/http.cjs +1 -0
  953. package/legacyEntryPoints/link/http/http.d.cts +1 -0
  954. package/legacyEntryPoints/link/http/index.d.ts +1 -0
  955. package/legacyEntryPoints/link/http/index.js +1 -0
  956. package/legacyEntryPoints/link/index.d.ts +1 -0
  957. package/legacyEntryPoints/link/index.js +1 -0
  958. package/legacyEntryPoints/link/link.cjs +1 -0
  959. package/legacyEntryPoints/link/link.d.cts +1 -0
  960. package/legacyEntryPoints/link/persisted-queries/index.d.ts +1 -0
  961. package/legacyEntryPoints/link/persisted-queries/index.js +1 -0
  962. package/legacyEntryPoints/link/persisted-queries/persisted-queries.cjs +1 -0
  963. package/legacyEntryPoints/link/persisted-queries/persisted-queries.d.cts +1 -0
  964. package/legacyEntryPoints/link/remove-typename/index.d.ts +1 -0
  965. package/legacyEntryPoints/link/remove-typename/index.js +1 -0
  966. package/legacyEntryPoints/link/remove-typename/remove-typename.cjs +1 -0
  967. package/legacyEntryPoints/link/remove-typename/remove-typename.d.cts +1 -0
  968. package/legacyEntryPoints/link/retry/index.d.ts +1 -0
  969. package/legacyEntryPoints/link/retry/index.js +1 -0
  970. package/legacyEntryPoints/link/retry/retry.cjs +1 -0
  971. package/legacyEntryPoints/link/retry/retry.d.cts +1 -0
  972. package/legacyEntryPoints/link/schema/index.d.ts +1 -0
  973. package/legacyEntryPoints/link/schema/index.js +1 -0
  974. package/legacyEntryPoints/link/schema/schema.cjs +1 -0
  975. package/legacyEntryPoints/link/schema/schema.d.cts +1 -0
  976. package/legacyEntryPoints/link/subscriptions/index.d.ts +1 -0
  977. package/legacyEntryPoints/link/subscriptions/index.js +1 -0
  978. package/legacyEntryPoints/link/subscriptions/subscriptions.cjs +1 -0
  979. package/legacyEntryPoints/link/subscriptions/subscriptions.d.cts +1 -0
  980. package/legacyEntryPoints/link/utils/index.d.ts +1 -0
  981. package/legacyEntryPoints/link/utils/index.js +1 -0
  982. package/legacyEntryPoints/link/utils/utils.cjs +1 -0
  983. package/legacyEntryPoints/link/utils/utils.d.cts +1 -0
  984. package/legacyEntryPoints/link/ws/index.d.ts +1 -0
  985. package/legacyEntryPoints/link/ws/index.js +1 -0
  986. package/legacyEntryPoints/link/ws/ws.cjs +1 -0
  987. package/legacyEntryPoints/link/ws/ws.d.cts +1 -0
  988. package/legacyEntryPoints/local-state/index.d.ts +1 -0
  989. package/legacyEntryPoints/local-state/index.js +1 -0
  990. package/legacyEntryPoints/local-state/local-state.cjs +1 -0
  991. package/legacyEntryPoints/local-state/local-state.d.cts +1 -0
  992. package/legacyEntryPoints/main.cjs +1 -0
  993. package/legacyEntryPoints/main.d.cts +1 -0
  994. package/legacyEntryPoints/masking/index.d.ts +1 -0
  995. package/legacyEntryPoints/masking/index.js +1 -0
  996. package/legacyEntryPoints/masking/masking.cjs +1 -0
  997. package/legacyEntryPoints/masking/masking.d.cts +1 -0
  998. package/legacyEntryPoints/react/index.d.ts +1 -0
  999. package/legacyEntryPoints/react/index.js +1 -0
  1000. package/legacyEntryPoints/react/internal/compiler-runtime/compiler-runtime.cjs +1 -0
  1001. package/legacyEntryPoints/react/internal/compiler-runtime/compiler-runtime.d.cts +1 -0
  1002. package/legacyEntryPoints/react/internal/compiler-runtime/index.d.ts +1 -0
  1003. package/legacyEntryPoints/react/internal/compiler-runtime/index.js +1 -0
  1004. package/legacyEntryPoints/react/internal/index.d.ts +1 -0
  1005. package/legacyEntryPoints/react/internal/index.js +1 -0
  1006. package/legacyEntryPoints/react/internal/internal.cjs +1 -0
  1007. package/legacyEntryPoints/react/internal/internal.d.cts +1 -0
  1008. package/legacyEntryPoints/react/react.cjs +1 -0
  1009. package/legacyEntryPoints/react/react.d.cts +1 -0
  1010. package/legacyEntryPoints/react/ssr/index.d.ts +1 -0
  1011. package/legacyEntryPoints/react/ssr/index.js +1 -0
  1012. package/legacyEntryPoints/react/ssr/ssr.cjs +1 -0
  1013. package/legacyEntryPoints/react/ssr/ssr.d.cts +1 -0
  1014. package/legacyEntryPoints/testing/index.d.ts +1 -0
  1015. package/legacyEntryPoints/testing/index.js +1 -0
  1016. package/legacyEntryPoints/testing/react/index.d.ts +1 -0
  1017. package/legacyEntryPoints/testing/react/index.js +1 -0
  1018. package/legacyEntryPoints/testing/react/react.cjs +1 -0
  1019. package/legacyEntryPoints/testing/react/react.d.cts +1 -0
  1020. package/legacyEntryPoints/testing/testing.cjs +1 -0
  1021. package/legacyEntryPoints/testing/testing.d.cts +1 -0
  1022. package/legacyEntryPoints/utilities/environment/environment.cjs +1 -0
  1023. package/legacyEntryPoints/utilities/environment/environment.d.cts +1 -0
  1024. package/legacyEntryPoints/utilities/environment/index.d.ts +1 -0
  1025. package/legacyEntryPoints/utilities/environment/index.js +1 -0
  1026. package/legacyEntryPoints/utilities/index.d.ts +1 -0
  1027. package/legacyEntryPoints/utilities/index.js +1 -0
  1028. package/legacyEntryPoints/utilities/internal/globals/globals.cjs +1 -0
  1029. package/legacyEntryPoints/utilities/internal/globals/globals.d.cts +1 -0
  1030. package/legacyEntryPoints/utilities/internal/globals/index.d.ts +1 -0
  1031. package/legacyEntryPoints/utilities/internal/globals/index.js +1 -0
  1032. package/legacyEntryPoints/utilities/internal/index.d.ts +1 -0
  1033. package/legacyEntryPoints/utilities/internal/index.js +1 -0
  1034. package/legacyEntryPoints/utilities/internal/internal.cjs +1 -0
  1035. package/legacyEntryPoints/utilities/internal/internal.d.cts +1 -0
  1036. package/legacyEntryPoints/utilities/internal/ponyfills/index.d.ts +1 -0
  1037. package/legacyEntryPoints/utilities/internal/ponyfills/index.js +1 -0
  1038. package/legacyEntryPoints/utilities/internal/ponyfills/ponyfills.cjs +1 -0
  1039. package/legacyEntryPoints/utilities/internal/ponyfills/ponyfills.d.cts +1 -0
  1040. package/legacyEntryPoints/utilities/invariant/index.d.ts +1 -0
  1041. package/legacyEntryPoints/utilities/invariant/index.js +1 -0
  1042. package/legacyEntryPoints/utilities/invariant/invariant.cjs +1 -0
  1043. package/legacyEntryPoints/utilities/invariant/invariant.d.cts +1 -0
  1044. package/legacyEntryPoints/utilities/subscriptions/relay/index.d.ts +1 -0
  1045. package/legacyEntryPoints/utilities/subscriptions/relay/index.js +1 -0
  1046. package/legacyEntryPoints/utilities/subscriptions/relay/relay.cjs +1 -0
  1047. package/legacyEntryPoints/utilities/subscriptions/relay/relay.d.cts +1 -0
  1048. package/legacyEntryPoints/utilities/utilities.cjs +1 -0
  1049. package/legacyEntryPoints/utilities/utilities.d.cts +1 -0
  1050. package/legacyEntryPoints/v4-migration/index.d.ts +1 -0
  1051. package/legacyEntryPoints/v4-migration/index.js +1 -0
  1052. package/legacyEntryPoints/v4-migration/v4-migration.cjs +1 -0
  1053. package/legacyEntryPoints/v4-migration/v4-migration.d.cts +1 -0
  1054. package/link/batch/batchLink.d.ts +117 -0
  1055. package/link/batch/batchLink.js +49 -0
  1056. package/link/batch/batchLink.js.map +1 -0
  1057. package/link/batch/batching.d.ts +27 -0
  1058. package/link/batch/batching.js +152 -0
  1059. package/link/batch/batching.js.map +1 -0
  1060. package/link/batch/index.d.ts +2 -0
  1061. package/link/batch/index.js +2 -0
  1062. package/link/batch/index.js.map +1 -0
  1063. package/link/batch-http/BaseBatchHttpLink.d.ts +68 -0
  1064. package/link/batch-http/BaseBatchHttpLink.js +152 -0
  1065. package/link/batch-http/BaseBatchHttpLink.js.map +1 -0
  1066. package/link/batch-http/batchHttpLink.d.ts +49 -0
  1067. package/link/batch-http/batchHttpLink.js +38 -0
  1068. package/link/batch-http/batchHttpLink.js.map +1 -0
  1069. package/link/batch-http/index.d.ts +3 -0
  1070. package/link/batch-http/index.js +3 -0
  1071. package/link/batch-http/index.js.map +1 -0
  1072. package/link/client-awareness/ClientAwarenessLink.d.ts +114 -0
  1073. package/link/client-awareness/ClientAwarenessLink.js +86 -0
  1074. package/link/client-awareness/ClientAwarenessLink.js.map +1 -0
  1075. package/link/client-awareness/index.d.ts +2 -0
  1076. package/link/client-awareness/index.js +2 -0
  1077. package/link/client-awareness/index.js.map +1 -0
  1078. package/link/context/index.d.ts +85 -0
  1079. package/link/context/index.js +63 -0
  1080. package/link/context/index.js.map +1 -0
  1081. package/link/core/ApolloLink.d.ts +384 -0
  1082. package/link/core/ApolloLink.js +266 -0
  1083. package/link/core/ApolloLink.js.map +1 -0
  1084. package/link/core/concat.d.ts +7 -0
  1085. package/link/core/concat.js +7 -0
  1086. package/link/core/concat.js.map +1 -0
  1087. package/link/core/deprecated.d.ts +10 -0
  1088. package/link/core/deprecated.js +2 -0
  1089. package/link/core/deprecated.js.map +1 -0
  1090. package/link/core/empty.d.ts +7 -0
  1091. package/link/core/empty.js +7 -0
  1092. package/link/core/empty.js.map +1 -0
  1093. package/link/core/execute.d.ts +3 -0
  1094. package/link/core/execute.js +3 -0
  1095. package/link/core/execute.js.map +1 -0
  1096. package/link/core/from.d.ts +7 -0
  1097. package/link/core/from.js +7 -0
  1098. package/link/core/from.js.map +1 -0
  1099. package/link/core/split.d.ts +7 -0
  1100. package/link/core/split.js +7 -0
  1101. package/link/core/split.js.map +1 -0
  1102. package/link/core/types.d.ts +6 -0
  1103. package/link/core/types.js +2 -0
  1104. package/link/core/types.js.map +1 -0
  1105. package/link/error/index.d.ts +105 -0
  1106. package/link/error/index.js +124 -0
  1107. package/link/error/index.js.map +1 -0
  1108. package/link/http/BaseHttpLink.d.ts +260 -0
  1109. package/link/http/BaseHttpLink.js +157 -0
  1110. package/link/http/BaseHttpLink.js.map +1 -0
  1111. package/link/http/HttpLink.d.ts +58 -0
  1112. package/link/http/HttpLink.js +41 -0
  1113. package/link/http/HttpLink.js.map +1 -0
  1114. package/link/http/checkFetcher.d.ts +2 -0
  1115. package/link/http/checkFetcher.js +5 -0
  1116. package/link/http/checkFetcher.js.map +1 -0
  1117. package/link/http/createSignalIfSupported.d.ts +13 -0
  1118. package/link/http/createSignalIfSupported.js +13 -0
  1119. package/link/http/createSignalIfSupported.js.map +1 -0
  1120. package/link/http/index.d.ts +9 -0
  1121. package/link/http/index.js +10 -0
  1122. package/link/http/index.js.map +1 -0
  1123. package/link/http/parseAndCheckHttpResponse.d.ts +4 -0
  1124. package/link/http/parseAndCheckHttpResponse.js +159 -0
  1125. package/link/http/parseAndCheckHttpResponse.js.map +1 -0
  1126. package/link/http/rewriteURIForGET.d.ts +9 -0
  1127. package/link/http/rewriteURIForGET.js +52 -0
  1128. package/link/http/rewriteURIForGET.js.map +1 -0
  1129. package/link/http/selectHttpOptionsAndBody.d.ts +29 -0
  1130. package/link/http/selectHttpOptionsAndBody.js +103 -0
  1131. package/link/http/selectHttpOptionsAndBody.js.map +1 -0
  1132. package/link/http/selectURI.d.ts +3 -0
  1133. package/link/http/selectURI.js +14 -0
  1134. package/link/http/selectURI.js.map +1 -0
  1135. package/link/index.d.ts +10 -0
  1136. package/link/index.js +7 -0
  1137. package/link/index.js.map +1 -0
  1138. package/link/persisted-queries/index.d.ts +227 -0
  1139. package/link/persisted-queries/index.js +243 -0
  1140. package/link/persisted-queries/index.js.map +1 -0
  1141. package/link/remove-typename/index.d.ts +2 -0
  1142. package/link/remove-typename/index.js +2 -0
  1143. package/link/remove-typename/index.js.map +1 -0
  1144. package/link/remove-typename/removeTypenameFromVariables.d.ts +137 -0
  1145. package/link/remove-typename/removeTypenameFromVariables.js +151 -0
  1146. package/link/remove-typename/removeTypenameFromVariables.js.map +1 -0
  1147. package/link/retry/delayFunction.d.ts +3 -0
  1148. package/link/retry/delayFunction.js +18 -0
  1149. package/link/retry/delayFunction.js.map +1 -0
  1150. package/link/retry/index.d.ts +2 -0
  1151. package/link/retry/index.js +2 -0
  1152. package/link/retry/index.js.map +1 -0
  1153. package/link/retry/retryFunction.d.ts +3 -0
  1154. package/link/retry/retryFunction.js +9 -0
  1155. package/link/retry/retryFunction.js.map +1 -0
  1156. package/link/retry/retryLink.d.ts +148 -0
  1157. package/link/retry/retryLink.js +118 -0
  1158. package/link/retry/retryLink.js.map +1 -0
  1159. package/link/schema/index.d.ts +157 -0
  1160. package/link/schema/index.js +71 -0
  1161. package/link/schema/index.js.map +1 -0
  1162. package/link/subscriptions/index.d.ts +32 -0
  1163. package/link/subscriptions/index.js +97 -0
  1164. package/link/subscriptions/index.js.map +1 -0
  1165. package/link/utils/createOperation.d.ts +3 -0
  1166. package/link/utils/createOperation.js +34 -0
  1167. package/link/utils/createOperation.js.map +1 -0
  1168. package/link/utils/filterOperationVariables.d.ts +5 -0
  1169. package/link/utils/filterOperationVariables.js +22 -0
  1170. package/link/utils/filterOperationVariables.js.map +1 -0
  1171. package/link/utils/index.d.ts +3 -0
  1172. package/link/utils/index.js +3 -0
  1173. package/link/utils/index.js.map +1 -0
  1174. package/link/ws/index.d.ts +88 -0
  1175. package/link/ws/index.js +48 -0
  1176. package/link/ws/index.js.map +1 -0
  1177. package/local-state/LocalState.d.ts +183 -0
  1178. package/local-state/LocalState.js +576 -0
  1179. package/local-state/LocalState.js.map +1 -0
  1180. package/local-state/index.d.ts +2 -0
  1181. package/local-state/index.js +2 -0
  1182. package/local-state/index.js.map +1 -0
  1183. package/masking/GraphQLCodegenDataMasking.d.ts +46 -0
  1184. package/masking/GraphQLCodegenDataMasking.js +2 -0
  1185. package/masking/GraphQLCodegenDataMasking.js.map +1 -0
  1186. package/masking/PreserveTypes.d.ts +26 -0
  1187. package/masking/PreserveTypes.js +2 -0
  1188. package/masking/PreserveTypes.js.map +1 -0
  1189. package/masking/index.d.ts +6 -0
  1190. package/masking/index.js +4 -0
  1191. package/masking/index.js.map +1 -0
  1192. package/masking/internal/types.d.ts +120 -0
  1193. package/masking/internal/types.js +2 -0
  1194. package/masking/internal/types.js.map +1 -0
  1195. package/masking/maskDefinition.d.ts +14 -0
  1196. package/masking/maskDefinition.js +132 -0
  1197. package/masking/maskDefinition.js.map +1 -0
  1198. package/masking/maskFragment.d.ts +8 -0
  1199. package/masking/maskFragment.js +38 -0
  1200. package/masking/maskFragment.js.map +1 -0
  1201. package/masking/maskOperation.d.ts +8 -0
  1202. package/masking/maskOperation.js +25 -0
  1203. package/masking/maskOperation.js.map +1 -0
  1204. package/masking/types.d.ts +16 -0
  1205. package/masking/types.js +2 -0
  1206. package/masking/types.js.map +1 -0
  1207. package/masking/utils.d.ts +14 -0
  1208. package/masking/utils.js +39 -0
  1209. package/masking/utils.js.map +1 -0
  1210. package/package.json +383 -0
  1211. package/react/compiled/index.d.ts +2 -0
  1212. package/react/compiled/index.js +2 -0
  1213. package/react/compiled/index.js.map +1 -0
  1214. package/react/context/ApolloContext.d.ts +9 -0
  1215. package/react/context/ApolloContext.js +22 -0
  1216. package/react/context/ApolloContext.js.map +1 -0
  1217. package/react/context/ApolloProvider.d.ts +10 -0
  1218. package/react/context/ApolloProvider.js +16 -0
  1219. package/react/context/ApolloProvider.js.map +1 -0
  1220. package/react/hooks/constants.d.ts +3 -0
  1221. package/react/hooks/constants.js +2 -0
  1222. package/react/hooks/constants.js.map +1 -0
  1223. package/react/hooks/internal/__use.d.ts +4 -0
  1224. package/react/hooks/internal/__use.js +22 -0
  1225. package/react/hooks/internal/__use.js.map +1 -0
  1226. package/react/hooks/internal/index.d.ts +6 -0
  1227. package/react/hooks/internal/index.js +7 -0
  1228. package/react/hooks/internal/index.js.map +1 -0
  1229. package/react/hooks/internal/useDeepMemo.d.ts +3 -0
  1230. package/react/hooks/internal/useDeepMemo.js +12 -0
  1231. package/react/hooks/internal/useDeepMemo.js.map +1 -0
  1232. package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts +3 -0
  1233. package/react/hooks/internal/useIsomorphicLayoutEffect.js +9 -0
  1234. package/react/hooks/internal/useIsomorphicLayoutEffect.js.map +1 -0
  1235. package/react/hooks/internal/useRenderGuard.d.ts +2 -0
  1236. package/react/hooks/internal/useRenderGuard.js +42 -0
  1237. package/react/hooks/internal/useRenderGuard.js.map +1 -0
  1238. package/react/hooks/internal/useSuspenseHookCacheKey.d.ts +11 -0
  1239. package/react/hooks/internal/useSuspenseHookCacheKey.js +24 -0
  1240. package/react/hooks/internal/useSuspenseHookCacheKey.js.map +1 -0
  1241. package/react/hooks/internal/validateSuspenseHookOptions.d.ts +3 -0
  1242. package/react/hooks/internal/validateSuspenseHookOptions.js +22 -0
  1243. package/react/hooks/internal/validateSuspenseHookOptions.js.map +1 -0
  1244. package/react/hooks/internal/wrapHook.d.ts +66 -0
  1245. package/react/hooks/internal/wrapHook.js +65 -0
  1246. package/react/hooks/internal/wrapHook.js.map +1 -0
  1247. package/react/hooks/useApolloClient.d.ts +18 -0
  1248. package/react/hooks/useApolloClient.js +25 -0
  1249. package/react/hooks/useApolloClient.js.map +1 -0
  1250. package/react/hooks/useBackgroundQuery.d.ts +975 -0
  1251. package/react/hooks/useBackgroundQuery.js +72 -0
  1252. package/react/hooks/useBackgroundQuery.js.map +1 -0
  1253. package/react/hooks/useFragment.d.ts +162 -0
  1254. package/react/hooks/useFragment.js +54 -0
  1255. package/react/hooks/useFragment.js.map +1 -0
  1256. package/react/hooks/useLazyQuery.d.ts +436 -0
  1257. package/react/hooks/useLazyQuery.js +146 -0
  1258. package/react/hooks/useLazyQuery.js.map +1 -0
  1259. package/react/hooks/useLoadableQuery.d.ts +353 -0
  1260. package/react/hooks/useLoadableQuery.js +88 -0
  1261. package/react/hooks/useLoadableQuery.js.map +1 -0
  1262. package/react/hooks/useMutation.d.ts +316 -0
  1263. package/react/hooks/useMutation.js +159 -0
  1264. package/react/hooks/useMutation.js.map +1 -0
  1265. package/react/hooks/useQuery.d.ts +549 -0
  1266. package/react/hooks/useQuery.js +215 -0
  1267. package/react/hooks/useQuery.js.map +1 -0
  1268. package/react/hooks/useQueryRefHandlers.d.ts +78 -0
  1269. package/react/hooks/useQueryRefHandlers.js +68 -0
  1270. package/react/hooks/useQueryRefHandlers.js.map +1 -0
  1271. package/react/hooks/useReactiveVar.d.ts +22 -0
  1272. package/react/hooks/useReactiveVar.js +35 -0
  1273. package/react/hooks/useReactiveVar.js.map +1 -0
  1274. package/react/hooks/useReadQuery.d.ts +100 -0
  1275. package/react/hooks/useReadQuery.js +70 -0
  1276. package/react/hooks/useReadQuery.js.map +1 -0
  1277. package/react/hooks/useSubscription.d.ts +270 -0
  1278. package/react/hooks/useSubscription.js +222 -0
  1279. package/react/hooks/useSubscription.js.map +1 -0
  1280. package/react/hooks/useSuspenseFragment.d.ts +105 -0
  1281. package/react/hooks/useSuspenseFragment.js +47 -0
  1282. package/react/hooks/useSuspenseFragment.js.map +1 -0
  1283. package/react/hooks/useSuspenseQuery.d.ts +630 -0
  1284. package/react/hooks/useSuspenseQuery.js +118 -0
  1285. package/react/hooks/useSuspenseQuery.js.map +1 -0
  1286. package/react/hooks/useSyncExternalStore.d.ts +4 -0
  1287. package/react/hooks/useSyncExternalStore.js +126 -0
  1288. package/react/hooks/useSyncExternalStore.js.map +1 -0
  1289. package/react/hooks-compiled/constants.d.ts +3 -0
  1290. package/react/hooks-compiled/constants.js +2 -0
  1291. package/react/hooks-compiled/constants.js.map +1 -0
  1292. package/react/hooks-compiled/internal/__use.d.ts +4 -0
  1293. package/react/hooks-compiled/internal/__use.js +22 -0
  1294. package/react/hooks-compiled/internal/__use.js.map +1 -0
  1295. package/react/hooks-compiled/internal/index.d.ts +6 -0
  1296. package/react/hooks-compiled/internal/index.js +7 -0
  1297. package/react/hooks-compiled/internal/index.js.map +1 -0
  1298. package/react/hooks-compiled/internal/useDeepMemo.d.ts +3 -0
  1299. package/react/hooks-compiled/internal/useDeepMemo.js +12 -0
  1300. package/react/hooks-compiled/internal/useDeepMemo.js.map +1 -0
  1301. package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.d.ts +3 -0
  1302. package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.js +9 -0
  1303. package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.js.map +1 -0
  1304. package/react/hooks-compiled/internal/useRenderGuard.d.ts +2 -0
  1305. package/react/hooks-compiled/internal/useRenderGuard.js +42 -0
  1306. package/react/hooks-compiled/internal/useRenderGuard.js.map +1 -0
  1307. package/react/hooks-compiled/internal/useSuspenseHookCacheKey.d.ts +11 -0
  1308. package/react/hooks-compiled/internal/useSuspenseHookCacheKey.js +71 -0
  1309. package/react/hooks-compiled/internal/useSuspenseHookCacheKey.js.map +1 -0
  1310. package/react/hooks-compiled/internal/validateSuspenseHookOptions.d.ts +3 -0
  1311. package/react/hooks-compiled/internal/validateSuspenseHookOptions.js +22 -0
  1312. package/react/hooks-compiled/internal/validateSuspenseHookOptions.js.map +1 -0
  1313. package/react/hooks-compiled/internal/wrapHook.d.ts +66 -0
  1314. package/react/hooks-compiled/internal/wrapHook.js +65 -0
  1315. package/react/hooks-compiled/internal/wrapHook.js.map +1 -0
  1316. package/react/hooks-compiled/useApolloClient.d.ts +18 -0
  1317. package/react/hooks-compiled/useApolloClient.js +36 -0
  1318. package/react/hooks-compiled/useApolloClient.js.map +1 -0
  1319. package/react/hooks-compiled/useBackgroundQuery.d.ts +975 -0
  1320. package/react/hooks-compiled/useBackgroundQuery.js +72 -0
  1321. package/react/hooks-compiled/useBackgroundQuery.js.map +1 -0
  1322. package/react/hooks-compiled/useFragment.d.ts +162 -0
  1323. package/react/hooks-compiled/useFragment.js +125 -0
  1324. package/react/hooks-compiled/useFragment.js.map +1 -0
  1325. package/react/hooks-compiled/useLazyQuery.d.ts +436 -0
  1326. package/react/hooks-compiled/useLazyQuery.js +146 -0
  1327. package/react/hooks-compiled/useLazyQuery.js.map +1 -0
  1328. package/react/hooks-compiled/useLoadableQuery.d.ts +353 -0
  1329. package/react/hooks-compiled/useLoadableQuery.js +241 -0
  1330. package/react/hooks-compiled/useLoadableQuery.js.map +1 -0
  1331. package/react/hooks-compiled/useMutation.d.ts +316 -0
  1332. package/react/hooks-compiled/useMutation.js +254 -0
  1333. package/react/hooks-compiled/useMutation.js.map +1 -0
  1334. package/react/hooks-compiled/useQuery.d.ts +549 -0
  1335. package/react/hooks-compiled/useQuery.js +378 -0
  1336. package/react/hooks-compiled/useQuery.js.map +1 -0
  1337. package/react/hooks-compiled/useQueryRefHandlers.d.ts +78 -0
  1338. package/react/hooks-compiled/useQueryRefHandlers.js +106 -0
  1339. package/react/hooks-compiled/useQueryRefHandlers.js.map +1 -0
  1340. package/react/hooks-compiled/useReactiveVar.d.ts +22 -0
  1341. package/react/hooks-compiled/useReactiveVar.js +35 -0
  1342. package/react/hooks-compiled/useReactiveVar.js.map +1 -0
  1343. package/react/hooks-compiled/useReadQuery.d.ts +100 -0
  1344. package/react/hooks-compiled/useReadQuery.js +135 -0
  1345. package/react/hooks-compiled/useReadQuery.js.map +1 -0
  1346. package/react/hooks-compiled/useSubscription.d.ts +270 -0
  1347. package/react/hooks-compiled/useSubscription.js +366 -0
  1348. package/react/hooks-compiled/useSubscription.js.map +1 -0
  1349. package/react/hooks-compiled/useSuspenseFragment.d.ts +105 -0
  1350. package/react/hooks-compiled/useSuspenseFragment.js +47 -0
  1351. package/react/hooks-compiled/useSuspenseFragment.js.map +1 -0
  1352. package/react/hooks-compiled/useSuspenseQuery.d.ts +630 -0
  1353. package/react/hooks-compiled/useSuspenseQuery.js +136 -0
  1354. package/react/hooks-compiled/useSuspenseQuery.js.map +1 -0
  1355. package/react/hooks-compiled/useSyncExternalStore.d.ts +4 -0
  1356. package/react/hooks-compiled/useSyncExternalStore.js +126 -0
  1357. package/react/hooks-compiled/useSyncExternalStore.js.map +1 -0
  1358. package/react/index.compiled.d.ts +33 -0
  1359. package/react/index.compiled.js +19 -0
  1360. package/react/index.compiled.js.map +1 -0
  1361. package/react/index.d.ts +33 -0
  1362. package/react/index.js +19 -0
  1363. package/react/index.js.map +1 -0
  1364. package/react/index.react-server.d.ts +18 -0
  1365. package/react/index.react-server.js +43 -0
  1366. package/react/index.react-server.js.map +1 -0
  1367. package/react/internal/cache/FragmentReference.d.ts +35 -0
  1368. package/react/internal/cache/FragmentReference.js +112 -0
  1369. package/react/internal/cache/FragmentReference.js.map +1 -0
  1370. package/react/internal/cache/QueryReference.d.ts +112 -0
  1371. package/react/internal/cache/QueryReference.js +305 -0
  1372. package/react/internal/cache/QueryReference.js.map +1 -0
  1373. package/react/internal/cache/SuspenseCache.d.ts +29 -0
  1374. package/react/internal/cache/SuspenseCache.js +40 -0
  1375. package/react/internal/cache/SuspenseCache.js.map +1 -0
  1376. package/react/internal/cache/getSuspenseCache.d.ts +18 -0
  1377. package/react/internal/cache/getSuspenseCache.js +9 -0
  1378. package/react/internal/cache/getSuspenseCache.js.map +1 -0
  1379. package/react/internal/cache/types.d.ts +18 -0
  1380. package/react/internal/cache/types.js +2 -0
  1381. package/react/internal/cache/types.js.map +1 -0
  1382. package/react/internal/compiler-runtime/index.d.ts +8 -0
  1383. package/react/internal/compiler-runtime/index.js +28 -0
  1384. package/react/internal/compiler-runtime/index.js.map +1 -0
  1385. package/react/internal/index.d.ts +10 -0
  1386. package/react/internal/index.js +4 -0
  1387. package/react/internal/index.js.map +1 -0
  1388. package/react/internal/types.d.ts +4 -0
  1389. package/react/internal/types.js +2 -0
  1390. package/react/internal/types.js.map +1 -0
  1391. package/react/query-preloader/createQueryPreloader.d.ts +256 -0
  1392. package/react/query-preloader/createQueryPreloader.js +82 -0
  1393. package/react/query-preloader/createQueryPreloader.js.map +1 -0
  1394. package/react/ssr/getDataFromTree.d.ts +25 -0
  1395. package/react/ssr/getDataFromTree.js +39 -0
  1396. package/react/ssr/getDataFromTree.js.map +1 -0
  1397. package/react/ssr/index.d.ts +4 -0
  1398. package/react/ssr/index.js +4 -0
  1399. package/react/ssr/index.js.map +1 -0
  1400. package/react/ssr/prerenderStatic.d.ts +143 -0
  1401. package/react/ssr/prerenderStatic.js +168 -0
  1402. package/react/ssr/prerenderStatic.js.map +1 -0
  1403. package/react/ssr/renderToStringWithData.d.ts +8 -0
  1404. package/react/ssr/renderToStringWithData.js +15 -0
  1405. package/react/ssr/renderToStringWithData.js.map +1 -0
  1406. package/react/ssr/useSSRQuery.d.ts +6 -0
  1407. package/react/ssr/useSSRQuery.js +69 -0
  1408. package/react/ssr/useSSRQuery.js.map +1 -0
  1409. package/react/types/deprecated.d.ts +75 -0
  1410. package/react/types/deprecated.js +2 -0
  1411. package/react/types/deprecated.js.map +1 -0
  1412. package/react/types/types.documentation.d.ts +533 -0
  1413. package/react/types/types.documentation.js +2 -0
  1414. package/react/types/types.documentation.js.map +1 -0
  1415. package/testing/core/mocking/mockLink.d.ts +66 -0
  1416. package/testing/core/mocking/mockLink.js +187 -0
  1417. package/testing/core/mocking/mockLink.js.map +1 -0
  1418. package/testing/core/mocking/mockSubscriptionLink.d.ts +22 -0
  1419. package/testing/core/mocking/mockSubscriptionLink.js +52 -0
  1420. package/testing/core/mocking/mockSubscriptionLink.js.map +1 -0
  1421. package/testing/core/types/deprecated.d.ts +11 -0
  1422. package/testing/core/types/deprecated.js +2 -0
  1423. package/testing/core/types/deprecated.js.map +1 -0
  1424. package/testing/index.d.ts +4 -0
  1425. package/testing/index.js +3 -0
  1426. package/testing/index.js.map +1 -0
  1427. package/testing/react/MockedProvider.d.ts +33 -0
  1428. package/testing/react/MockedProvider.js +38 -0
  1429. package/testing/react/MockedProvider.js.map +1 -0
  1430. package/testing/react/index.d.ts +3 -0
  1431. package/testing/react/index.js +2 -0
  1432. package/testing/react/index.js.map +1 -0
  1433. package/utilities/DeepPartial.d.ts +15 -0
  1434. package/utilities/DeepPartial.js +6 -0
  1435. package/utilities/DeepPartial.js.map +1 -0
  1436. package/utilities/HKT.d.ts +36 -0
  1437. package/utilities/HKT.js +2 -0
  1438. package/utilities/HKT.js.map +1 -0
  1439. package/utilities/caching/index.d.ts +3 -0
  1440. package/utilities/caching/index.js +2 -0
  1441. package/utilities/caching/index.js.map +1 -0
  1442. package/utilities/caching/sizes.d.ts +286 -0
  1443. package/utilities/caching/sizes.js +26 -0
  1444. package/utilities/caching/sizes.js.map +1 -0
  1445. package/utilities/common/stripTypename.d.ts +19 -0
  1446. package/utilities/common/stripTypename.js +22 -0
  1447. package/utilities/common/stripTypename.js.map +1 -0
  1448. package/utilities/environment/index.d.ts +2 -0
  1449. package/utilities/environment/index.development.d.ts +2 -0
  1450. package/utilities/environment/index.development.js +2 -0
  1451. package/utilities/environment/index.development.js.map +1 -0
  1452. package/utilities/environment/index.js +2 -0
  1453. package/utilities/environment/index.js.map +1 -0
  1454. package/utilities/environment/index.production.d.ts +2 -0
  1455. package/utilities/environment/index.production.js +2 -0
  1456. package/utilities/environment/index.production.js.map +1 -0
  1457. package/utilities/graphql/DocumentTransform.d.ts +143 -0
  1458. package/utilities/graphql/DocumentTransform.js +186 -0
  1459. package/utilities/graphql/DocumentTransform.js.map +1 -0
  1460. package/utilities/graphql/isFormattedExecutionResult.d.ts +30 -0
  1461. package/utilities/graphql/isFormattedExecutionResult.js +33 -0
  1462. package/utilities/graphql/isFormattedExecutionResult.js.map +1 -0
  1463. package/utilities/graphql/operations.d.ts +77 -0
  1464. package/utilities/graphql/operations.js +86 -0
  1465. package/utilities/graphql/operations.js.map +1 -0
  1466. package/utilities/graphql/print.d.ts +13 -0
  1467. package/utilities/graphql/print.js +30 -0
  1468. package/utilities/graphql/print.js.map +1 -0
  1469. package/utilities/graphql/storeUtils.d.ts +52 -0
  1470. package/utilities/graphql/storeUtils.js +18 -0
  1471. package/utilities/graphql/storeUtils.js.map +1 -0
  1472. package/utilities/graphql/transform.d.ts +21 -0
  1473. package/utilities/graphql/transform.js +71 -0
  1474. package/utilities/graphql/transform.js.map +1 -0
  1475. package/utilities/index.d.ts +19 -0
  1476. package/utilities/index.js +14 -0
  1477. package/utilities/index.js.map +1 -0
  1478. package/utilities/internal/DeepMerger.d.ts +33 -0
  1479. package/utilities/internal/DeepMerger.js +95 -0
  1480. package/utilities/internal/DeepMerger.js.map +1 -0
  1481. package/utilities/internal/argumentsObjectFromField.d.ts +8 -0
  1482. package/utilities/internal/argumentsObjectFromField.js +15 -0
  1483. package/utilities/internal/argumentsObjectFromField.js.map +1 -0
  1484. package/utilities/internal/bindCacheKey.d.ts +15 -0
  1485. package/utilities/internal/bindCacheKey.js +18 -0
  1486. package/utilities/internal/bindCacheKey.js.map +1 -0
  1487. package/utilities/internal/caches.d.ts +42 -0
  1488. package/utilities/internal/caches.js +73 -0
  1489. package/utilities/internal/caches.js.map +1 -0
  1490. package/utilities/internal/canUseDOM.d.ts +7 -0
  1491. package/utilities/internal/canUseDOM.js +8 -0
  1492. package/utilities/internal/canUseDOM.js.map +1 -0
  1493. package/utilities/internal/canonicalStringify.d.ts +44 -0
  1494. package/utilities/internal/canonicalStringify.js +109 -0
  1495. package/utilities/internal/canonicalStringify.js.map +1 -0
  1496. package/utilities/internal/checkDocument.d.ts +10 -0
  1497. package/utilities/internal/checkDocument.js +64 -0
  1498. package/utilities/internal/checkDocument.js.map +1 -0
  1499. package/utilities/internal/cloneDeep.d.ts +9 -0
  1500. package/utilities/internal/cloneDeep.js +42 -0
  1501. package/utilities/internal/cloneDeep.js.map +1 -0
  1502. package/utilities/internal/combineLatestBatched.d.ts +14 -0
  1503. package/utilities/internal/combineLatestBatched.js +68 -0
  1504. package/utilities/internal/combineLatestBatched.js.map +1 -0
  1505. package/utilities/internal/compact.d.ts +11 -0
  1506. package/utilities/internal/compact.js +23 -0
  1507. package/utilities/internal/compact.js.map +1 -0
  1508. package/utilities/internal/constants.d.ts +23 -0
  1509. package/utilities/internal/constants.js +23 -0
  1510. package/utilities/internal/constants.js.map +1 -0
  1511. package/utilities/internal/createFragmentMap.d.ts +12 -0
  1512. package/utilities/internal/createFragmentMap.js +16 -0
  1513. package/utilities/internal/createFragmentMap.js.map +1 -0
  1514. package/utilities/internal/createFulfilledPromise.d.ts +8 -0
  1515. package/utilities/internal/createFulfilledPromise.js +12 -0
  1516. package/utilities/internal/createFulfilledPromise.js.map +1 -0
  1517. package/utilities/internal/createRejectedPromise.d.ts +8 -0
  1518. package/utilities/internal/createRejectedPromise.js +14 -0
  1519. package/utilities/internal/createRejectedPromise.js.map +1 -0
  1520. package/utilities/internal/dealias.d.ts +5 -0
  1521. package/utilities/internal/dealias.js +18 -0
  1522. package/utilities/internal/dealias.js.map +1 -0
  1523. package/utilities/internal/decoratePromise.d.ts +8 -0
  1524. package/utilities/internal/decoratePromise.js +30 -0
  1525. package/utilities/internal/decoratePromise.js.map +1 -0
  1526. package/utilities/internal/deepFreeze.d.ts +7 -0
  1527. package/utilities/internal/deepFreeze.js +36 -0
  1528. package/utilities/internal/deepFreeze.js.map +1 -0
  1529. package/utilities/internal/equalByQuery.d.ts +5 -0
  1530. package/utilities/internal/equalByQuery.js +90 -0
  1531. package/utilities/internal/equalByQuery.js.map +1 -0
  1532. package/utilities/internal/filterMap.d.ts +4 -0
  1533. package/utilities/internal/filterMap.js +28 -0
  1534. package/utilities/internal/filterMap.js.map +1 -0
  1535. package/utilities/internal/getDefaultValues.d.ts +8 -0
  1536. package/utilities/internal/getDefaultValues.js +19 -0
  1537. package/utilities/internal/getDefaultValues.js.map +1 -0
  1538. package/utilities/internal/getFragmentDefinition.d.ts +8 -0
  1539. package/utilities/internal/getFragmentDefinition.js +14 -0
  1540. package/utilities/internal/getFragmentDefinition.js.map +1 -0
  1541. package/utilities/internal/getFragmentDefinitions.d.ts +8 -0
  1542. package/utilities/internal/getFragmentDefinitions.js +9 -0
  1543. package/utilities/internal/getFragmentDefinitions.js.map +1 -0
  1544. package/utilities/internal/getFragmentFromSelection.d.ts +10 -0
  1545. package/utilities/internal/getFragmentFromSelection.js +24 -0
  1546. package/utilities/internal/getFragmentFromSelection.js.map +1 -0
  1547. package/utilities/internal/getFragmentQueryDocument.d.ts +39 -0
  1548. package/utilities/internal/getFragmentQueryDocument.js +93 -0
  1549. package/utilities/internal/getFragmentQueryDocument.js.map +1 -0
  1550. package/utilities/internal/getGraphQLErrorsFromResult.d.ts +10 -0
  1551. package/utilities/internal/getGraphQLErrorsFromResult.js +9 -0
  1552. package/utilities/internal/getGraphQLErrorsFromResult.js.map +1 -0
  1553. package/utilities/internal/getMainDefinition.d.ts +40 -0
  1554. package/utilities/internal/getMainDefinition.js +58 -0
  1555. package/utilities/internal/getMainDefinition.js.map +1 -0
  1556. package/utilities/internal/getMemoryInternals.d.ts +80 -0
  1557. package/utilities/internal/getMemoryInternals.js +128 -0
  1558. package/utilities/internal/getMemoryInternals.js.map +1 -0
  1559. package/utilities/internal/getOperationDefinition.d.ts +8 -0
  1560. package/utilities/internal/getOperationDefinition.js +11 -0
  1561. package/utilities/internal/getOperationDefinition.js.map +1 -0
  1562. package/utilities/internal/getOperationName.d.ts +8 -0
  1563. package/utilities/internal/getOperationName.js +9 -0
  1564. package/utilities/internal/getOperationName.js.map +1 -0
  1565. package/utilities/internal/getQueryDefinition.d.ts +8 -0
  1566. package/utilities/internal/getQueryDefinition.js +13 -0
  1567. package/utilities/internal/getQueryDefinition.js.map +1 -0
  1568. package/utilities/internal/getStoreKeyName.d.ts +16 -0
  1569. package/utilities/internal/getStoreKeyName.js +73 -0
  1570. package/utilities/internal/getStoreKeyName.js.map +1 -0
  1571. package/utilities/internal/globals/global.d.ts +3 -0
  1572. package/utilities/internal/globals/global.js +14 -0
  1573. package/utilities/internal/globals/global.js.map +1 -0
  1574. package/utilities/internal/globals/index.d.ts +3 -0
  1575. package/utilities/internal/globals/index.js +3 -0
  1576. package/utilities/internal/globals/index.js.map +1 -0
  1577. package/utilities/internal/globals/maybe.d.ts +2 -0
  1578. package/utilities/internal/globals/maybe.js +7 -0
  1579. package/utilities/internal/globals/maybe.js.map +1 -0
  1580. package/utilities/internal/graphQLResultHasError.d.ts +8 -0
  1581. package/utilities/internal/graphQLResultHasError.js +9 -0
  1582. package/utilities/internal/graphQLResultHasError.js.map +1 -0
  1583. package/utilities/internal/hasDirectives.d.ts +8 -0
  1584. package/utilities/internal/hasDirectives.js +21 -0
  1585. package/utilities/internal/hasDirectives.js.map +1 -0
  1586. package/utilities/internal/hasForcedResolvers.d.ts +3 -0
  1587. package/utilities/internal/hasForcedResolvers.js +20 -0
  1588. package/utilities/internal/hasForcedResolvers.js.map +1 -0
  1589. package/utilities/internal/index.d.ts +74 -0
  1590. package/utilities/internal/index.js +56 -0
  1591. package/utilities/internal/index.js.map +1 -0
  1592. package/utilities/internal/index.production.d.ts +3 -0
  1593. package/utilities/internal/index.production.js +7 -0
  1594. package/utilities/internal/index.production.js.map +1 -0
  1595. package/utilities/internal/isArray.d.ts +9 -0
  1596. package/utilities/internal/isArray.js +9 -0
  1597. package/utilities/internal/isArray.js.map +1 -0
  1598. package/utilities/internal/isDocumentNode.d.ts +8 -0
  1599. package/utilities/internal/isDocumentNode.js +12 -0
  1600. package/utilities/internal/isDocumentNode.js.map +1 -0
  1601. package/utilities/internal/isField.d.ts +8 -0
  1602. package/utilities/internal/isField.js +9 -0
  1603. package/utilities/internal/isField.js.map +1 -0
  1604. package/utilities/internal/isNonEmptyArray.d.ts +7 -0
  1605. package/utilities/internal/isNonEmptyArray.js +9 -0
  1606. package/utilities/internal/isNonEmptyArray.js.map +1 -0
  1607. package/utilities/internal/isNonNullObject.d.ts +7 -0
  1608. package/utilities/internal/isNonNullObject.js +9 -0
  1609. package/utilities/internal/isNonNullObject.js.map +1 -0
  1610. package/utilities/internal/isPlainObject.d.ts +7 -0
  1611. package/utilities/internal/isPlainObject.js +12 -0
  1612. package/utilities/internal/isPlainObject.js.map +1 -0
  1613. package/utilities/internal/makeReference.d.ts +8 -0
  1614. package/utilities/internal/makeReference.js +9 -0
  1615. package/utilities/internal/makeReference.js.map +1 -0
  1616. package/utilities/internal/makeUniqueId.d.ts +10 -0
  1617. package/utilities/internal/makeUniqueId.js +15 -0
  1618. package/utilities/internal/makeUniqueId.js.map +1 -0
  1619. package/utilities/internal/mapObservableFragment.d.ts +3 -0
  1620. package/utilities/internal/mapObservableFragment.js +24 -0
  1621. package/utilities/internal/mapObservableFragment.js.map +1 -0
  1622. package/utilities/internal/maybeDeepFreeze.d.ts +7 -0
  1623. package/utilities/internal/maybeDeepFreeze.js +14 -0
  1624. package/utilities/internal/maybeDeepFreeze.js.map +1 -0
  1625. package/utilities/internal/memoize.d.ts +8 -0
  1626. package/utilities/internal/memoize.js +28 -0
  1627. package/utilities/internal/memoize.js.map +1 -0
  1628. package/utilities/internal/mergeDeep.d.ts +8 -0
  1629. package/utilities/internal/mergeDeep.js +23 -0
  1630. package/utilities/internal/mergeDeep.js.map +1 -0
  1631. package/utilities/internal/mergeDeepArray.d.ts +7 -0
  1632. package/utilities/internal/mergeDeepArray.js +24 -0
  1633. package/utilities/internal/mergeDeepArray.js.map +1 -0
  1634. package/utilities/internal/mergeOptions.d.ts +10 -0
  1635. package/utilities/internal/mergeOptions.js +15 -0
  1636. package/utilities/internal/mergeOptions.js.map +1 -0
  1637. package/utilities/internal/omitDeep.d.ts +8 -0
  1638. package/utilities/internal/omitDeep.js +45 -0
  1639. package/utilities/internal/omitDeep.js.map +1 -0
  1640. package/utilities/internal/ponyfills/FinalizationRegistry.d.ts +11 -0
  1641. package/utilities/internal/ponyfills/FinalizationRegistry.js +57 -0
  1642. package/utilities/internal/ponyfills/FinalizationRegistry.js.map +1 -0
  1643. package/utilities/internal/ponyfills/index.d.ts +3 -0
  1644. package/utilities/internal/ponyfills/index.js +3 -0
  1645. package/utilities/internal/ponyfills/index.js.map +1 -0
  1646. package/utilities/internal/ponyfills/index.react-native.d.ts +2 -0
  1647. package/utilities/internal/ponyfills/index.react-native.js +2 -0
  1648. package/utilities/internal/ponyfills/index.react-native.js.map +1 -0
  1649. package/utilities/internal/preventUnhandledRejection.d.ts +2 -0
  1650. package/utilities/internal/preventUnhandledRejection.js +5 -0
  1651. package/utilities/internal/preventUnhandledRejection.js.map +1 -0
  1652. package/utilities/internal/removeDirectivesFromDocument.d.ts +14 -0
  1653. package/utilities/internal/removeDirectivesFromDocument.js +299 -0
  1654. package/utilities/internal/removeDirectivesFromDocument.js.map +1 -0
  1655. package/utilities/internal/removeFragmentSpreads.d.ts +3 -0
  1656. package/utilities/internal/removeFragmentSpreads.js +11 -0
  1657. package/utilities/internal/removeFragmentSpreads.js.map +1 -0
  1658. package/utilities/internal/resultKeyNameFromField.d.ts +8 -0
  1659. package/utilities/internal/resultKeyNameFromField.js +9 -0
  1660. package/utilities/internal/resultKeyNameFromField.js.map +1 -0
  1661. package/utilities/internal/shouldInclude.d.ts +8 -0
  1662. package/utilities/internal/shouldInclude.js +47 -0
  1663. package/utilities/internal/shouldInclude.js.map +1 -0
  1664. package/utilities/internal/storeKeyNameFromField.d.ts +8 -0
  1665. package/utilities/internal/storeKeyNameFromField.js +26 -0
  1666. package/utilities/internal/storeKeyNameFromField.js.map +1 -0
  1667. package/utilities/internal/stringifyForDisplay.d.ts +7 -0
  1668. package/utilities/internal/stringifyForDisplay.js +15 -0
  1669. package/utilities/internal/stringifyForDisplay.js.map +1 -0
  1670. package/utilities/internal/toQueryResult.d.ts +8 -0
  1671. package/utilities/internal/toQueryResult.js +15 -0
  1672. package/utilities/internal/toQueryResult.js.map +1 -0
  1673. package/utilities/internal/types/ApplyHKT.d.ts +13 -0
  1674. package/utilities/internal/types/ApplyHKT.js +2 -0
  1675. package/utilities/internal/types/ApplyHKT.js.map +1 -0
  1676. package/utilities/internal/types/ApplyHKTImplementationWithDefault.d.ts +11 -0
  1677. package/utilities/internal/types/ApplyHKTImplementationWithDefault.js +2 -0
  1678. package/utilities/internal/types/ApplyHKTImplementationWithDefault.js.map +1 -0
  1679. package/utilities/internal/types/DecoratedPromise.d.ts +10 -0
  1680. package/utilities/internal/types/DecoratedPromise.js +2 -0
  1681. package/utilities/internal/types/DecoratedPromise.js.map +1 -0
  1682. package/utilities/internal/types/DeepOmit.d.ts +15 -0
  1683. package/utilities/internal/types/DeepOmit.js +2 -0
  1684. package/utilities/internal/types/DeepOmit.js.map +1 -0
  1685. package/utilities/internal/types/DocumentationTypes.d.ts +88 -0
  1686. package/utilities/internal/types/DocumentationTypes.js +2 -0
  1687. package/utilities/internal/types/DocumentationTypes.js.map +1 -0
  1688. package/utilities/internal/types/ExtensionsWithStreamDetails.d.ts +12 -0
  1689. package/utilities/internal/types/ExtensionsWithStreamDetails.js +2 -0
  1690. package/utilities/internal/types/ExtensionsWithStreamDetails.js.map +1 -0
  1691. package/utilities/internal/types/FragmentMap.d.ts +12 -0
  1692. package/utilities/internal/types/FragmentMap.js +2 -0
  1693. package/utilities/internal/types/FragmentMap.js.map +1 -0
  1694. package/utilities/internal/types/FragmentMapFunction.d.ts +8 -0
  1695. package/utilities/internal/types/FragmentMapFunction.js +2 -0
  1696. package/utilities/internal/types/FragmentMapFunction.js.map +1 -0
  1697. package/utilities/internal/types/FulfilledPromise.d.ts +10 -0
  1698. package/utilities/internal/types/FulfilledPromise.js +2 -0
  1699. package/utilities/internal/types/FulfilledPromise.js.map +1 -0
  1700. package/utilities/internal/types/IsAny.d.ts +7 -0
  1701. package/utilities/internal/types/IsAny.js +2 -0
  1702. package/utilities/internal/types/IsAny.js.map +1 -0
  1703. package/utilities/internal/types/NoInfer.d.ts +35 -0
  1704. package/utilities/internal/types/NoInfer.js +2 -0
  1705. package/utilities/internal/types/NoInfer.js.map +1 -0
  1706. package/utilities/internal/types/PendingPromise.d.ts +9 -0
  1707. package/utilities/internal/types/PendingPromise.js +2 -0
  1708. package/utilities/internal/types/PendingPromise.js.map +1 -0
  1709. package/utilities/internal/types/Prettify.d.ts +9 -0
  1710. package/utilities/internal/types/Prettify.js +2 -0
  1711. package/utilities/internal/types/Prettify.js.map +1 -0
  1712. package/utilities/internal/types/Primitive.d.ts +7 -0
  1713. package/utilities/internal/types/Primitive.js +2 -0
  1714. package/utilities/internal/types/Primitive.js.map +1 -0
  1715. package/utilities/internal/types/RejectedPromise.d.ts +10 -0
  1716. package/utilities/internal/types/RejectedPromise.js +2 -0
  1717. package/utilities/internal/types/RejectedPromise.js.map +1 -0
  1718. package/utilities/internal/types/RemoveIndexSignature.d.ts +9 -0
  1719. package/utilities/internal/types/RemoveIndexSignature.js +2 -0
  1720. package/utilities/internal/types/RemoveIndexSignature.js.map +1 -0
  1721. package/utilities/internal/types/StreamInfoTrie.d.ts +16 -0
  1722. package/utilities/internal/types/StreamInfoTrie.js +2 -0
  1723. package/utilities/internal/types/StreamInfoTrie.js.map +1 -0
  1724. package/utilities/internal/types/TupleToIntersection.d.ts +2 -0
  1725. package/utilities/internal/types/TupleToIntersection.js +2 -0
  1726. package/utilities/internal/types/TupleToIntersection.js.map +1 -0
  1727. package/utilities/internal/types/VariablesOption.d.ts +26 -0
  1728. package/utilities/internal/types/VariablesOption.js +2 -0
  1729. package/utilities/internal/types/VariablesOption.js.map +1 -0
  1730. package/utilities/internal/valueToObjectRepresentation.d.ts +8 -0
  1731. package/utilities/internal/valueToObjectRepresentation.js +41 -0
  1732. package/utilities/internal/valueToObjectRepresentation.js.map +1 -0
  1733. package/utilities/invariant/index.d.ts +47 -0
  1734. package/utilities/invariant/index.development.d.ts +4 -0
  1735. package/utilities/invariant/index.development.js +12 -0
  1736. package/utilities/invariant/index.development.js.map +1 -0
  1737. package/utilities/invariant/index.js +93 -0
  1738. package/utilities/invariant/index.js.map +1 -0
  1739. package/utilities/isNetworkRequestInFlight.d.ts +7 -0
  1740. package/utilities/isNetworkRequestInFlight.js +9 -0
  1741. package/utilities/isNetworkRequestInFlight.js.map +1 -0
  1742. package/utilities/isNetworkRequestSettled.d.ts +7 -0
  1743. package/utilities/isNetworkRequestSettled.js +8 -0
  1744. package/utilities/isNetworkRequestSettled.js.map +1 -0
  1745. package/utilities/policies/pagination.d.ts +51 -0
  1746. package/utilities/policies/pagination.js +233 -0
  1747. package/utilities/policies/pagination.js.map +1 -0
  1748. package/utilities/subscriptions/relay/index.d.ts +10 -0
  1749. package/utilities/subscriptions/relay/index.js +59 -0
  1750. package/utilities/subscriptions/relay/index.js.map +1 -0
  1751. package/v4-migration.d.ts +826 -0
  1752. package/v4-migration.js +8 -0
  1753. package/v4-migration.js.map +1 -0
  1754. package/version.d.ts +3 -0
  1755. package/version.js +3 -0
  1756. package/version.js.map +1 -0
@@ -0,0 +1,109 @@
1
+ import { __DEV__ } from "@apollo/client/utilities/environment";
2
+ import { cacheSizes } from "../caching/sizes.js";
3
+ import { AutoCleanedStrongCache } from "./caches.js";
4
+ import { registerGlobalCache } from "./getMemoryInternals.js";
5
+ /**
6
+ * Serializes a value to JSON with object keys in a consistent, sorted order.
7
+ *
8
+ * @remarks
9
+ *
10
+ * Unlike `JSON.stringify()`, this function ensures that object keys are always
11
+ * serialized in the same alphabetical order, regardless of their original order.
12
+ * This makes it suitable for creating consistent cache keys from objects,
13
+ * comparing objects by their serialized representation, or generating
14
+ * deterministic hashes of objects.
15
+ *
16
+ * To achieve performant sorting, this function uses a `Map` from JSON-serialized
17
+ * arrays of keys (in any order) to sorted arrays of the same keys, with a
18
+ * single sorted array reference shared by all permutations of the keys.
19
+ *
20
+ * As a drawback, this function will add a little more memory for every object
21
+ * encountered that has different (more, less, a different order of) keys than
22
+ * in the past.
23
+ *
24
+ * In a typical application, this extra memory usage should not play a
25
+ * significant role, as `canonicalStringify` will be called for only a limited
26
+ * number of object shapes, and the cache will not grow beyond a certain point.
27
+ * But in some edge cases, this could be a problem. Use canonicalStringify.reset()
28
+ * as a way to clear the memoization cache.
29
+ *
30
+ * @param value - The value to stringify
31
+ * @returns JSON string with consistently ordered object keys
32
+ *
33
+ * @example
34
+ *
35
+ * ```ts
36
+ * import { canonicalStringify } from "@apollo/client/utilities";
37
+ *
38
+ * const obj1 = { b: 2, a: 1 };
39
+ * const obj2 = { a: 1, b: 2 };
40
+ *
41
+ * console.log(canonicalStringify(obj1)); // '{"a":1,"b":2}'
42
+ * console.log(canonicalStringify(obj2)); // '{"a":1,"b":2}'
43
+ * ```
44
+ */
45
+ export const canonicalStringify = Object.assign(function canonicalStringify(value) {
46
+ return JSON.stringify(value, stableObjectReplacer);
47
+ }, {
48
+ reset() {
49
+ // Clearing the sortingMap will reclaim all cached memory, without
50
+ // affecting the logical results of canonicalStringify, but potentially
51
+ // sacrificing performance until the cache is refilled.
52
+ sortingMap = new AutoCleanedStrongCache(cacheSizes.canonicalStringify || 1000 /* defaultCacheSizes.canonicalStringify */);
53
+ },
54
+ });
55
+ if (__DEV__) {
56
+ registerGlobalCache("canonicalStringify", () => sortingMap.size);
57
+ }
58
+ // Values are JSON-serialized arrays of object keys (in any order), and values
59
+ // are sorted arrays of the same keys.
60
+ let sortingMap;
61
+ canonicalStringify.reset();
62
+ // The JSON.stringify function takes an optional second argument called a
63
+ // replacer function. This function is called for each key-value pair in the
64
+ // object being stringified, and its return value is used instead of the
65
+ // original value. If the replacer function returns a new value, that value is
66
+ // stringified as JSON instead of the original value of the property.
67
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#the_replacer_parameter
68
+ function stableObjectReplacer(key, value) {
69
+ if (value && typeof value === "object") {
70
+ const proto = Object.getPrototypeOf(value);
71
+ // We don't want to mess with objects that are not "plain" objects, which
72
+ // means their prototype is either Object.prototype or null. This check also
73
+ // prevents needlessly rearranging the indices of arrays.
74
+ if (proto === Object.prototype || proto === null) {
75
+ const keys = Object.keys(value);
76
+ // If keys is already sorted, let JSON.stringify serialize the original
77
+ // value instead of creating a new object with keys in the same order.
78
+ if (keys.every(everyKeyInOrder))
79
+ return value;
80
+ const unsortedKey = JSON.stringify(keys);
81
+ let sortedKeys = sortingMap.get(unsortedKey);
82
+ if (!sortedKeys) {
83
+ keys.sort();
84
+ const sortedKey = JSON.stringify(keys);
85
+ // Checking for sortedKey in the sortingMap allows us to share the same
86
+ // sorted array reference for all permutations of the same set of keys.
87
+ sortedKeys = sortingMap.get(sortedKey) || keys;
88
+ sortingMap.set(unsortedKey, sortedKeys);
89
+ sortingMap.set(sortedKey, sortedKeys);
90
+ }
91
+ const sortedObject = Object.create(proto);
92
+ // Reassigning the keys in sorted order will cause JSON.stringify to
93
+ // serialize them in sorted order.
94
+ sortedKeys.forEach((key) => {
95
+ sortedObject[key] = value[key];
96
+ });
97
+ return sortedObject;
98
+ }
99
+ }
100
+ return value;
101
+ }
102
+ // Since everything that happens in stableObjectReplacer benefits from being as
103
+ // efficient as possible, we use a static function as the callback for
104
+ // keys.every in order to test if the provided keys are already sorted without
105
+ // allocating extra memory for a callback.
106
+ function everyKeyInOrder(key, i, keys) {
107
+ return i === 0 || keys[i - 1] <= key;
108
+ }
109
+ //# sourceMappingURL=canonicalStringify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonicalStringify.js","sourceRoot":"","sources":["../../../src/utilities/internal/canonicalStringify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAqB,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAC7C,SAAS,kBAAkB,CAAC,KAAU;IACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;AACrD,CAAC,EACD;IACE,KAAK;QACH,kEAAkE;QAClE,uEAAuE;QACvE,uDAAuD;QACvD,UAAU,GAAG,IAAI,sBAAsB,CACrC,UAAU,CAAC,kBAAkB,mDAAwC,CACtE,CAAC;IACJ,CAAC;CACF,CACF,CAAC;AAEF,IAAI,OAAO,EAAE,CAAC;IACZ,mBAAmB,CAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACnE,CAAC;AAED,8EAA8E;AAC9E,sCAAsC;AACtC,IAAI,UAA8D,CAAC;AACnE,kBAAkB,CAAC,KAAK,EAAE,CAAC;AAE3B,yEAAyE;AACzE,4EAA4E;AAC5E,wEAAwE;AACxE,8EAA8E;AAC9E,qEAAqE;AACrE,yHAAyH;AACzH,SAAS,oBAAoB,CAAC,GAA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AAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,+EAA+E;AAC/E,sEAAsE;AACtE,8EAA8E;AAC9E,0CAA0C;AAC1C,SAAS,eAAe,CACtB,GAAW,EACX,CAAS,EACT,IAAuB;IAEvB,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC;AACvC,CAAC","sourcesContent":["import { __DEV__ } from \"@apollo/client/utilities/environment\";\n\nimport { cacheSizes, defaultCacheSizes } from \"../caching/sizes.js\";\n\nimport { AutoCleanedStrongCache } from \"./caches.js\";\nimport { registerGlobalCache } from \"./getMemoryInternals.js\";\n\n/**\n * Serializes a value to JSON with object keys in a consistent, sorted order.\n *\n * @remarks\n *\n * Unlike `JSON.stringify()`, this function ensures that object keys are always\n * serialized in the same alphabetical order, regardless of their original order.\n * This makes it suitable for creating consistent cache keys from objects,\n * comparing objects by their serialized representation, or generating\n * deterministic hashes of objects.\n *\n * To achieve performant sorting, this function uses a `Map` from JSON-serialized\n * arrays of keys (in any order) to sorted arrays of the same keys, with a\n * single sorted array reference shared by all permutations of the keys.\n *\n * As a drawback, this function will add a little more memory for every object\n * encountered that has different (more, less, a different order of) keys than\n * in the past.\n *\n * In a typical application, this extra memory usage should not play a\n * significant role, as `canonicalStringify` will be called for only a limited\n * number of object shapes, and the cache will not grow beyond a certain point.\n * But in some edge cases, this could be a problem. Use canonicalStringify.reset()\n * as a way to clear the memoization cache.\n *\n * @param value - The value to stringify\n * @returns JSON string with consistently ordered object keys\n *\n * @example\n *\n * ```ts\n * import { canonicalStringify } from \"@apollo/client/utilities\";\n *\n * const obj1 = { b: 2, a: 1 };\n * const obj2 = { a: 1, b: 2 };\n *\n * console.log(canonicalStringify(obj1)); // '{\"a\":1,\"b\":2}'\n * console.log(canonicalStringify(obj2)); // '{\"a\":1,\"b\":2}'\n * ```\n */\nexport const canonicalStringify = Object.assign(\n function canonicalStringify(value: any): string {\n return JSON.stringify(value, stableObjectReplacer);\n },\n {\n reset() {\n // Clearing the sortingMap will reclaim all cached memory, without\n // affecting the logical results of canonicalStringify, but potentially\n // sacrificing performance until the cache is refilled.\n sortingMap = new AutoCleanedStrongCache<string, readonly string[]>(\n cacheSizes.canonicalStringify || defaultCacheSizes.canonicalStringify\n );\n },\n }\n);\n\nif (__DEV__) {\n registerGlobalCache(\"canonicalStringify\", () => sortingMap.size);\n}\n\n// Values are JSON-serialized arrays of object keys (in any order), and values\n// are sorted arrays of the same keys.\nlet sortingMap!: AutoCleanedStrongCache<string, readonly string[]>;\ncanonicalStringify.reset();\n\n// The JSON.stringify function takes an optional second argument called a\n// replacer function. This function is called for each key-value pair in the\n// object being stringified, and its return value is used instead of the\n// original value. If the replacer function returns a new value, that value is\n// stringified as JSON instead of the original value of the property.\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#the_replacer_parameter\nfunction stableObjectReplacer(key: string, value: any) {\n if (value && typeof value === \"object\") {\n const proto = Object.getPrototypeOf(value);\n // We don't want to mess with objects that are not \"plain\" objects, which\n // means their prototype is either Object.prototype or null. This check also\n // prevents needlessly rearranging the indices of arrays.\n if (proto === Object.prototype || proto === null) {\n const keys = Object.keys(value);\n // If keys is already sorted, let JSON.stringify serialize the original\n // value instead of creating a new object with keys in the same order.\n if (keys.every(everyKeyInOrder)) return value;\n const unsortedKey = JSON.stringify(keys);\n let sortedKeys = sortingMap.get(unsortedKey);\n if (!sortedKeys) {\n keys.sort();\n const sortedKey = JSON.stringify(keys);\n // Checking for sortedKey in the sortingMap allows us to share the same\n // sorted array reference for all permutations of the same set of keys.\n sortedKeys = sortingMap.get(sortedKey) || keys;\n sortingMap.set(unsortedKey, sortedKeys);\n sortingMap.set(sortedKey, sortedKeys);\n }\n const sortedObject = Object.create(proto);\n // Reassigning the keys in sorted order will cause JSON.stringify to\n // serialize them in sorted order.\n sortedKeys.forEach((key) => {\n sortedObject[key] = value[key];\n });\n return sortedObject;\n }\n }\n return value;\n}\n\n// Since everything that happens in stableObjectReplacer benefits from being as\n// efficient as possible, we use a static function as the callback for\n// keys.every in order to test if the provided keys are already sorted without\n// allocating extra memory for a callback.\nfunction everyKeyInOrder(\n key: string,\n i: number,\n keys: readonly string[]\n): boolean {\n return i === 0 || keys[i - 1] <= key;\n}\n"]}
@@ -0,0 +1,10 @@
1
+ import type { DocumentNode, OperationTypeNode } from "graphql";
2
+ /**
3
+ * Checks the document for errors and throws an exception if there is an error.
4
+ *
5
+ * @internal
6
+ *
7
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
8
+ */
9
+ export declare const checkDocument: (doc: DocumentNode, expectedType?: OperationTypeNode) => void;
10
+ //# sourceMappingURL=checkDocument.d.ts.map
@@ -0,0 +1,64 @@
1
+ // Checks the document for errors and throws an exception if there is an error.
2
+ import { Kind, visit } from "graphql";
3
+ import { __DEV__ } from "@apollo/client/utilities/environment";
4
+ import { invariant, newInvariantError, } from "@apollo/client/utilities/invariant";
5
+ import { cacheSizes } from "../caching/sizes.js";
6
+ import { getOperationName } from "./getOperationName.js";
7
+ import { memoize } from "./memoize.js";
8
+ /**
9
+ * Checks the document for errors and throws an exception if there is an error.
10
+ *
11
+ * @internal
12
+ *
13
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
14
+ */
15
+ export const checkDocument = memoize((doc, expectedType) => {
16
+ invariant(doc && doc.kind === "Document", 1);
17
+ const operations = doc.definitions.filter((d) => d.kind === "OperationDefinition");
18
+ if (__DEV__) {
19
+ doc.definitions.forEach((definition) => {
20
+ if (definition.kind !== "OperationDefinition" &&
21
+ definition.kind !== "FragmentDefinition") {
22
+ throw newInvariantError(2, definition.kind);
23
+ }
24
+ });
25
+ invariant(operations.length <= 1, 3, operations.length);
26
+ }
27
+ if (expectedType) {
28
+ invariant(
29
+ operations.length == 1 && operations[0].operation === expectedType,
30
+ 4,
31
+ expectedType,
32
+ expectedType,
33
+ operations[0].operation
34
+ );
35
+ }
36
+ visit(doc, {
37
+ Field(field, _, __, path) {
38
+ if (field.alias &&
39
+ (field.alias.value === "__typename" ||
40
+ field.alias.value.startsWith("__ac_")) &&
41
+ field.alias.value !== field.name.value) {
42
+ // not using `invariant` so path calculation only happens in error case
43
+ let current = doc, fieldPath = [];
44
+ for (const key of path) {
45
+ current = current[key];
46
+ if (current.kind === Kind.FIELD) {
47
+ fieldPath.push(current.alias?.value || current.name.value);
48
+ }
49
+ }
50
+ fieldPath.splice(-1, 1, field.name.value);
51
+ throw newInvariantError(
52
+ 5,
53
+ field.alias.value,
54
+ fieldPath.join("."),
55
+ operations[0].operation,
56
+ getOperationName(doc, "(anonymous)")
57
+ );
58
+ }
59
+ },
60
+ });
61
+ }, {
62
+ max: cacheSizes["checkDocument"] || 2000 /* defaultCacheSizes["checkDocument"] */,
63
+ });
64
+ //# sourceMappingURL=checkDocument.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkDocument.js","sources":["../../../src/utilities/internal/checkDocument.ts"],"sourcesContent":["// Checks the document for errors and throws an exception if there is an error.\n\nimport type { ASTNode } from \"graphql\";\nimport type { DocumentNode, OperationTypeNode } from \"graphql\";\nimport { Kind, visit } from \"graphql\";\n\nimport { __DEV__ } from \"@apollo/client/utilities/environment\";\nimport {\n invariant,\n newInvariantError,\n} from \"@apollo/client/utilities/invariant\";\n\nimport { defaultCacheSizes } from \"../../utilities/caching/sizes.js\";\nimport { cacheSizes } from \"../caching/sizes.js\";\n\nimport { getOperationName } from \"./getOperationName.js\";\nimport { memoize } from \"./memoize.js\";\n\n/**\n * Checks the document for errors and throws an exception if there is an error.\n *\n * @internal\n */\nexport const checkDocument: (\n doc: DocumentNode,\n expectedType?: OperationTypeNode\n) => void = memoize(\n (doc: DocumentNode, expectedType?: OperationTypeNode): void => {\n invariant(\n doc && doc.kind === \"Document\",\n `Expecting a parsed GraphQL document. Perhaps you need to wrap the query \\\nstring in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql`\n );\n const operations = doc.definitions.filter(\n (d) => d.kind === \"OperationDefinition\"\n );\n if (__DEV__) {\n doc.definitions.forEach((definition) => {\n if (\n definition.kind !== \"OperationDefinition\" &&\n definition.kind !== \"FragmentDefinition\"\n ) {\n throw newInvariantError(\n `Schema type definitions not allowed in queries. Found: \"%s\"`,\n definition.kind\n );\n }\n });\n\n invariant(\n operations.length <= 1,\n `Ambiguous GraphQL document: contains %s operations`,\n operations.length\n );\n }\n\n if (expectedType) {\n invariant(\n operations.length == 1 && operations[0].operation === expectedType,\n `Running a %s requires a graphql ` + `%s, but a %s was used instead.`,\n expectedType,\n expectedType,\n operations[0].operation\n );\n }\n\n visit(doc, {\n Field(field, _, __, path) {\n if (\n field.alias &&\n (field.alias.value === \"__typename\" ||\n field.alias.value.startsWith(\"__ac_\")) &&\n field.alias.value !== field.name.value\n ) {\n // not using `invariant` so path calculation only happens in error case\n let current: ASTNode = doc,\n fieldPath: string[] = [];\n for (const key of path) {\n current = (current as any)[key];\n if (current.kind === Kind.FIELD) {\n fieldPath.push(current.alias?.value || current.name.value);\n }\n }\n fieldPath.splice(-1, 1, field.name.value);\n\n throw newInvariantError(\n '`%s` is a forbidden field alias name in the selection set for field `%s` in %s \"%s\".',\n field.alias.value,\n fieldPath.join(\".\"),\n operations[0].operation,\n getOperationName(doc, \"(anonymous)\")\n );\n }\n },\n });\n },\n {\n max: cacheSizes[\"checkDocument\"] || defaultCacheSizes[\"checkDocument\"],\n }\n);\n"],"names":[],"mappings":"AAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,CA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CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC,EAAnC,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,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,CAAA,CAAA,CAAA,EAAA,CAAA,CAA0E;AAC1E,CAAG,CACF;"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Deeply clones a value to create a new instance.
3
+ *
4
+ * @internal
5
+ *
6
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
7
+ */
8
+ export declare function cloneDeep<T>(value: T): T;
9
+ //# sourceMappingURL=cloneDeep.d.ts.map
@@ -0,0 +1,42 @@
1
+ const { toString } = Object.prototype;
2
+ /**
3
+ * Deeply clones a value to create a new instance.
4
+ *
5
+ * @internal
6
+ *
7
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
8
+ */
9
+ export function cloneDeep(value) {
10
+ return __cloneDeep(value);
11
+ }
12
+ function __cloneDeep(val, seen) {
13
+ switch (toString.call(val)) {
14
+ case "[object Array]": {
15
+ seen = seen || new Map();
16
+ if (seen.has(val))
17
+ return seen.get(val);
18
+ const copy = val.slice(0);
19
+ seen.set(val, copy);
20
+ copy.forEach(function (child, i) {
21
+ copy[i] = __cloneDeep(child, seen);
22
+ });
23
+ return copy;
24
+ }
25
+ case "[object Object]": {
26
+ seen = seen || new Map();
27
+ if (seen.has(val))
28
+ return seen.get(val);
29
+ // High fidelity polyfills of Object.create and Object.getPrototypeOf are
30
+ // possible in all JS environments, so we will assume they exist/work.
31
+ const copy = Object.create(Object.getPrototypeOf(val));
32
+ seen.set(val, copy);
33
+ Object.keys(val).forEach((key) => {
34
+ copy[key] = __cloneDeep(val[key], seen);
35
+ });
36
+ return copy;
37
+ }
38
+ default:
39
+ return val;
40
+ }
41
+ }
42
+ //# sourceMappingURL=cloneDeep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloneDeep.js","sources":["../../../src/utilities/internal/cloneDeep.ts"],"sourcesContent":["const { toString } = Object.prototype;\n\n/**\n * Deeply clones a value to create a new instance.\n *\n * @internal\n */\nexport function cloneDeep<T>(value: T): T {\n return __cloneDeep(value);\n}\n\nfunction __cloneDeep<T>(val: T, seen?: Map<any, any>): T {\n switch (toString.call(val)) {\n case \"[object Array]\": {\n seen = seen || new Map();\n if (seen.has(val)) return seen.get(val);\n const copy: T & any[] = (val as any).slice(0);\n seen.set(val, copy);\n copy.forEach(function (child, i) {\n copy[i] = __cloneDeep(child, seen);\n });\n return copy;\n }\n\n case \"[object Object]\": {\n seen = seen || new Map();\n if (seen.has(val)) return seen.get(val);\n // High fidelity polyfills of Object.create and Object.getPrototypeOf are\n // possible in all JS environments, so we will assume they exist/work.\n const copy = Object.create(Object.getPrototypeOf(val));\n seen.set(val, copy);\n Object.keys(val as T & Record<string, any>).forEach((key) => {\n copy[key] = __cloneDeep((val as any)[key], seen);\n });\n return copy;\n }\n\n default:\n return val;\n }\n}\n"],"names":[],"mappings":"AAAA,CAAA,CAAA,CAAA,CAAA,EAAM,EAAE,CAAR,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,EAAqB,CAArB,CAAA,CAAA,CAAA,CAAA,CAA2B,CAAC,CAA5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqC;;;;;;;;AAOrC,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAgB,CAAhB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,CAAI,CAA7B,CAAA,CAAA,CAAA,CAAqC,EAArC;IACE,CAAF,CAAA,CAAA,CAAA,CAAA,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AA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA+B,CAAE,CAAjC,CAAA,CAA4C,CAAC,CAA7C,CAAA,CAAgD,CAAC,EAAE,CAAnD,CAAA,CAAA,CAAuD,CAAC;YAClD,CAAC,CAAC;YACF,CAAN,CAAA,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAA,CAAiB;QACb;QAEA,CAAJ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;YACM,CAAN,CAAA,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAgB;IACd;AACF;"}
@@ -0,0 +1,14 @@
1
+ import { Observable } from "rxjs";
2
+ /**
3
+ * Like `combineLatest` but with some differences:
4
+ *
5
+ * - It only works on arrays as an input
6
+ * - Batches updates to each array index that contains a referentially equal
7
+ * observable
8
+ * - Doesn't allow for custom scheduler
9
+ * - Expects array of constructed observables instead of `Array<ObservableInput>`
10
+ */
11
+ export declare function combineLatestBatched<T>(observables: Array<Observable<T> & {
12
+ dirty?: boolean;
13
+ }>): Observable<T[]>;
14
+ //# sourceMappingURL=combineLatestBatched.d.ts.map
@@ -0,0 +1,68 @@
1
+ import { EMPTY, Observable } from "rxjs";
2
+ /**
3
+ * Like `combineLatest` but with some differences:
4
+ *
5
+ * - It only works on arrays as an input
6
+ * - Batches updates to each array index that contains a referentially equal
7
+ * observable
8
+ * - Doesn't allow for custom scheduler
9
+ * - Expects array of constructed observables instead of `Array<ObservableInput>`
10
+ */
11
+ export function combineLatestBatched(observables) {
12
+ if (observables.length === 0) {
13
+ return EMPTY;
14
+ }
15
+ return new Observable((observer) => {
16
+ const { length } = observables;
17
+ // Keeps track of current values for each observable
18
+ const values = new Array(length);
19
+ // Used to batch an update each item in the array that share an observable
20
+ // so that they can be emitted together.
21
+ const indexesByObservable = new Map();
22
+ observables.forEach((source, idx) => {
23
+ if (!indexesByObservable.has(source)) {
24
+ indexesByObservable.set(source, new Set());
25
+ }
26
+ indexesByObservable.get(source).add(idx);
27
+ });
28
+ // Track the number of active subscriptions so we know when to complete this
29
+ // observable
30
+ let active = indexesByObservable.size;
31
+ // Track how many observables are left to emit their first value
32
+ let remainingFirstValues = indexesByObservable.size;
33
+ let currentBatch;
34
+ // Subscribe to each unique observable instead of the raw source array of
35
+ // observables since we want at most 1-subscription per unique observable.
36
+ // This ensures an update can write to multiple indexes before emitting the
37
+ // result.
38
+ indexesByObservable.forEach((indexes, source) => {
39
+ let hasFirstValue = false;
40
+ const subscription = source.subscribe({
41
+ next: (value) => {
42
+ indexes.forEach((idx) => (values[idx] = value));
43
+ if (!hasFirstValue) {
44
+ hasFirstValue = true;
45
+ remainingFirstValues--;
46
+ }
47
+ if (!remainingFirstValues) {
48
+ currentBatch ||= new Set(observables.filter((obs) => obs.dirty));
49
+ currentBatch.delete(source);
50
+ if (!currentBatch.size) {
51
+ observer.next(values.slice());
52
+ currentBatch = undefined;
53
+ }
54
+ }
55
+ },
56
+ complete: () => {
57
+ active--;
58
+ if (!active) {
59
+ observer.complete();
60
+ }
61
+ },
62
+ error: observer.error.bind(observer),
63
+ });
64
+ observer.add(subscription);
65
+ });
66
+ });
67
+ }
68
+ //# sourceMappingURL=combineLatestBatched.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combineLatestBatched.js","sourceRoot":"","sources":["../../../src/utilities/internal/combineLatestBatched.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAClC,WAAuD;IAEvD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,UAAU,CAAW,CAAC,QAAQ,EAAE,EAAE;QAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;QAC/B,oDAAoD;QACpD,MAAM,MAAM,GAAQ,IAAI,KAAK,CAAC,MAAM,CAAC,C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C,CAAC;wBACjE,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;wBAC5B,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;4BACvB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;4BAC9B,YAAY,GAAG,SAAS,CAAC;wBAC3B,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,QAAQ,EAAE,GAAG,EAAE;oBACb,MAAM,EAAE,CAAC;oBAET,IAAI,CAAC,MAAM,EAAE,CAAC;wBACZ,QAAQ,CAAC,QAAQ,EAAE,CAAC;oBACtB,CAAC;gBACH,CAAC;gBACD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;aACrC,CAAC,CAAC;YAEH,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { EMPTY, Observable } from \"rxjs\";\n\n/**\n * Like `combineLatest` but with some differences:\n *\n * - It only works on arrays as an input\n * - Batches updates to each array index that contains a referentially equal\n * observable\n * - Doesn't allow for custom scheduler\n * - Expects array of constructed observables instead of `Array<ObservableInput>`\n */\nexport function combineLatestBatched<T>(\n observables: Array<Observable<T> & { dirty?: boolean }>\n) {\n if (observables.length === 0) {\n return EMPTY;\n }\n\n return new Observable<Array<T>>((observer) => {\n const { length } = observables;\n // Keeps track of current values for each observable\n const values: T[] = new Array(length);\n // Used to batch an update each item in the array that share an observable\n // so that they can be emitted together.\n const indexesByObservable = new Map<Observable<T>, Set<number>>();\n\n observables.forEach((source, idx) => {\n if (!indexesByObservable.has(source)) {\n indexesByObservable.set(source, new Set());\n }\n\n indexesByObservable.get(source)!.add(idx);\n });\n\n // Track the number of active subscriptions so we know when to complete this\n // observable\n let active = indexesByObservable.size;\n // Track how many observables are left to emit their first value\n let remainingFirstValues = indexesByObservable.size;\n\n let currentBatch: Set<Observable<T>> | undefined;\n\n // Subscribe to each unique observable instead of the raw source array of\n // observables since we want at most 1-subscription per unique observable.\n // This ensures an update can write to multiple indexes before emitting the\n // result.\n indexesByObservable.forEach((indexes, source) => {\n let hasFirstValue = false;\n const subscription = source.subscribe({\n next: (value) => {\n indexes.forEach((idx) => (values[idx] = value));\n\n if (!hasFirstValue) {\n hasFirstValue = true;\n remainingFirstValues--;\n }\n\n if (!remainingFirstValues) {\n currentBatch ||= new Set(observables.filter((obs) => obs.dirty));\n currentBatch.delete(source);\n if (!currentBatch.size) {\n observer.next(values.slice());\n currentBatch = undefined;\n }\n }\n },\n complete: () => {\n active--;\n\n if (!active) {\n observer.complete();\n }\n },\n error: observer.error.bind(observer),\n });\n\n observer.add(subscription);\n });\n });\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import type { TupleToIntersection } from "./types/TupleToIntersection.js";
2
+ /**
3
+ * Merges the provided objects shallowly and removes
4
+ * all properties with an `undefined` value
5
+ *
6
+ * @internal
7
+ *
8
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
9
+ */
10
+ export declare function compact<TArgs extends any[]>(...objects: TArgs): TupleToIntersection<TArgs>;
11
+ //# sourceMappingURL=compact.d.ts.map
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Merges the provided objects shallowly and removes
3
+ * all properties with an `undefined` value
4
+ *
5
+ * @internal
6
+ *
7
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
8
+ */
9
+ export function compact(...objects) {
10
+ const result = {};
11
+ objects.forEach((obj) => {
12
+ if (!obj)
13
+ return;
14
+ Reflect.ownKeys(obj).forEach((key) => {
15
+ const value = obj[key];
16
+ if (value !== void 0) {
17
+ result[key] = value;
18
+ }
19
+ });
20
+ });
21
+ return result;
22
+ }
23
+ //# sourceMappingURL=compact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compact.js","sources":["../../../src/utilities/internal/compact.ts"],"sourcesContent":["import type { TupleToIntersection } from \"./types/TupleToIntersection.js\";\n\n/**\n * Merges the provided objects shallowly and removes\n * all properties with an `undefined` value\n *\n * @internal\n */\nexport function compact<TArgs extends any[]>(\n ...objects: TArgs\n): TupleToIntersection<TArgs> {\n const result = {} as TupleToIntersection<TArgs>;\n\n objects.forEach((obj) => {\n if (!obj) return;\n Reflect.ownKeys(obj).forEach((key: keyof typeof obj) => {\n const value = obj[key];\n if (value !== void 0) {\n result[key] = value;\n }\n });\n });\n\n return result;\n}\n"],"names":[],"mappings":";;;;;;;;AAQA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAgB,CAAhB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuB,CACrB,CADF,CAAA,CACK,CADL,CAAA,CAAA,CAAA,CAAA,CAAA,CACmB,EADnB;IAGE,CAAF,CAAA,CAAA,CAAA,EAAQ,CAAR,CAAA,CAAA,CAAA,CAAA,EAAA,EAAiB,CAAjB,CAAiD;IAE/C,CAAF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAC,CAAC,CAAnB,CAAA,CAAsB,EAAE,CAAxB,EAAA;QACI,CAAJ,EAAA,CAAQ,CAAC,CAAT,CAAA,CAAY;YAAE,CAAd,CAAA,CAAA,CAAA,CAAA,CAAA;QACI,CAAJ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmB,CAAC,CAApB,CAAA,CAAuB,CAAC,CAAC,CAAzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgC,CAAC,CAAC,CAAlC,CAAA,CAAuD,EAAE,CAAzD,EAAA;YACM,CAAN,CAAA,CAAA,CAAA,EAAY,CAAZ,CAAA,CAAA,CAAA,EAAA,EAAoB,CAApB,CAAA,CAAuB,CAAC,CAAxB,CAAA,CAA2B,CAAC;YACtB,CAAN,EAAA,CAAU,CAAV,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAoB,CAApB,CAAA,CAAA,EAAyB,CAAC,EAAE;gBACpB,CAAR,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAf,CAAA,CAAkB,EAAlB,EAAsB,CAAtB,CAAA,CAAA,CAAA,CAA2B;YACrB;QACF,CAAC,CAAC;IACJ,CAAC,CAAC;IAEF,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAe;AACf;"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @internal
3
+ * Used to set `extensions` on the GraphQL result without exposing it
4
+ * unnecessarily. Only use internally!
5
+ *
6
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
7
+ */
8
+ export declare const extensionsSymbol: unique symbol;
9
+ /**
10
+ * For use in Cache implementations only.
11
+ * This should not be used in userland code.
12
+ */
13
+ export declare const streamInfoSymbol: unique symbol;
14
+ /**
15
+ * @internal
16
+ * Used as key for `ApolloClient.WatchQueryOptions`.
17
+ *
18
+ * Meant for framework integrators only!
19
+ *
20
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
21
+ */
22
+ export declare const variablesUnknownSymbol: unique symbol;
23
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @internal
3
+ * Used to set `extensions` on the GraphQL result without exposing it
4
+ * unnecessarily. Only use internally!
5
+ *
6
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
7
+ */
8
+ export const extensionsSymbol = Symbol.for("apollo.result.extensions");
9
+ /**
10
+ * For use in Cache implementations only.
11
+ * This should not be used in userland code.
12
+ */
13
+ export const streamInfoSymbol = Symbol.for("apollo.result.streamInfo");
14
+ /**
15
+ * @internal
16
+ * Used as key for `ApolloClient.WatchQueryOptions`.
17
+ *
18
+ * Meant for framework integrators only!
19
+ *
20
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
21
+ */
22
+ export const variablesUnknownSymbol = Symbol.for("apollo.observableQuery.variablesUnknown");
23
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../src/utilities/internal/constants.ts"],"sourcesContent":["/**\n * @internal\n * Used to set `extensions` on the GraphQL result without exposing it\n * unnecessarily. Only use internally!\n */\nexport const extensionsSymbol = Symbol.for(\"apollo.result.extensions\");\n\n/**\n * For use in Cache implementations only.\n * This should not be used in userland code.\n */\nexport const streamInfoSymbol = Symbol.for(\"apollo.result.streamInfo\");\n\n/**\n * @internal\n * Used as key for `ApolloClient.WatchQueryOptions`.\n *\n * Meant for framework integrators only!\n */\nexport const variablesUnknownSymbol = Symbol.for(\n \"apollo.observableQuery.variablesUnknown\"\n);\n"],"names":[],"mappings":";;;;;;;AAKA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,CAAP,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAgC,CAAhC,CAAA,CAAA,CAAA,CAAA,CAAsC,CAAC,CAAvC,CAAA,CAA0C,CAAC,CAA3C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqE,CAAC;AAEtE,CAAA,CAAA;;;CAGA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,CAAP,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAgC,CAAhC,CAAA,CAAA,CAAA,CAAA,CAAsC,CAAC,CAAvC,CAAA,CAA0C,CAAC,CAA3C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqE,CAAC;;;;;;;;;AAQtE,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,CAAP,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAsC,CAAtC,CAAA,CAAA,CAAA,CAAA,CAA4C,CAAC,CAA7C,CAAA,CAAgD,CAC9C,CADF,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,CAC2C,CAC1C;"}
@@ -0,0 +1,12 @@
1
+ import type { FragmentDefinitionNode } from "graphql";
2
+ import type { FragmentMap } from "./types/FragmentMap.js";
3
+ /**
4
+ * Utility function that takes a list of fragment definitions and makes a hash out of them
5
+ * that maps the name of the fragment to the fragment definition.
6
+ *
7
+ * @internal
8
+ *
9
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
10
+ */
11
+ export declare function createFragmentMap(fragments?: FragmentDefinitionNode[]): FragmentMap;
12
+ //# sourceMappingURL=createFragmentMap.d.ts.map
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Utility function that takes a list of fragment definitions and makes a hash out of them
3
+ * that maps the name of the fragment to the fragment definition.
4
+ *
5
+ * @internal
6
+ *
7
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
8
+ */
9
+ export function createFragmentMap(fragments = []) {
10
+ const symTable = {};
11
+ fragments.forEach((fragment) => {
12
+ symTable[fragment.name.value] = fragment;
13
+ });
14
+ return symTable;
15
+ }
16
+ //# sourceMappingURL=createFragmentMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFragmentMap.js","sources":["../../../src/utilities/internal/createFragmentMap.ts"],"sourcesContent":["import type { FragmentDefinitionNode } from \"graphql\";\n\nimport type { FragmentMap } from \"./types/FragmentMap.js\";\n\n/**\n * Utility function that takes a list of fragment definitions and makes a hash out of them\n * that maps the name of the fragment to the fragment definition.\n *\n * @internal\n */\nexport function createFragmentMap(\n fragments: FragmentDefinitionNode[] = []\n): FragmentMap {\n const symTable: FragmentMap = {};\n fragments.forEach((fragment) => {\n symTable[fragment.name.value] = fragment;\n });\n return symTable;\n}\n"],"names":[],"mappings":";;;;;;;;AAUA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAgB,CAAhB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiC,CAC/B,CADF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EACwC,CADxC,CAC0C,EAD1C;IAGE,CAAF,CAAA,CAAA,CAAA,EAAQ,CAAR,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAgC,CAAhC,CAAkC;IAChC,CAAF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmB,CAAC,CAAC,CAArB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6B,EAAE,CAA/B,EAAA;QACI,CAAJ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,CAAC,CAAtB,CAAA,CAAA,CAA0B,CAAC,CAA3B,CAAA,CAAA,CAAA,CAAgC,EAAhC,EAAoC,CAApC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA4C;IAC1C,CAAC,CAAC;IACF,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB;AACjB;"}
@@ -0,0 +1,8 @@
1
+ import type { FulfilledPromise } from "./types/FulfilledPromise.js";
2
+ /**
3
+ * @internal
4
+ *
5
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
6
+ */
7
+ export declare function createFulfilledPromise<TValue>(value: TValue): FulfilledPromise<TValue>;
8
+ //# sourceMappingURL=createFulfilledPromise.d.ts.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
5
+ */
6
+ export function createFulfilledPromise(value) {
7
+ const promise = Promise.resolve(value);
8
+ promise.status = "fulfilled";
9
+ promise.value = value;
10
+ return promise;
11
+ }
12
+ //# sourceMappingURL=createFulfilledPromise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFulfilledPromise.js","sources":["../../../src/utilities/internal/createFulfilledPromise.ts"],"sourcesContent":["import type { FulfilledPromise } from \"./types/FulfilledPromise.js\";\n\n/** @internal */\nexport function createFulfilledPromise<TValue>(value: TValue) {\n const promise = Promise.resolve(value) as FulfilledPromise<TValue>;\n\n promise.status = \"fulfilled\";\n promise.value = value;\n\n return promise;\n}\n"],"names":[],"mappings":";;;;;AAGA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAgB,CAAhB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsC,CAAS,CAA/C,CAAA,CAAA,CAAA,CAA4D,EAA5D;IACE,CAAF,CAAA,CAAA,CAAA,EAAQ,CAAR,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAkB,CAAlB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,CAAC,CAA1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiC,CAAC,CAAlC,CAAA,CAAA,CAAA,CAAuC,CAA6B;IAElE,CAAF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAV,CAAA,CAAA,CAAA,CAAA,EAAA,EAAmB,CAAnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA8B;IAC5B,CAAF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAV,CAAA,CAAA,CAAA,EAAA,EAAkB,CAAlB,CAAA,CAAA,CAAA,CAAuB;IAErB,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB;AAChB;"}
@@ -0,0 +1,8 @@
1
+ import type { RejectedPromise } from "./types/RejectedPromise.js";
2
+ /**
3
+ * @internal
4
+ *
5
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
6
+ */
7
+ export declare function createRejectedPromise<TValue = unknown>(reason: unknown): RejectedPromise<TValue>;
8
+ //# sourceMappingURL=createRejectedPromise.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
5
+ */
6
+ export function createRejectedPromise(reason) {
7
+ const promise = Promise.reject(reason);
8
+ // prevent potential edge cases leaking unhandled error rejections
9
+ promise.catch(() => { });
10
+ promise.status = "rejected";
11
+ promise.reason = reason;
12
+ return promise;
13
+ }
14
+ //# sourceMappingURL=createRejectedPromise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRejectedPromise.js","sources":["../../../src/utilities/internal/createRejectedPromise.ts"],"sourcesContent":["import type { RejectedPromise } from \"./types/RejectedPromise.js\";\n\n/** @internal */\nexport function createRejectedPromise<TValue = unknown>(reason: unknown) {\n const promise = Promise.reject(reason) as RejectedPromise<TValue>;\n\n // prevent potential edge cases leaking unhandled error rejections\n promise.catch(() => {});\n\n promise.status = \"rejected\";\n promise.reason = reason;\n\n return promise;\n}\n"],"names":[],"mappings":";;;;;AAGA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAgB,CAAhB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqC,CAAmB,CAAxD,CAAA,CAAA,CAAA,CAAA,CAAuE,EAAvE;IACE,CAAF,CAAA,CAAA,CAAA,EAAQ,CAAR,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAkB,CAAlB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,CAAC,CAA1B,CAAA,CAAA,CAAA,CAAA,CAAgC,CAAC,CAAjC,CAAA,CAAA,CAAA,CAAA,CAAuC,CAA4B;IAEjE,CAAF,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;IACE,CAAF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAV,CAAA,CAAA,CAAA,CAAe,CAAC,CAAhB,EAAmB,CAAnB,EAAA,EAAuB,CAAC,CAAC;IAEvB,CAAF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAV,CAAA,CAAA,CAAA,CAAA,EAAA,EAAmB,CAAnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6B;IAC3B,CAAF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAV,CAAA,CAAA,CAAA,CAAA,EAAA,EAAmB,CAAnB,CAAA,CAAA,CAAA,CAAA,CAAyB;IAEvB,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB;AAChB;"}
@@ -0,0 +1,5 @@
1
+ import type { SelectionSetNode } from "graphql";
2
+ export declare function dealias(fieldValue: Record<string, any> | null | undefined, selectionSet: SelectionSetNode): {
3
+ [x: string]: any;
4
+ } | null | undefined;
5
+ //# sourceMappingURL=dealias.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { Kind } from "graphql";
2
+ // Note: this is a shallow dealias function. We might consider a future
3
+ // improvement of dealiasing all nested data. Until that need arises, we can
4
+ // keep this simple.
5
+ export function dealias(fieldValue, selectionSet) {
6
+ if (!fieldValue) {
7
+ return fieldValue;
8
+ }
9
+ const data = { ...fieldValue };
10
+ for (const selection of selectionSet.selections) {
11
+ if (selection.kind === Kind.FIELD && selection.alias) {
12
+ data[selection.name.value] = fieldValue[selection.alias.value];
13
+ delete data[selection.alias.value];
14
+ }
15
+ }
16
+ return data;
17
+ }
18
+ //# sourceMappingURL=dealias.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dealias.js","sourceRoot":"","sources":["../../../src/utilities/internal/dealias.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,uEAAuE;AACvE,4EAA4E;AAC5E,oBAAoB;AACpB,MAAM,UAAU,OAAO,CACrB,UAAkD,EAClD,YAA8B;IAE9B,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,MAAM,IAAI,GAAG,EAAE,GAAG,UAAU,EAAE,CAAC;IAE/B,KAAK,MAAM,SAAS,IAAI,YAAY,CAAC,UAAU,EAAE,CAAC;QAChD,IAAI,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACrD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC/D,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import type { SelectionSetNode } from \"graphql\";\nimport { Kind } from \"graphql\";\n\n// Note: this is a shallow dealias function. We might consider a future\n// improvement of dealiasing all nested data. Until that need arises, we can\n// keep this simple.\nexport function dealias(\n fieldValue: Record<string, any> | null | undefined,\n selectionSet: SelectionSetNode\n) {\n if (!fieldValue) {\n return fieldValue;\n }\n\n const data = { ...fieldValue };\n\n for (const selection of selectionSet.selections) {\n if (selection.kind === Kind.FIELD && selection.alias) {\n data[selection.name.value] = fieldValue[selection.alias.value];\n delete data[selection.alias.value];\n }\n }\n\n return data;\n}\n"]}