@apollo/client 3.1.0-pre.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/apollo-client.cjs.js +123 -157
  2. package/apollo-client.cjs.js.map +1 -1
  3. package/apollo-client.cjs.min.js +1 -1
  4. package/cache/cache.cjs.js +11 -2
  5. package/cache/cache.cjs.js.map +1 -1
  6. package/cache/core/cache.js +2 -18
  7. package/cache/core/cache.js.map +1 -1
  8. package/cache/core/types/Cache.js +2 -4
  9. package/cache/core/types/Cache.js.map +1 -1
  10. package/cache/core/types/common.js +1 -2
  11. package/cache/core/types/common.js.map +1 -1
  12. package/cache/index.js +8 -8
  13. package/cache/inmemory/entityStore.js +7 -23
  14. package/cache/inmemory/entityStore.js.map +1 -1
  15. package/cache/inmemory/helpers.js +8 -25
  16. package/cache/inmemory/helpers.js.map +1 -1
  17. package/cache/inmemory/inMemoryCache.js +12 -27
  18. package/cache/inmemory/inMemoryCache.js.map +1 -1
  19. package/cache/inmemory/policies.d.ts +2 -1
  20. package/cache/inmemory/policies.d.ts.map +1 -1
  21. package/cache/inmemory/policies.js +19 -26
  22. package/cache/inmemory/policies.js.map +1 -1
  23. package/cache/inmemory/reactiveVars.js +5 -8
  24. package/cache/inmemory/reactiveVars.js.map +1 -1
  25. package/cache/inmemory/readFromStore.js +9 -24
  26. package/cache/inmemory/readFromStore.js.map +1 -1
  27. package/cache/inmemory/writeToStore.js +7 -22
  28. package/cache/inmemory/writeToStore.js.map +1 -1
  29. package/core/ApolloClient.d.ts.map +1 -1
  30. package/core/ApolloClient.js +11 -25
  31. package/core/ApolloClient.js.map +1 -1
  32. package/core/LocalState.js +5 -26
  33. package/core/LocalState.js.map +1 -1
  34. package/core/MutationStore.js +1 -2
  35. package/core/MutationStore.js.map +1 -1
  36. package/core/ObservableQuery.d.ts +6 -10
  37. package/core/ObservableQuery.d.ts.map +1 -1
  38. package/core/ObservableQuery.js +49 -121
  39. package/core/ObservableQuery.js.map +1 -1
  40. package/core/QueryInfo.d.ts +2 -2
  41. package/core/QueryInfo.d.ts.map +1 -1
  42. package/core/QueryInfo.js +31 -38
  43. package/core/QueryInfo.js.map +1 -1
  44. package/core/QueryManager.d.ts +3 -5
  45. package/core/QueryManager.d.ts.map +1 -1
  46. package/core/QueryManager.js +32 -63
  47. package/core/QueryManager.js.map +1 -1
  48. package/core/Reobserver.d.ts.map +1 -1
  49. package/core/Reobserver.js +5 -11
  50. package/core/Reobserver.js.map +1 -1
  51. package/core/core.cjs.js +93 -155
  52. package/core/core.cjs.js.map +1 -1
  53. package/core/index.d.ts +1 -1
  54. package/core/index.d.ts.map +1 -1
  55. package/core/index.js +13 -53
  56. package/core/index.js.map +1 -1
  57. package/core/networkStatus.js +3 -5
  58. package/core/networkStatus.js.map +1 -1
  59. package/core/types.d.ts +3 -0
  60. package/core/types.d.ts.map +1 -1
  61. package/core/watchQueryOptions.d.ts +1 -0
  62. package/core/watchQueryOptions.d.ts.map +1 -1
  63. package/errors/index.js +5 -21
  64. package/errors/index.js.map +1 -1
  65. package/index.js +3 -43
  66. package/index.js.map +1 -1
  67. package/invariantErrorCodes.js +1 -1
  68. package/link/batch/batchLink.js +3 -3
  69. package/link/batch/batching.js +1 -1
  70. package/link/batch/index.js +1 -1
  71. package/link/batch-http/batchHttpLink.js +5 -5
  72. package/link/batch-http/index.js +1 -1
  73. package/link/context/index.js +2 -2
  74. package/link/core/ApolloLink.js +4 -26
  75. package/link/core/ApolloLink.js.map +1 -1
  76. package/link/core/concat.js +3 -6
  77. package/link/core/concat.js.map +1 -1
  78. package/link/core/empty.js +3 -6
  79. package/link/core/empty.js.map +1 -1
  80. package/link/core/execute.js +3 -6
  81. package/link/core/execute.js.map +1 -1
  82. package/link/core/from.js +3 -6
  83. package/link/core/from.js.map +1 -1
  84. package/link/core/index.js +7 -7
  85. package/link/core/split.js +3 -6
  86. package/link/core/split.js.map +1 -1
  87. package/link/error/index.js +2 -2
  88. package/link/http/HttpLink.js +4 -11
  89. package/link/http/HttpLink.js.map +1 -1
  90. package/link/http/checkFetcher.js +2 -5
  91. package/link/http/checkFetcher.js.map +1 -1
  92. package/link/http/createHttpLink.js +13 -41
  93. package/link/http/createHttpLink.js.map +1 -1
  94. package/link/http/createSignalIfSupported.js +2 -4
  95. package/link/http/createSignalIfSupported.js.map +1 -1
  96. package/link/http/index.js +9 -9
  97. package/link/http/parseAndCheckHttpResponse.js +3 -12
  98. package/link/http/parseAndCheckHttpResponse.js.map +1 -1
  99. package/link/http/rewriteURIForGET.js +3 -6
  100. package/link/http/rewriteURIForGET.js.map +1 -1
  101. package/link/http/selectHttpOptionsAndBody.js +4 -7
  102. package/link/http/selectHttpOptionsAndBody.js.map +1 -1
  103. package/link/http/selectURI.js +2 -4
  104. package/link/http/selectURI.js.map +1 -1
  105. package/link/http/serializeFetchParameter.js +2 -5
  106. package/link/http/serializeFetchParameter.js.map +1 -1
  107. package/link/retry/index.js +1 -1
  108. package/link/retry/retryLink.js +4 -4
  109. package/link/schema/index.js +2 -2
  110. package/link/utils/createOperation.js +3 -6
  111. package/link/utils/createOperation.js.map +1 -1
  112. package/link/utils/fromError.js +3 -20
  113. package/link/utils/fromError.js.map +1 -1
  114. package/link/utils/fromPromise.js +3 -20
  115. package/link/utils/fromPromise.js.map +1 -1
  116. package/link/utils/index.js +7 -7
  117. package/link/utils/throwServerError.js +2 -4
  118. package/link/utils/throwServerError.js.map +1 -1
  119. package/link/utils/toPromise.js +2 -5
  120. package/link/utils/toPromise.js.map +1 -1
  121. package/link/utils/transformOperation.js +3 -20
  122. package/link/utils/transformOperation.js.map +1 -1
  123. package/link/utils/validateOperation.js +2 -5
  124. package/link/utils/validateOperation.js.map +1 -1
  125. package/link/ws/index.js +1 -1
  126. package/package.json +3 -2
  127. package/react/components/Mutation.js +1 -1
  128. package/react/components/Query.js +1 -1
  129. package/react/components/Subscription.js +1 -1
  130. package/react/components/index.js +4 -4
  131. package/react/context/ApolloConsumer.js +4 -7
  132. package/react/context/ApolloConsumer.js.map +1 -1
  133. package/react/context/ApolloContext.js +3 -6
  134. package/react/context/ApolloContext.js.map +1 -1
  135. package/react/context/ApolloProvider.js +4 -7
  136. package/react/context/ApolloProvider.js.map +1 -1
  137. package/react/context/index.js +3 -3
  138. package/react/data/MutationData.d.ts.map +1 -1
  139. package/react/data/MutationData.js +7 -8
  140. package/react/data/MutationData.js.map +1 -1
  141. package/react/data/OperationData.js +3 -5
  142. package/react/data/OperationData.js.map +1 -1
  143. package/react/data/QueryData.js +9 -10
  144. package/react/data/QueryData.js.map +1 -1
  145. package/react/data/SubscriptionData.js +3 -5
  146. package/react/data/SubscriptionData.js.map +1 -1
  147. package/react/data/data.cjs.js +2 -1
  148. package/react/data/data.cjs.js.map +1 -1
  149. package/react/data/index.js +4 -4
  150. package/react/hoc/graphql.js +4 -4
  151. package/react/hoc/index.js +6 -6
  152. package/react/hoc/mutation-hoc.js +3 -3
  153. package/react/hoc/query-hoc.js +3 -3
  154. package/react/hoc/subscription-hoc.js +3 -3
  155. package/react/hoc/withApollo.js +1 -1
  156. package/react/hooks/index.js +5 -5
  157. package/react/hooks/useApolloClient.js +4 -9
  158. package/react/hooks/useApolloClient.js.map +1 -1
  159. package/react/hooks/useLazyQuery.js +3 -6
  160. package/react/hooks/useLazyQuery.js.map +1 -1
  161. package/react/hooks/useMutation.js +5 -13
  162. package/react/hooks/useMutation.js.map +1 -1
  163. package/react/hooks/useQuery.js +3 -6
  164. package/react/hooks/useQuery.js.map +1 -1
  165. package/react/hooks/useSubscription.js +5 -13
  166. package/react/hooks/useSubscription.js.map +1 -1
  167. package/react/hooks/utils/useBaseQuery.js +7 -15
  168. package/react/hooks/utils/useBaseQuery.js.map +1 -1
  169. package/react/hooks/utils/useDeepMemo.js +3 -6
  170. package/react/hooks/utils/useDeepMemo.js.map +1 -1
  171. package/react/index.js +4 -4
  172. package/react/parser/index.js +4 -7
  173. package/react/parser/index.js.map +1 -1
  174. package/react/ssr/getDataFromTree.js +2 -2
  175. package/react/ssr/index.js +3 -3
  176. package/react/ssr/renderToStringWithData.js +1 -1
  177. package/react/types/types.d.ts +1 -0
  178. package/react/types/types.d.ts.map +1 -1
  179. package/testing/index.js +1 -1
  180. package/testing/testing.cjs.js +6 -6
  181. package/testing/testing.cjs.js.map +1 -1
  182. package/utilities/common/arrays.js +2 -4
  183. package/utilities/common/arrays.js.map +1 -1
  184. package/utilities/common/canUse.js +2 -4
  185. package/utilities/common/canUse.js.map +1 -1
  186. package/utilities/common/cloneDeep.js +2 -4
  187. package/utilities/common/cloneDeep.js.map +1 -1
  188. package/utilities/common/compact.d.ts +3 -0
  189. package/utilities/common/compact.d.ts.map +1 -0
  190. package/utilities/common/compact.js +19 -0
  191. package/utilities/common/compact.js.map +1 -0
  192. package/utilities/common/environment.js +5 -7
  193. package/utilities/common/environment.js.map +1 -1
  194. package/utilities/common/errorHandling.js +2 -4
  195. package/utilities/common/errorHandling.js.map +1 -1
  196. package/utilities/common/filterInPlace.js +2 -4
  197. package/utilities/common/filterInPlace.js.map +1 -1
  198. package/utilities/common/maybeDeepFreeze.js +3 -6
  199. package/utilities/common/maybeDeepFreeze.js.map +1 -1
  200. package/utilities/common/mergeDeep.js +5 -7
  201. package/utilities/common/mergeDeep.js.map +1 -1
  202. package/utilities/graphql/directives.js +7 -10
  203. package/utilities/graphql/directives.js.map +1 -1
  204. package/utilities/graphql/fragments.js +6 -9
  205. package/utilities/graphql/fragments.js.map +1 -1
  206. package/utilities/graphql/getFromAST.js +10 -13
  207. package/utilities/graphql/getFromAST.js.map +1 -1
  208. package/utilities/graphql/storeUtils.js +13 -16
  209. package/utilities/graphql/storeUtils.js.map +1 -1
  210. package/utilities/graphql/transform.js +34 -17
  211. package/utilities/graphql/transform.js.map +1 -1
  212. package/utilities/index.d.ts +1 -0
  213. package/utilities/index.d.ts.map +1 -1
  214. package/utilities/index.js +17 -16
  215. package/utilities/index.js.map +1 -1
  216. package/utilities/observables/Concast.js +5 -8
  217. package/utilities/observables/Concast.js.map +1 -1
  218. package/utilities/observables/asyncMap.js +3 -7
  219. package/utilities/observables/asyncMap.js.map +1 -1
  220. package/utilities/observables/iteration.js +2 -4
  221. package/utilities/observables/iteration.js.map +1 -1
  222. package/utilities/testing/index.js +7 -7
  223. package/utilities/testing/itAsync.d.ts.map +1 -1
  224. package/utilities/testing/itAsync.js +6 -6
  225. package/utilities/testing/itAsync.js.map +1 -1
  226. package/utilities/testing/mocking/MockedProvider.js +4 -4
  227. package/utilities/testing/mocking/mockClient.js +3 -3
  228. package/utilities/testing/mocking/mockLink.js +2 -2
  229. package/utilities/testing/mocking/mockQueryManager.js +3 -3
  230. package/utilities/testing/mocking/mockSubscriptionLink.js +2 -2
  231. package/utilities/testing/mocking/mockWatchQuery.js +1 -1
  232. package/utilities/testing/subscribeAndCount.js +1 -1
  233. package/utilities/utilities.cjs.js +20 -0
  234. package/utilities/utilities.cjs.js.map +1 -1
  235. package/version.js +2 -4
  236. package/version.js.map +1 -1
package/core/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { ApolloClient, ApolloClientOptions, DefaultOptions, } from './ApolloClient';
2
- export { ObservableQuery, FetchMoreOptions, UpdateQueryOptions, ApolloCurrentQueryResult, } from './ObservableQuery';
2
+ export { ObservableQuery, FetchMoreOptions, UpdateQueryOptions, } from './ObservableQuery';
3
3
  export { QueryBaseOptions, QueryOptions, WatchQueryOptions, MutationOptions, SubscriptionOptions, FetchPolicy, WatchQueryFetchPolicy, ErrorPolicy, FetchMoreQueryOptions, SubscribeToMoreOptions, MutationUpdaterFn, } from './watchQueryOptions';
4
4
  export { NetworkStatus } from './networkStatus';
5
5
  export * from './types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIvD,OAAO,EACL,KAAK,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,OAAO,GACR,MAAM,UAAU,CAAC;AAIlB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,WAAW,EACX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,cAAc,CAAC;AAgBtB,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,eAAO,MACL,WAAW,0BACX,uBAAuB,sCACvB,mCAAmC,kDACnC,oCAAoC,iDAC/B,CAAC;AACR,OAAO,EAAE,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIvD,OAAO,EACL,KAAK,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,OAAO,GACR,MAAM,UAAU,CAAC;AAIlB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,WAAW,EACX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,cAAc,CAAC;AAgBtB,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,eAAO,MACL,WAAW,0BACX,uBAAuB,sCACvB,mCAAmC,kDACnC,oCAAoC,iDAC/B,CAAC;AACR,OAAO,EAAE,GAAG,EAAE,CAAC"}
package/core/index.js CHANGED
@@ -1,54 +1,14 @@
1
- import '../utilities/graphql/directives.js';
2
- import '../utilities/graphql/fragments.js';
3
- export { isReference, makeReference } from '../utilities/graphql/storeUtils.js';
4
- import '../utilities/graphql/getFromAST.js';
5
- import '../utilities/graphql/transform.js';
6
- export { default as Observable } from 'zen-observable';
7
- import '../utilities/common/mergeDeep.js';
8
- import '../utilities/common/cloneDeep.js';
9
- import '../utilities/common/maybeDeepFreeze.js';
10
- import '../utilities/observables/iteration.js';
11
- import '../utilities/observables/asyncMap.js';
12
- import '../utilities/observables/Concast.js';
13
- import '../utilities/common/arrays.js';
14
- import '../utilities/common/errorHandling.js';
15
- import '../utilities/common/canUse.js';
16
- export { fromError } from '../link/utils/fromError.js';
17
- export { toPromise } from '../link/utils/toPromise.js';
18
- export { fromPromise } from '../link/utils/fromPromise.js';
19
- export { throwServerError } from '../link/utils/throwServerError.js';
20
- import '../link/utils/validateOperation.js';
21
- import '../link/utils/createOperation.js';
22
- import '../link/utils/transformOperation.js';
23
- export { ApolloLink } from '../link/core/ApolloLink.js';
24
- export { empty } from '../link/core/empty.js';
25
- export { from } from '../link/core/from.js';
26
- export { split } from '../link/core/split.js';
27
- export { concat } from '../link/core/concat.js';
28
- export { execute } from '../link/core/execute.js';
29
- export { parseAndCheckHttpResponse } from '../link/http/parseAndCheckHttpResponse.js';
30
- export { serializeFetchParameter } from '../link/http/serializeFetchParameter.js';
31
- export { fallbackHttpConfig, selectHttpOptionsAndBody } from '../link/http/selectHttpOptionsAndBody.js';
32
- export { checkFetcher } from '../link/http/checkFetcher.js';
33
- export { createSignalIfSupported } from '../link/http/createSignalIfSupported.js';
34
- export { selectURI } from '../link/http/selectURI.js';
35
- export { rewriteURIForGET } from '../link/http/rewriteURIForGET.js';
36
- export { createHttpLink } from '../link/http/createHttpLink.js';
37
- export { HttpLink } from '../link/http/HttpLink.js';
38
- export { ApolloError, isApolloError } from '../errors/index.js';
39
- export { NetworkStatus } from './networkStatus.js';
40
- export { ObservableQuery } from './ObservableQuery.js';
41
- export { ApolloCache } from '../cache/core/cache.js';
42
- export { Cache } from '../cache/core/types/Cache.js';
43
- export { MissingFieldError } from '../cache/core/types/common.js';
44
- export { makeVar } from '../cache/inmemory/reactiveVars.js';
45
- export { defaultDataIdFromObject } from '../cache/inmemory/policies.js';
46
- export { InMemoryCache } from '../cache/inmemory/inMemoryCache.js';
47
- export { ApolloClient } from './ApolloClient.js';
1
+ export { ApolloClient, } from "./ApolloClient.js";
2
+ export { ObservableQuery, } from "./ObservableQuery.js";
3
+ export { NetworkStatus } from "./networkStatus.js";
4
+ export * from "./types.js";
5
+ export { isApolloError, ApolloError } from "../errors/index.js";
6
+ export { Cache, ApolloCache, InMemoryCache, MissingFieldError, defaultDataIdFromObject, makeVar, } from "../cache/index.js";
7
+ export * from "../link/core/index.js";
8
+ export * from "../link/http/index.js";
9
+ export { fromError, toPromise, fromPromise, throwServerError, } from "../link/utils/index.js";
10
+ export { Observable, isReference, makeReference, } from "../utilities/index.js";
48
11
  import gql from 'graphql-tag';
49
- export { default as gql } from 'graphql-tag';
50
-
51
- var resetCaches = gql.resetCaches, disableFragmentWarnings = gql.disableFragmentWarnings, enableExperimentalFragmentVariables = gql.enableExperimentalFragmentVariables, disableExperimentalFragmentVariables = gql.disableExperimentalFragmentVariables;
52
-
53
- export { disableExperimentalFragmentVariables, disableFragmentWarnings, enableExperimentalFragmentVariables, resetCaches };
54
- //# sourceMappingURL=index.js.map
12
+ export var resetCaches = gql.resetCaches, disableFragmentWarnings = gql.disableFragmentWarnings, enableExperimentalFragmentVariables = gql.enableExperimentalFragmentVariables, disableExperimentalFragmentVariables = gql.disableExperimentalFragmentVariables;
13
+ export { gql };
14
+ //# sourceMappingURL=index.js.map
package/core/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["index.js"],"sourcesContent":["export { ApolloClient, } from './ApolloClient';\nexport { ObservableQuery, } from './ObservableQuery';\nexport { NetworkStatus } from './networkStatus';\nexport * from './types';\nexport { isApolloError, ApolloError } from '../errors';\nexport { Cache, ApolloCache, InMemoryCache, MissingFieldError, defaultDataIdFromObject, makeVar, } from '../cache';\nexport * from '../link/core';\nexport * from '../link/http';\nexport { fromError, toPromise, fromPromise, throwServerError, } from '../link/utils';\nexport { Observable, isReference, makeReference, } from '../utilities';\nimport gql from 'graphql-tag';\nexport var resetCaches = gql.resetCaches, disableFragmentWarnings = gql.disableFragmentWarnings, enableExperimentalFragmentVariables = gql.enableExperimentalFragmentVariables, disableExperimentalFragmentVariables = gql.disableExperimentalFragmentVariables;\nexport { gql };\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWU,IAAC,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC,CAAC,uBAAuB,GAAG,GAAG,CAAC,uBAAuB,CAAC,CAAC,mCAAmC,GAAG,GAAG,CAAC,mCAAmC,CAAC,CAAC,oCAAoC,GAAG,GAAG,CAAC;;;;"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,GAGb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,GAGhB,MAAM,mBAAmB,CAAC;AAc3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,SAAS,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIvD,OAAO,EACL,KAAK,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,OAAO,GACR,MAAM,UAAU,CAAC;AAIlB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EAEX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,UAAU,EAIV,WAAW,EACX,aAAa,GAEd,MAAM,cAAc,CAAC;AAgBtB,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,MAAM,CACJ,IAAA,WAAW,GAIT,GAAG,YAJM,EACX,uBAAuB,GAGrB,GAAG,wBAHkB,EACvB,mCAAmC,GAEjC,GAAG,oCAF8B,EACnC,oCAAoC,GAClC,GAAG,qCAD+B,CAC9B;AACR,OAAO,EAAE,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- var NetworkStatus;
1
+ export var NetworkStatus;
2
2
  (function (NetworkStatus) {
3
3
  NetworkStatus[NetworkStatus["loading"] = 1] = "loading";
4
4
  NetworkStatus[NetworkStatus["setVariables"] = 2] = "setVariables";
@@ -8,9 +8,7 @@ var NetworkStatus;
8
8
  NetworkStatus[NetworkStatus["ready"] = 7] = "ready";
9
9
  NetworkStatus[NetworkStatus["error"] = 8] = "error";
10
10
  })(NetworkStatus || (NetworkStatus = {}));
11
- function isNetworkRequestInFlight(networkStatus) {
11
+ export function isNetworkRequestInFlight(networkStatus) {
12
12
  return networkStatus ? networkStatus < 7 : false;
13
13
  }
14
-
15
- export { NetworkStatus, isNetworkRequestInFlight };
16
- //# sourceMappingURL=networkStatus.js.map
14
+ //# sourceMappingURL=networkStatus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"networkStatus.js","sources":["networkStatus.js"],"sourcesContent":["export var NetworkStatus;\n(function (NetworkStatus) {\n NetworkStatus[NetworkStatus[\"loading\"] = 1] = \"loading\";\n NetworkStatus[NetworkStatus[\"setVariables\"] = 2] = \"setVariables\";\n NetworkStatus[NetworkStatus[\"fetchMore\"] = 3] = \"fetchMore\";\n NetworkStatus[NetworkStatus[\"refetch\"] = 4] = \"refetch\";\n NetworkStatus[NetworkStatus[\"poll\"] = 6] = \"poll\";\n NetworkStatus[NetworkStatus[\"ready\"] = 7] = \"ready\";\n NetworkStatus[NetworkStatus[\"error\"] = 8] = \"error\";\n})(NetworkStatus || (NetworkStatus = {}));\nexport function isNetworkRequestInFlight(networkStatus) {\n return networkStatus ? networkStatus < 7 : false;\n}\n//# sourceMappingURL=networkStatus.js.map"],"names":[],"mappings":"AAAU,IAAC,cAAc;AACzB,CAAC,UAAU,aAAa,EAAE;AAC1B,IAAI,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;AAC5D,IAAI,aAAa,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC;AACtE,IAAI,aAAa,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,WAAW,CAAC;AAChE,IAAI,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;AAC5D,IAAI,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;AACtD,IAAI,aAAa,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;AACxD,IAAI,aAAa,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;AACxD,CAAC,EAAE,aAAa,KAAK,aAAa,GAAG,EAAE,CAAC,CAAC,CAAC;AACnC,SAAS,wBAAwB,CAAC,aAAa,EAAE;AACxD,IAAI,OAAO,aAAa,GAAG,aAAa,GAAG,CAAC,GAAG,KAAK,CAAC;AACrD;;;;"}
1
+ {"version":3,"file":"networkStatus.js","sourceRoot":"","sources":["../../src/core/networkStatus.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,aA0CX;AA1CD,WAAY,aAAa;IAMvB,uDAAW,CAAA;IAMX,iEAAgB,CAAA;IAMhB,2DAAa,CAAA;IAMb,uDAAW,CAAA;IAOX,iDAAQ,CAAA;IAKR,mDAAS,CAAA;IAKT,mDAAS,CAAA;AACX,CAAC,EA1CW,aAAa,KAAb,aAAa,QA0CxB;AAMD,MAAM,UAAU,wBAAwB,CACtC,aAA6B;IAE7B,OAAO,aAAa,CAAC,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACnD,CAAC"}
package/core/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { DocumentNode, GraphQLError } from 'graphql';
2
2
  import { FetchResult } from '../link/core';
3
+ import { ApolloError } from '../errors';
3
4
  import { QueryInfo } from './QueryInfo';
4
5
  import { NetworkStatus } from './networkStatus';
5
6
  import { Resolver } from './LocalState';
@@ -15,8 +16,10 @@ export declare type PureQueryOptions = {
15
16
  export declare type ApolloQueryResult<T> = {
16
17
  data?: T;
17
18
  errors?: ReadonlyArray<GraphQLError>;
19
+ error?: ApolloError;
18
20
  loading: boolean;
19
21
  networkStatus: NetworkStatus;
22
+ partial?: boolean;
20
23
  };
21
24
  export declare type MutationQueryReducer<T> = (previousResult: Record<string, any>, options: {
22
25
  mutationResult: FetchResult<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,oBAAY,aAAa,GAAG,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;AAE3D,oBAAY,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAErD,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACnC,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,oBAAY,iBAAiB,CAAC,CAAC,IAAI;IACjC,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,MAAM,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAGF,oBAAY,oBAAoB,CAAC,CAAC,IAAI,CACpC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnC,OAAO,EAAE;IACP,cAAc,EAAE,WA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,IAAI;IACjC,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,MAAM,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;IAI7B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAGF,oBAAY,oBAAoB,CAAC,CAAC,IAAI,CACpC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnC,OAAO,EAAE;IACP,cAAc,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACrC,KACE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEzB,oBAAY,wBAAwB,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI;IACjE,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,CAAE,KAAK,EAAE,MAAM,GAAI,QAAQ,CAAC;KAC7B,CAAC;CACH"}
@@ -23,6 +23,7 @@ export interface ModifiableWatchQueryOptions<TVariables = OperationVariables> ex
23
23
  }
24
24
  export interface WatchQueryOptions<TVariables = OperationVariables> extends QueryBaseOptions<TVariables>, ModifiableWatchQueryOptions<TVariables> {
25
25
  fetchPolicy?: WatchQueryFetchPolicy;
26
+ nextFetchPolicy?: WatchQueryFetchPolicy;
26
27
  }
27
28
  export interface FetchMoreQueryOptions<TVariables, K extends keyof TVariables> {
28
29
  query?: DocumentNode;
@@ -1 +1 @@
1
- {"version":3,"file":"watchQueryOptions.d.ts","sourceRoot":"","sources":["../../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GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1B,UAAU,GAAG,kBAAkB;IAS/B,kBAAkB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,CAAC,CAAC,CAAC;IAQnD,aAAa,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAU5C,cAAc,CAAC,EACX,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,uBAAuB,CAAC,GACrD,uBAAuB,CAAC;IAU5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAoB9B,MAAM,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAK9B,WAAW,CAAC,EAAE,WAAW,CAAC;IAM1B,SAAS,CAAC,EAAE,UAAU,CAAC;CACxB;AAED,MAAM,WAAW,eAAe,CAC9B,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1B,UAAU,GAAG,kBAAkB,CAC/B,SAAQ,mBAAmB,CAAC,CAAC,EAAE,UAAU,CAAC;IAK1C,QAAQ,EAAE,YAAY,CAAC;IAYvB,OAAO,CAAC,EAAE,GAAG,CAAC;IAQd,WAAW,CAAC,EAAE,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;CAChD;AAGD,oBAAY,iBAAiB,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,CAC1D,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EACrB,cAAc,EAAE,WAAW,CAAC,CAAC,CAAC,KAC3B,IAAI,CAAC"}
package/errors/index.js CHANGED
@@ -1,21 +1,6 @@
1
- import { __extends } from 'tslib';
2
- import '../utilities/graphql/directives.js';
3
- import '../utilities/graphql/fragments.js';
4
- import '../utilities/graphql/storeUtils.js';
5
- import '../utilities/graphql/getFromAST.js';
6
- import '../utilities/graphql/transform.js';
7
- import 'zen-observable';
8
- import '../utilities/common/mergeDeep.js';
9
- import '../utilities/common/cloneDeep.js';
10
- import '../utilities/common/maybeDeepFreeze.js';
11
- import '../utilities/observables/iteration.js';
12
- import '../utilities/observables/asyncMap.js';
13
- import '../utilities/observables/Concast.js';
14
- import { isNonEmptyArray } from '../utilities/common/arrays.js';
15
- import '../utilities/common/errorHandling.js';
16
- import '../utilities/common/canUse.js';
17
-
18
- function isApolloError(err) {
1
+ import { __extends } from "tslib";
2
+ import { isNonEmptyArray } from "../utilities/index.js";
3
+ export function isApolloError(err) {
19
4
  return err.hasOwnProperty('graphQLErrors');
20
5
  }
21
6
  var generateErrorMessage = function (err) {
@@ -48,6 +33,5 @@ var ApolloError = (function (_super) {
48
33
  }
49
34
  return ApolloError;
50
35
  }(Error));
51
-
52
- export { ApolloError, isApolloError };
53
- //# sourceMappingURL=index.js.map
36
+ export { ApolloError };
37
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["index.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { isNonEmptyArray } from '../utilities';\nexport function isApolloError(err) {\n return err.hasOwnProperty('graphQLErrors');\n}\nvar generateErrorMessage = function (err) {\n var message = '';\n if (isNonEmptyArray(err.graphQLErrors)) {\n err.graphQLErrors.forEach(function (graphQLError) {\n var errorMessage = graphQLError\n ? graphQLError.message\n : 'Error message not found.';\n message += errorMessage + \"\\n\";\n });\n }\n if (err.networkError) {\n message += err.networkError.message + \"\\n\";\n }\n message = message.replace(/\\n$/, '');\n return message;\n};\nvar ApolloError = (function (_super) {\n __extends(ApolloError, _super);\n function ApolloError(_a) {\n var graphQLErrors = _a.graphQLErrors, networkError = _a.networkError, errorMessage = _a.errorMessage, extraInfo = _a.extraInfo;\n var _this = _super.call(this, errorMessage) || this;\n _this.graphQLErrors = graphQLErrors || [];\n _this.networkError = networkError || null;\n _this.message = errorMessage || generateErrorMessage(_this);\n _this.extraInfo = extraInfo;\n _this.__proto__ = ApolloError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AAC;AACjB,CAAC,CAAC;AAEF;IAAiC,+BAAK;IAapC,qBAAY,EAUX;YATC,aAAa,mBAAA,EACb,YAAY,kBAAA,EACZ,YAAY,kBAAA,EACZ,SAAS,eAAA;QAJX,YAWE,kBAAM,YAAY,CAAC,SASpB;QARC,KAAI,CAAC,aAAa,GAAG,aAAa,IAAI,EAAE,CAAC;QACzC,KAAI,CAAC,YAAY,GAAG,YAAY,IAAI,IAAI,CAAC;QACzC,KAAI,CAAC,OAAO,GAAG,YAAY,IAAI,oBAAoB,CAAC,KAAI,CAAC,CAAC;QAC1D,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAI1B,KAAY,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;;IAClD,CAAC;IACH,kBAAC;AAAD,CAAC,AAlCD,CAAiC,KAAK,GAkCrC"}
package/index.js CHANGED
@@ -1,43 +1,3 @@
1
- export { isReference, makeReference } from './utilities/graphql/storeUtils.js';
2
- export { default as Observable } from 'zen-observable';
3
- export { fromError } from './link/utils/fromError.js';
4
- export { toPromise } from './link/utils/toPromise.js';
5
- export { fromPromise } from './link/utils/fromPromise.js';
6
- export { throwServerError } from './link/utils/throwServerError.js';
7
- export { ApolloLink } from './link/core/ApolloLink.js';
8
- export { empty } from './link/core/empty.js';
9
- export { from } from './link/core/from.js';
10
- export { split } from './link/core/split.js';
11
- export { concat } from './link/core/concat.js';
12
- export { execute } from './link/core/execute.js';
13
- export { parseAndCheckHttpResponse } from './link/http/parseAndCheckHttpResponse.js';
14
- export { serializeFetchParameter } from './link/http/serializeFetchParameter.js';
15
- export { fallbackHttpConfig, selectHttpOptionsAndBody } from './link/http/selectHttpOptionsAndBody.js';
16
- export { checkFetcher } from './link/http/checkFetcher.js';
17
- export { createSignalIfSupported } from './link/http/createSignalIfSupported.js';
18
- export { selectURI } from './link/http/selectURI.js';
19
- export { rewriteURIForGET } from './link/http/rewriteURIForGET.js';
20
- export { createHttpLink } from './link/http/createHttpLink.js';
21
- export { HttpLink } from './link/http/HttpLink.js';
22
- export { ApolloError, isApolloError } from './errors/index.js';
23
- export { NetworkStatus } from './core/networkStatus.js';
24
- export { ObservableQuery } from './core/ObservableQuery.js';
25
- export { ApolloCache } from './cache/core/cache.js';
26
- export { Cache } from './cache/core/types/Cache.js';
27
- export { MissingFieldError } from './cache/core/types/common.js';
28
- export { makeVar } from './cache/inmemory/reactiveVars.js';
29
- export { defaultDataIdFromObject } from './cache/inmemory/policies.js';
30
- export { InMemoryCache } from './cache/inmemory/inMemoryCache.js';
31
- export { ApolloClient } from './core/ApolloClient.js';
32
- export { default as gql } from 'graphql-tag';
33
- export { disableExperimentalFragmentVariables, disableFragmentWarnings, enableExperimentalFragmentVariables, resetCaches } from './core/index.js';
34
- export { getApolloContext, resetApolloContext } from './react/context/ApolloContext.js';
35
- export { ApolloConsumer } from './react/context/ApolloConsumer.js';
36
- export { ApolloProvider } from './react/context/ApolloProvider.js';
37
- export { useApolloClient } from './react/hooks/useApolloClient.js';
38
- export { DocumentType, operationName, parser } from './react/parser/index.js';
39
- export { useLazyQuery } from './react/hooks/useLazyQuery.js';
40
- export { useMutation } from './react/hooks/useMutation.js';
41
- export { useQuery } from './react/hooks/useQuery.js';
42
- export { useSubscription } from './react/hooks/useSubscription.js';
43
- //# sourceMappingURL=index.js.map
1
+ export * from "./core/index.js";
2
+ export * from "./react/index.js";
3
+ //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -5,7 +5,7 @@
5
5
  // consult the @apollo/client/invariantErrorCodes.js file specific to
6
6
  // your @apollo/client version. This file is not meant to be imported.
7
7
  {
8
- "@apollo/client version": "3.1.0-pre.1",
8
+ "@apollo/client version": "3.1.0",
9
9
 
10
10
  1: {
11
11
  file: "@apollo/client/cache/inmemory/policies.js",
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
- import { ApolloLink } from '../core';
3
- import { OperationBatcher } from './batching';
4
- export { OperationBatcher } from './batching';
2
+ import { ApolloLink } from "../core/index.js";
3
+ import { OperationBatcher } from "./batching.js";
4
+ export { OperationBatcher } from "./batching.js";
5
5
  var BatchLink = (function (_super) {
6
6
  __extends(BatchLink, _super);
7
7
  function BatchLink(fetchParams) {
@@ -1,5 +1,5 @@
1
1
  import { __assign } from "tslib";
2
- import { Observable } from '../../utilities';
2
+ import { Observable } from "../../utilities/index.js";
3
3
  var OperationBatcher = (function () {
4
4
  function OperationBatcher(_a) {
5
5
  var batchInterval = _a.batchInterval, batchMax = _a.batchMax, batchHandler = _a.batchHandler, batchKey = _a.batchKey;
@@ -1,2 +1,2 @@
1
- export * from './batchLink';
1
+ export * from "./batchLink.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
1
  import { __assign, __extends, __rest } from "tslib";
2
- import { ApolloLink } from '../core';
3
- import { Observable } from '../../utilities';
4
- import { fromError } from '../utils';
5
- import { serializeFetchParameter, selectURI, parseAndCheckHttpResponse, checkFetcher, selectHttpOptionsAndBody, fallbackHttpConfig, createSignalIfSupported, } from '../http';
6
- import { BatchLink } from '../batch';
2
+ import { ApolloLink } from "../core/index.js";
3
+ import { Observable } from "../../utilities/index.js";
4
+ import { fromError } from "../utils/index.js";
5
+ import { serializeFetchParameter, selectURI, parseAndCheckHttpResponse, checkFetcher, selectHttpOptionsAndBody, fallbackHttpConfig, createSignalIfSupported, } from "../http/index.js";
6
+ import { BatchLink } from "../batch/index.js";
7
7
  var BatchHttpLink = (function (_super) {
8
8
  __extends(BatchHttpLink, _super);
9
9
  function BatchHttpLink(fetchParams) {
@@ -1,2 +1,2 @@
1
- export * from './batchHttpLink';
1
+ export * from "./batchHttpLink.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import { __rest } from "tslib";
2
- import { ApolloLink } from '../core';
3
- import { Observable } from '../../utilities';
2
+ import { ApolloLink } from "../core/index.js";
3
+ import { Observable } from "../../utilities/index.js";
4
4
  export function setContext(setter) {
5
5
  return new ApolloLink(function (operation, forward) {
6
6
  var request = __rest(operation, []);
@@ -1,28 +1,7 @@
1
- import { __extends } from 'tslib';
1
+ import { __extends } from "tslib";
2
2
  import { InvariantError, invariant } from 'ts-invariant';
3
- import '../../utilities/graphql/directives.js';
4
- import '../../utilities/graphql/fragments.js';
5
- import '../../utilities/graphql/storeUtils.js';
6
- import '../../utilities/graphql/getFromAST.js';
7
- import '../../utilities/graphql/transform.js';
8
- import Observable from 'zen-observable';
9
- import '../../utilities/common/mergeDeep.js';
10
- import '../../utilities/common/cloneDeep.js';
11
- import '../../utilities/common/maybeDeepFreeze.js';
12
- import '../../utilities/observables/iteration.js';
13
- import '../../utilities/observables/asyncMap.js';
14
- import '../../utilities/observables/Concast.js';
15
- import '../../utilities/common/arrays.js';
16
- import '../../utilities/common/errorHandling.js';
17
- import '../../utilities/common/canUse.js';
18
- import '../utils/fromError.js';
19
- import '../utils/toPromise.js';
20
- import '../utils/fromPromise.js';
21
- import '../utils/throwServerError.js';
22
- import { validateOperation } from '../utils/validateOperation.js';
23
- import { createOperation } from '../utils/createOperation.js';
24
- import { transformOperation } from '../utils/transformOperation.js';
25
-
3
+ import { Observable } from "../../utilities/index.js";
4
+ import { validateOperation, createOperation, transformOperation, } from "../utils/index.js";
26
5
  function passthrough(op, forward) {
27
6
  return (forward ? forward(op) : Observable.of());
28
7
  }
@@ -113,6 +92,5 @@ var ApolloLink = (function () {
113
92
  };
114
93
  return ApolloLink;
115
94
  }());
116
-
117
95
  export { ApolloLink };
118
- //# sourceMappingURL=ApolloLink.js.map
96
+ //# sourceMappingURL=ApolloLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloLink.js","sources":["ApolloLink.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { InvariantError, invariant } from 'ts-invariant';\nimport { Observable } from '../../utilities';\nimport { validateOperation, createOperation, transformOperation, } from '../utils';\nfunction passthrough(op, forward) {\n return (forward ? forward(op) : Observable.of());\n}\nfunction toLink(handler) {\n return typeof handler === 'function' ? new ApolloLink(handler) : handler;\n}\nfunction isTerminating(link) {\n return link.request.length <= 1;\n}\nvar LinkError = (function (_super) {\n __extends(LinkError, _super);\n function LinkError(message, link) {\n var _this = _super.call(this, message) || this;\n _this.link = link;\n return _this;\n }\n return LinkError;\n}(Error));\nvar ApolloLink = (function () {\n function ApolloLink(request) {\n if (request)\n this.request = request;\n }\n ApolloLink.empty = function () {\n return new ApolloLink(function () { return Observable.of(); });\n };\n ApolloLink.from = function (links) {\n if (links.length === 0)\n return ApolloLink.empty();\n return links.map(toLink).reduce(function (x, y) { return x.concat(y); });\n };\n ApolloLink.split = function (test, left, right) {\n var leftLink = toLink(left);\n var rightLink = toLink(right || new ApolloLink(passthrough));\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return new ApolloLink(function (operation) {\n return test(operation)\n ? leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n }\n else {\n return new ApolloLink(function (operation, forward) {\n return test(operation)\n ? leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n };\n ApolloLink.execute = function (link, operation) {\n return (link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of());\n };\n ApolloLink.concat = function (first, second) {\n var firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n process.env.NODE_ENV === \"production\" || invariant.warn(new LinkError(\"You are calling concat on a terminating link, which will have no effect\", firstLink));\n return firstLink;\n }\n var nextLink = toLink(second);\n if (isTerminating(nextLink)) {\n return new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) { return nextLink.request(op) || Observable.of(); }) || Observable.of();\n });\n }\n else {\n return new ApolloLink(function (operation, forward) {\n return (firstLink.request(operation, function (op) {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of());\n });\n }\n };\n ApolloLink.prototype.split = function (test, left, right) {\n return this.concat(ApolloLink.split(test, left, right || new ApolloLink(passthrough)));\n };\n ApolloLink.prototype.concat = function (next) {\n return ApolloLink.concat(this, next);\n };\n ApolloLink.prototype.request = function (operation, forward) {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(22) : new InvariantError('request is not implemented');\n };\n ApolloLink.prototype.onError = function (reason) {\n throw reason;\n };\n ApolloLink.prototype.setOnError = function (fn) {\n this.onError = fn;\n return this;\n };\n return ApolloLink;\n}());\nexport { ApolloLink };\n//# sourceMappingURL=ApolloLink.js.map"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAAS,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE;AAClC,IAAI,QAAQ,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,EAAE,EAAE,EAAE;AACrD,CAAC;AACD,SAAS,MAAM,CAAC,OAAO,EAAE;AACzB,IAAI,OAAO,OAAO,OAAO,KAAK,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAC7E,CAAC;AACD,SAAS,aAAa,CAAC,IAAI,EAAE;AAC7B,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;AACpC,CAAC;AACD,IAAI,SAAS,IAAI,UAAU,MAAM,EAAE;AACnC,IAAI,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjC,IAAI,SAAS,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE;AACtC,QAAQ,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC;AACvD,QAAQ,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;AAC1B,QAAQ,OAAO,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S,CAAC,OAAO,CAAC,SAAS,EAAE,UAAA,EAAE;oBAC7B,OAAO,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,UAAU,CAAC,EAAE,EAAE,CAAC;gBAC1D,CAAC,CAAC,IAAI,UAAU,CAAC,EAAE,EAAE,CACtB,CAAC;YACJ,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAMM,0BAAK,GAAZ,UACE,IAAgC,EAChC,IAAiC,EACjC,KAAmC;QAEnC,OAAO,IAAI,CAAC,MAAM,CAChB,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC,CACnE,CAAC;IACJ,CAAC;IAEM,2BAAM,GAAb,UAAc,IAAiC;QAC7C,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;IAEM,4BAAO,GAAd,UACE,SAAoB,EACpB,OAAkB;QAElB,MAAM,IAAI,cAAc,CAAC,4BAA4B,CAAC,CAAC;IACzD,CAAC;IAES,4BAAO,GAAjB,UAAkB,MAAW;QAC3B,MAAM,MAAM,CAAC;IACf,CAAC;IAEM,+BAAU,GAAjB,UAAkB,EAAwB;QACxC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IACH,iBAAC;AAAD,CAAC,AAnHD,IAmHC"}
@@ -1,6 +1,3 @@
1
- import { ApolloLink } from './ApolloLink.js';
2
-
3
- var concat = ApolloLink.concat;
4
-
5
- export { concat };
6
- //# sourceMappingURL=concat.js.map
1
+ import { ApolloLink } from "./ApolloLink.js";
2
+ export var concat = ApolloLink.concat;
3
+ //# sourceMappingURL=concat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"concat.js","sources":["concat.js"],"sourcesContent":["import { ApolloLink } from './ApolloLink';\nexport var concat = ApolloLink.concat;\n//# sourceMappingURL=concat.js.map"],"names":[],"mappings":";;AACU,IAAC,MAAM,GAAG,UAAU,CAAC;;;;"}
1
+ {"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../src/link/core/concat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC"}
@@ -1,6 +1,3 @@
1
- import { ApolloLink } from './ApolloLink.js';
2
-
3
- var empty = ApolloLink.empty;
4
-
5
- export { empty };
6
- //# sourceMappingURL=empty.js.map
1
+ import { ApolloLink } from "./ApolloLink.js";
2
+ export var empty = ApolloLink.empty;
3
+ //# sourceMappingURL=empty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty.js","sources":["empty.js"],"sourcesContent":["import { ApolloLink } from './ApolloLink';\nexport var empty = ApolloLink.empty;\n//# sourceMappingURL=empty.js.map"],"names":[],"mappings":";;AACU,IAAC,KAAK,GAAG,UAAU,CAAC;;;;"}
1
+ {"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../src/link/core/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC"}
@@ -1,6 +1,3 @@
1
- import { ApolloLink } from './ApolloLink.js';
2
-
3
- var execute = ApolloLink.execute;
4
-
5
- export { execute };
6
- //# sourceMappingURL=execute.js.map
1
+ import { ApolloLink } from "./ApolloLink.js";
2
+ export var execute = ApolloLink.execute;
3
+ //# sourceMappingURL=execute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"execute.js","sources":["execute.js"],"sourcesContent":["import { ApolloLink } from './ApolloLink';\nexport var execute = ApolloLink.execute;\n//# sourceMappingURL=execute.js.map"],"names":[],"mappings":";;AACU,IAAC,OAAO,GAAG,UAAU,CAAC;;;;"}
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../src/link/core/execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC"}
package/link/core/from.js CHANGED
@@ -1,6 +1,3 @@
1
- import { ApolloLink } from './ApolloLink.js';
2
-
3
- var from = ApolloLink.from;
4
-
5
- export { from };
6
- //# sourceMappingURL=from.js.map
1
+ import { ApolloLink } from "./ApolloLink.js";
2
+ export var from = ApolloLink.from;
3
+ //# sourceMappingURL=from.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"from.js","sources":["from.js"],"sourcesContent":["import { ApolloLink } from './ApolloLink';\nexport var from = ApolloLink.from;\n//# sourceMappingURL=from.js.map"],"names":[],"mappings":";;AACU,IAAC,IAAI,GAAG,UAAU,CAAC;;;;"}
1
+ {"version":3,"file":"from.js","sourceRoot":"","sources":["../../../src/link/core/from.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC"}
@@ -1,8 +1,8 @@
1
- export { empty } from './empty';
2
- export { from } from './from';
3
- export { split } from './split';
4
- export { concat } from './concat';
5
- export { execute } from './execute';
6
- export { ApolloLink } from './ApolloLink';
7
- export * from './types';
1
+ export { empty } from "./empty.js";
2
+ export { from } from "./from.js";
3
+ export { split } from "./split.js";
4
+ export { concat } from "./concat.js";
5
+ export { execute } from "./execute.js";
6
+ export { ApolloLink } from "./ApolloLink.js";
7
+ export * from "./types.js";
8
8
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,3 @@
1
- import { ApolloLink } from './ApolloLink.js';
2
-
3
- var split = ApolloLink.split;
4
-
5
- export { split };
6
- //# sourceMappingURL=split.js.map
1
+ import { ApolloLink } from "./ApolloLink.js";
2
+ export var split = ApolloLink.split;
3
+ //# sourceMappingURL=split.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"split.js","sources":["split.js"],"sourcesContent":["import { ApolloLink } from './ApolloLink';\nexport var split = ApolloLink.split;\n//# sourceMappingURL=split.js.map"],"names":[],"mappings":";;AACU,IAAC,KAAK,GAAG,UAAU,CAAC;;;;"}
1
+ {"version":3,"file":"split.js","sourceRoot":"","sources":["../../../src/link/core/split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { __extends } from "tslib";
2
- import { ApolloLink } from '../core';
3
- import { Observable } from '../../utilities';
2
+ import { ApolloLink } from "../core/index.js";
3
+ import { Observable } from "../../utilities/index.js";
4
4
  export function onError(errorHandler) {
5
5
  return new ApolloLink(function (operation, forward) {
6
6
  return new Observable(function (observer) {
@@ -1,12 +1,6 @@
1
- import { __extends } from 'tslib';
2
- import { ApolloLink } from '../core/ApolloLink.js';
3
- import '../core/empty.js';
4
- import '../core/from.js';
5
- import '../core/split.js';
6
- import '../core/concat.js';
7
- import '../core/execute.js';
8
- import { createHttpLink } from './createHttpLink.js';
9
-
1
+ import { __extends } from "tslib";
2
+ import { ApolloLink } from "../core/index.js";
3
+ import { createHttpLink } from "./createHttpLink.js";
10
4
  var HttpLink = (function (_super) {
11
5
  __extends(HttpLink, _super);
12
6
  function HttpLink(options) {
@@ -17,6 +11,5 @@ var HttpLink = (function (_super) {
17
11
  }
18
12
  return HttpLink;
19
13
  }(ApolloLink));
20
-
21
14
  export { HttpLink };
22
- //# sourceMappingURL=HttpLink.js.map
15
+ //# sourceMappingURL=HttpLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HttpLink.js","sources":["HttpLink.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { ApolloLink } from '../core';\nimport { createHttpLink } from './createHttpLink';\nvar HttpLink = (function (_super) {\n __extends(HttpLink, _super);\n function HttpLink(options) {\n if (options === void 0) { options = {}; }\n var _this = _super.call(this, createHttpLink(options).request) || this;\n _this.options = options;\n return _this;\n }\n return HttpLink;\n}(ApolloLink));\nexport { HttpLink };\n//# sourceMappingURL=HttpLink.js.map"],"names":[],"mappings":";;;;;;;;;AAGG,IAAC,QAAQ,IAAI,UAAU,MAAM,EAAE;AAClC,IAAI,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAChC,IAAI,SAAS,QAAQ,CAAC,OAAO,EAAE;AAC/B,QAAQ,IAAI,OAAO,KAAK,KAAK,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,CAAC,EAAE;AACjD,QAAQ,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC;AAC/E,QAAQ,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL,IAAI,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC,UAAU,CAAC;;;;"}
1
+ {"version":3,"file":"HttpLink.js","sourceRoot":"","sources":["../../../src/link/http/HttpLink.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,SAAS,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAA8B,4BAAU;IAEtC,kBAAmB,OAAyB;QAAzB,wBAAA,EAAA,YAAyB;QAA5C,YACE,kBAAM,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,SACvC;QAFkB,aAAO,GAAP,OAAO,CAAkB;;IAE5C,CAAC;IACH,eAAC;AAAD,CAAC,AALD,CAA8B,UAAU,GAKvC"}
@@ -1,10 +1,7 @@
1
1
  import { InvariantError } from 'ts-invariant';
2
-
3
- var checkFetcher = function (fetcher) {
2
+ export var checkFetcher = function (fetcher) {
4
3
  if (!fetcher && typeof fetch === 'undefined') {
5
4
  throw process.env.NODE_ENV === "production" ? new InvariantError(23) : new InvariantError("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n ");
6
5
  }
7
6
  };
8
-
9
- export { checkFetcher };
10
- //# sourceMappingURL=checkFetcher.js.map
7
+ //# sourceMappingURL=checkFetcher.js.map