@apollo/client 3.14.0-alpha.0 → 3.14.0-rc.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 (200) hide show
  1. package/.changeset/breezy-lions-rule.md +5 -0
  2. package/.changeset/great-jobs-fetch.md +5 -0
  3. package/.changeset/pre.json +6 -2
  4. package/.changeset/shy-boxes-exercise.md +5 -0
  5. package/.changeset/tidy-bulldogs-exercise.md +5 -0
  6. package/CHANGELOG.md +16 -0
  7. package/README.md +2 -2
  8. package/apollo-client.cjs +187 -119
  9. package/apollo-client.cjs.map +1 -1
  10. package/apollo-client.min.cjs +1 -1
  11. package/cache/cache.cjs +7 -2
  12. package/cache/cache.cjs.map +1 -1
  13. package/cache/cache.cjs.native.js +7 -2
  14. package/cache/inmemory/inMemoryCache.d.ts +8 -0
  15. package/cache/inmemory/inMemoryCache.js +3 -0
  16. package/cache/inmemory/inMemoryCache.js.map +1 -1
  17. package/core/ApolloClient.d.ts +9 -9
  18. package/core/ApolloClient.js +6 -1
  19. package/core/ApolloClient.js.map +1 -1
  20. package/core/LocalState.js +2 -2
  21. package/core/ObservableQuery.d.ts +51 -6
  22. package/core/ObservableQuery.js +89 -13
  23. package/core/ObservableQuery.js.map +1 -1
  24. package/core/QueryInfo.js +6 -3
  25. package/core/QueryInfo.js.map +1 -1
  26. package/core/QueryManager.js +14 -12
  27. package/core/QueryManager.js.map +1 -1
  28. package/core/core.cjs +85 -33
  29. package/core/core.cjs.map +1 -1
  30. package/core/core.cjs.native.js +85 -33
  31. package/core/types.d.ts +177 -3
  32. package/core/types.js.map +1 -1
  33. package/core/watchQueryOptions.d.ts +10 -2
  34. package/core/watchQueryOptions.js.map +1 -1
  35. package/dev/dev.cjs +149 -97
  36. package/dev/dev.cjs.map +1 -1
  37. package/dev/dev.cjs.native.js +149 -97
  38. package/errors/errors.cjs.map +1 -1
  39. package/errors/index.d.ts +19 -0
  40. package/errors/index.js +19 -0
  41. package/errors/index.js.map +1 -1
  42. package/invariantErrorCodes.js +161 -96
  43. package/link/batch-http/batch-http.cjs +9 -0
  44. package/link/batch-http/batch-http.cjs.map +1 -1
  45. package/link/batch-http/batch-http.cjs.native.js +9 -0
  46. package/link/batch-http/batchHttpLink.js +9 -0
  47. package/link/batch-http/batchHttpLink.js.map +1 -1
  48. package/link/core/ApolloLink.d.ts +8 -0
  49. package/link/core/ApolloLink.js +19 -2
  50. package/link/core/ApolloLink.js.map +1 -1
  51. package/link/core/core.cjs +24 -2
  52. package/link/core/core.cjs.map +1 -1
  53. package/link/core/core.cjs.native.js +24 -2
  54. package/link/core/types.d.ts +20 -0
  55. package/link/core/types.js.map +1 -1
  56. package/link/error/index.d.ts +48 -0
  57. package/link/error/index.js.map +1 -1
  58. package/link/http/checkFetcher.js +1 -1
  59. package/link/http/createHttpLink.js +4 -1
  60. package/link/http/createHttpLink.js.map +1 -1
  61. package/link/http/http.cjs +6 -3
  62. package/link/http/http.cjs.map +1 -1
  63. package/link/http/http.cjs.native.js +6 -3
  64. package/link/http/serializeFetchParameter.js +1 -1
  65. package/link/persisted-queries/index.d.ts +38 -0
  66. package/link/persisted-queries/index.js +2 -2
  67. package/link/persisted-queries/index.js.map +1 -1
  68. package/link/persisted-queries/persisted-queries.cjs +2 -2
  69. package/link/persisted-queries/persisted-queries.cjs.map +1 -1
  70. package/link/persisted-queries/persisted-queries.cjs.native.js +2 -2
  71. package/link/utils/fromError.d.ts +16 -0
  72. package/link/utils/fromError.js +16 -0
  73. package/link/utils/fromError.js.map +1 -1
  74. package/link/utils/fromPromise.d.ts +16 -0
  75. package/link/utils/fromPromise.js +16 -0
  76. package/link/utils/fromPromise.js.map +1 -1
  77. package/link/utils/throwServerError.d.ts +30 -0
  78. package/link/utils/throwServerError.js +17 -0
  79. package/link/utils/throwServerError.js.map +1 -1
  80. package/link/utils/toPromise.d.ts +16 -0
  81. package/link/utils/toPromise.js +17 -1
  82. package/link/utils/toPromise.js.map +1 -1
  83. package/link/utils/utils.cjs +2 -2
  84. package/link/utils/utils.cjs.map +1 -1
  85. package/link/utils/utils.cjs.native.js +2 -2
  86. package/link/utils/validateOperation.js +1 -1
  87. package/masking/maskDefinition.js +2 -2
  88. package/masking/maskFragment.js +2 -2
  89. package/masking/maskOperation.js +1 -1
  90. package/masking/masking.cjs +6 -6
  91. package/masking/masking.cjs.map +1 -1
  92. package/masking/masking.cjs.native.js +6 -6
  93. package/masking/utils.js +1 -1
  94. package/masking/utils.js.map +1 -1
  95. package/package.json +1 -1
  96. package/react/components/Mutation.js +1 -1
  97. package/react/components/Query.js +1 -1
  98. package/react/components/Subscription.js +1 -1
  99. package/react/components/components.cjs +6 -4
  100. package/react/components/components.cjs.map +1 -1
  101. package/react/components/components.cjs.native.js +6 -4
  102. package/react/context/ApolloConsumer.js +1 -1
  103. package/react/context/ApolloContext.js +2 -2
  104. package/react/context/ApolloProvider.js +1 -1
  105. package/react/context/context.cjs +4 -4
  106. package/react/context/context.cjs.map +1 -1
  107. package/react/context/context.cjs.native.js +4 -4
  108. package/react/hoc/graphql.js +1 -1
  109. package/react/hoc/hoc-utils.js +1 -1
  110. package/react/hoc/hoc.cjs +9 -7
  111. package/react/hoc/hoc.cjs.map +1 -1
  112. package/react/hoc/hoc.cjs.native.js +9 -7
  113. package/react/hoc/mutation-hoc.js +1 -1
  114. package/react/hoc/query-hoc.js +1 -1
  115. package/react/hoc/subscription-hoc.js +1 -1
  116. package/react/hoc/withApollo.js +1 -1
  117. package/react/hooks/hooks.cjs +18 -16
  118. package/react/hooks/hooks.cjs.map +1 -1
  119. package/react/hooks/hooks.cjs.native.js +18 -16
  120. package/react/hooks/internal/useWarnRemoved.d.ts +2 -1
  121. package/react/hooks/internal/useWarnRemoved.js.map +1 -1
  122. package/react/hooks/internal/useWarnRemovedOption.js +1 -1
  123. package/react/hooks/useApolloClient.js +1 -1
  124. package/react/hooks/useLazyQuery.js +2 -2
  125. package/react/hooks/useLoadableQuery.js +2 -2
  126. package/react/hooks/useQuery.js +1 -1
  127. package/react/hooks/useSubscription.js +3 -3
  128. package/react/hooks/useSuspenseQuery.js +2 -2
  129. package/react/hooks/useSyncExternalStore.js +1 -1
  130. package/react/internal/cache/QueryReference.d.ts +1 -0
  131. package/react/internal/cache/QueryReference.js +5 -2
  132. package/react/internal/cache/QueryReference.js.map +1 -1
  133. package/react/internal/internal.cjs +16 -3
  134. package/react/internal/internal.cjs.map +1 -1
  135. package/react/internal/internal.cjs.native.js +16 -3
  136. package/react/parser/index.js +6 -6
  137. package/react/parser/parser.cjs +9 -7
  138. package/react/parser/parser.cjs.map +1 -1
  139. package/react/parser/parser.cjs.native.js +9 -7
  140. package/react/react.cjs +4 -2
  141. package/react/react.cjs.map +1 -1
  142. package/react/react.cjs.native.js +4 -2
  143. package/react/types/types.d.ts +40 -0
  144. package/react/types/types.documentation.d.ts +1 -1
  145. package/react/types/types.documentation.js.map +1 -1
  146. package/react/types/types.js.map +1 -1
  147. package/testing/core/core.cjs +17 -3
  148. package/testing/core/core.cjs.map +1 -1
  149. package/testing/core/core.cjs.native.js +17 -3
  150. package/testing/core/itAsync.d.ts +5 -0
  151. package/testing/core/itAsync.js +5 -0
  152. package/testing/core/itAsync.js.map +1 -1
  153. package/testing/core/mocking/mockClient.d.ts +4 -0
  154. package/testing/core/mocking/mockClient.js +4 -0
  155. package/testing/core/mocking/mockClient.js.map +1 -1
  156. package/testing/core/mocking/mockLink.d.ts +10 -0
  157. package/testing/core/mocking/mockLink.js +23 -4
  158. package/testing/core/mocking/mockLink.js.map +1 -1
  159. package/testing/core/mocking/mockSubscriptionLink.d.ts +4 -0
  160. package/testing/core/mocking/mockSubscriptionLink.js +4 -0
  161. package/testing/core/mocking/mockSubscriptionLink.js.map +1 -1
  162. package/testing/core/subscribeAndCount.d.ts +4 -0
  163. package/testing/core/subscribeAndCount.js +4 -0
  164. package/testing/core/subscribeAndCount.js.map +1 -1
  165. package/testing/experimental/createSchemaFetch.d.ts +1 -1
  166. package/testing/experimental/createSchemaFetch.js +1 -1
  167. package/testing/experimental/createSchemaFetch.js.map +1 -1
  168. package/testing/experimental/createTestSchema.d.ts +1 -1
  169. package/testing/experimental/createTestSchema.js +1 -1
  170. package/testing/experimental/createTestSchema.js.map +1 -1
  171. package/testing/experimental/experimental.cjs.map +1 -1
  172. package/testing/testing.cjs +4 -2
  173. package/testing/testing.cjs.map +1 -1
  174. package/testing/testing.cjs.native.js +4 -2
  175. package/utilities/deprecation/index.d.ts +83 -3
  176. package/utilities/deprecation/index.js +15 -3
  177. package/utilities/deprecation/index.js.map +1 -1
  178. package/utilities/globals/globals.cjs +1 -1
  179. package/utilities/globals/globals.cjs.map +1 -1
  180. package/utilities/globals/globals.cjs.native.js +1 -1
  181. package/utilities/graphql/DocumentTransform.js +1 -1
  182. package/utilities/graphql/directives.js +7 -7
  183. package/utilities/graphql/fragments.js +3 -3
  184. package/utilities/graphql/getFromAST.js +8 -8
  185. package/utilities/graphql/storeUtils.js +1 -1
  186. package/utilities/graphql/transform.js +2 -2
  187. package/utilities/observables/asyncMap.d.ts +13 -0
  188. package/utilities/observables/asyncMap.js +13 -0
  189. package/utilities/observables/asyncMap.js.map +1 -1
  190. package/utilities/observables/iteration.d.ts +4 -0
  191. package/utilities/observables/iteration.js +4 -0
  192. package/utilities/observables/iteration.js.map +1 -1
  193. package/utilities/subscriptions/urql/index.d.ts +5 -0
  194. package/utilities/subscriptions/urql/index.js +5 -0
  195. package/utilities/subscriptions/urql/index.js.map +1 -1
  196. package/utilities/subscriptions/urql/urql.cjs.map +1 -1
  197. package/utilities/utilities.cjs +22 -22
  198. package/utilities/utilities.cjs.map +1 -1
  199. package/utilities/utilities.cjs.native.js +22 -22
  200. package/version.js +1 -1
package/react/hoc/hoc.cjs CHANGED
@@ -62,7 +62,7 @@ var GraphQLBase = (function (_super) {
62
62
  return _this;
63
63
  }
64
64
  GraphQLBase.prototype.getWrappedInstance = function () {
65
- globals.invariant(this.withRef, 62);
65
+ globals.invariant(this.withRef, 73);
66
66
  return this.wrappedInstance;
67
67
  };
68
68
  GraphQLBase.prototype.setWrappedInstance = function (ref) {
@@ -71,9 +71,11 @@ var GraphQLBase = (function (_super) {
71
71
  return GraphQLBase;
72
72
  }(React__namespace.Component));
73
73
 
74
+ var muteAllDeprecations = Symbol.for("apollo.deprecations");
75
+ var global = globals.global;
74
76
  var slot = new optimism.Slot();
75
77
  function isMuted(name) {
76
- return (slot.getValue() || []).includes(name);
78
+ return global[muteAllDeprecations] || (slot.getValue() || []).includes(name);
77
79
  }
78
80
  function muteDeprecations(name) {
79
81
  var args = [];
@@ -92,7 +94,7 @@ function withQuery(document, operationOptions) {
92
94
  if (operationOptions === void 0) { operationOptions = {}; }
93
95
  if (globalThis.__DEV__ !== false) {
94
96
  warnDeprecated("withQuery", function () {
95
- globalThis.__DEV__ !== false && invariant__default.warn(64);
97
+ globalThis.__DEV__ !== false && invariant__default.warn(75);
96
98
  });
97
99
  }
98
100
  var operation = muteDeprecations("parser", parser.parser, [document]);
@@ -159,7 +161,7 @@ function withMutation(document, operationOptions) {
159
161
  if (operationOptions === void 0) { operationOptions = {}; }
160
162
  if (globalThis.__DEV__ !== false) {
161
163
  warnDeprecated("withMutation", function () {
162
- globalThis.__DEV__ !== false && globals.invariant.warn(63);
164
+ globalThis.__DEV__ !== false && globals.invariant.warn(74);
163
165
  });
164
166
  }
165
167
  var operation = muteDeprecations("parser", parser.parser, [document]);
@@ -227,7 +229,7 @@ function withSubscription(document, operationOptions) {
227
229
  if (operationOptions === void 0) { operationOptions = {}; }
228
230
  if (globalThis.__DEV__ !== false) {
229
231
  warnDeprecated("withSubscription", function () {
230
- globalThis.__DEV__ !== false && globals.invariant.warn(65);
232
+ globalThis.__DEV__ !== false && globals.invariant.warn(76);
231
233
  });
232
234
  }
233
235
  var operation = muteDeprecations("parser", parser.parser, [document]);
@@ -303,7 +305,7 @@ function graphql(document, operationOptions) {
303
305
  if (operationOptions === void 0) { operationOptions = {}; }
304
306
  if (globalThis.__DEV__ !== false) {
305
307
  warnDeprecated("graphql", function () {
306
- globalThis.__DEV__ !== false && globals.invariant.warn(61);
308
+ globalThis.__DEV__ !== false && globals.invariant.warn(72);
307
309
  });
308
310
  }
309
311
  switch (muteDeprecations("parser", function () { return parser.parser(document).type; })) {
@@ -337,7 +339,7 @@ function withApollo(WrappedComponent, operationOptions) {
337
339
  return _this;
338
340
  }
339
341
  WithApollo.prototype.getWrappedInstance = function () {
340
- globals.invariant(operationOptions.withRef, 66);
342
+ globals.invariant(operationOptions.withRef, 77);
341
343
  return this.wrappedInstance;
342
344
  };
343
345
  WithApollo.prototype.setWrappedInstance = function (ref) {
@@ -1 +1 @@
1
- {"version":3,"file":"hoc.cjs","sources":["hoc-utils.js","../../utilities/deprecation/index.js","query-hoc.js","mutation-hoc.js","subscription-hoc.js","graphql.js","withApollo.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { invariant } from \"../../utilities/globals/index.js\";\nimport * as React from \"rehackt\";\nexport var defaultMapPropsToOptions = function () { return ({}); };\nexport var defaultMapResultToProps = function (props) { return props; };\nexport var defaultMapPropsToSkip = function () { return false; };\nexport function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n}\nexport function calculateVariablesFromProps(operation, props) {\n var variables = {};\n for (var _i = 0, _a = operation.variables; _i < _a.length; _i++) {\n var _b = _a[_i], variable = _b.variable, type = _b.type;\n if (!variable.name || !variable.name.value)\n continue;\n var variableName = variable.name.value;\n var variableProp = props[variableName];\n if (typeof variableProp !== \"undefined\") {\n variables[variableName] = variableProp;\n continue;\n }\n // Allow optional props\n if (type.kind !== \"NonNullType\") {\n variables[variableName] = undefined;\n }\n }\n return variables;\n}\n// base class for hocs to easily manage refs\nvar GraphQLBase = /** @class */ (function (_super) {\n __extends(GraphQLBase, _super);\n function GraphQLBase(props) {\n var _this = _super.call(this, props) || this;\n _this.withRef = false;\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n return _this;\n }\n GraphQLBase.prototype.getWrappedInstance = function () {\n invariant(this.withRef, 62);\n return this.wrappedInstance;\n };\n GraphQLBase.prototype.setWrappedInstance = function (ref) {\n this.wrappedInstance = ref;\n };\n return GraphQLBase;\n}(React.Component));\nexport { GraphQLBase };\n//# sourceMappingURL=hoc-utils.js.map","import { __spreadArray } from \"tslib\";\nimport { Slot } from \"optimism\";\nimport { invariant } from \"../globals/index.js\";\nvar slot = new Slot();\nfunction isMuted(name) {\n return (slot.getValue() || []).includes(name);\n}\nexport function muteDeprecations(name) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return slot.withValue.apply(slot, __spreadArray([Array.isArray(name) ? name : [name]], args, false));\n}\nexport function warnRemovedOption(options, name, callSite, recommendation) {\n if (recommendation === void 0) { recommendation = \"Please remove this option.\"; }\n warnDeprecated(name, function () {\n if (name in options) {\n globalThis.__DEV__ !== false && invariant.warn(91, callSite, name, recommendation);\n }\n });\n}\nexport function warnDeprecated(name, cb) {\n if (!isMuted(name)) {\n cb();\n }\n}\n//# sourceMappingURL=index.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from \"rehackt\";\nimport hoistNonReactStatics from \"hoist-non-react-statics\";\nimport { parser } from \"../parser/index.js\";\nimport { Query } from \"../components/index.js\";\nimport { getDisplayName, GraphQLBase, calculateVariablesFromProps, defaultMapPropsToOptions, defaultMapPropsToSkip, } from \"./hoc-utils.js\";\nimport invariant from \"ts-invariant\";\nimport { muteDeprecations, warnDeprecated, } from \"../../utilities/deprecation/index.js\";\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function withQuery(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n if (globalThis.__DEV__ !== false) {\n warnDeprecated(\"withQuery\", function () {\n globalThis.__DEV__ !== false && invariant.warn(64);\n });\n }\n // this is memoized so if coming from `graphql` there is nearly no extra cost\n var operation = muteDeprecations(\"parser\", parser, [document]);\n // extract options\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? \"Apollo\" : _c;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== \"function\") {\n mapPropsToOptions = function () { return options; };\n }\n var mapPropsToSkip = skip;\n if (typeof mapPropsToSkip !== \"function\") {\n mapPropsToSkip = function () { return skip; };\n }\n // allow for advanced referential equality checks\n var lastResultProps;\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = /** @class */ (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GraphQL.prototype.render = function () {\n var _this = this;\n var props = this.props;\n var shouldSkip = mapPropsToSkip(props);\n var opts = shouldSkip ? Object.create(null) : __assign({}, mapPropsToOptions(props));\n if (!shouldSkip && !opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Query, __assign({}, opts, { displayName: graphQLDisplayName, skip: shouldSkip, query: document }), function (_a) {\n var _b, _c;\n var _ = _a.client, data = _a.data, r = __rest(_a, [\"client\", \"data\"]);\n if (operationOptions.withRef) {\n _this.withRef = true;\n props = Object.assign({}, props, {\n ref: _this.setWrappedInstance,\n });\n }\n // if we have skipped, no reason to manage any reshaping\n if (shouldSkip) {\n return (React.createElement(WrappedComponent, __assign({}, props, {})));\n }\n // the HOC's historically hoisted the data from the execution result\n // up onto the result since it was passed as a nested prop\n // we massage the Query components shape here to replicate that\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || \"data\";\n var childProps = (_b = {}, _b[name] = result, _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = result,\n _c.ownProps = props,\n _c);\n lastResultProps = operationOptions.props(newResult, lastResultProps);\n childProps = lastResultProps;\n }\n return (React.createElement(WrappedComponent, __assign({}, props, childProps)));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n // Make sure we preserve any custom statics on the original component.\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=query-hoc.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from \"rehackt\";\nimport hoistNonReactStatics from \"hoist-non-react-statics\";\nimport { parser } from \"../parser/index.js\";\nimport { Mutation } from \"../components/index.js\";\nimport { defaultMapPropsToOptions, getDisplayName, calculateVariablesFromProps, GraphQLBase, } from \"./hoc-utils.js\";\nimport { muteDeprecations, warnDeprecated, } from \"../../utilities/deprecation/index.js\";\nimport { invariant } from \"../../utilities/globals/index.js\";\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function withMutation(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n if (globalThis.__DEV__ !== false) {\n warnDeprecated(\"withMutation\", function () {\n globalThis.__DEV__ !== false && invariant.warn(63);\n });\n }\n // this is memoized so if coming from `graphql` there is nearly no extra cost\n var operation = muteDeprecations(\"parser\", parser, [document]);\n // extract options\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.alias, alias = _b === void 0 ? \"Apollo\" : _b;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== \"function\")\n mapPropsToOptions = function () {\n return options;\n };\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = /** @class */ (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GraphQL.prototype.render = function () {\n var props = this.props;\n var opts = mapPropsToOptions(props);\n if (operationOptions.withRef) {\n this.withRef = true;\n props = Object.assign({}, props, {\n ref: this.setWrappedInstance,\n });\n }\n if (!opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (\n // @ts-expect-error\n (React.createElement(\n Mutation,\n __assign({ ignoreResults: true }, opts, { mutation: document }),\n function (mutate, _a) {\n // the HOC's historically hoisted the data from the execution result\n // up onto the result since it was passed as a nested prop\n // we massage the Mutation component's shape here to replicate that\n // this matches the query HoC\n var _b, _c;\n var data = _a.data, r = __rest(_a, [\"data\"]);\n // @ts-ignore Type instantiation is excessively deep and possibly infinite.\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || \"mutate\";\n var resultName = operationOptions.name ? \"\".concat(name, \"Result\") : \"result\";\n var childProps = (_b = {},\n _b[name] = mutate,\n _b[resultName] = result,\n _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = mutate,\n _c[resultName] = result,\n _c.ownProps = props,\n _c);\n childProps = operationOptions.props(newResult);\n }\n return React.createElement(WrappedComponent, __assign({}, props, childProps));\n }\n ))\n );\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n // Make sure we preserve any custom statics on the original component.\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=mutation-hoc.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from \"rehackt\";\nimport hoistNonReactStatics from \"hoist-non-react-statics\";\nimport { parser } from \"../parser/index.js\";\nimport { Subscription } from \"../components/index.js\";\nimport { getDisplayName, GraphQLBase, calculateVariablesFromProps, defaultMapPropsToOptions, defaultMapPropsToSkip, } from \"./hoc-utils.js\";\nimport { muteDeprecations, warnDeprecated, } from \"../../utilities/deprecation/index.js\";\nimport { invariant } from \"../../utilities/globals/index.js\";\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function withSubscription(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n if (globalThis.__DEV__ !== false) {\n warnDeprecated(\"withSubscription\", function () {\n globalThis.__DEV__ !== false && invariant.warn(65);\n });\n }\n // this is memoized so if coming from `graphql` there is nearly no extra cost\n var operation = muteDeprecations(\"parser\", parser, [document]);\n // extract options\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? \"Apollo\" : _c, shouldResubscribe = operationOptions.shouldResubscribe;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== \"function\")\n mapPropsToOptions = function () { return options; };\n var mapPropsToSkip = skip;\n if (typeof mapPropsToSkip !== \"function\")\n mapPropsToSkip = function () { return skip; };\n // allow for advanced referential equality checks\n var lastResultProps;\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = /** @class */ (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL(props) {\n var _this = _super.call(this, props) || this;\n _this.state = { resubscribe: false };\n return _this;\n }\n GraphQL.prototype.updateResubscribe = function (resubscribe) {\n this.setState({ resubscribe: resubscribe });\n };\n GraphQL.prototype.componentDidUpdate = function (prevProps) {\n var resubscribe = !!(shouldResubscribe && shouldResubscribe(prevProps, this.props));\n if (this.state.resubscribe !== resubscribe) {\n this.updateResubscribe(resubscribe);\n }\n };\n GraphQL.prototype.render = function () {\n var _this = this;\n var props = this.props;\n var shouldSkip = mapPropsToSkip(props);\n var opts = shouldSkip ? Object.create(null) : mapPropsToOptions(props);\n if (!shouldSkip && !opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Subscription, __assign({}, opts, { displayName: graphQLDisplayName, skip: shouldSkip, subscription: document, shouldResubscribe: this.state.resubscribe }), function (_a) {\n var _b, _c;\n var data = _a.data, r = __rest(_a, [\"data\"]);\n if (operationOptions.withRef) {\n _this.withRef = true;\n props = Object.assign({}, props, {\n ref: _this.setWrappedInstance,\n });\n }\n // if we have skipped, no reason to manage any reshaping\n if (shouldSkip) {\n return (React.createElement(WrappedComponent, __assign({}, props, {})));\n }\n // the HOC's historically hoisted the data from the execution result\n // up onto the result since it was passed as a nested prop\n // we massage the Query components shape here to replicate that\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || \"data\";\n var childProps = (_b = {}, _b[name] = result, _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = result,\n _c.ownProps = props,\n _c);\n lastResultProps = operationOptions.props(newResult, lastResultProps);\n childProps = lastResultProps;\n }\n return (React.createElement(WrappedComponent, __assign({}, props, childProps)));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n // Make sure we preserve any custom statics on the original component.\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=subscription-hoc.js.map","import { parser, DocumentType } from \"../parser/index.js\";\nimport { withQuery } from \"./query-hoc.js\";\nimport { withMutation } from \"./mutation-hoc.js\";\nimport { withSubscription } from \"./subscription-hoc.js\";\nimport { invariant } from \"../../utilities/globals/index.js\";\nimport { muteDeprecations, warnDeprecated, } from \"../../utilities/deprecation/index.js\";\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function graphql(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n if (globalThis.__DEV__ !== false) {\n warnDeprecated(\"graphql\", function () {\n globalThis.__DEV__ !== false && invariant.warn(61);\n });\n }\n switch (muteDeprecations(\"parser\", function () { return parser(document).type; })) {\n case DocumentType.Mutation:\n return muteDeprecations(\"withMutation\", function () {\n return withMutation(document, operationOptions);\n });\n case DocumentType.Subscription:\n return muteDeprecations(\"withSubscription\", function () {\n return withSubscription(document, operationOptions);\n });\n case DocumentType.Query:\n default:\n return muteDeprecations(\"withQuery\", function () {\n return withQuery(document, operationOptions);\n });\n }\n}\n//# sourceMappingURL=graphql.js.map","import { __assign, __extends } from \"tslib\";\nimport { invariant } from \"../../utilities/globals/index.js\";\nimport * as React from \"rehackt\";\nimport hoistNonReactStatics from \"hoist-non-react-statics\";\nimport { ApolloConsumer } from \"../context/index.js\";\nfunction getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n}\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function withApollo(WrappedComponent, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var withDisplayName = \"withApollo(\".concat(getDisplayName(WrappedComponent), \")\");\n var WithApollo = /** @class */ (function (_super) {\n __extends(WithApollo, _super);\n function WithApollo(props) {\n var _this = _super.call(this, props) || this;\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n return _this;\n }\n WithApollo.prototype.getWrappedInstance = function () {\n invariant(operationOptions.withRef, 66);\n return this.wrappedInstance;\n };\n WithApollo.prototype.setWrappedInstance = function (ref) {\n this.wrappedInstance = ref;\n };\n WithApollo.prototype.render = function () {\n var _this = this;\n return (React.createElement(ApolloConsumer, null, function (client) {\n var props = Object.assign({}, _this.props, {\n client: client,\n ref: operationOptions.withRef ? _this.setWrappedInstance : undefined,\n });\n return React.createElement(WrappedComponent, __assign({}, props));\n }));\n };\n WithApollo.displayName = withDisplayName;\n WithApollo.WrappedComponent = WrappedComponent;\n return WithApollo;\n }(React.Component));\n // Make sure we preserve any custom statics on the original component.\n return hoistNonReactStatics(WithApollo, WrappedComponent, {});\n}\n//# sourceMappingURL=withApollo.js.map"],"names":["getDisplayName","__extends","invariant","React","Slot","__spreadArray","parser","__assign","Query","__rest","hoistNonReactStatics","Mutation","Subscription","DocumentType","ApolloCon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,SAAS,CAAC,CAAC,CAAC;AAExB,IAAI,OAAOO,6BAAoB,CAAC,UAAU,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;AAClE;;;;;;;;"}
1
+ {"version":3,"file":"hoc.cjs","sources":["hoc-utils.js","../../utilities/deprecation/index.js","query-hoc.js","mutation-hoc.js","subscription-hoc.js","graphql.js","withApollo.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { invariant } from \"../../utilities/globals/index.js\";\nimport * as React from \"rehackt\";\nexport var defaultMapPropsToOptions = function () { return ({}); };\nexport var defaultMapResultToProps = function (props) { return props; };\nexport var defaultMapPropsToSkip = function () { return false; };\nexport function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n}\nexport function calculateVariablesFromProps(operation, props) {\n var variables = {};\n for (var _i = 0, _a = operation.variables; _i < _a.length; _i++) {\n var _b = _a[_i], variable = _b.variable, type = _b.type;\n if (!variable.name || !variable.name.value)\n continue;\n var variableName = variable.name.value;\n var variableProp = props[variableName];\n if (typeof variableProp !== \"undefined\") {\n variables[variableName] = variableProp;\n continue;\n }\n // Allow optional props\n if (type.kind !== \"NonNullType\") {\n variables[variableName] = undefined;\n }\n }\n return variables;\n}\n// base class for hocs to easily manage refs\nvar GraphQLBase = /** @class */ (function (_super) {\n __extends(GraphQLBase, _super);\n function GraphQLBase(props) {\n var _this = _super.call(this, props) || this;\n _this.withRef = false;\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n return _this;\n }\n GraphQLBase.prototype.getWrappedInstance = function () {\n invariant(this.withRef, 73);\n return this.wrappedInstance;\n };\n GraphQLBase.prototype.setWrappedInstance = function (ref) {\n this.wrappedInstance = ref;\n };\n return GraphQLBase;\n}(React.Component));\nexport { GraphQLBase };\n//# sourceMappingURL=hoc-utils.js.map","import { __spreadArray } from \"tslib\";\nimport { Slot } from \"optimism\";\nimport { invariant, global as untypedGlobal } from \"../globals/index.js\";\nvar muteAllDeprecations = Symbol.for(\"apollo.deprecations\");\nvar global = untypedGlobal;\nvar slot = new Slot();\nfunction isMuted(name) {\n return global[muteAllDeprecations] || (slot.getValue() || []).includes(name);\n}\nexport function muteDeprecations(name) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return slot.withValue.apply(slot, __spreadArray([Array.isArray(name) ? name : [name]], args, false));\n}\nexport function warnRemovedOption(options, name, callSite, recommendation) {\n if (recommendation === void 0) { recommendation = \"Please remove this option.\"; }\n warnDeprecated(name, function () {\n if (name in options) {\n globalThis.__DEV__ !== false && invariant.warn(104, callSite, name, recommendation);\n }\n });\n}\nexport function warnDeprecated(name, cb) {\n if (!isMuted(name)) {\n cb();\n }\n}\nexport function withDisabledDeprecations() {\n var _a;\n var prev = global[muteAllDeprecations];\n global[muteAllDeprecations] = true;\n return _a = {},\n _a[Symbol.dispose] = function () {\n global[muteAllDeprecations] = prev;\n },\n _a;\n}\n//# sourceMappingURL=index.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from \"rehackt\";\nimport hoistNonReactStatics from \"hoist-non-react-statics\";\nimport { parser } from \"../parser/index.js\";\nimport { Query } from \"../components/index.js\";\nimport { getDisplayName, GraphQLBase, calculateVariablesFromProps, defaultMapPropsToOptions, defaultMapPropsToSkip, } from \"./hoc-utils.js\";\nimport invariant from \"ts-invariant\";\nimport { muteDeprecations, warnDeprecated, } from \"../../utilities/deprecation/index.js\";\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function withQuery(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n if (globalThis.__DEV__ !== false) {\n warnDeprecated(\"withQuery\", function () {\n globalThis.__DEV__ !== false && invariant.warn(75);\n });\n }\n // this is memoized so if coming from `graphql` there is nearly no extra cost\n var operation = muteDeprecations(\"parser\", parser, [document]);\n // extract options\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? \"Apollo\" : _c;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== \"function\") {\n mapPropsToOptions = function () { return options; };\n }\n var mapPropsToSkip = skip;\n if (typeof mapPropsToSkip !== \"function\") {\n mapPropsToSkip = function () { return skip; };\n }\n // allow for advanced referential equality checks\n var lastResultProps;\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = /** @class */ (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GraphQL.prototype.render = function () {\n var _this = this;\n var props = this.props;\n var shouldSkip = mapPropsToSkip(props);\n var opts = shouldSkip ? Object.create(null) : __assign({}, mapPropsToOptions(props));\n if (!shouldSkip && !opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Query, __assign({}, opts, { displayName: graphQLDisplayName, skip: shouldSkip, query: document }), function (_a) {\n var _b, _c;\n var _ = _a.client, data = _a.data, r = __rest(_a, [\"client\", \"data\"]);\n if (operationOptions.withRef) {\n _this.withRef = true;\n props = Object.assign({}, props, {\n ref: _this.setWrappedInstance,\n });\n }\n // if we have skipped, no reason to manage any reshaping\n if (shouldSkip) {\n return (React.createElement(WrappedComponent, __assign({}, props, {})));\n }\n // the HOC's historically hoisted the data from the execution result\n // up onto the result since it was passed as a nested prop\n // we massage the Query components shape here to replicate that\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || \"data\";\n var childProps = (_b = {}, _b[name] = result, _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = result,\n _c.ownProps = props,\n _c);\n lastResultProps = operationOptions.props(newResult, lastResultProps);\n childProps = lastResultProps;\n }\n return (React.createElement(WrappedComponent, __assign({}, props, childProps)));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n // Make sure we preserve any custom statics on the original component.\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=query-hoc.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from \"rehackt\";\nimport hoistNonReactStatics from \"hoist-non-react-statics\";\nimport { parser } from \"../parser/index.js\";\nimport { Mutation } from \"../components/index.js\";\nimport { defaultMapPropsToOptions, getDisplayName, calculateVariablesFromProps, GraphQLBase, } from \"./hoc-utils.js\";\nimport { muteDeprecations, warnDeprecated, } from \"../../utilities/deprecation/index.js\";\nimport { invariant } from \"../../utilities/globals/index.js\";\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function withMutation(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n if (globalThis.__DEV__ !== false) {\n warnDeprecated(\"withMutation\", function () {\n globalThis.__DEV__ !== false && invariant.warn(74);\n });\n }\n // this is memoized so if coming from `graphql` there is nearly no extra cost\n var operation = muteDeprecations(\"parser\", parser, [document]);\n // extract options\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.alias, alias = _b === void 0 ? \"Apollo\" : _b;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== \"function\")\n mapPropsToOptions = function () {\n return options;\n };\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = /** @class */ (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GraphQL.prototype.render = function () {\n var props = this.props;\n var opts = mapPropsToOptions(props);\n if (operationOptions.withRef) {\n this.withRef = true;\n props = Object.assign({}, props, {\n ref: this.setWrappedInstance,\n });\n }\n if (!opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (\n // @ts-expect-error\n (React.createElement(\n Mutation,\n __assign({ ignoreResults: true }, opts, { mutation: document }),\n function (mutate, _a) {\n // the HOC's historically hoisted the data from the execution result\n // up onto the result since it was passed as a nested prop\n // we massage the Mutation component's shape here to replicate that\n // this matches the query HoC\n var _b, _c;\n var data = _a.data, r = __rest(_a, [\"data\"]);\n // @ts-ignore Type instantiation is excessively deep and possibly infinite.\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || \"mutate\";\n var resultName = operationOptions.name ? \"\".concat(name, \"Result\") : \"result\";\n var childProps = (_b = {},\n _b[name] = mutate,\n _b[resultName] = result,\n _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = mutate,\n _c[resultName] = result,\n _c.ownProps = props,\n _c);\n childProps = operationOptions.props(newResult);\n }\n return React.createElement(WrappedComponent, __assign({}, props, childProps));\n }\n ))\n );\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n // Make sure we preserve any custom statics on the original component.\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=mutation-hoc.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from \"rehackt\";\nimport hoistNonReactStatics from \"hoist-non-react-statics\";\nimport { parser } from \"../parser/index.js\";\nimport { Subscription } from \"../components/index.js\";\nimport { getDisplayName, GraphQLBase, calculateVariablesFromProps, defaultMapPropsToOptions, defaultMapPropsToSkip, } from \"./hoc-utils.js\";\nimport { muteDeprecations, warnDeprecated, } from \"../../utilities/deprecation/index.js\";\nimport { invariant } from \"../../utilities/globals/index.js\";\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function withSubscription(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n if (globalThis.__DEV__ !== false) {\n warnDeprecated(\"withSubscription\", function () {\n globalThis.__DEV__ !== false && invariant.warn(76);\n });\n }\n // this is memoized so if coming from `graphql` there is nearly no extra cost\n var operation = muteDeprecations(\"parser\", parser, [document]);\n // extract options\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? \"Apollo\" : _c, shouldResubscribe = operationOptions.shouldResubscribe;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== \"function\")\n mapPropsToOptions = function () { return options; };\n var mapPropsToSkip = skip;\n if (typeof mapPropsToSkip !== \"function\")\n mapPropsToSkip = function () { return skip; };\n // allow for advanced referential equality checks\n var lastResultProps;\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = /** @class */ (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL(props) {\n var _this = _super.call(this, props) || this;\n _this.state = { resubscribe: false };\n return _this;\n }\n GraphQL.prototype.updateResubscribe = function (resubscribe) {\n this.setState({ resubscribe: resubscribe });\n };\n GraphQL.prototype.componentDidUpdate = function (prevProps) {\n var resubscribe = !!(shouldResubscribe && shouldResubscribe(prevProps, this.props));\n if (this.state.resubscribe !== resubscribe) {\n this.updateResubscribe(resubscribe);\n }\n };\n GraphQL.prototype.render = function () {\n var _this = this;\n var props = this.props;\n var shouldSkip = mapPropsToSkip(props);\n var opts = shouldSkip ? Object.create(null) : mapPropsToOptions(props);\n if (!shouldSkip && !opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Subscription, __assign({}, opts, { displayName: graphQLDisplayName, skip: shouldSkip, subscription: document, shouldResubscribe: this.state.resubscribe }), function (_a) {\n var _b, _c;\n var data = _a.data, r = __rest(_a, [\"data\"]);\n if (operationOptions.withRef) {\n _this.withRef = true;\n props = Object.assign({}, props, {\n ref: _this.setWrappedInstance,\n });\n }\n // if we have skipped, no reason to manage any reshaping\n if (shouldSkip) {\n return (React.createElement(WrappedComponent, __assign({}, props, {})));\n }\n // the HOC's historically hoisted the data from the execution result\n // up onto the result since it was passed as a nested prop\n // we massage the Query components shape here to replicate that\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || \"data\";\n var childProps = (_b = {}, _b[name] = result, _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = result,\n _c.ownProps = props,\n _c);\n lastResultProps = operationOptions.props(newResult, lastResultProps);\n childProps = lastResultProps;\n }\n return (React.createElement(WrappedComponent, __assign({}, props, childProps)));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n // Make sure we preserve any custom statics on the original component.\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=subscription-hoc.js.map","import { parser, DocumentType } from \"../parser/index.js\";\nimport { withQuery } from \"./query-hoc.js\";\nimport { withMutation } from \"./mutation-hoc.js\";\nimport { withSubscription } from \"./subscription-hoc.js\";\nimport { invariant } from \"../../utilities/globals/index.js\";\nimport { muteDeprecations, warnDeprecated, } from \"../../utilities/deprecation/index.js\";\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function graphql(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n if (globalThis.__DEV__ !== false) {\n warnDeprecated(\"graphql\", function () {\n globalThis.__DEV__ !== false && invariant.warn(72);\n });\n }\n switch (muteDeprecations(\"parser\", function () { return parser(document).type; })) {\n case DocumentType.Mutation:\n return muteDeprecations(\"withMutation\", function () {\n return withMutation(document, operationOptions);\n });\n case DocumentType.Subscription:\n return muteDeprecations(\"withSubscription\", function () {\n return withSubscription(document, operationOptions);\n });\n case DocumentType.Query:\n default:\n return muteDeprecations(\"withQuery\", function () {\n return withQuery(document, operationOptions);\n });\n }\n}\n//# sourceMappingURL=graphql.js.map","import { __assign, __extends } from \"tslib\";\nimport { invariant } from \"../../utilities/globals/index.js\";\nimport * as React from \"rehackt\";\nimport hoistNonReactStatics from \"hoist-non-react-statics\";\nimport { ApolloConsumer } from \"../context/index.js\";\nfunction getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n}\n/**\n * @deprecated\n * Official support for React Apollo higher order components ended in March 2020.\n * This library is still included in the `@apollo/client` package, but it no longer receives feature updates or bug fixes.\n */\nexport function withApollo(WrappedComponent, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var withDisplayName = \"withApollo(\".concat(getDisplayName(WrappedComponent), \")\");\n var WithApollo = /** @class */ (function (_super) {\n __extends(WithApollo, _super);\n function WithApollo(props) {\n var _this = _super.call(this, props) || this;\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n return _this;\n }\n WithApollo.prototype.getWrappedInstance = function () {\n invariant(operationOptions.withRef, 77);\n return this.wrappedInstance;\n };\n WithApollo.prototype.setWrappedInstance = function (ref) {\n this.wrappedInstance = ref;\n };\n WithApollo.prototype.render = function () {\n var _this = this;\n return (React.createElement(ApolloConsumer, null, function (client) {\n var props = Object.assign({}, _this.props, {\n client: client,\n ref: operationOptions.withRef ? _this.setWrappedInstance : undefined,\n });\n return React.createElement(WrappedComponent, __assign({}, props));\n }));\n };\n WithApollo.displayName = withDisplayName;\n WithApollo.WrappedComponent = WrappedComponent;\n return WithApollo;\n }(React.Component));\n // Make sure we preserve any custom statics on the original component.\n return hoistNonReactStatics(WithApollo, WrappedComponent, {});\n}\n//# sourceMappingURL=withApollo.js.map"],"names":["getDisplayName","__extends","invariant","React","untypedGlobal","Slot","__spreadArray","parser","__assign","Query","__rest","hoistNonReactStatics","Mutation","Subscription","DocumentType","ApolloConsumer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,gBAAgB,GAAG,gBAAgB,CAAC;AACvD,QAAQ,OAAO,UAAU,CAAC;AAC1B,KAAK,CAACL,gBAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AAExB,IAAI,OAAOQ,6BAAoB,CAAC,UAAU,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;AAClE;;;;;;;;"}
@@ -62,7 +62,7 @@ var GraphQLBase = (function (_super) {
62
62
  return _this;
63
63
  }
64
64
  GraphQLBase.prototype.getWrappedInstance = function () {
65
- globals.invariant(this.withRef, 62);
65
+ globals.invariant(this.withRef, 73);
66
66
  return this.wrappedInstance;
67
67
  };
68
68
  GraphQLBase.prototype.setWrappedInstance = function (ref) {
@@ -71,9 +71,11 @@ var GraphQLBase = (function (_super) {
71
71
  return GraphQLBase;
72
72
  }(React__namespace.Component));
73
73
 
74
+ var muteAllDeprecations = Symbol.for("apollo.deprecations");
75
+ var global = globals.global;
74
76
  var slot = new optimism.Slot();
75
77
  function isMuted(name) {
76
- return (slot.getValue() || []).includes(name);
78
+ return global[muteAllDeprecations] || (slot.getValue() || []).includes(name);
77
79
  }
78
80
  function muteDeprecations(name) {
79
81
  var args = [];
@@ -92,7 +94,7 @@ function withQuery(document, operationOptions) {
92
94
  if (operationOptions === void 0) { operationOptions = {}; }
93
95
  if (globalThis.__DEV__ !== false) {
94
96
  warnDeprecated("withQuery", function () {
95
- globalThis.__DEV__ !== false && invariant__default.warn(64);
97
+ globalThis.__DEV__ !== false && invariant__default.warn(75);
96
98
  });
97
99
  }
98
100
  var operation = muteDeprecations("parser", parser.parser, [document]);
@@ -159,7 +161,7 @@ function withMutation(document, operationOptions) {
159
161
  if (operationOptions === void 0) { operationOptions = {}; }
160
162
  if (globalThis.__DEV__ !== false) {
161
163
  warnDeprecated("withMutation", function () {
162
- globalThis.__DEV__ !== false && globals.invariant.warn(63);
164
+ globalThis.__DEV__ !== false && globals.invariant.warn(74);
163
165
  });
164
166
  }
165
167
  var operation = muteDeprecations("parser", parser.parser, [document]);
@@ -227,7 +229,7 @@ function withSubscription(document, operationOptions) {
227
229
  if (operationOptions === void 0) { operationOptions = {}; }
228
230
  if (globalThis.__DEV__ !== false) {
229
231
  warnDeprecated("withSubscription", function () {
230
- globalThis.__DEV__ !== false && globals.invariant.warn(65);
232
+ globalThis.__DEV__ !== false && globals.invariant.warn(76);
231
233
  });
232
234
  }
233
235
  var operation = muteDeprecations("parser", parser.parser, [document]);
@@ -303,7 +305,7 @@ function graphql(document, operationOptions) {
303
305
  if (operationOptions === void 0) { operationOptions = {}; }
304
306
  if (globalThis.__DEV__ !== false) {
305
307
  warnDeprecated("graphql", function () {
306
- globalThis.__DEV__ !== false && globals.invariant.warn(61);
308
+ globalThis.__DEV__ !== false && globals.invariant.warn(72);
307
309
  });
308
310
  }
309
311
  switch (muteDeprecations("parser", function () { return parser.parser(document).type; })) {
@@ -337,7 +339,7 @@ function withApollo(WrappedComponent, operationOptions) {
337
339
  return _this;
338
340
  }
339
341
  WithApollo.prototype.getWrappedInstance = function () {
340
- globals.invariant(operationOptions.withRef, 66);
342
+ globals.invariant(operationOptions.withRef, 77);
341
343
  return this.wrappedInstance;
342
344
  };
343
345
  WithApollo.prototype.setWrappedInstance = function (ref) {
@@ -15,7 +15,7 @@ export function withMutation(document, operationOptions) {
15
15
  if (operationOptions === void 0) { operationOptions = {}; }
16
16
  if (globalThis.__DEV__ !== false) {
17
17
  warnDeprecated("withMutation", function () {
18
- globalThis.__DEV__ !== false && invariant.warn(63);
18
+ globalThis.__DEV__ !== false && invariant.warn(74);
19
19
  });
20
20
  }
21
21
  // this is memoized so if coming from `graphql` there is nearly no extra cost
@@ -15,7 +15,7 @@ export function withQuery(document, operationOptions) {
15
15
  if (operationOptions === void 0) { operationOptions = {}; }
16
16
  if (globalThis.__DEV__ !== false) {
17
17
  warnDeprecated("withQuery", function () {
18
- globalThis.__DEV__ !== false && invariant.warn(64);
18
+ globalThis.__DEV__ !== false && invariant.warn(75);
19
19
  });
20
20
  }
21
21
  // this is memoized so if coming from `graphql` there is nearly no extra cost
@@ -15,7 +15,7 @@ export function withSubscription(document, operationOptions) {
15
15
  if (operationOptions === void 0) { operationOptions = {}; }
16
16
  if (globalThis.__DEV__ !== false) {
17
17
  warnDeprecated("withSubscription", function () {
18
- globalThis.__DEV__ !== false && invariant.warn(65);
18
+ globalThis.__DEV__ !== false && invariant.warn(76);
19
19
  });
20
20
  }
21
21
  // this is memoized so if coming from `graphql` there is nearly no extra cost
@@ -22,7 +22,7 @@ export function withApollo(WrappedComponent, operationOptions) {
22
22
  return _this;
23
23
  }
24
24
  WithApollo.prototype.getWrappedInstance = function () {
25
- invariant(operationOptions.withRef, 66);
25
+ invariant(operationOptions.withRef, 77);
26
26
  return this.wrappedInstance;
27
27
  };
28
28
  WithApollo.prototype.setWrappedInstance = function (ref) {
@@ -36,7 +36,7 @@ var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
36
36
  function useApolloClient(override) {
37
37
  var context$1 = React__namespace.useContext(context.getApolloContext());
38
38
  var client = override || context$1.client;
39
- globals.invariant(!!client, 68);
39
+ globals.invariant(!!client, 79);
40
40
  return client;
41
41
  }
42
42
 
@@ -51,7 +51,7 @@ var useSyncExternalStore = realHook$1 ||
51
51
  !didWarnUncachedGetSnapshot &&
52
52
  value !== getSnapshot()) {
53
53
  didWarnUncachedGetSnapshot = true;
54
- globalThis.__DEV__ !== false && globals.invariant.error(81);
54
+ globalThis.__DEV__ !== false && globals.invariant.error(92);
55
55
  }
56
56
  var _a = React__namespace.useState({
57
57
  inst: { value: value, getSnapshot: getSnapshot },
@@ -122,9 +122,11 @@ function useRenderGuard() {
122
122
  }, []);
123
123
  }
124
124
 
125
+ var muteAllDeprecations = Symbol.for("apollo.deprecations");
126
+ var global$2 = globals.global;
125
127
  var slot = new optimism.Slot();
126
128
  function isMuted(name) {
127
- return (slot.getValue() || []).includes(name);
129
+ return global$2[muteAllDeprecations] || (slot.getValue() || []).includes(name);
128
130
  }
129
131
  function muteDeprecations(name) {
130
132
  var args = [];
@@ -137,7 +139,7 @@ function warnRemovedOption(options, name, callSite, recommendation) {
137
139
  if (recommendation === void 0) { recommendation = "Please remove this option."; }
138
140
  warnDeprecated(name, function () {
139
141
  if (name in options) {
140
- globalThis.__DEV__ !== false && globals.invariant.warn(91, callSite, name, recommendation);
142
+ globalThis.__DEV__ !== false && globals.invariant.warn(104, callSite, name, recommendation);
141
143
  }
142
144
  });
143
145
  }
@@ -152,7 +154,7 @@ function useWarnRemovedOption(options, name, callSite, recommendation) {
152
154
  if (recommendation === void 0) { recommendation = "Please remove this option."; }
153
155
  var didWarn = React__namespace.useRef(false);
154
156
  if (name in options && !didWarn.current) {
155
- globalThis.__DEV__ !== false && globals.invariant.warn(67, callSite, name, recommendation);
157
+ globalThis.__DEV__ !== false && globals.invariant.warn(78, callSite, name, recommendation);
156
158
  didWarn.current = true;
157
159
  }
158
160
  }
@@ -484,7 +486,7 @@ function bindObservableMethods(observable) {
484
486
  args[_i] = arguments[_i];
485
487
  }
486
488
  if (globalThis.__DEV__ !== false) {
487
- globalThis.__DEV__ !== false && globals.invariant.warn(73);
489
+ globalThis.__DEV__ !== false && globals.invariant.warn(84);
488
490
  }
489
491
  return observable.reobserve.apply(observable, args);
490
492
  },
@@ -496,7 +498,7 @@ function bindObservableMethods(observable) {
496
498
  };
497
499
  }
498
500
 
499
- var version = "3.14.0-alpha.0";
501
+ var version = "3.14.0-rc.0";
500
502
 
501
503
  function maybe(thunk) {
502
504
  try {
@@ -653,7 +655,7 @@ function useLazyQuery(query, options) {
653
655
  eagerMethods[key] = function () {
654
656
  if (globalThis.__DEV__ !== false) {
655
657
  if (key === "reobserve") {
656
- globalThis.__DEV__ !== false && invariant.warn(69);
658
+ globalThis.__DEV__ !== false && invariant.warn(80);
657
659
  }
658
660
  }
659
661
  if (!execOptionsRef.current) {
@@ -676,7 +678,7 @@ function useLazyQuery(query, options) {
676
678
  var execute = React__namespace.useCallback(function (executeOptions) {
677
679
  if (globalThis.__DEV__ !== false) {
678
680
  if (calledDuringRender()) {
679
- globalThis.__DEV__ !== false && invariant.warn(70);
681
+ globalThis.__DEV__ !== false && invariant.warn(81);
680
682
  }
681
683
  for (var _i = 0, REMOVED_EXECUTE_OPTIONS_1 = REMOVED_EXECUTE_OPTIONS; _i < REMOVED_EXECUTE_OPTIONS_1.length; _i++) {
682
684
  var name_1 = REMOVED_EXECUTE_OPTIONS_1[_i];
@@ -867,10 +869,10 @@ function useSubscription(subscription, options) {
867
869
  if (!hasIssuedDeprecationWarningRef.current) {
868
870
  hasIssuedDeprecationWarningRef.current = true;
869
871
  if (options.onSubscriptionData) {
870
- globalThis.__DEV__ !== false && globals.invariant.warn(options.onData ? 74 : 75);
872
+ globalThis.__DEV__ !== false && globals.invariant.warn(options.onData ? 85 : 86);
871
873
  }
872
874
  if (options.onSubscriptionComplete) {
873
- globalThis.__DEV__ !== false && globals.invariant.warn(options.onComplete ? 76 : 77);
875
+ globalThis.__DEV__ !== false && globals.invariant.warn(options.onComplete ? 87 : 88);
874
876
  }
875
877
  }
876
878
  var skip = options.skip, fetchPolicy = options.fetchPolicy, errorPolicy = options.errorPolicy, shouldResubscribe = options.shouldResubscribe, context = options.context, extensions = options.extensions, ignoreResults = options.ignoreResults;
@@ -991,7 +993,7 @@ function useSubscription(subscription, options) {
991
993
  : fallbackResult;
992
994
  }, function () { return fallbackResult; });
993
995
  var restart = React__namespace.useCallback(function () {
994
- globals.invariant(!optionsRef.current.skip, 78);
996
+ globals.invariant(!optionsRef.current.skip, 89);
995
997
  setObservable(recreateRef.current());
996
998
  }, [optionsRef, recreateRef]);
997
999
  return React__namespace.useMemo(function () { return (tslib.__assign(tslib.__assign({}, ret), { restart: restart })); }, [ret, restart]);
@@ -1202,11 +1204,11 @@ function validateFetchPolicy(fetchPolicy) {
1202
1204
  "no-cache",
1203
1205
  "cache-and-network",
1204
1206
  ];
1205
- globals.invariant(supportedFetchPolicies.includes(fetchPolicy), 79, fetchPolicy);
1207
+ globals.invariant(supportedFetchPolicies.includes(fetchPolicy), 90, fetchPolicy);
1206
1208
  }
1207
1209
  function validatePartialDataReturn(fetchPolicy, returnPartialData) {
1208
1210
  if (fetchPolicy === "no-cache" && returnPartialData) {
1209
- globalThis.__DEV__ !== false && globals.invariant.warn(80);
1211
+ globalThis.__DEV__ !== false && globals.invariant.warn(91);
1210
1212
  }
1211
1213
  }
1212
1214
  function toApolloError(result) {
@@ -1376,7 +1378,7 @@ function useLoadableQuery(query, options) {
1376
1378
  for (var _i = 0; _i < arguments.length; _i++) {
1377
1379
  args[_i] = arguments[_i];
1378
1380
  }
1379
- globals.invariant(!calledDuringRender(), 71);
1381
+ globals.invariant(!calledDuringRender(), 82);
1380
1382
  var variables = args[0];
1381
1383
  var cacheKey = tslib.__spreadArray([
1382
1384
  query,
@@ -1397,7 +1399,7 @@ function useLoadableQuery(query, options) {
1397
1399
  client,
1398
1400
  ]);
1399
1401
  var subscribeToMore = React__namespace.useCallback(function (options) {
1400
- globals.invariant(internalQueryRef, 72);
1402
+ globals.invariant(internalQueryRef, 83);
1401
1403
  return internalQueryRef.observable.subscribeToMore(
1402
1404
  options);
1403
1405
  }, [internalQueryRef]);