@apollo/client 4.0.0-rc.2 → 4.0.0-rc.3

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 (800) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/__cjs/cache/core/cache.cjs.map +1 -1
  3. package/__cjs/cache/index.cjs.map +1 -1
  4. package/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
  5. package/__cjs/cache/inmemory/helpers.cjs.map +1 -1
  6. package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  7. package/__cjs/cache/inmemory/key-extractor.cjs.map +1 -1
  8. package/__cjs/cache/inmemory/policies.cjs.map +1 -1
  9. package/__cjs/cache/inmemory/reactiveVars.cjs.map +1 -1
  10. package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
  11. package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
  12. package/__cjs/core/ApolloClient.cjs +20 -4
  13. package/__cjs/core/ApolloClient.cjs.map +1 -1
  14. package/__cjs/core/ApolloClient.d.cts +17 -2
  15. package/__cjs/core/ObservableQuery.cjs.map +1 -1
  16. package/__cjs/core/QueryInfo.cjs.map +1 -1
  17. package/__cjs/core/QueryManager.cjs.map +1 -1
  18. package/__cjs/core/equalByQuery.cjs.map +1 -1
  19. package/__cjs/core/index.cjs.map +1 -1
  20. package/__cjs/core/networkStatus.cjs.map +1 -1
  21. package/__cjs/dev/index.cjs.map +1 -1
  22. package/__cjs/dev/loadDevMessages.cjs.map +1 -1
  23. package/__cjs/dev/loadErrorMessageHandler.cjs.map +1 -1
  24. package/__cjs/dev/loadErrorMessages.cjs.map +1 -1
  25. package/__cjs/dev/setErrorMessageHandler.cjs.map +1 -1
  26. package/__cjs/dev/symbol.cjs.map +1 -1
  27. package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -1
  28. package/__cjs/errors/CombinedProtocolErrors.cjs.map +1 -1
  29. package/__cjs/errors/LinkError.cjs.map +1 -1
  30. package/__cjs/errors/LocalStateError.cjs.map +1 -1
  31. package/__cjs/errors/ServerError.cjs.map +1 -1
  32. package/__cjs/errors/ServerParseError.cjs.map +1 -1
  33. package/__cjs/errors/UnconventionalError.cjs.map +1 -1
  34. package/__cjs/errors/index.cjs.map +1 -1
  35. package/__cjs/errors/isErrorLike.cjs.map +1 -1
  36. package/__cjs/errors/utils.cjs.map +1 -1
  37. package/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
  38. package/__cjs/incremental/index.cjs.map +1 -1
  39. package/__cjs/invariantErrorCodes.cjs.map +1 -1
  40. package/__cjs/link/batch/batchLink.cjs.map +1 -1
  41. package/__cjs/link/batch/index.cjs.map +1 -1
  42. package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -1
  43. package/__cjs/link/batch-http/index.cjs.map +1 -1
  44. package/__cjs/link/client-awareness/index.cjs.map +1 -1
  45. package/__cjs/link/core/concat.cjs.map +1 -1
  46. package/__cjs/link/core/empty.cjs.map +1 -1
  47. package/__cjs/link/core/execute.cjs.map +1 -1
  48. package/__cjs/link/core/from.cjs.map +1 -1
  49. package/__cjs/link/core/split.cjs.map +1 -1
  50. package/__cjs/link/http/BaseHttpLink.cjs.map +1 -1
  51. package/__cjs/link/http/HttpLink.cjs.map +1 -1
  52. package/__cjs/link/http/index.cjs.map +1 -1
  53. package/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
  54. package/__cjs/link/http/rewriteURIForGET.cjs.map +1 -1
  55. package/__cjs/link/http/selectHttpOptionsAndBody.cjs.map +1 -1
  56. package/__cjs/link/index.cjs.map +1 -1
  57. package/__cjs/link/remove-typename/index.cjs.map +1 -1
  58. package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs.map +1 -1
  59. package/__cjs/link/retry/delayFunction.cjs.map +1 -1
  60. package/__cjs/link/retry/index.cjs.map +1 -1
  61. package/__cjs/link/retry/retryFunction.cjs.map +1 -1
  62. package/__cjs/link/retry/retryLink.cjs.map +1 -1
  63. package/__cjs/link/utils/createOperation.cjs.map +1 -1
  64. package/__cjs/link/utils/filterOperationVariables.cjs.map +1 -1
  65. package/__cjs/link/utils/index.cjs.map +1 -1
  66. package/__cjs/link/utils/transformOperation.cjs.map +1 -1
  67. package/__cjs/link/utils/validateOperation.cjs.map +1 -1
  68. package/__cjs/local-state/LocalState.cjs.map +1 -1
  69. package/__cjs/local-state/index.cjs.map +1 -1
  70. package/__cjs/masking/index.cjs.map +1 -1
  71. package/__cjs/masking/maskDefinition.cjs.map +1 -1
  72. package/__cjs/masking/maskFragment.cjs.map +1 -1
  73. package/__cjs/masking/maskOperation.cjs.map +1 -1
  74. package/__cjs/masking/utils.cjs.map +1 -1
  75. package/__cjs/react/context/ApolloContext.cjs.map +1 -1
  76. package/__cjs/react/hooks/constants.cjs.map +1 -1
  77. package/__cjs/react/hooks/internal/__use.cjs.map +1 -1
  78. package/__cjs/react/hooks/internal/index.cjs.map +1 -1
  79. package/__cjs/react/hooks/internal/useDeepMemo.cjs.map +1 -1
  80. package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.cjs.map +1 -1
  81. package/__cjs/react/hooks/internal/useRenderGuard.cjs.map +1 -1
  82. package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs.map +1 -1
  83. package/__cjs/react/hooks/internal/wrapHook.cjs.map +1 -1
  84. package/__cjs/react/hooks/useApolloClient.cjs.map +1 -1
  85. package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
  86. package/__cjs/react/hooks/useFragment.cjs.map +1 -1
  87. package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
  88. package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -1
  89. package/__cjs/react/hooks/useMutation.cjs.map +1 -1
  90. package/__cjs/react/hooks/useQuery.cjs.map +1 -1
  91. package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -1
  92. package/__cjs/react/hooks/useReactiveVar.cjs.map +1 -1
  93. package/__cjs/react/hooks/useReadQuery.cjs.map +1 -1
  94. package/__cjs/react/hooks/useSubscription.cjs.map +1 -1
  95. package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
  96. package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
  97. package/__cjs/react/hooks/useSyncExternalStore.cjs.map +1 -1
  98. package/__cjs/react/index.cjs +2 -1
  99. package/__cjs/react/index.cjs.map +1 -1
  100. package/__cjs/react/index.d.cts +1 -0
  101. package/__cjs/react/index.react-server.cjs.map +1 -1
  102. package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -1
  103. package/__cjs/react/internal/cache/getSuspenseCache.cjs.map +1 -1
  104. package/__cjs/react/internal/compiler-runtime/index.cjs +32 -0
  105. package/__cjs/react/internal/compiler-runtime/index.cjs.map +1 -0
  106. package/__cjs/react/internal/compiler-runtime/index.d.cts +8 -0
  107. package/__cjs/react/internal/index.cjs.map +1 -1
  108. package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
  109. package/__cjs/react/ssr/getDataFromTree.cjs.map +1 -1
  110. package/__cjs/react/ssr/index.cjs.map +1 -1
  111. package/__cjs/react/ssr/renderToStringWithData.cjs.map +1 -1
  112. package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -1
  113. package/__cjs/testing/core/mocking/mockLink.cjs.map +1 -1
  114. package/__cjs/testing/index.cjs.map +1 -1
  115. package/__cjs/testing/react/index.cjs.map +1 -1
  116. package/__cjs/utilities/caching/index.cjs.map +1 -1
  117. package/__cjs/utilities/caching/sizes.cjs.map +1 -1
  118. package/__cjs/utilities/common/stripTypename.cjs.map +1 -1
  119. package/__cjs/utilities/environment/index.cjs.map +1 -1
  120. package/__cjs/utilities/environment/index.development.cjs.map +1 -1
  121. package/__cjs/utilities/environment/index.production.cjs.map +1 -1
  122. package/__cjs/utilities/graphql/isFormattedExecutionResult.cjs.map +1 -1
  123. package/__cjs/utilities/graphql/operations.cjs.map +1 -1
  124. package/__cjs/utilities/graphql/print.cjs.map +1 -1
  125. package/__cjs/utilities/graphql/storeUtils.cjs.map +1 -1
  126. package/__cjs/utilities/graphql/transform.cjs.map +1 -1
  127. package/__cjs/utilities/index.cjs.map +1 -1
  128. package/__cjs/utilities/internal/argumentsObjectFromField.cjs.map +1 -1
  129. package/__cjs/utilities/internal/caches.cjs.map +1 -1
  130. package/__cjs/utilities/internal/canUseDOM.cjs.map +1 -1
  131. package/__cjs/utilities/internal/checkDocument.cjs.map +1 -1
  132. package/__cjs/utilities/internal/cloneDeep.cjs.map +1 -1
  133. package/__cjs/utilities/internal/compact.cjs.map +1 -1
  134. package/__cjs/utilities/internal/createFragmentMap.cjs.map +1 -1
  135. package/__cjs/utilities/internal/createFulfilledPromise.cjs.map +1 -1
  136. package/__cjs/utilities/internal/createRejectedPromise.cjs.map +1 -1
  137. package/__cjs/utilities/internal/dealias.cjs.map +1 -1
  138. package/__cjs/utilities/internal/decoratePromise.cjs.map +1 -1
  139. package/__cjs/utilities/internal/deepFreeze.cjs.map +1 -1
  140. package/__cjs/utilities/internal/filterMap.cjs.map +1 -1
  141. package/__cjs/utilities/internal/getDefaultValues.cjs.map +1 -1
  142. package/__cjs/utilities/internal/getFragmentDefinition.cjs.map +1 -1
  143. package/__cjs/utilities/internal/getFragmentDefinitions.cjs.map +1 -1
  144. package/__cjs/utilities/internal/getFragmentFromSelection.cjs.map +1 -1
  145. package/__cjs/utilities/internal/getFragmentQueryDocument.cjs.map +1 -1
  146. package/__cjs/utilities/internal/getGraphQLErrorsFromResult.cjs.map +1 -1
  147. package/__cjs/utilities/internal/getMainDefinition.cjs.map +1 -1
  148. package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
  149. package/__cjs/utilities/internal/getOperationDefinition.cjs.map +1 -1
  150. package/__cjs/utilities/internal/getOperationName.cjs.map +1 -1
  151. package/__cjs/utilities/internal/getQueryDefinition.cjs.map +1 -1
  152. package/__cjs/utilities/internal/getStoreKeyName.cjs.map +1 -1
  153. package/__cjs/utilities/internal/globals/global.cjs.map +1 -1
  154. package/__cjs/utilities/internal/globals/index.cjs.map +1 -1
  155. package/__cjs/utilities/internal/globals/maybe.cjs.map +1 -1
  156. package/__cjs/utilities/internal/graphQLResultHasError.cjs.map +1 -1
  157. package/__cjs/utilities/internal/hasDirectives.cjs.map +1 -1
  158. package/__cjs/utilities/internal/hasForcedResolvers.cjs.map +1 -1
  159. package/__cjs/utilities/internal/index.cjs.map +1 -1
  160. package/__cjs/utilities/internal/index.production.cjs.map +1 -1
  161. package/__cjs/utilities/internal/isArray.cjs.map +1 -1
  162. package/__cjs/utilities/internal/isDocumentNode.cjs.map +1 -1
  163. package/__cjs/utilities/internal/isField.cjs.map +1 -1
  164. package/__cjs/utilities/internal/isNonEmptyArray.cjs.map +1 -1
  165. package/__cjs/utilities/internal/isNonNullObject.cjs.map +1 -1
  166. package/__cjs/utilities/internal/isPlainObject.cjs.map +1 -1
  167. package/__cjs/utilities/internal/makeReference.cjs.map +1 -1
  168. package/__cjs/utilities/internal/makeUniqueId.cjs.map +1 -1
  169. package/__cjs/utilities/internal/maybeDeepFreeze.cjs.map +1 -1
  170. package/__cjs/utilities/internal/mergeDeep.cjs.map +1 -1
  171. package/__cjs/utilities/internal/mergeDeepArray.cjs.map +1 -1
  172. package/__cjs/utilities/internal/mergeOptions.cjs.map +1 -1
  173. package/__cjs/utilities/internal/omitDeep.cjs.map +1 -1
  174. package/__cjs/utilities/internal/preventUnhandledRejection.cjs.map +1 -1
  175. package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs.map +1 -1
  176. package/__cjs/utilities/internal/resultKeyNameFromField.cjs.map +1 -1
  177. package/__cjs/utilities/internal/shouldInclude.cjs.map +1 -1
  178. package/__cjs/utilities/internal/storeKeyNameFromField.cjs.map +1 -1
  179. package/__cjs/utilities/internal/stringifyForDisplay.cjs.map +1 -1
  180. package/__cjs/utilities/internal/toQueryResult.cjs.map +1 -1
  181. package/__cjs/utilities/internal/valueToObjectRepresentation.cjs.map +1 -1
  182. package/__cjs/utilities/invariant/index.cjs.map +1 -1
  183. package/__cjs/utilities/invariant/index.development.cjs.map +1 -1
  184. package/__cjs/utilities/policies/pagination.cjs.map +1 -1
  185. package/__cjs/utilities/shared/canonicalStringify.cjs.map +1 -1
  186. package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -1
  187. package/__cjs/version.cjs +1 -1
  188. package/__cjs/version.cjs.map +1 -1
  189. package/cache/core/cache.js.map +1 -1
  190. package/cache/core/types/Cache.d.ts +1 -1
  191. package/cache/core/types/Cache.js +1 -1
  192. package/cache/core/types/Cache.js.map +1 -1
  193. package/cache/core/types/DataProxy.d.ts +1 -1
  194. package/cache/core/types/DataProxy.js +1 -1
  195. package/cache/core/types/DataProxy.js.map +1 -1
  196. package/cache/core/types/common.d.ts +1 -1
  197. package/cache/core/types/common.js +1 -1
  198. package/cache/core/types/common.js.map +1 -1
  199. package/cache/index.d.ts +1 -1
  200. package/cache/index.js +1 -1
  201. package/cache/index.js.map +1 -1
  202. package/cache/inmemory/entityStore.d.ts +1 -1
  203. package/cache/inmemory/entityStore.js.map +1 -1
  204. package/cache/inmemory/fragmentRegistry.d.ts +1 -1
  205. package/cache/inmemory/fragmentRegistry.js +1 -1
  206. package/cache/inmemory/fragmentRegistry.js.map +1 -1
  207. package/cache/inmemory/helpers.d.ts +1 -1
  208. package/cache/inmemory/helpers.js +1 -1
  209. package/cache/inmemory/helpers.js.map +1 -1
  210. package/cache/inmemory/key-extractor.d.ts +1 -1
  211. package/cache/inmemory/key-extractor.js.map +1 -1
  212. package/cache/inmemory/policies.d.ts +1 -1
  213. package/cache/inmemory/policies.js.map +1 -1
  214. package/cache/inmemory/reactiveVars.d.ts +1 -1
  215. package/cache/inmemory/reactiveVars.js +1 -1
  216. package/cache/inmemory/reactiveVars.js.map +1 -1
  217. package/cache/inmemory/readFromStore.d.ts +1 -1
  218. package/cache/inmemory/readFromStore.js.map +1 -1
  219. package/cache/inmemory/types.d.ts +1 -1
  220. package/cache/inmemory/types.js +1 -1
  221. package/cache/inmemory/types.js.map +1 -1
  222. package/cache/inmemory/writeToStore.d.ts +1 -1
  223. package/cache/inmemory/writeToStore.js.map +1 -1
  224. package/core/ApolloClient.d.ts +17 -2
  225. package/core/ApolloClient.js +20 -4
  226. package/core/ApolloClient.js.map +1 -1
  227. package/core/QueryInfo.js.map +1 -1
  228. package/core/QueryManager.d.ts +1 -1
  229. package/core/QueryManager.js.map +1 -1
  230. package/core/equalByQuery.d.ts +1 -1
  231. package/core/equalByQuery.js +1 -1
  232. package/core/equalByQuery.js.map +1 -1
  233. package/core/index.d.ts +1 -1
  234. package/core/index.js +1 -1
  235. package/core/index.js.map +1 -1
  236. package/core/networkStatus.d.ts +1 -1
  237. package/core/networkStatus.js +1 -1
  238. package/core/networkStatus.js.map +1 -1
  239. package/core/types.js +1 -1
  240. package/core/types.js.map +1 -1
  241. package/core/watchQueryOptions.js +1 -1
  242. package/core/watchQueryOptions.js.map +1 -1
  243. package/dev/index.d.ts +1 -1
  244. package/dev/index.js +1 -1
  245. package/dev/index.js.map +1 -1
  246. package/dev/loadDevMessages.d.ts +1 -1
  247. package/dev/loadDevMessages.js +1 -1
  248. package/dev/loadDevMessages.js.map +1 -1
  249. package/dev/loadErrorMessageHandler.d.ts +1 -1
  250. package/dev/loadErrorMessageHandler.js +1 -1
  251. package/dev/loadErrorMessageHandler.js.map +1 -1
  252. package/dev/loadErrorMessages.d.ts +1 -1
  253. package/dev/loadErrorMessages.js +1 -1
  254. package/dev/loadErrorMessages.js.map +1 -1
  255. package/dev/setErrorMessageHandler.d.ts +1 -1
  256. package/dev/setErrorMessageHandler.js +1 -1
  257. package/dev/setErrorMessageHandler.js.map +1 -1
  258. package/dev/symbol.d.ts +1 -1
  259. package/dev/symbol.js +1 -1
  260. package/dev/symbol.js.map +1 -1
  261. package/errors/CombinedGraphQLErrors.d.ts +1 -1
  262. package/errors/CombinedGraphQLErrors.js +1 -1
  263. package/errors/CombinedGraphQLErrors.js.map +1 -1
  264. package/errors/CombinedProtocolErrors.d.ts +1 -1
  265. package/errors/CombinedProtocolErrors.js +1 -1
  266. package/errors/CombinedProtocolErrors.js.map +1 -1
  267. package/errors/LinkError.js.map +1 -1
  268. package/errors/LocalStateError.d.ts +1 -1
  269. package/errors/LocalStateError.js +1 -1
  270. package/errors/LocalStateError.js.map +1 -1
  271. package/errors/ServerError.d.ts +1 -1
  272. package/errors/ServerError.js +1 -1
  273. package/errors/ServerError.js.map +1 -1
  274. package/errors/ServerParseError.d.ts +1 -1
  275. package/errors/ServerParseError.js +1 -1
  276. package/errors/ServerParseError.js.map +1 -1
  277. package/errors/UnconventionalError.d.ts +1 -1
  278. package/errors/UnconventionalError.js +1 -1
  279. package/errors/UnconventionalError.js.map +1 -1
  280. package/errors/index.d.ts +1 -1
  281. package/errors/index.js +1 -1
  282. package/errors/index.js.map +1 -1
  283. package/errors/isErrorLike.d.ts +1 -1
  284. package/errors/isErrorLike.js +1 -1
  285. package/errors/isErrorLike.js.map +1 -1
  286. package/errors/utils.d.ts +1 -1
  287. package/errors/utils.js +1 -1
  288. package/errors/utils.js.map +1 -1
  289. package/incremental/handlers/defer20220824.d.ts +1 -1
  290. package/incremental/handlers/defer20220824.js +1 -1
  291. package/incremental/handlers/defer20220824.js.map +1 -1
  292. package/incremental/handlers/notImplemented.d.ts +1 -1
  293. package/incremental/index.d.ts +1 -1
  294. package/incremental/index.js.map +1 -1
  295. package/incremental/types.js +1 -1
  296. package/incremental/types.js.map +1 -1
  297. package/invariantErrorCodes.d.ts +1 -1
  298. package/invariantErrorCodes.js +4 -1
  299. package/invariantErrorCodes.js.map +1 -1
  300. package/legacyEntryPoints/react/internal/compiler-runtime/compiler-runtime.cjs +1 -0
  301. package/legacyEntryPoints/react/internal/compiler-runtime/compiler-runtime.d.cts +1 -0
  302. package/legacyEntryPoints/react/internal/compiler-runtime/index.d.ts +1 -0
  303. package/legacyEntryPoints/react/internal/compiler-runtime/index.js +1 -0
  304. package/link/batch/batchLink.d.ts +1 -1
  305. package/link/batch/batchLink.js +1 -1
  306. package/link/batch/batchLink.js.map +1 -1
  307. package/link/batch/batching.d.ts +1 -1
  308. package/link/batch/batching.js +1 -1
  309. package/link/batch/batching.js.map +1 -1
  310. package/link/batch/index.d.ts +1 -1
  311. package/link/batch/index.js +1 -1
  312. package/link/batch/index.js.map +1 -1
  313. package/link/batch-http/batchHttpLink.d.ts +1 -1
  314. package/link/batch-http/batchHttpLink.js +1 -1
  315. package/link/batch-http/batchHttpLink.js.map +1 -1
  316. package/link/batch-http/index.d.ts +1 -1
  317. package/link/batch-http/index.js +1 -1
  318. package/link/batch-http/index.js.map +1 -1
  319. package/link/client-awareness/ClientAwarenessLink.d.ts +1 -1
  320. package/link/client-awareness/ClientAwarenessLink.js +1 -1
  321. package/link/client-awareness/ClientAwarenessLink.js.map +1 -1
  322. package/link/client-awareness/index.d.ts +1 -1
  323. package/link/client-awareness/index.js +1 -1
  324. package/link/client-awareness/index.js.map +1 -1
  325. package/link/context/index.d.ts +1 -1
  326. package/link/context/index.js +1 -1
  327. package/link/context/index.js.map +1 -1
  328. package/link/core/concat.d.ts +1 -1
  329. package/link/core/concat.js +1 -1
  330. package/link/core/concat.js.map +1 -1
  331. package/link/core/empty.d.ts +1 -1
  332. package/link/core/empty.js +1 -1
  333. package/link/core/empty.js.map +1 -1
  334. package/link/core/execute.d.ts +1 -1
  335. package/link/core/execute.js +1 -1
  336. package/link/core/execute.js.map +1 -1
  337. package/link/core/from.d.ts +1 -1
  338. package/link/core/from.js +1 -1
  339. package/link/core/from.js.map +1 -1
  340. package/link/core/split.d.ts +1 -1
  341. package/link/core/split.js +1 -1
  342. package/link/core/split.js.map +1 -1
  343. package/link/core/types.d.ts +1 -1
  344. package/link/core/types.js +1 -1
  345. package/link/core/types.js.map +1 -1
  346. package/link/error/index.d.ts +1 -1
  347. package/link/error/index.js +1 -1
  348. package/link/error/index.js.map +1 -1
  349. package/link/http/BaseHttpLink.d.ts +1 -1
  350. package/link/http/BaseHttpLink.js +1 -1
  351. package/link/http/BaseHttpLink.js.map +1 -1
  352. package/link/http/HttpLink.d.ts +1 -1
  353. package/link/http/HttpLink.js +1 -1
  354. package/link/http/HttpLink.js.map +1 -1
  355. package/link/http/checkFetcher.d.ts +1 -1
  356. package/link/http/checkFetcher.js.map +1 -1
  357. package/link/http/createSignalIfSupported.d.ts +1 -1
  358. package/link/http/createSignalIfSupported.js +1 -1
  359. package/link/http/createSignalIfSupported.js.map +1 -1
  360. package/link/http/index.d.ts +1 -1
  361. package/link/http/index.js +1 -1
  362. package/link/http/index.js.map +1 -1
  363. package/link/http/parseAndCheckHttpResponse.d.ts +1 -1
  364. package/link/http/parseAndCheckHttpResponse.js.map +1 -1
  365. package/link/http/rewriteURIForGET.d.ts +1 -1
  366. package/link/http/rewriteURIForGET.js +1 -1
  367. package/link/http/rewriteURIForGET.js.map +1 -1
  368. package/link/http/selectHttpOptionsAndBody.d.ts +1 -1
  369. package/link/http/selectHttpOptionsAndBody.js +1 -1
  370. package/link/http/selectHttpOptionsAndBody.js.map +1 -1
  371. package/link/http/selectURI.d.ts +1 -1
  372. package/link/http/selectURI.js +1 -1
  373. package/link/http/selectURI.js.map +1 -1
  374. package/link/http/serializeFetchParameter.d.ts +1 -1
  375. package/link/http/serializeFetchParameter.js.map +1 -1
  376. package/link/index.d.ts +1 -1
  377. package/link/index.js +1 -1
  378. package/link/index.js.map +1 -1
  379. package/link/persisted-queries/index.d.ts +1 -1
  380. package/link/remove-typename/index.d.ts +1 -1
  381. package/link/remove-typename/index.js.map +1 -1
  382. package/link/remove-typename/removeTypenameFromVariables.d.ts +1 -1
  383. package/link/remove-typename/removeTypenameFromVariables.js +1 -1
  384. package/link/remove-typename/removeTypenameFromVariables.js.map +1 -1
  385. package/link/retry/delayFunction.d.ts +1 -1
  386. package/link/retry/delayFunction.js +1 -1
  387. package/link/retry/delayFunction.js.map +1 -1
  388. package/link/retry/index.d.ts +1 -1
  389. package/link/retry/index.js +1 -1
  390. package/link/retry/index.js.map +1 -1
  391. package/link/retry/retryFunction.d.ts +1 -1
  392. package/link/retry/retryFunction.js +1 -1
  393. package/link/retry/retryFunction.js.map +1 -1
  394. package/link/retry/retryLink.d.ts +1 -1
  395. package/link/retry/retryLink.js +1 -1
  396. package/link/retry/retryLink.js.map +1 -1
  397. package/link/schema/index.d.ts +1 -1
  398. package/link/schema/index.js +1 -1
  399. package/link/schema/index.js.map +1 -1
  400. package/link/subscriptions/index.d.ts +1 -1
  401. package/link/subscriptions/index.js +1 -1
  402. package/link/subscriptions/index.js.map +1 -1
  403. package/link/utils/createOperation.d.ts +1 -1
  404. package/link/utils/createOperation.js +1 -1
  405. package/link/utils/createOperation.js.map +1 -1
  406. package/link/utils/filterOperationVariables.d.ts +1 -1
  407. package/link/utils/filterOperationVariables.js +1 -1
  408. package/link/utils/filterOperationVariables.js.map +1 -1
  409. package/link/utils/index.d.ts +1 -1
  410. package/link/utils/index.js +1 -1
  411. package/link/utils/index.js.map +1 -1
  412. package/link/utils/transformOperation.d.ts +1 -1
  413. package/link/utils/transformOperation.js +1 -1
  414. package/link/utils/transformOperation.js.map +1 -1
  415. package/link/utils/validateOperation.d.ts +1 -1
  416. package/link/utils/validateOperation.js.map +1 -1
  417. package/link/ws/index.d.ts +1 -1
  418. package/link/ws/index.js +1 -1
  419. package/link/ws/index.js.map +1 -1
  420. package/local-state/LocalState.d.ts +1 -1
  421. package/local-state/LocalState.js.map +1 -1
  422. package/local-state/index.d.ts +1 -1
  423. package/local-state/index.js +1 -1
  424. package/local-state/index.js.map +1 -1
  425. package/masking/GraphQLCodegenDataMasking.d.ts +1 -1
  426. package/masking/GraphQLCodegenDataMasking.js +1 -1
  427. package/masking/GraphQLCodegenDataMasking.js.map +1 -1
  428. package/masking/index.d.ts +1 -1
  429. package/masking/index.js +1 -1
  430. package/masking/index.js.map +1 -1
  431. package/masking/internal/types.d.ts +1 -1
  432. package/masking/internal/types.js +1 -1
  433. package/masking/internal/types.js.map +1 -1
  434. package/masking/maskDefinition.d.ts +1 -1
  435. package/masking/maskDefinition.js.map +1 -1
  436. package/masking/maskFragment.js.map +1 -1
  437. package/masking/maskOperation.js.map +1 -1
  438. package/masking/types.d.ts +1 -1
  439. package/masking/types.js +1 -1
  440. package/masking/types.js.map +1 -1
  441. package/masking/utils.js.map +1 -1
  442. package/package.json +10 -4
  443. package/react/compiled/index.d.ts +2 -0
  444. package/react/compiled/index.js +2 -0
  445. package/react/compiled/index.js.map +1 -0
  446. package/react/context/ApolloConsumer.d.ts +1 -1
  447. package/react/context/ApolloConsumer.js.map +1 -1
  448. package/react/context/ApolloContext.d.ts +1 -1
  449. package/react/context/ApolloContext.js.map +1 -1
  450. package/react/context/ApolloProvider.d.ts +1 -1
  451. package/react/context/ApolloProvider.js.map +1 -1
  452. package/react/hooks/constants.d.ts +1 -1
  453. package/react/hooks/constants.js +1 -1
  454. package/react/hooks/constants.js.map +1 -1
  455. package/react/hooks/internal/__use.d.ts +1 -1
  456. package/react/hooks/internal/__use.js +1 -1
  457. package/react/hooks/internal/__use.js.map +1 -1
  458. package/react/hooks/internal/index.d.ts +1 -1
  459. package/react/hooks/internal/index.js +1 -1
  460. package/react/hooks/internal/index.js.map +1 -1
  461. package/react/hooks/internal/useDeepMemo.d.ts +1 -1
  462. package/react/hooks/internal/useDeepMemo.js +1 -1
  463. package/react/hooks/internal/useDeepMemo.js.map +1 -1
  464. package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts +1 -1
  465. package/react/hooks/internal/useIsomorphicLayoutEffect.js +1 -1
  466. package/react/hooks/internal/useIsomorphicLayoutEffect.js.map +1 -1
  467. package/react/hooks/internal/useRenderGuard.d.ts +1 -1
  468. package/react/hooks/internal/useRenderGuard.js +1 -1
  469. package/react/hooks/internal/useRenderGuard.js.map +1 -1
  470. package/react/hooks/internal/validateSuspenseHookOptions.d.ts +1 -1
  471. package/react/hooks/internal/validateSuspenseHookOptions.js.map +1 -1
  472. package/react/hooks/internal/wrapHook.js.map +1 -1
  473. package/react/hooks/useApolloClient.d.ts +1 -1
  474. package/react/hooks/useApolloClient.js +1 -14
  475. package/react/hooks/useApolloClient.js.map +1 -1
  476. package/react/hooks/useBackgroundQuery.js +7 -7
  477. package/react/hooks/useBackgroundQuery.js.map +1 -1
  478. package/react/hooks/useFragment.d.ts +1 -1
  479. package/react/hooks/useFragment.js +12 -12
  480. package/react/hooks/useFragment.js.map +1 -1
  481. package/react/hooks/useLazyQuery.js +14 -14
  482. package/react/hooks/useLazyQuery.js.map +1 -1
  483. package/react/hooks/useLoadableQuery.js +69 -229
  484. package/react/hooks/useLoadableQuery.js.map +1 -1
  485. package/react/hooks/useMutation.js +82 -192
  486. package/react/hooks/useMutation.js.map +1 -1
  487. package/react/hooks/useQuery.js +54 -225
  488. package/react/hooks/useQuery.js.map +1 -1
  489. package/react/hooks/useQueryRefHandlers.js +24 -64
  490. package/react/hooks/useQueryRefHandlers.js.map +1 -1
  491. package/react/hooks/useReactiveVar.d.ts +1 -1
  492. package/react/hooks/useReactiveVar.js +1 -1
  493. package/react/hooks/useReactiveVar.js.map +1 -1
  494. package/react/hooks/useReadQuery.d.ts +1 -1
  495. package/react/hooks/useReadQuery.js +3 -3
  496. package/react/hooks/useReadQuery.js.map +1 -1
  497. package/react/hooks/useSubscription.js +4 -4
  498. package/react/hooks/useSubscription.js.map +1 -1
  499. package/react/hooks/useSuspenseFragment.d.ts +1 -1
  500. package/react/hooks/useSuspenseFragment.js +1 -1
  501. package/react/hooks/useSuspenseFragment.js.map +1 -1
  502. package/react/hooks/useSuspenseQuery.js +34 -59
  503. package/react/hooks/useSuspenseQuery.js.map +1 -1
  504. package/react/hooks/useSyncExternalStore.d.ts +1 -1
  505. package/react/hooks/useSyncExternalStore.js.map +1 -1
  506. package/react/hooks-compiled/constants.d.ts +3 -0
  507. package/react/hooks-compiled/constants.js +2 -0
  508. package/react/hooks-compiled/constants.js.map +1 -0
  509. package/react/hooks-compiled/internal/__use.d.ts +4 -0
  510. package/react/hooks-compiled/internal/__use.js +22 -0
  511. package/react/hooks-compiled/internal/__use.js.map +1 -0
  512. package/react/hooks-compiled/internal/index.d.ts +5 -0
  513. package/react/hooks-compiled/internal/index.js +6 -0
  514. package/react/hooks-compiled/internal/index.js.map +1 -0
  515. package/react/hooks-compiled/internal/useDeepMemo.d.ts +3 -0
  516. package/react/hooks-compiled/internal/useDeepMemo.js +13 -0
  517. package/react/hooks-compiled/internal/useDeepMemo.js.map +1 -0
  518. package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.d.ts +3 -0
  519. package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.js +9 -0
  520. package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.js.map +1 -0
  521. package/react/hooks-compiled/internal/useRenderGuard.d.ts +2 -0
  522. package/react/hooks-compiled/internal/useRenderGuard.js +42 -0
  523. package/react/hooks-compiled/internal/useRenderGuard.js.map +1 -0
  524. package/react/hooks-compiled/internal/validateSuspenseHookOptions.d.ts +3 -0
  525. package/react/hooks-compiled/internal/validateSuspenseHookOptions.js +22 -0
  526. package/react/hooks-compiled/internal/validateSuspenseHookOptions.js.map +1 -0
  527. package/react/hooks-compiled/internal/wrapHook.d.ts +66 -0
  528. package/react/hooks-compiled/internal/wrapHook.js +64 -0
  529. package/react/hooks-compiled/internal/wrapHook.js.map +1 -0
  530. package/react/hooks-compiled/useApolloClient.d.ts +18 -0
  531. package/react/hooks-compiled/useApolloClient.js +36 -0
  532. package/react/hooks-compiled/useApolloClient.js.map +1 -0
  533. package/react/hooks-compiled/useBackgroundQuery.d.ts +210 -0
  534. package/react/hooks-compiled/useBackgroundQuery.js +80 -0
  535. package/react/hooks-compiled/useBackgroundQuery.js.map +1 -0
  536. package/react/hooks-compiled/useFragment.d.ts +55 -0
  537. package/react/hooks-compiled/useFragment.js +97 -0
  538. package/react/hooks-compiled/useFragment.js.map +1 -0
  539. package/react/hooks-compiled/useLazyQuery.d.ts +280 -0
  540. package/react/hooks-compiled/useLazyQuery.js +181 -0
  541. package/react/hooks-compiled/useLazyQuery.js.map +1 -0
  542. package/react/hooks-compiled/useLoadableQuery.d.ts +175 -0
  543. package/react/hooks-compiled/useLoadableQuery.js +247 -0
  544. package/react/hooks-compiled/useLoadableQuery.js.map +1 -0
  545. package/react/hooks-compiled/useMutation.d.ts +280 -0
  546. package/react/hooks-compiled/useMutation.js +263 -0
  547. package/react/hooks-compiled/useMutation.js.map +1 -0
  548. package/react/hooks-compiled/useQuery.d.ts +265 -0
  549. package/react/hooks-compiled/useQuery.js +395 -0
  550. package/react/hooks-compiled/useQuery.js.map +1 -0
  551. package/react/hooks-compiled/useQueryRefHandlers.d.ts +44 -0
  552. package/react/hooks-compiled/useQueryRefHandlers.js +109 -0
  553. package/react/hooks-compiled/useQueryRefHandlers.js.map +1 -0
  554. package/react/hooks-compiled/useReactiveVar.d.ts +20 -0
  555. package/react/hooks-compiled/useReactiveVar.js +33 -0
  556. package/react/hooks-compiled/useReactiveVar.js.map +1 -0
  557. package/react/hooks-compiled/useReadQuery.d.ts +24 -0
  558. package/react/hooks-compiled/useReadQuery.js +43 -0
  559. package/react/hooks-compiled/useReadQuery.js.map +1 -0
  560. package/react/hooks-compiled/useSubscription.d.ts +178 -0
  561. package/react/hooks-compiled/useSubscription.js +223 -0
  562. package/react/hooks-compiled/useSubscription.js.map +1 -0
  563. package/react/hooks-compiled/useSuspenseFragment.d.ts +47 -0
  564. package/react/hooks-compiled/useSuspenseFragment.js +47 -0
  565. package/react/hooks-compiled/useSuspenseFragment.js.map +1 -0
  566. package/react/hooks-compiled/useSuspenseQuery.d.ts +204 -0
  567. package/react/hooks-compiled/useSuspenseQuery.js +144 -0
  568. package/react/hooks-compiled/useSuspenseQuery.js.map +1 -0
  569. package/react/hooks-compiled/useSyncExternalStore.d.ts +4 -0
  570. package/react/hooks-compiled/useSyncExternalStore.js +126 -0
  571. package/react/hooks-compiled/useSyncExternalStore.js.map +1 -0
  572. package/react/index.compiled.d.ts +26 -0
  573. package/react/index.compiled.js +21 -0
  574. package/react/index.compiled.js.map +1 -0
  575. package/react/index.d.ts +2 -1
  576. package/react/index.js +2 -1
  577. package/react/index.js.map +1 -1
  578. package/react/index.react-server.d.ts +1 -1
  579. package/react/index.react-server.js +1 -1
  580. package/react/index.react-server.js.map +1 -1
  581. package/react/internal/cache/FragmentReference.d.ts +1 -1
  582. package/react/internal/cache/FragmentReference.js +1 -1
  583. package/react/internal/cache/FragmentReference.js.map +1 -1
  584. package/react/internal/cache/SuspenseCache.d.ts +1 -1
  585. package/react/internal/cache/SuspenseCache.js +1 -1
  586. package/react/internal/cache/SuspenseCache.js.map +1 -1
  587. package/react/internal/cache/getSuspenseCache.d.ts +1 -1
  588. package/react/internal/cache/getSuspenseCache.js +1 -1
  589. package/react/internal/cache/getSuspenseCache.js.map +1 -1
  590. package/react/internal/cache/types.d.ts +1 -1
  591. package/react/internal/cache/types.js +1 -1
  592. package/react/internal/cache/types.js.map +1 -1
  593. package/react/internal/compiler-runtime/index.d.ts +8 -0
  594. package/react/internal/compiler-runtime/index.js +28 -0
  595. package/react/internal/compiler-runtime/index.js.map +1 -0
  596. package/react/internal/index.d.ts +1 -1
  597. package/react/internal/index.js +1 -1
  598. package/react/internal/index.js.map +1 -1
  599. package/react/internal/types.d.ts +1 -1
  600. package/react/internal/types.js +1 -1
  601. package/react/internal/types.js.map +1 -1
  602. package/react/query-preloader/createQueryPreloader.js +1 -1
  603. package/react/query-preloader/createQueryPreloader.js.map +1 -1
  604. package/react/ssr/getDataFromTree.d.ts +1 -1
  605. package/react/ssr/getDataFromTree.js.map +1 -1
  606. package/react/ssr/index.d.ts +1 -1
  607. package/react/ssr/index.js +1 -1
  608. package/react/ssr/index.js.map +1 -1
  609. package/react/ssr/prerenderStatic.d.ts +1 -1
  610. package/react/ssr/renderToStringWithData.d.ts +1 -1
  611. package/react/ssr/renderToStringWithData.js +1 -1
  612. package/react/ssr/renderToStringWithData.js.map +1 -1
  613. package/react/ssr/useSSRQuery.d.ts +1 -1
  614. package/react/ssr/useSSRQuery.js +1 -1
  615. package/react/ssr/useSSRQuery.js.map +1 -1
  616. package/react/types/deprecated.d.ts +1 -1
  617. package/react/types/deprecated.js +1 -1
  618. package/react/types/deprecated.js.map +1 -1
  619. package/react/types/types.documentation.js +1 -1
  620. package/react/types/types.documentation.js.map +1 -1
  621. package/testing/core/mocking/mockLink.js.map +1 -1
  622. package/testing/core/mocking/mockSubscriptionLink.d.ts +1 -1
  623. package/testing/core/mocking/mockSubscriptionLink.js +1 -1
  624. package/testing/core/mocking/mockSubscriptionLink.js.map +1 -1
  625. package/testing/core/types/deprecated.d.ts +1 -1
  626. package/testing/core/types/deprecated.js +1 -1
  627. package/testing/core/types/deprecated.js.map +1 -1
  628. package/testing/index.d.ts +1 -1
  629. package/testing/index.js +1 -1
  630. package/testing/index.js.map +1 -1
  631. package/testing/react/MockedProvider.d.ts +1 -1
  632. package/testing/react/MockedProvider.js +1 -1
  633. package/testing/react/MockedProvider.js.map +1 -1
  634. package/testing/react/index.d.ts +1 -1
  635. package/testing/react/index.js +1 -1
  636. package/testing/react/index.js.map +1 -1
  637. package/utilities/DeepPartial.d.ts +1 -1
  638. package/utilities/DeepPartial.js +1 -1
  639. package/utilities/DeepPartial.js.map +1 -1
  640. package/utilities/HKT.d.ts +1 -1
  641. package/utilities/HKT.js +1 -1
  642. package/utilities/HKT.js.map +1 -1
  643. package/utilities/caching/index.d.ts +1 -1
  644. package/utilities/caching/index.js +1 -1
  645. package/utilities/caching/index.js.map +1 -1
  646. package/utilities/caching/sizes.d.ts +1 -1
  647. package/utilities/caching/sizes.js +1 -1
  648. package/utilities/caching/sizes.js.map +1 -1
  649. package/utilities/common/stripTypename.d.ts +1 -1
  650. package/utilities/common/stripTypename.js +1 -1
  651. package/utilities/common/stripTypename.js.map +1 -1
  652. package/utilities/environment/index.d.ts +1 -1
  653. package/utilities/environment/index.development.d.ts +1 -1
  654. package/utilities/environment/index.development.js +1 -1
  655. package/utilities/environment/index.development.js.map +1 -1
  656. package/utilities/environment/index.js +1 -1
  657. package/utilities/environment/index.js.map +1 -1
  658. package/utilities/environment/index.production.d.ts +1 -1
  659. package/utilities/environment/index.production.js +1 -1
  660. package/utilities/environment/index.production.js.map +1 -1
  661. package/utilities/graphql/isFormattedExecutionResult.d.ts +1 -1
  662. package/utilities/graphql/isFormattedExecutionResult.js +1 -1
  663. package/utilities/graphql/isFormattedExecutionResult.js.map +1 -1
  664. package/utilities/graphql/operations.d.ts +1 -1
  665. package/utilities/graphql/operations.js +1 -1
  666. package/utilities/graphql/operations.js.map +1 -1
  667. package/utilities/graphql/print.d.ts +1 -1
  668. package/utilities/graphql/print.js +1 -1
  669. package/utilities/graphql/print.js.map +1 -1
  670. package/utilities/graphql/storeUtils.d.ts +1 -1
  671. package/utilities/graphql/storeUtils.js +1 -1
  672. package/utilities/graphql/storeUtils.js.map +1 -1
  673. package/utilities/graphql/transform.d.ts +1 -1
  674. package/utilities/graphql/transform.js +1 -1
  675. package/utilities/graphql/transform.js.map +1 -1
  676. package/utilities/index.d.ts +1 -1
  677. package/utilities/index.js +1 -1
  678. package/utilities/index.js.map +1 -1
  679. package/utilities/internal/argumentsObjectFromField.js.map +1 -1
  680. package/utilities/internal/caches.js.map +1 -1
  681. package/utilities/internal/canUseDOM.js.map +1 -1
  682. package/utilities/internal/checkDocument.js.map +1 -1
  683. package/utilities/internal/cloneDeep.js.map +1 -1
  684. package/utilities/internal/compact.js.map +1 -1
  685. package/utilities/internal/createFragmentMap.js.map +1 -1
  686. package/utilities/internal/createFulfilledPromise.js.map +1 -1
  687. package/utilities/internal/createRejectedPromise.js.map +1 -1
  688. package/utilities/internal/dealias.d.ts +1 -1
  689. package/utilities/internal/dealias.js +1 -1
  690. package/utilities/internal/dealias.js.map +1 -1
  691. package/utilities/internal/decoratePromise.js.map +1 -1
  692. package/utilities/internal/deepFreeze.js.map +1 -1
  693. package/utilities/internal/filterMap.d.ts +1 -1
  694. package/utilities/internal/filterMap.js +1 -1
  695. package/utilities/internal/filterMap.js.map +1 -1
  696. package/utilities/internal/getDefaultValues.js.map +1 -1
  697. package/utilities/internal/getFragmentDefinition.js.map +1 -1
  698. package/utilities/internal/getFragmentDefinitions.js.map +1 -1
  699. package/utilities/internal/getFragmentFromSelection.js.map +1 -1
  700. package/utilities/internal/getFragmentQueryDocument.js.map +1 -1
  701. package/utilities/internal/getGraphQLErrorsFromResult.js.map +1 -1
  702. package/utilities/internal/getMainDefinition.js.map +1 -1
  703. package/utilities/internal/getMemoryInternals.js.map +1 -1
  704. package/utilities/internal/getOperationDefinition.js.map +1 -1
  705. package/utilities/internal/getOperationName.js.map +1 -1
  706. package/utilities/internal/getQueryDefinition.js.map +1 -1
  707. package/utilities/internal/getStoreKeyName.js.map +1 -1
  708. package/utilities/internal/globals/global.d.ts +1 -1
  709. package/utilities/internal/globals/index.d.ts +1 -1
  710. package/utilities/internal/globals/index.js +1 -1
  711. package/utilities/internal/globals/index.js.map +1 -1
  712. package/utilities/internal/globals/maybe.d.ts +1 -1
  713. package/utilities/internal/globals/maybe.js +1 -1
  714. package/utilities/internal/globals/maybe.js.map +1 -1
  715. package/utilities/internal/graphQLResultHasError.js.map +1 -1
  716. package/utilities/internal/hasDirectives.js.map +1 -1
  717. package/utilities/internal/hasForcedResolvers.d.ts +1 -1
  718. package/utilities/internal/hasForcedResolvers.js +1 -1
  719. package/utilities/internal/hasForcedResolvers.js.map +1 -1
  720. package/utilities/internal/index.d.ts +1 -1
  721. package/utilities/internal/index.js +1 -1
  722. package/utilities/internal/index.js.map +1 -1
  723. package/utilities/internal/index.production.d.ts +1 -1
  724. package/utilities/internal/index.production.js +1 -1
  725. package/utilities/internal/index.production.js.map +1 -1
  726. package/utilities/internal/isArray.js.map +1 -1
  727. package/utilities/internal/isDocumentNode.js.map +1 -1
  728. package/utilities/internal/isField.js.map +1 -1
  729. package/utilities/internal/isNonEmptyArray.js.map +1 -1
  730. package/utilities/internal/isNonNullObject.js.map +1 -1
  731. package/utilities/internal/isPlainObject.js.map +1 -1
  732. package/utilities/internal/makeReference.js.map +1 -1
  733. package/utilities/internal/makeUniqueId.js.map +1 -1
  734. package/utilities/internal/maybeDeepFreeze.js.map +1 -1
  735. package/utilities/internal/mergeDeep.js.map +1 -1
  736. package/utilities/internal/mergeDeepArray.js.map +1 -1
  737. package/utilities/internal/mergeOptions.js.map +1 -1
  738. package/utilities/internal/omitDeep.js.map +1 -1
  739. package/utilities/internal/preventUnhandledRejection.d.ts +1 -1
  740. package/utilities/internal/preventUnhandledRejection.js +1 -1
  741. package/utilities/internal/preventUnhandledRejection.js.map +1 -1
  742. package/utilities/internal/removeDirectivesFromDocument.js.map +1 -1
  743. package/utilities/internal/resultKeyNameFromField.js.map +1 -1
  744. package/utilities/internal/shouldInclude.js.map +1 -1
  745. package/utilities/internal/storeKeyNameFromField.js.map +1 -1
  746. package/utilities/internal/stringifyForDisplay.js.map +1 -1
  747. package/utilities/internal/toQueryResult.js.map +1 -1
  748. package/utilities/internal/types/ApplyHKT.js +1 -1
  749. package/utilities/internal/types/ApplyHKT.js.map +1 -1
  750. package/utilities/internal/types/ApplyHKTImplementationWithDefault.js +1 -1
  751. package/utilities/internal/types/ApplyHKTImplementationWithDefault.js.map +1 -1
  752. package/utilities/internal/types/DecoratedPromise.js +1 -1
  753. package/utilities/internal/types/DecoratedPromise.js.map +1 -1
  754. package/utilities/internal/types/DeepOmit.js +1 -1
  755. package/utilities/internal/types/DeepOmit.js.map +1 -1
  756. package/utilities/internal/types/FragmentMap.js +1 -1
  757. package/utilities/internal/types/FragmentMap.js.map +1 -1
  758. package/utilities/internal/types/FragmentMapFunction.js +1 -1
  759. package/utilities/internal/types/FragmentMapFunction.js.map +1 -1
  760. package/utilities/internal/types/FulfilledPromise.js +1 -1
  761. package/utilities/internal/types/FulfilledPromise.js.map +1 -1
  762. package/utilities/internal/types/IsAny.js +1 -1
  763. package/utilities/internal/types/IsAny.js.map +1 -1
  764. package/utilities/internal/types/NoInfer.d.ts +1 -1
  765. package/utilities/internal/types/NoInfer.js +1 -1
  766. package/utilities/internal/types/NoInfer.js.map +1 -1
  767. package/utilities/internal/types/PendingPromise.js +1 -1
  768. package/utilities/internal/types/PendingPromise.js.map +1 -1
  769. package/utilities/internal/types/Prettify.js +1 -1
  770. package/utilities/internal/types/Prettify.js.map +1 -1
  771. package/utilities/internal/types/Primitive.js +1 -1
  772. package/utilities/internal/types/Primitive.js.map +1 -1
  773. package/utilities/internal/types/RejectedPromise.js +1 -1
  774. package/utilities/internal/types/RejectedPromise.js.map +1 -1
  775. package/utilities/internal/types/RemoveIndexSignature.js +1 -1
  776. package/utilities/internal/types/RemoveIndexSignature.js.map +1 -1
  777. package/utilities/internal/types/TupleToIntersection.d.ts +1 -1
  778. package/utilities/internal/types/TupleToIntersection.js +1 -1
  779. package/utilities/internal/types/TupleToIntersection.js.map +1 -1
  780. package/utilities/internal/types/VariablesOption.js +1 -1
  781. package/utilities/internal/types/VariablesOption.js.map +1 -1
  782. package/utilities/internal/valueToObjectRepresentation.js.map +1 -1
  783. package/utilities/invariant/index.d.ts +1 -1
  784. package/utilities/invariant/index.development.d.ts +1 -1
  785. package/utilities/invariant/index.development.js +1 -1
  786. package/utilities/invariant/index.development.js.map +1 -1
  787. package/utilities/invariant/index.js +1 -1
  788. package/utilities/invariant/index.js.map +1 -1
  789. package/utilities/policies/pagination.d.ts +1 -1
  790. package/utilities/policies/pagination.js +1 -1
  791. package/utilities/policies/pagination.js.map +1 -1
  792. package/utilities/shared/canonicalStringify.d.ts +1 -1
  793. package/utilities/shared/canonicalStringify.js +1 -1
  794. package/utilities/shared/canonicalStringify.js.map +1 -1
  795. package/utilities/subscriptions/relay/index.d.ts +1 -1
  796. package/utilities/subscriptions/relay/index.js +1 -1
  797. package/utilities/subscriptions/relay/index.js.map +1 -1
  798. package/version.d.ts +1 -1
  799. package/version.js +1 -1
  800. package/version.js.map +1 -1
@@ -7,4 +7,4 @@ export type MockedResponse<TData = Record<string, any>, TVariables = Record<stri
7
7
  export type MockLinkOptions = MockLink.Options;
8
8
  /** @deprecated Use `MockLink.ResultFunction` instead */
9
9
  export type ResultFunction<T, V = Record<string, any>> = MockLink.ResultFunction<T, V>;
10
- //# sourceMappingURL=deprecated.d.ts.map
10
+ //# sourceMappingURL=deprecated.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=deprecated.js.map
2
+ //# sourceMappingURL=deprecated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"deprecated.js","sourceRoot":"","sources":["../../../../src/testing/core/types/deprecated.ts"],"names":[],"mappings":"","sourcesContent":["import type { MockLink } from \"../mocking/mockLink.js\";\n\n/** @deprecated Use `MockLink.MockedRequest` instead */\nexport type MockedRequest<TVariables = Record<string, any>> =\n MockLink.MockedRequest<TVariables>;\n\n/** @deprecated Use `MockLink.MockedResponse` instead */\nexport type MockedResponse<\n TData = Record<string, any>,\n TVariables = Record<string, any>,\n> = MockLink.MockedResponse<TData, TVariables>;\n\n/** @deprecated Use `MockLink.Options` instead */\nexport type MockLinkOptions = MockLink.Options;\n\n/** @deprecated Use `MockLink.ResultFunction` instead */\nexport type ResultFunction<\n T,\n V = Record<string, any>,\n> = MockLink.ResultFunction<T, V>;\n"]}
@@ -1,4 +1,4 @@
1
1
  export type { MockedRequest, MockedResponse, MockLinkOptions, ResultFunction, } from "./core/types/deprecated.js";
2
2
  export { MockLink, realisticDelay } from "./core/mocking/mockLink.js";
3
3
  export { MockSubscriptionLink } from "./core/mocking/mockSubscriptionLink.js";
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=index.d.ts.map
package/testing/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export { MockLink, realisticDelay } from "./core/mocking/mockLink.js";
2
2
  export { MockSubscriptionLink } from "./core/mocking/mockSubscriptionLink.js";
3
- //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/testing/index.ts"],"sourcesContent":["export type {\n MockedRequest,\n MockedResponse,\n MockLinkOptions,\n ResultFunction,\n} from \"./core/types/deprecated.js\";\nexport { MockLink, realisticDelay } from \"./core/mocking/mockLink.js\";\nexport { MockSubscriptionLink } from \"./core/mocking/mockSubscriptionLink.js\";\n"],"names":[],"mappings":"AAMA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,EAAE,CAAnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAAyC,CAAzC,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,CAAqE;AACrE,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAAqC,CAArC,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;"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export type {\n MockedRequest,\n MockedResponse,\n MockLinkOptions,\n ResultFunction,\n} from \"./core/types/deprecated.js\";\nexport { MockLink, realisticDelay } from \"./core/mocking/mockLink.js\";\nexport { MockSubscriptionLink } from \"./core/mocking/mockSubscriptionLink.js\";\n"]}
@@ -26,4 +26,4 @@ export declare class MockedProvider extends React.Component<MockedProviderProps,
26
26
  componentWillUnmount(): void;
27
27
  }
28
28
  export {};
29
- //# sourceMappingURL=MockedProvider.d.ts.map
29
+ //# sourceMappingURL=MockedProvider.d.ts.map
@@ -35,4 +35,4 @@ export class MockedProvider extends React.Component {
35
35
  this.state.client.stop();
36
36
  }
37
37
  }
38
- //# sourceMappingURL=MockedProvider.js.map
38
+ //# sourceMappingURL=MockedProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MockedProvider.js","sources":["../../../src/testing/react/MockedProvider.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport type { ApolloClientOptions, DefaultOptions } from \"@apollo/client\";\nimport { ApolloClient } from \"@apollo/client\";\nimport type { ApolloCache } from \"@apollo/client/cache\";\nimport { InMemoryCache as Cache } from \"@apollo/client/cache\";\nimport type { ApolloLink } from \"@apollo/client/link\";\nimport type { LocalState } from \"@apollo/client/local-state\";\nimport { ApolloProvider } from \"@apollo/client/react\";\nimport { MockLink } from \"@apollo/client/testing\";\n\nexport interface MockedProviderProps {\n mocks?: ReadonlyArray<MockLink.MockedResponse<any, any>>;\n defaultOptions?: DefaultOptions;\n cache?: ApolloCache;\n localState?: LocalState;\n childProps?: object;\n children?: any;\n link?: ApolloLink;\n showWarnings?: boolean;\n mockLinkDefaultOptions?: MockLink.DefaultOptions;\n devtools?: ApolloClientOptions[\"devtools\"];\n}\n\ninterface MockedProviderState {\n client: ApolloClient;\n}\n\nexport class MockedProvider extends React.Component<\n MockedProviderProps,\n MockedProviderState\n> {\n constructor(props: MockedProviderProps) {\n super(props);\n\n const {\n mocks,\n defaultOptions,\n cache,\n localState,\n link,\n showWarnings,\n mockLinkDefaultOptions,\n devtools,\n } = this.props;\n const client = new ApolloClient({\n cache: cache || new Cache(),\n defaultOptions,\n link:\n link ||\n new MockLink(mocks || [], {\n showWarnings,\n defaultOptions: mockLinkDefaultOptions,\n }),\n localState,\n devtools,\n });\n\n this.state = {\n client,\n };\n }\n\n public render() {\n const { children, childProps } = this.props;\n const { client } = this.state;\n\n return React.isValidElement(children) ?\n <ApolloProvider client={client}>\n {React.cloneElement(React.Children.only(children), { ...childProps })}\n </ApolloProvider>\n : null;\n }\n\n public componentWillUnmount() {\n // Since this.state.client was created in the constructor, it's this\n // MockedProvider's responsibility to terminate it.\n this.state.client.stop();\n }\n}\n"],"names":[],"mappings":"AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAP,CAAA,EAAY,CAAZ,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAuB,CAAvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAA8B;AAG9B,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA6B,CAA7B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6C;AAE7C,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAA0B,CAA1B,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAAuC,CAAvC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6D;AAG7D,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CA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CAAC;IAEM,MAAM;QACX,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5C,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE9B,OAAO,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;YACnC,oBAAC,cAAc,IAAC,MAAM,EAAE,MAAM,IAC3B,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,CACtD;YACnB,CAAC,CAAC,IAAI,CAAC;IACX,CAAC;IAEM,oBAAoB;QACzB,oEAAoE;QACpE,mDAAmD;QACnD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;CACF","sourcesContent":["import * as React from \"react\";\n\nimport type { ApolloClientOptions, DefaultOptions } from \"@apollo/client\";\nimport { ApolloClient } from \"@apollo/client\";\nimport type { ApolloCache } from \"@apollo/client/cache\";\nimport { InMemoryCache as Cache } from \"@apollo/client/cache\";\nimport type { ApolloLink } from \"@apollo/client/link\";\nimport type { LocalState } from \"@apollo/client/local-state\";\nimport { ApolloProvider } from \"@apollo/client/react\";\nimport { MockLink } from \"@apollo/client/testing\";\n\nexport interface MockedProviderProps {\n mocks?: ReadonlyArray<MockLink.MockedResponse<any, any>>;\n defaultOptions?: DefaultOptions;\n cache?: ApolloCache;\n localState?: LocalState;\n childProps?: object;\n children?: any;\n link?: ApolloLink;\n showWarnings?: boolean;\n mockLinkDefaultOptions?: MockLink.DefaultOptions;\n devtools?: ApolloClientOptions[\"devtools\"];\n}\n\ninterface MockedProviderState {\n client: ApolloClient;\n}\n\nexport class MockedProvider extends React.Component<\n MockedProviderProps,\n MockedProviderState\n> {\n constructor(props: MockedProviderProps) {\n super(props);\n\n const {\n mocks,\n defaultOptions,\n cache,\n localState,\n link,\n showWarnings,\n mockLinkDefaultOptions,\n devtools,\n } = this.props;\n const client = new ApolloClient({\n cache: cache || new Cache(),\n defaultOptions,\n link:\n link ||\n new MockLink(mocks || [], {\n showWarnings,\n defaultOptions: mockLinkDefaultOptions,\n }),\n localState,\n devtools,\n });\n\n this.state = {\n client,\n };\n }\n\n public render() {\n const { children, childProps } = this.props;\n const { client } = this.state;\n\n return React.isValidElement(children) ?\n <ApolloProvider client={client}>\n {React.cloneElement(React.Children.only(children), { ...childProps })}\n </ApolloProvider>\n : null;\n }\n\n public componentWillUnmount() {\n // Since this.state.client was created in the constructor, it's this\n // MockedProvider's responsibility to terminate it.\n this.state.client.stop();\n }\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  export { MockedProvider } from "./MockedProvider.js";
2
2
  export type { MockedProviderProps } from "./MockedProvider.js";
3
- //# sourceMappingURL=index.d.ts.map
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export { MockedProvider } from "./MockedProvider.js";
2
- //# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/testing/react/index.ts"],"sourcesContent":["export { MockedProvider } from \"./MockedProvider.js\";\nexport type { MockedProviderProps } from \"./MockedProvider.js\";\n"],"names":[],"mappings":"AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA+B,CAA/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { MockedProvider } from \"./MockedProvider.js\";\nexport type { MockedProviderProps } from \"./MockedProvider.js\";\n"]}
@@ -12,4 +12,4 @@ type DeepPartialObject<T extends object> = {
12
12
  [K in keyof T]?: DeepPartial<T[K]>;
13
13
  };
14
14
  export {};
15
- //# sourceMappingURL=DeepPartial.d.ts.map
15
+ //# sourceMappingURL=DeepPartial.d.ts.map
@@ -3,4 +3,4 @@
3
3
  // We're including the license to give credit to the original implementation.
4
4
  // https://github.com/sindresorhus/type-fest/blob/main/license-mit
5
5
  export {};
6
- //# sourceMappingURL=DeepPartial.js.map
6
+ //# sourceMappingURL=DeepPartial.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeepPartial.js","sources":["../../src/utilities/DeepPartial.ts"],"sourcesContent":["// Inspired by type-fest PartialDeep: https://github.com/sindresorhus/type-fest/blob/9feb8c89be9a0f2f688bf2f497230298a8e2472e/source/partial-deep.d.ts\n//\n// We're including the license to give credit to the original implementation.\n// https://github.com/sindresorhus/type-fest/blob/main/license-mit\n\n/*\n * MIT License\n *\n * Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nimport type { Primitive } from \"@apollo/client/utilities/internal\";\n\ntype DeepPartialPrimitive = Primitive | Date | RegExp;\n\n/**\n * Deeply makes all properties in `T` optional.\n */\nexport type DeepPartial<T> =\n T extends DeepPartialPrimitive ? T\n : T extends Map<infer TKey, infer TValue> ? DeepPartialMap<TKey, TValue>\n : T extends ReadonlyMap<infer TKey, infer TValue> ?\n DeepPartialReadonlyMap<TKey, TValue>\n : T extends Set<infer TItem> ? DeepPartialSet<TItem>\n : T extends ReadonlySet<infer TItem> ? DeepPartialReadonlySet<TItem>\n : T extends (...args: any[]) => unknown ? T | undefined\n : T extends object ?\n T extends (\n ReadonlyArray<infer TItem> // Test for arrays/tuples\n ) ?\n TItem[] extends (\n T // Test for non-tuples\n ) ?\n readonly TItem[] extends T ?\n ReadonlyArray<DeepPartial<TItem | undefined>>\n : Array<DeepPartial<TItem | undefined>>\n : DeepPartialObject<T>\n : DeepPartialObject<T>\n : unknown;\n\ntype DeepPartialMap<TKey, TValue> = {} & Map<\n DeepPartial<TKey>,\n DeepPartial<TValue>\n>;\n\ntype DeepPartialReadonlyMap<TKey, TValue> = {} & ReadonlyMap<\n DeepPartial<TKey>,\n DeepPartial<TValue>\n>;\n\ntype DeepPartialSet<T> = {} & Set<DeepPartial<T>>;\ntype DeepPartialReadonlySet<T> = {} & ReadonlySet<DeepPartial<T>>;\n\ntype DeepPartialObject<T extends object> = {\n [K in keyof T]?: DeepPartial<T[K]>;\n};\n"],"names":[],"mappings":"AAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CA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,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;;"}
1
+ {"version":3,"file":"DeepPartial.js","sourceRoot":"","sources":["../../src/utilities/DeepPartial.ts"],"names":[],"mappings":"AAAA,sJAAsJ;AACtJ,EAAE;AACF,6EAA6E;AAC7E,kEAAkE","sourcesContent":["// Inspired by type-fest PartialDeep: https://github.com/sindresorhus/type-fest/blob/9feb8c89be9a0f2f688bf2f497230298a8e2472e/source/partial-deep.d.ts\n//\n// We're including the license to give credit to the original implementation.\n// https://github.com/sindresorhus/type-fest/blob/main/license-mit\n\n/*\n * MIT License\n *\n * Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nimport type { Primitive } from \"@apollo/client/utilities/internal\";\n\ntype DeepPartialPrimitive = Primitive | Date | RegExp;\n\n/**\n * Deeply makes all properties in `T` optional.\n */\nexport type DeepPartial<T> =\n T extends DeepPartialPrimitive ? T\n : T extends Map<infer TKey, infer TValue> ? DeepPartialMap<TKey, TValue>\n : T extends ReadonlyMap<infer TKey, infer TValue> ?\n DeepPartialReadonlyMap<TKey, TValue>\n : T extends Set<infer TItem> ? DeepPartialSet<TItem>\n : T extends ReadonlySet<infer TItem> ? DeepPartialReadonlySet<TItem>\n : T extends (...args: any[]) => unknown ? T | undefined\n : T extends object ?\n T extends (\n ReadonlyArray<infer TItem> // Test for arrays/tuples\n ) ?\n TItem[] extends (\n T // Test for non-tuples\n ) ?\n readonly TItem[] extends T ?\n ReadonlyArray<DeepPartial<TItem | undefined>>\n : Array<DeepPartial<TItem | undefined>>\n : DeepPartialObject<T>\n : DeepPartialObject<T>\n : unknown;\n\ntype DeepPartialMap<TKey, TValue> = {} & Map<\n DeepPartial<TKey>,\n DeepPartial<TValue>\n>;\n\ntype DeepPartialReadonlyMap<TKey, TValue> = {} & ReadonlyMap<\n DeepPartial<TKey>,\n DeepPartial<TValue>\n>;\n\ntype DeepPartialSet<T> = {} & Set<DeepPartial<T>>;\ntype DeepPartialReadonlySet<T> = {} & ReadonlySet<DeepPartial<T>>;\n\ntype DeepPartialObject<T extends object> = {\n [K in keyof T]?: DeepPartial<T[K]>;\n};\n"]}
@@ -32,4 +32,4 @@ export interface HKT {
32
32
  arg4: unknown;
33
33
  return: unknown;
34
34
  }
35
- //# sourceMappingURL=HKT.d.ts.map
35
+ //# sourceMappingURL=HKT.d.ts.map
package/utilities/HKT.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=HKT.js.map
2
+ //# sourceMappingURL=HKT.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HKT.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"HKT.js","sourceRoot":"","sources":["../../src/utilities/HKT.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * A helper interface to implement Higher-Kinded-Types (HKT) in TypeScript.\n *\n * @example\n * For example usage, see `src/masking/GraphQLCodegenDataMasking.ts`.\n *\n * @beta\n * The Higher-Kinded-Types implementation might change between minor versions,\n * as we discover ways of making it more performant and/or our requirements to\n * the HKT implementation change.\n *\n * We still want to encourage you to provide your own implementations of the types\n * we make overridable this way, but keep in mind that this might require some\n * extra work updating.\n *\n * @example\n * ```ts\n * interface Concat extends HKT {\n * arg1: string;\n * arg2: string;\n * return: `${this[\"arg1\"]}${this[\"arg2\"]}`;\n * }\n *\n * type Result = ApplyHKT<Concat, \"Hello, \", \"world!\">;\n * // Result is \"Hello, world!\"\n * ```\n */\nexport interface HKT {\n arg1: unknown;\n arg2: unknown;\n arg3: unknown;\n arg4: unknown;\n return: unknown;\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  export type { CacheSizes } from "./sizes.js";
2
2
  export { cacheSizes, defaultCacheSizes } from "./sizes.js";
3
- //# sourceMappingURL=index.d.ts.map
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export { cacheSizes } from "./sizes.js";
2
- //# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/utilities/caching/index.ts"],"sourcesContent":["export type { CacheSizes } from \"./sizes.js\";\nexport { cacheSizes, defaultCacheSizes } from \"./sizes.js\";\n"],"names":[],"mappings":"AACA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA8C,CAA9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utilities/caching/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAqB,MAAM,YAAY,CAAC","sourcesContent":["export type { CacheSizes } from \"./sizes.js\";\nexport { cacheSizes, defaultCacheSizes } from \"./sizes.js\";\n"]}
@@ -296,4 +296,4 @@ export declare const enum defaultCacheSizes {
296
296
  "inMemoryCache.executeSubSelectedArray" = 10000
297
297
  }
298
298
  export {};
299
- //# sourceMappingURL=sizes.d.ts.map
299
+ //# sourceMappingURL=sizes.d.ts.map
@@ -23,4 +23,4 @@ const cacheSizeSymbol = Symbol.for("apollo.cacheSize");
23
23
  * ```
24
24
  */
25
25
  export const cacheSizes = { ...global[cacheSizeSymbol] };
26
- //# sourceMappingURL=sizes.js.map
26
+ //# sourceMappingURL=sizes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sizes.js","sources":["../../../src/utilities/caching/sizes.ts"],"sourcesContent":["import { global } from \"@apollo/client/utilities/internal/globals\";\n\ndeclare global {\n interface Window {\n [cacheSizeSymbol]?: Partial<CacheSizes>;\n }\n}\n\n/**\n * The cache sizes used by various Apollo Client caches.\n *\n * @remarks\n * All configurable caches hold memoized values. If an item is\n * cache-collected, it incurs only a small performance impact and\n * doesn't cause data loss. A smaller cache size might save you memory.\n *\n * You should choose cache sizes appropriate for storing a reasonable\n * number of values rather than every value. To prevent too much recalculation,\n * choose cache sizes that are at least large enough to hold memoized values for\n * all hooks/queries on the screen at any given time.\n */\n/*\n * We assume a \"base value\" of 1000 here, which is already very generous.\n * In most applications, it will be very unlikely that 1000 different queries\n * are on screen at the same time.\n */\nexport interface CacheSizes {\n /**\n * Cache size for the [`print`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/print.ts) function.\n *\n * It is called with transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @remarks\n * This method is called to transform a GraphQL query AST parsed by `gql`\n * back into a GraphQL string.\n *\n * @privateRemarks\n * This method is called from the `QueryManager` and various `ApolloLink`s,\n * always with the \"serverQuery\", so the server-facing part of a transformed\n * `DocumentNode`.\n */\n print: number;\n /**\n * Cache size for the cache of [`DocumentTransform`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/DocumentTransform.ts)\n * instances with the `cache` option set to `true`.\n *\n * Can be called with user-defined or already-transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @remarks\n * The cache size here should be chosen with other `DocumentTransform`s in mind.\n * For example, if there was a `DocumentTransform` that would take `x` `DocumentNode`s,\n * and returned a differently-transformed `DocumentNode` depending if the app is\n * online or offline, then we assume that the cache returns `2*x` documents.\n * If that were concatenated with another `DocumentTransform` that would\n * also duplicate the cache size, you'd need to account for `4*x` documents\n * returned by the second transform.\n *\n * Due to an implementation detail of Apollo Client, if you use custom document\n * transforms you should always add `n` (the \"base\" number of user-provided\n * Documents) to the resulting cache size.\n *\n * If we assume that the user-provided transforms receive `n` documents and\n * return `n` documents, the cache size should be `2*n`.\n *\n * If we assume that the chain of user-provided transforms receive `n` documents and\n * return `4*n` documents, the cache size should be `5*n`.\n *\n * This size should also then be used in every other cache that mentions that\n * it operates on a \"transformed\" `DocumentNode`.\n *\n * @privateRemarks\n * Cache size for the `performWork` method of each [`DocumentTransform`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/DocumentTransform.ts).\n *\n * No user-provided DocumentNode will actually be \"the last one\", as we run the\n * `defaultDocumentTransform` before *and* after the user-provided transforms.\n * For that reason, we need the extra `n` here - `n` for \"before transformation\"\n * plus the actual maximum cache size of the user-provided transform chain.\n *\n * This method is called from `transformDocument`, which is called from\n * `QueryManager` with a user-provided DocumentNode.\n * It is also called with already-transformed DocumentNodes, assuming the\n * user provided additional transforms.\n *\n */\n \"documentTransform.cache\": number;\n /**\n * A cache inside of [`QueryManager`](https://github.com/apollographql/apollo-client/blob/main/src/core/QueryManager.ts).\n *\n * It is called with transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @privateRemarks\n * Cache size for the `transformCache` used in the `getDocumentInfo` method of `QueryManager`.\n * Called throughout the `QueryManager` with transformed DocumentNodes.\n */\n \"queryManager.getDocumentInfo\": number;\n /**\n * A cache inside of [`PersistedQueryLink`](https://github.com/apollographql/apollo-client/blob/main/src/link/persisted-queries/index.ts).\n *\n * It is called with transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @remarks\n * This cache is used to cache the hashes of persisted queries.\n *\n * @privateRemarks\n * Cache size for the `hashesByQuery` cache in the `PersistedQueryLink`.\n */\n \"PersistedQueryLink.persistedQueryHashes\": number;\n /**\n * Cache used by [`canonicalStringify`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/common/canonicalStringify.ts).\n *\n * @defaultValue\n * Defaults to `1000`.\n *\n * @remarks\n * This cache contains the sorted keys of objects that are stringified by\n * `canonicalStringify`.\n * It uses the stringified unsorted keys of objects as keys.\n * The cache will not grow beyond the size of different object **shapes**\n * encountered in an application, no matter how much actual data gets stringified.\n *\n * @privateRemarks\n * Cache size for the `sortingMap` in `canonicalStringify`.\n */\n canonicalStringify: number;\n /**\n * A cache inside of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n *\n * Can be called with user-defined or already-transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @privateRemarks\n *\n * Cache size for the `transform` method of FragmentRegistry.\n * This function is called as part of the `defaultDocumentTransform` which will be called with\n * user-provided and already-transformed DocumentNodes.\n *\n */\n \"fragmentRegistry.transform\": number;\n /**\n * A cache inside of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n *\n * This function is called with fragment names in the form of a string.\n *\n * @defaultValue\n * Defaults to `1000`.\n *\n * @remarks\n * The size of this case should be chosen with the number of fragments in\n * your application in mind.\n *\n * Note:\n * This function is a dependency of `fragmentRegistry.transform`, so having too small of a cache size here\n * might involuntarily invalidate values in the `transform` cache.\n *\n * @privateRemarks\n * Cache size for the `lookup` method of FragmentRegistry.\n */\n \"fragmentRegistry.lookup\": number;\n /**\n * Cache size for the `findFragmentSpreads` method of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n *\n * This function is called with transformed `DocumentNode`s, as well as recursively\n * with every fragment spread referenced within that, or a fragment referenced by a\n * fragment spread.\n *\n * @defaultValue\n * Defaults to `4000`.\n *\n * @remarks\n *\n * Note: This function is a dependency of `fragmentRegistry.transform`, so having too small of cache size here\n * might involuntarily invalidate values in the `transform` cache.\n */\n \"fragmentRegistry.findFragmentSpreads\": number;\n /**\n * Cache size for the `getFragmentDoc` method of [`ApolloCache`](https://github.com/apollographql/apollo-client/blob/main/src/cache/core/cache.ts).\n *\n * This function is called with user-provided fragment definitions.\n *\n * @defaultValue\n * Defaults to `1000`.\n *\n * @remarks\n * This function is called from `readFragment` with user-provided fragment definitions.\n */\n \"cache.fragmentQueryDocuments\": number;\n /**\n * Cache used in [`removeTypenameFromVariables`](https://github.com/apollographql/apollo-client/blob/main/src/link/remove-typename/removeTypenameFromVariables.ts).\n *\n * This function is called transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @privateRemarks\n * Cache size for the `getVariableDefinitions` function of `removeTypenameFromVariables`.\n */\n \"removeTypenameFromVariables.getVariableDefinitions\": number;\n /**\n * Cache size for the `maybeBroadcastWatch` method on [`InMemoryCache`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/inMemoryCache.ts).\n *\n * Note: `maybeBroadcastWatch` will be set to the `resultCacheMaxSize` option and\n * will fall back to this configuration value if the option is not set.\n *\n * @defaultValue\n * Defaults to `5000`.\n *\n * @remarks\n * This method is used for dependency tracking in the `InMemoryCache` and\n * prevents from unnecessary re-renders.\n * It is recommended to keep this value significantly higher than the number of\n * possible subscribers you will have active at the same time in your application\n * at any time.\n */\n \"inMemoryCache.maybeBroadcastWatch\": number;\n /**\n * Cache size for the `executeSelectionSet` method on [`StoreReader`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/readFromStore.ts).\n *\n * Note:\n * `executeSelectionSet` will be set to the `resultCacheMaxSize` option and\n * will fall back to this configuration value if the option is not set.\n *\n * @defaultValue\n * Defaults to `50000`.\n *\n * @remarks\n * Every object that is read from the cache will be cached here, so it is\n * recommended to set this to a high value.\n */\n \"inMemoryCache.executeSelectionSet\": number;\n /**\n * Cache size for the `executeSubSelectedArray` method on [`StoreReader`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/readFromStore.ts).\n *\n * Note:\n * `executeSubSelectedArray` will be set to the `resultCacheMaxSize` option and\n * will fall back to this configuration value if the option is not set.\n *\n * @defaultValue\n * Defaults to `10000`.\n *\n * @remarks\n * Every array that is read from the cache will be cached here, so it is\n * recommended to set this to a high value.\n */\n \"inMemoryCache.executeSubSelectedArray\": number;\n /**\n * Used by the internal `checkDocument` that traverses GraphQL documents and throws an error if the document is invalid.\n * if they are not valid.\n */\n checkDocument: number;\n}\n\nconst cacheSizeSymbol = Symbol.for(\"apollo.cacheSize\");\n/**\n *\n * The global cache size configuration for Apollo Client.\n *\n * @remarks\n *\n * You can directly modify this object, but any modification will\n * only have an effect on caches that are created after the modification.\n *\n * So for global caches, such as `canonicalStringify` and `print`,\n * you might need to call `.reset` on them, which will essentially re-create them.\n *\n * Alternatively, you can set `globalThis[Symbol.for(\"apollo.cacheSize\")]` before\n * you load the Apollo Client package:\n *\n * @example\n * ```ts\n * globalThis[Symbol.for(\"apollo.cacheSize\")] = {\n * print: 100\n * } satisfies Partial<CacheSizes> // the `satisfies` is optional if using TypeScript\n * ```\n */\nexport const cacheSizes: Partial<CacheSizes> = { ...global[cacheSizeSymbol] };\n\nexport const enum defaultCacheSizes {\n checkDocument = 2000,\n canonicalStringify = 1000,\n print = 2000,\n \"documentTransform.cache\" = 2000,\n \"queryManager.getDocumentInfo\" = 2000,\n \"PersistedQueryLink.persistedQueryHashes\" = 2000,\n \"fragmentRegistry.transform\" = 2000,\n \"fragmentRegistry.lookup\" = 1000,\n \"fragmentRegistry.findFragmentSpreads\" = 4000,\n \"cache.fragmentQueryDocuments\" = 1000,\n \"removeTypenameFromVariables.getVariableDefinitions\" = 2000,\n \"inMemoryCache.maybeBroadcastWatch\" = 5000,\n \"inMemoryCache.executeSelectionSet\" = 50000,\n \"inMemoryCache.executeSubSelectedArray\" = 10000,\n}\n"],"names":[],"mappings":"AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAAuB,CAAvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkE;AA0QlE,CAAA,CAAA,CAAA,CAAA,EAAM,CAAN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAwB,CAAxB,CAAA,CAAA,CAAA,CAAA,CAA8B,CAAC,CAA/B,CAAA,CAAkC,CAAC,CAAnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqD,CAAC;AACtD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;CAqBA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAA+C,EAAE,CAAjD,CAAA,CAAoD,CAApD,CAAA,CAAA,CAAA,CAAA,CAA0D,CAAC,CAA3D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0E,EAA1E,CAAA;"}
1
+ {"version":3,"file":"sizes.js","sourceRoot":"","sources":["../../../src/utilities/caching/sizes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AA0QnE,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AACvD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,UAAU,GAAwB,EAAE,GAAG,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC","sourcesContent":["import { global } from \"@apollo/client/utilities/internal/globals\";\n\ndeclare global {\n interface Window {\n [cacheSizeSymbol]?: Partial<CacheSizes>;\n }\n}\n\n/**\n * The cache sizes used by various Apollo Client caches.\n *\n * @remarks\n * All configurable caches hold memoized values. If an item is\n * cache-collected, it incurs only a small performance impact and\n * doesn't cause data loss. A smaller cache size might save you memory.\n *\n * You should choose cache sizes appropriate for storing a reasonable\n * number of values rather than every value. To prevent too much recalculation,\n * choose cache sizes that are at least large enough to hold memoized values for\n * all hooks/queries on the screen at any given time.\n */\n/*\n * We assume a \"base value\" of 1000 here, which is already very generous.\n * In most applications, it will be very unlikely that 1000 different queries\n * are on screen at the same time.\n */\nexport interface CacheSizes {\n /**\n * Cache size for the [`print`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/print.ts) function.\n *\n * It is called with transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @remarks\n * This method is called to transform a GraphQL query AST parsed by `gql`\n * back into a GraphQL string.\n *\n * @privateRemarks\n * This method is called from the `QueryManager` and various `ApolloLink`s,\n * always with the \"serverQuery\", so the server-facing part of a transformed\n * `DocumentNode`.\n */\n print: number;\n /**\n * Cache size for the cache of [`DocumentTransform`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/DocumentTransform.ts)\n * instances with the `cache` option set to `true`.\n *\n * Can be called with user-defined or already-transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @remarks\n * The cache size here should be chosen with other `DocumentTransform`s in mind.\n * For example, if there was a `DocumentTransform` that would take `x` `DocumentNode`s,\n * and returned a differently-transformed `DocumentNode` depending if the app is\n * online or offline, then we assume that the cache returns `2*x` documents.\n * If that were concatenated with another `DocumentTransform` that would\n * also duplicate the cache size, you'd need to account for `4*x` documents\n * returned by the second transform.\n *\n * Due to an implementation detail of Apollo Client, if you use custom document\n * transforms you should always add `n` (the \"base\" number of user-provided\n * Documents) to the resulting cache size.\n *\n * If we assume that the user-provided transforms receive `n` documents and\n * return `n` documents, the cache size should be `2*n`.\n *\n * If we assume that the chain of user-provided transforms receive `n` documents and\n * return `4*n` documents, the cache size should be `5*n`.\n *\n * This size should also then be used in every other cache that mentions that\n * it operates on a \"transformed\" `DocumentNode`.\n *\n * @privateRemarks\n * Cache size for the `performWork` method of each [`DocumentTransform`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/DocumentTransform.ts).\n *\n * No user-provided DocumentNode will actually be \"the last one\", as we run the\n * `defaultDocumentTransform` before *and* after the user-provided transforms.\n * For that reason, we need the extra `n` here - `n` for \"before transformation\"\n * plus the actual maximum cache size of the user-provided transform chain.\n *\n * This method is called from `transformDocument`, which is called from\n * `QueryManager` with a user-provided DocumentNode.\n * It is also called with already-transformed DocumentNodes, assuming the\n * user provided additional transforms.\n *\n */\n \"documentTransform.cache\": number;\n /**\n * A cache inside of [`QueryManager`](https://github.com/apollographql/apollo-client/blob/main/src/core/QueryManager.ts).\n *\n * It is called with transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @privateRemarks\n * Cache size for the `transformCache` used in the `getDocumentInfo` method of `QueryManager`.\n * Called throughout the `QueryManager` with transformed DocumentNodes.\n */\n \"queryManager.getDocumentInfo\": number;\n /**\n * A cache inside of [`PersistedQueryLink`](https://github.com/apollographql/apollo-client/blob/main/src/link/persisted-queries/index.ts).\n *\n * It is called with transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @remarks\n * This cache is used to cache the hashes of persisted queries.\n *\n * @privateRemarks\n * Cache size for the `hashesByQuery` cache in the `PersistedQueryLink`.\n */\n \"PersistedQueryLink.persistedQueryHashes\": number;\n /**\n * Cache used by [`canonicalStringify`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/common/canonicalStringify.ts).\n *\n * @defaultValue\n * Defaults to `1000`.\n *\n * @remarks\n * This cache contains the sorted keys of objects that are stringified by\n * `canonicalStringify`.\n * It uses the stringified unsorted keys of objects as keys.\n * The cache will not grow beyond the size of different object **shapes**\n * encountered in an application, no matter how much actual data gets stringified.\n *\n * @privateRemarks\n * Cache size for the `sortingMap` in `canonicalStringify`.\n */\n canonicalStringify: number;\n /**\n * A cache inside of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n *\n * Can be called with user-defined or already-transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @privateRemarks\n *\n * Cache size for the `transform` method of FragmentRegistry.\n * This function is called as part of the `defaultDocumentTransform` which will be called with\n * user-provided and already-transformed DocumentNodes.\n *\n */\n \"fragmentRegistry.transform\": number;\n /**\n * A cache inside of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n *\n * This function is called with fragment names in the form of a string.\n *\n * @defaultValue\n * Defaults to `1000`.\n *\n * @remarks\n * The size of this case should be chosen with the number of fragments in\n * your application in mind.\n *\n * Note:\n * This function is a dependency of `fragmentRegistry.transform`, so having too small of a cache size here\n * might involuntarily invalidate values in the `transform` cache.\n *\n * @privateRemarks\n * Cache size for the `lookup` method of FragmentRegistry.\n */\n \"fragmentRegistry.lookup\": number;\n /**\n * Cache size for the `findFragmentSpreads` method of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n *\n * This function is called with transformed `DocumentNode`s, as well as recursively\n * with every fragment spread referenced within that, or a fragment referenced by a\n * fragment spread.\n *\n * @defaultValue\n * Defaults to `4000`.\n *\n * @remarks\n *\n * Note: This function is a dependency of `fragmentRegistry.transform`, so having too small of cache size here\n * might involuntarily invalidate values in the `transform` cache.\n */\n \"fragmentRegistry.findFragmentSpreads\": number;\n /**\n * Cache size for the `getFragmentDoc` method of [`ApolloCache`](https://github.com/apollographql/apollo-client/blob/main/src/cache/core/cache.ts).\n *\n * This function is called with user-provided fragment definitions.\n *\n * @defaultValue\n * Defaults to `1000`.\n *\n * @remarks\n * This function is called from `readFragment` with user-provided fragment definitions.\n */\n \"cache.fragmentQueryDocuments\": number;\n /**\n * Cache used in [`removeTypenameFromVariables`](https://github.com/apollographql/apollo-client/blob/main/src/link/remove-typename/removeTypenameFromVariables.ts).\n *\n * This function is called transformed `DocumentNode`s.\n *\n * @defaultValue\n * Defaults to `2000`.\n *\n * @privateRemarks\n * Cache size for the `getVariableDefinitions` function of `removeTypenameFromVariables`.\n */\n \"removeTypenameFromVariables.getVariableDefinitions\": number;\n /**\n * Cache size for the `maybeBroadcastWatch` method on [`InMemoryCache`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/inMemoryCache.ts).\n *\n * Note: `maybeBroadcastWatch` will be set to the `resultCacheMaxSize` option and\n * will fall back to this configuration value if the option is not set.\n *\n * @defaultValue\n * Defaults to `5000`.\n *\n * @remarks\n * This method is used for dependency tracking in the `InMemoryCache` and\n * prevents from unnecessary re-renders.\n * It is recommended to keep this value significantly higher than the number of\n * possible subscribers you will have active at the same time in your application\n * at any time.\n */\n \"inMemoryCache.maybeBroadcastWatch\": number;\n /**\n * Cache size for the `executeSelectionSet` method on [`StoreReader`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/readFromStore.ts).\n *\n * Note:\n * `executeSelectionSet` will be set to the `resultCacheMaxSize` option and\n * will fall back to this configuration value if the option is not set.\n *\n * @defaultValue\n * Defaults to `50000`.\n *\n * @remarks\n * Every object that is read from the cache will be cached here, so it is\n * recommended to set this to a high value.\n */\n \"inMemoryCache.executeSelectionSet\": number;\n /**\n * Cache size for the `executeSubSelectedArray` method on [`StoreReader`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/readFromStore.ts).\n *\n * Note:\n * `executeSubSelectedArray` will be set to the `resultCacheMaxSize` option and\n * will fall back to this configuration value if the option is not set.\n *\n * @defaultValue\n * Defaults to `10000`.\n *\n * @remarks\n * Every array that is read from the cache will be cached here, so it is\n * recommended to set this to a high value.\n */\n \"inMemoryCache.executeSubSelectedArray\": number;\n /**\n * Used by the internal `checkDocument` that traverses GraphQL documents and throws an error if the document is invalid.\n * if they are not valid.\n */\n checkDocument: number;\n}\n\nconst cacheSizeSymbol = Symbol.for(\"apollo.cacheSize\");\n/**\n *\n * The global cache size configuration for Apollo Client.\n *\n * @remarks\n *\n * You can directly modify this object, but any modification will\n * only have an effect on caches that are created after the modification.\n *\n * So for global caches, such as `canonicalStringify` and `print`,\n * you might need to call `.reset` on them, which will essentially re-create them.\n *\n * Alternatively, you can set `globalThis[Symbol.for(\"apollo.cacheSize\")]` before\n * you load the Apollo Client package:\n *\n * @example\n * ```ts\n * globalThis[Symbol.for(\"apollo.cacheSize\")] = {\n * print: 100\n * } satisfies Partial<CacheSizes> // the `satisfies` is optional if using TypeScript\n * ```\n */\nexport const cacheSizes: Partial<CacheSizes> = { ...global[cacheSizeSymbol] };\n\nexport const enum defaultCacheSizes {\n checkDocument = 2000,\n canonicalStringify = 1000,\n print = 2000,\n \"documentTransform.cache\" = 2000,\n \"queryManager.getDocumentInfo\" = 2000,\n \"PersistedQueryLink.persistedQueryHashes\" = 2000,\n \"fragmentRegistry.transform\" = 2000,\n \"fragmentRegistry.lookup\" = 1000,\n \"fragmentRegistry.findFragmentSpreads\" = 4000,\n \"cache.fragmentQueryDocuments\" = 1000,\n \"removeTypenameFromVariables.getVariableDefinitions\" = 2000,\n \"inMemoryCache.maybeBroadcastWatch\" = 5000,\n \"inMemoryCache.executeSelectionSet\" = 50000,\n \"inMemoryCache.executeSubSelectedArray\" = 10000,\n}\n"]}
@@ -5,4 +5,4 @@
5
5
  * @returns The object with all `__typename` properties removed.
6
6
  */
7
7
  export declare function stripTypename<T>(value: T): import("@apollo/client/utilities/internal").DeepOmit<T, "__typename">;
8
- //# sourceMappingURL=stripTypename.d.ts.map
8
+ //# sourceMappingURL=stripTypename.d.ts.map
@@ -8,4 +8,4 @@ import { omitDeep } from "@apollo/client/utilities/internal";
8
8
  export function stripTypename(value) {
9
9
  return omitDeep(value, "__typename");
10
10
  }
11
- //# sourceMappingURL=stripTypename.js.map
11
+ //# sourceMappingURL=stripTypename.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stripTypename.js","sources":["../../../src/utilities/common/stripTypename.ts"],"sourcesContent":["import { omitDeep } from \"@apollo/client/utilities/internal\";\n\n/**\n * Deeply removes all `__typename` properties in the given object or array.\n *\n * @param value - The object or array that should have `__typename` removed.\n * @returns The object with all `__typename` properties removed.\n */\nexport function stripTypename<T>(value: T) {\n return omitDeep(value, \"__typename\");\n}\n"],"names":[],"mappings":"AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAAyB,CAAzB,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,CAA4D;AAE5D,CAAA,CAAA;;;;;CAKA,CAAA;AACA,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,CAAiC,CAAjC,CAAA,CAAA,CAAA,CAAA,EAAA;IACE,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAC,CAAlB,CAAA,CAAA,CAAA,CAAuB,EAAE,CAAzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqC,CAAC;AACtC;"}
1
+ {"version":3,"file":"stripTypename.js","sourceRoot":"","sources":["../../../src/utilities/common/stripTypename.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAI,KAAQ;IACvC,OAAO,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AACvC,CAAC","sourcesContent":["import { omitDeep } from \"@apollo/client/utilities/internal\";\n\n/**\n * Deeply removes all `__typename` properties in the given object or array.\n *\n * @param value - The object or array that should have `__typename` removed.\n * @returns The object with all `__typename` properties removed.\n */\nexport function stripTypename<T>(value: T) {\n return omitDeep(value, \"__typename\");\n}\n"]}
@@ -1,2 +1,2 @@
1
1
  export declare const __DEV__: boolean;
2
- //# sourceMappingURL=index.d.ts.map
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export declare const __DEV__: boolean;
2
- //# sourceMappingURL=index.development.d.ts.map
2
+ //# sourceMappingURL=index.development.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export const __DEV__ = true;
2
- //# sourceMappingURL=index.development.js.map
2
+ //# sourceMappingURL=index.development.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.development.js","sources":["../../../src/utilities/environment/index.development.ts"],"sourcesContent":["export const __DEV__ = true as boolean;\n"],"names":[],"mappings":"AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAuB,CAAvB,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.development.js","sourceRoot":"","sources":["../../../src/utilities/environment/index.development.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,IAAe,CAAC","sourcesContent":["export const __DEV__ = true as boolean;\n"]}
@@ -1,2 +1,2 @@
1
1
  export const __DEV__ = globalThis.__DEV__ === true;
2
- //# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/utilities/environment/index.ts"],"sourcesContent":["declare const globalThis: { __DEV__?: boolean };\n\nexport const __DEV__: boolean = globalThis.__DEV__ === true;\n"],"names":[],"mappings":"AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAgC,CAAhC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0C,CAAC,CAA3C,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAuD,CAAvD,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utilities/environment/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAY,UAAU,CAAC,OAAO,KAAK,IAAI,CAAC","sourcesContent":["declare const globalThis: { __DEV__?: boolean };\n\nexport const __DEV__: boolean = globalThis.__DEV__ === true;\n"]}
@@ -1,2 +1,2 @@
1
1
  export declare const __DEV__: boolean;
2
- //# sourceMappingURL=index.production.d.ts.map
2
+ //# sourceMappingURL=index.production.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export const __DEV__ = false;
2
- //# sourceMappingURL=index.production.js.map
2
+ //# sourceMappingURL=index.production.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.production.js","sources":["../../../src/utilities/environment/index.production.ts"],"sourcesContent":["export const __DEV__ = false as boolean;\n"],"names":[],"mappings":"AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAa,CAAb,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAuB,CAAvB,CAAA,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.production.js","sourceRoot":"","sources":["../../../src/utilities/environment/index.production.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,KAAgB,CAAC","sourcesContent":["export const __DEV__ = false as boolean;\n"]}
@@ -1,3 +1,3 @@
1
1
  import type { FormattedExecutionResult } from "graphql";
2
2
  export declare function isFormattedExecutionResult(result?: object): result is FormattedExecutionResult;
3
- //# sourceMappingURL=isFormattedExecutionResult.d.ts.map
3
+ //# sourceMappingURL=isFormattedExecutionResult.d.ts.map
@@ -3,4 +3,4 @@ export function isFormattedExecutionResult(result) {
3
3
  ("errors" in result || "data" in result) &&
4
4
  Object.keys(result).every((key) => key === "errors" || key === "data" || key === "extensions"));
5
5
  }
6
- //# sourceMappingURL=isFormattedExecutionResult.js.map
6
+ //# sourceMappingURL=isFormattedExecutionResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isFormattedExecutionResult.js","sources":["../../../src/utilities/graphql/isFormattedExecutionResult.ts"],"sourcesContent":["import type { FormattedExecutionResult } from \"graphql\";\n\nexport function isFormattedExecutionResult(\n result?: object\n): result is FormattedExecutionResult {\n return (\n !!result &&\n (\"errors\" in result || \"data\" in result) &&\n Object.keys(result).every(\n (key) => key === \"errors\" || key === \"data\" || key === \"extensions\"\n )\n );\n}\n"],"names":[],"mappings":"AAEA,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,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,CADF,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA;IAGE,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CACL,CAAC,CAAC,CADN,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA;QAEI,CAAC,CAAL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAiB,CAAjB,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAA2B,CAA3B,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAqC,CAArC,CAAA,CAAA,CAAA,CAAA,CAA2C,EAA3C,CAAA;QACI,CAAJ,CAAA,CAAA,CAAA,CAAA,CAAU,CAAC,CAAX,CAAA,CAAA,CAAe,CAAC,CAAhB,CAAA,CAAA,CAAA,CAAA,CAAsB,CAAC,CAAC,CAAxB,CAAA,CAAA,CAAA,CAA6B,CACvB,CAAC,CADP,CAAA,CACU,EAAE,CADZ,EACe,CADf,CAAA,EAAA,CAAA,CAAA,EACuB,CADvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EACmC,CADnC,CAAA,EAAA,CAAA,CAAA,EAC2C,CAD3C,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EACqD,CADrD,CAAA,EAAA,CAAA,CAAA,EAC6D,CAD7D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACyE,CACpE,CACF;AACH;"}
1
+ {"version":3,"file":"isFormattedExecutionResult.js","sourceRoot":"","sources":["../../../src/utilities/graphql/isFormattedExecutionResult.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,0BAA0B,CACxC,MAAe;IAEf,OAAO,CACL,CAAC,CAAC,MAAM;QACR,CAAC,QAAQ,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,CAAC;QACxC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CACvB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,YAAY,CACpE,CACF,CAAC;AACJ,CAAC","sourcesContent":["import type { FormattedExecutionResult } from \"graphql\";\n\nexport function isFormattedExecutionResult(\n result?: object\n): result is FormattedExecutionResult {\n return (\n !!result &&\n (\"errors\" in result || \"data\" in result) &&\n Object.keys(result).every(\n (key) => key === \"errors\" || key === \"data\" || key === \"extensions\"\n )\n );\n}\n"]}
@@ -23,4 +23,4 @@ export declare function isQueryOperation(document: DocumentNode): boolean;
23
23
  * @since 3.8.0
24
24
  */
25
25
  export declare function isSubscriptionOperation(document: DocumentNode): boolean;
26
- //# sourceMappingURL=operations.d.ts.map
26
+ //# sourceMappingURL=operations.d.ts.map
@@ -32,4 +32,4 @@ export function isQueryOperation(document) {
32
32
  export function isSubscriptionOperation(document) {
33
33
  return isOperation(document, "subscription");
34
34
  }
35
- //# sourceMappingURL=operations.js.map
35
+ //# sourceMappingURL=operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sources":["../../../src/utilities/graphql/operations.ts"],"sourcesContent":["import type { DocumentNode } from \"@apollo/client\";\nimport { getOperationDefinition } from \"@apollo/client/utilities/internal\";\n\nfunction isOperation(\n document: DocumentNode,\n operation: \"query\" | \"mutation\" | \"subscription\"\n) {\n return getOperationDefinition(document)?.operation === operation;\n}\n\n/**\n * Determine if a document is a mutation document.\n *\n * @param document - The GraphQL document to check\n *\n * @since 3.8.0\n */\nexport function isMutationOperation(document: DocumentNode) {\n return isOperation(document, \"mutation\");\n}\n\n/**\n * Determine if a document is a query document.\n *\n * @param document - The GraphQL document to check\n *\n * @since 3.8.0\n */\nexport function isQueryOperation(document: DocumentNode) {\n return isOperation(document, \"query\");\n}\n\n/**\n * Determine if a document is a subscription document.\n *\n * @param document - The GraphQL document to check\n *\n * @since 3.8.0\n */\nexport function isSubscript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CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA;IACE,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAC,CAArB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6B,EAAE,CAA/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6C,CAAC;AAC9C;"}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/utilities/graphql/operations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,SAAS,WAAW,CAClB,QAAsB,EACtB,SAAgD;IAEhD,OAAO,sBAAsB,CAAC,QAAQ,CAAC,EAAE,SAAS,KAAK,SAAS,CAAC;AACnE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAsB;IACxD,OAAO,WAAW,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAsB;IACrD,OAAO,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAsB;IAC5D,OAAO,WAAW,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AAC/C,CAAC","sourcesContent":["import type { DocumentNode } from \"@apollo/client\";\nimport { getOperationDefinition } from \"@apollo/client/utilities/internal\";\n\nfunction isOperation(\n document: DocumentNode,\n operation: \"query\" | \"mutation\" | \"subscription\"\n) {\n return getOperationDefinition(document)?.operation === operation;\n}\n\n/**\n * Determine if a document is a mutation document.\n *\n * @param document - The GraphQL document to check\n *\n * @since 3.8.0\n */\nexport function isMutationOperation(document: DocumentNode) {\n return isOperation(document, \"mutation\");\n}\n\n/**\n * Determine if a document is a query document.\n *\n * @param document - The GraphQL document to check\n *\n * @since 3.8.0\n */\nexport function isQueryOperation(document: DocumentNode) {\n return isOperation(document, \"query\");\n}\n\n/**\n * Determine if a document is a subscription document.\n *\n * @param document - The GraphQL document to check\n *\n * @since 3.8.0\n */\nexport function isSubscriptionOperation(document: DocumentNode) {\n return isOperation(document, \"subscription\");\n}\n"]}
@@ -10,4 +10,4 @@ import type { ASTNode } from "graphql";
10
10
  export declare const print: ((ast: ASTNode) => string) & {
11
11
  reset(): void;
12
12
  };
13
- //# sourceMappingURL=print.d.ts.map
13
+ //# sourceMappingURL=print.d.ts.map
@@ -27,4 +27,4 @@ print.reset();
27
27
  if (__DEV__) {
28
28
  registerGlobalCache("print", () => (printCache ? printCache.size : 0));
29
29
  }
30
- //# sourceMappingURL=print.js.map
30
+ //# sourceMappingURL=print.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"print.js","sources":["../../../src/utilities/graphql/print.ts"],"sourcesContent":["import type { ASTNode } from \"graphql\";\nimport { print as origPrint } from \"graphql\";\n\nimport { __DEV__ } from \"@apollo/client/utilities/environment\";\nimport {\n AutoCleanedWeakCache,\n registerGlobalCache,\n} from \"@apollo/client/utilities/internal\";\n\nimport { cacheSizes, defaultCacheSizes } from \"../caching/index.js\";\n\nlet printCache!: AutoCleanedWeakCache<ASTNode, string>;\n\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n *\n * @remarks This is the same function as the GraphQL.js `print` function but\n * with an added cache to avoid recomputation when encountering the same\n * `ASTNode` more than once.\n */\nexport const print = Object.assign(\n (ast: ASTNode) => {\n let result = printCache.get(ast);\n\n if (!result) {\n result = origPrint(ast);\n printCache.set(ast, result);\n }\n return result;\n },\n {\n reset() {\n printCache = new AutoCleanedWeakCache<ASTNode, string>(\n cacheSizes.print || defaultCacheSizes.print\n );\n },\n }\n);\nprint.reset();\n\nif (__DEV__) {\n registerGlobalCache(\"print\", () => (printCache ? printCache.size : 0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AO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAqB,MAAM,qBAAqB,CAAC;AAEpE,IAAI,UAAkD,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAChC,CAAC,GAAY,EAAE,EAAE;IACf,IAAI,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEjC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QACxB,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,EACD;IACE,KAAK;QACH,UAAU,GAAG,IAAI,oBAAoB,CACnC,UAAU,CAAC,KAAK,sCAA2B,CAC5C,CAAC;IACJ,CAAC;CACF,CACF,CAAC;AACF,KAAK,CAAC,KAAK,EAAE,CAAC;AAEd,IAAI,OAAO,EAAE,CAAC;IACZ,mBAAmB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC","sourcesContent":["import type { ASTNode } from \"graphql\";\nimport { print as origPrint } from \"graphql\";\n\nimport { __DEV__ } from \"@apollo/client/utilities/environment\";\nimport {\n AutoCleanedWeakCache,\n registerGlobalCache,\n} from \"@apollo/client/utilities/internal\";\n\nimport { cacheSizes, defaultCacheSizes } from \"../caching/index.js\";\n\nlet printCache!: AutoCleanedWeakCache<ASTNode, string>;\n\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n *\n * @remarks This is the same function as the GraphQL.js `print` function but\n * with an added cache to avoid recomputation when encountering the same\n * `ASTNode` more than once.\n */\nexport const print = Object.assign(\n (ast: ASTNode) => {\n let result = printCache.get(ast);\n\n if (!result) {\n result = origPrint(ast);\n printCache.set(ast, result);\n }\n return result;\n },\n {\n reset() {\n printCache = new AutoCleanedWeakCache<ASTNode, string>(\n cacheSizes.print || defaultCacheSizes.print\n );\n },\n }\n);\nprint.reset();\n\nif (__DEV__) {\n registerGlobalCache(\"print\", () => (printCache ? printCache.size : 0));\n}\n"]}
@@ -40,4 +40,4 @@ export type AsStoreObject<T extends {
40
40
  }> = {
41
41
  [K in keyof T]: T[K];
42
42
  };
43
- //# sourceMappingURL=storeUtils.d.ts.map
43
+ //# sourceMappingURL=storeUtils.d.ts.map
@@ -6,4 +6,4 @@
6
6
  export function isReference(obj) {
7
7
  return Boolean(obj && typeof obj === "object" && typeof obj.__ref === "string");
8
8
  }
9
- //# sourceMappingURL=storeUtils.js.map
9
+ //# sourceMappingURL=storeUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storeUtils.js","sources":["../../../src/utilities/graphql/storeUtils.ts"],"sourcesContent":["/**\n * Representation of a reference object inside the cache.\n */\nexport interface Reference {\n readonly __ref: string;\n}\n\n/**\n * Determines if a given object is a reference object.\n *\n * @param obj - The object to check if its a reference object\n */\nexport function isReference(obj: any): obj is Reference {\n return Boolean(\n obj && typeof obj === \"object\" && typeof obj.__ref === \"string\"\n );\n}\n\n/**\n * Represents the union of valid values that can be stored in the cache.\n */\nexport type StoreValue =\n | number\n | string\n | string[]\n | Reference\n | Reference[]\n | null\n | undefined\n | void\n | Object;\n\n/**\n * Represents an object that is stored in the cache.\n */\nexport interface StoreObject {\n __typename?: string;\n [storeFieldName: string]: StoreValue;\n}\n\n/**\n * Workaround for a TypeScript quirk:\n * types per default have an implicit index signature that makes them\n * assignable to `StoreObject`.\n * interfaces do not have that implicit index signature, so they cannot\n * be assigned to `StoreObject`.\n * This type just maps over a type or interface that is passed in,\n * implicitly adding the index signature.\n * That way, the result can be assigned to `StoreObject`.\n *\n * This is important if some user-defined interface is used e.g.\n * in cache.modify, where the `toReference` method expects a\n * `StoreObject` as input.\n */\nexport type AsStoreObject<T extends { __typename?: string }> = {\n [K in keyof T]: T[K];\n};\n"],"names":[],"mappings":"AAOA,CAAA,CAAA;;;;CAIA,CAAA;AACA,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,CAA4B,CAA5B,CAAA,CAAA,EAAA;IACE,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CACZ,CADJ,CAAA,EAAA,CAAA,EACW,CADX,CAAA,CAAA,CAAA,CAAA,EACkB,CADlB,CAAA,EAAA,CAAA,CAAA,EAC0B,CAD1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EACsC,CADtC,CAAA,CAAA,CAAA,CAAA,EAC6C,CAD7C,CAAA,CACgD,CAAC,CADjD,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAC2D,CAD3D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACmE,CAChE;AACH;"}
1
+ {"version":3,"file":"storeUtils.js","sourceRoot":"","sources":["../../../src/utilities/graphql/storeUtils.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,GAAQ;IAClC,OAAO,OAAO,CACZ,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,CAChE,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Representation of a reference object inside the cache.\n */\nexport interface Reference {\n readonly __ref: string;\n}\n\n/**\n * Determines if a given object is a reference object.\n *\n * @param obj - The object to check if its a reference object\n */\nexport function isReference(obj: any): obj is Reference {\n return Boolean(\n obj && typeof obj === \"object\" && typeof obj.__ref === \"string\"\n );\n}\n\n/**\n * Represents the union of valid values that can be stored in the cache.\n */\nexport type StoreValue =\n | number\n | string\n | string[]\n | Reference\n | Reference[]\n | null\n | undefined\n | void\n | Object;\n\n/**\n * Represents an object that is stored in the cache.\n */\nexport interface StoreObject {\n __typename?: string;\n [storeFieldName: string]: StoreValue;\n}\n\n/**\n * Workaround for a TypeScript quirk:\n * types per default have an implicit index signature that makes them\n * assignable to `StoreObject`.\n * interfaces do not have that implicit index signature, so they cannot\n * be assigned to `StoreObject`.\n * This type just maps over a type or interface that is passed in,\n * implicitly adding the index signature.\n * That way, the result can be assigned to `StoreObject`.\n *\n * This is important if some user-defined interface is used e.g.\n * in cache.modify, where the `toReference` method expects a\n * `StoreObject` as input.\n */\nexport type AsStoreObject<T extends { __typename?: string }> = {\n [K in keyof T]: T[K];\n};\n"]}
@@ -7,4 +7,4 @@ import type { ASTNode, FieldNode } from "graphql";
7
7
  export declare const addTypenameToDocument: (<TNode extends ASTNode>(doc: TNode) => TNode) & {
8
8
  added(field: FieldNode): boolean;
9
9
  };
10
- //# sourceMappingURL=transform.d.ts.map
10
+ //# sourceMappingURL=transform.d.ts.map
@@ -57,4 +57,4 @@ export const addTypenameToDocument = Object.assign(function (doc) {
57
57
  return field === TYPENAME_FIELD;
58
58
  },
59
59
  });
60
- //# sourceMappingURL=transform.js.map
60
+ //# sourceMappingURL=transform.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transform.js","sources":["../../../src/utilities/graphql/transform.ts"],"sourcesContent":["import type { ASTNode, FieldNode, OperationDefinitionNode } from \"graphql\";\nimport { Kind, visit } from \"graphql\";\n\nconst TYPENAME_FIELD: FieldNode = {\n kind: Kind.FIELD,\n name: {\n kind: Kind.NAME,\n value: \"__typename\",\n },\n};\n\n/**\n * Adds `__typename` to all selection sets in the document.\n *\n * @param doc - The `ASTNode` to add `__typename` to\n */\nexport const addTypenameToDocument = Object.assign(\n function <TNode extends ASTNode>(doc: TNode): TNode {\n return visit(doc, {\n SelectionSet: {\n enter(node, _key, parent) {\n // Don't add __typename to OperationDefinitions.\n if (\n parent &&\n (parent as OperationDefinitionNode).kind ===\n Kind.OPERATION_DEFINITION\n ) {\n return;\n }\n\n // No changes if no selections.\n const { selections } = node;\n if (!selections) {\n return;\n }\n\n // If selections already have a __typename, or are part of an\n // introspection query, do nothing.\n const skip = selections.some((selection) => {\n return (\n selection.kind === Kind.FIELD &&\n (selection.name.value === \"__typename\" ||\n selection.name.value.lastIndexOf(\"__\", 0) === 0)\n );\n });\n if (skip) {\n return;\n }\n\n // If this SelectionSet is @export-ed as an input variable, it should\n // not have a __typename field (see issue #4691).\n const field = parent as FieldNode;\n if (\n field.kind === Kind.FIELD &&\n field.directives &&\n field.directives.some((d) => d.name.value === \"export\")\n ) {\n return;\n }\n\n // Create and return a new SelectionSet with a __typename Field.\n return {\n ...node,\n selections: [...selections, TYPENAME_FIELD],\n };\n },\n },\n });\n },\n {\n added(field: FieldNode): boolean {\n return field === TYPENAME_FIELD;\n },\n }\n);\n"],"names":[],"mappings":"AACA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAa,EAAE,CAAf,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA4B,CAA5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqC;AAErC,CAAA,CAAA,CAAA,CAAA,EAAM,CAAN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAkC;IAChC,CAAF,CAAA,CAAA,CAAM,EAAE,CAAR,CAAA,CAAA,CAAY,CAAC,CAAb,CAAA,CAAA,CAAA,CAAkB;IAChB,CAAF,CAAA,CAAA,CAAM,EAAE;QACJ,CAAJ,CAAA,CAAA,CAAQ,EAAE,CAAV,CAAA,CA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AAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,EACvD,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,gEAAgE;gBAChE,OAAO;oBACL,GAAG,IAAI;oBACP,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,cAAc,CAAC;iBAC5C,CAAC;YACJ,CAAC;SACF;KACF,CAAC,CAAC;AACL,CAAC,EACD;IACE,KAAK,CAAC,KAAgB;QACpB,OAAO,KAAK,KAAK,cAAc,CAAC;IAClC,CAAC;CACF,CACF,CAAC","sourcesContent":["import type { ASTNode, FieldNode, OperationDefinitionNode } from \"graphql\";\nimport { Kind, visit } from \"graphql\";\n\nconst TYPENAME_FIELD: FieldNode = {\n kind: Kind.FIELD,\n name: {\n kind: Kind.NAME,\n value: \"__typename\",\n },\n};\n\n/**\n * Adds `__typename` to all selection sets in the document.\n *\n * @param doc - The `ASTNode` to add `__typename` to\n */\nexport const addTypenameToDocument = Object.assign(\n function <TNode extends ASTNode>(doc: TNode): TNode {\n return visit(doc, {\n SelectionSet: {\n enter(node, _key, parent) {\n // Don't add __typename to OperationDefinitions.\n if (\n parent &&\n (parent as OperationDefinitionNode).kind ===\n Kind.OPERATION_DEFINITION\n ) {\n return;\n }\n\n // No changes if no selections.\n const { selections } = node;\n if (!selections) {\n return;\n }\n\n // If selections already have a __typename, or are part of an\n // introspection query, do nothing.\n const skip = selections.some((selection) => {\n return (\n selection.kind === Kind.FIELD &&\n (selection.name.value === \"__typename\" ||\n selection.name.value.lastIndexOf(\"__\", 0) === 0)\n );\n });\n if (skip) {\n return;\n }\n\n // If this SelectionSet is @export-ed as an input variable, it should\n // not have a __typename field (see issue #4691).\n const field = parent as FieldNode;\n if (\n field.kind === Kind.FIELD &&\n field.directives &&\n field.directives.some((d) => d.name.value === \"export\")\n ) {\n return;\n }\n\n // Create and return a new SelectionSet with a __typename Field.\n return {\n ...node,\n selections: [...selections, TYPENAME_FIELD],\n };\n },\n },\n });\n },\n {\n added(field: FieldNode): boolean {\n return field === TYPENAME_FIELD;\n },\n }\n);\n"]}
@@ -15,4 +15,4 @@ export { stripTypename } from "./common/stripTypename.js";
15
15
  export { cacheSizes } from "./caching/index.js";
16
16
  export type { CacheSizes } from "./caching/index.js";
17
17
  export type { HKT } from "./HKT.js";
18
- //# sourceMappingURL=index.d.ts.map
18
+ //# sourceMappingURL=index.d.ts.map
@@ -10,4 +10,4 @@ export { concatPagination, offsetLimitPagination, relayStylePagination, } from "
10
10
  export { canonicalStringify } from "./shared/canonicalStringify.js";
11
11
  export { stripTypename } from "./common/stripTypename.js";
12
12
  export { cacheSizes } from "./caching/index.js";
13
- //# sourceMappingURL=index.js.map
13
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/utilities/index.ts"],"sourcesContent":["export { Observable } from \"rxjs\";\n\nexport type { DeepPartial } from \"./DeepPartial.js\";\n\nexport type { DocumentTransformCacheKey } from \"./graphql/DocumentTransform.js\";\nexport { DocumentTransform } from \"./graphql/DocumentTransform.js\";\n\nexport { print } from \"./graphql/print.js\";\nexport { isFormattedExecutionResult } from \"./graphql/isFormattedExecutionResult.js\";\n\nexport type {\n AsStoreObject,\n Reference,\n StoreObject,\n StoreValue,\n} from \"./graphql/storeUtils.js\";\nexport { isReference } from \"./graphql/storeUtils.js\";\n\nexport { addTypenameToDocument } from \"./graphql/transform.js\";\n\nexport {\n isMutationOperation,\n isQueryOperation,\n isSubscriptionOperation,\n} from \"./graphql/operations.js\";\nexport { getMainDefinition } from \"@apollo/client/utilities/internal\";\n\nexport {\n concatPagination,\n offsetLimitPagination,\n relayStylePagination,\n} from \"./policies/pagination.js\";\n\nexport { canonicalStringify } from \"./shared/canonicalStringify.js\";\nexport { stripTypename } from \"./common/stripTypename.js\";\n\nexport { cacheSizes } from \"./caching/index.js\";\nexport type { CacheSizes } from \"./caching/index.js\";\n\nexport type { HKT } from \"./HKT.js\";\n"],"names":[],"mappings":"AAA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,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { Observable } from \"rxjs\";\n\nexport type { DeepPartial } from \"./DeepPartial.js\";\n\nexport type { DocumentTransformCacheKey } from \"./graphql/DocumentTransform.js\";\nexport { DocumentTransform } from \"./graphql/DocumentTransform.js\";\n\nexport { print } from \"./graphql/print.js\";\nexport { isFormattedExecutionResult } from \"./graphql/isFormattedExecutionResult.js\";\n\nexport type {\n AsStoreObject,\n Reference,\n StoreObject,\n StoreValue,\n} from \"./graphql/storeUtils.js\";\nexport { isReference } from \"./graphql/storeUtils.js\";\n\nexport { addTypenameToDocument } from \"./graphql/transform.js\";\n\nexport {\n isMutationOperation,\n isQueryOperation,\n isSubscriptionOperation,\n} from \"./graphql/operations.js\";\nexport { getMainDefinition } from \"@apollo/client/utilities/internal\";\n\nexport {\n concatPagination,\n offsetLimitPagination,\n relayStylePagination,\n} from \"./policies/pagination.js\";\n\nexport { canonicalStringify } from \"./shared/canonicalStringify.js\";\nexport { stripTypename } from \"./common/stripTypename.js\";\n\nexport { cacheSizes } from \"./caching/index.js\";\nexport type { CacheSizes } from \"./caching/index.js\";\n\nexport type { HKT } from \"./HKT.js\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"argumentsObjectFromField.js","sources":["../../../src/utilities/internal/argumentsObjectFromField.ts"],"sourcesContent":["import type { DirectiveNode, FieldNode } from \"graphql\";\n\nimport { valueToObjectRepresentation } from \"./valueToObjectRepresentation.js\";\n\n/** @internal */\nexport function argumentsObjectFromField(\n field: FieldNode | DirectiveNode,\n variables?: Record<string, any>\n): Object | null {\n if (field.arguments && field.arguments.length) {\n const argObj: Object = {};\n field.arguments.forEach(({ name, value }) =>\n valueToObjectRepresentation(argObj, name, value, variables)\n );\n return argObj;\n }\n return null;\n}\n"],"names":[],"mappings":"AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,EAAE,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA4C,CAA5C,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,CAA8E;;;;;;AAG9E,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,CAAA,CAAA,CAAA,CACE,CADF,CAAA,CAAA,CAAA,CAAA,EAEE,CAFF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA;IAIE,CAAF,EAAA,CAAM,CAAN,CAAA,CAAA,CAAA,CAAW,CAAC,CAAZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAyB,CAAzB,CAAA,CAAA,CAAA,CAA8B,CAAC,CAA/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwC,CAAC,CAAzC,CAAA,CAAA,CAAA,CAAA,CAA+C,EAAE;QAC7C,CAAJ,CAAA,CAAA,CAAA,EAAU,CAAV,CAAA,CAAA,CAAA,CAAA,EAAA,EAA2B,CAA3B,CAA6B;QACzB,CAAJ,CAAA,CAAA,CAAA,CAAS,CAAC,CAAV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmB,CAAC,CAApB,CAAA,CAAA,CAAA,CAAA,CAAA,CAA2B,CAAC,CAAC,EAAE,CAA/B,CAAA,CAAA,CAAmC,EAAE,CAArC,CAAA,CAAA,CAAA,EAAA,CAA4C,EAAE,CAA9C,EACM,CADN,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,CACiC,CAAC,CADlC,CAAA,CAAA,CAAA,CAAA,CACwC,EAAE,CAD1C,CAAA,CAAA,CAC8C,EAAE,CADhD,CAAA,CAAA,CAAA,CACqD,EAAE,CADvD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACgE,CAAC,CAC5D;QACD,CAAJ,CAAA,CAAA,CAAA,CAAA,EAAW,CAAX,CAAA,CAAA,CAAA,CAAA,CAAiB;IACf;IACA,CAAF,CAAA,CAAA,CAAA,CAAA,EAAS,CAAT,CAAA,CAAA,CAAa;AACb;"}
1
+ {"version":3,"file":"argumentsObjectFromField.js","sources":["../../../src/utilities/internal/argumentsObjectFromField.ts"],"sourcesContent":["import type { DirectiveNode, FieldNode } from \"graphql\";\n\nimport { valueToObjectRepresentation } from \"./valueToObjectRepresentation.js\";\n\n/** @internal */\nexport function argumentsObjectFromField(\n field: FieldNode | DirectiveNode,\n variables?: Record<string, any>\n): Object | null {\n if (field.arguments && field.arguments.length) {\n const argObj: Object = {};\n field.arguments.forEach(({ name, value }) =>\n valueToObjectRepresentation(argObj, name, value, variables)\n );\n return argObj;\n }\n return null;\n}\n"],"names":[],"mappings":"AAEA,C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