@apollo/client 3.14.0 → 3.14.1

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 (121) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/apollo-client.cjs +76 -72
  3. package/apollo-client.cjs.map +1 -1
  4. package/apollo-client.min.cjs +1 -1
  5. package/cache/cache.cjs +14 -41
  6. package/cache/cache.cjs.map +1 -1
  7. package/cache/cache.cjs.native.js +14 -41
  8. package/cache/core/cache.js +1 -1
  9. package/cache/core/cache.js.map +1 -1
  10. package/cache/inmemory/inMemoryCache.js +1 -1
  11. package/cache/inmemory/inMemoryCache.js.map +1 -1
  12. package/core/ApolloClient.js +1 -1
  13. package/core/ApolloClient.js.map +1 -1
  14. package/core/ObservableQuery.js +1 -1
  15. package/core/ObservableQuery.js.map +1 -1
  16. package/core/QueryInfo.js +1 -1
  17. package/core/QueryInfo.js.map +1 -1
  18. package/core/QueryManager.js +1 -1
  19. package/core/QueryManager.js.map +1 -1
  20. package/core/core.cjs +29 -56
  21. package/core/core.cjs.map +1 -1
  22. package/core/core.cjs.native.js +29 -56
  23. package/dev/dev.cjs +49 -53
  24. package/dev/dev.cjs.map +1 -1
  25. package/dev/dev.cjs.native.js +49 -53
  26. package/invariantErrorCodes.js +48 -53
  27. package/link/core/ApolloLink.js +1 -1
  28. package/link/core/ApolloLink.js.map +1 -1
  29. package/link/core/core.cjs +1 -15
  30. package/link/core/core.cjs.map +1 -1
  31. package/link/core/core.cjs.native.js +1 -15
  32. package/package.json +1 -1
  33. package/react/components/components.cjs +2 -14
  34. package/react/components/components.cjs.map +1 -1
  35. package/react/components/components.cjs.native.js +2 -14
  36. package/react/hoc/graphql.js +1 -1
  37. package/react/hoc/graphql.js.map +1 -1
  38. package/react/hoc/hoc.cjs +12 -31
  39. package/react/hoc/hoc.cjs.map +1 -1
  40. package/react/hoc/hoc.cjs.native.js +12 -31
  41. package/react/hoc/mutation-hoc.js +1 -1
  42. package/react/hoc/mutation-hoc.js.map +1 -1
  43. package/react/hoc/query-hoc.js +1 -1
  44. package/react/hoc/query-hoc.js.map +1 -1
  45. package/react/hoc/subscription-hoc.js +1 -1
  46. package/react/hoc/subscription-hoc.js.map +1 -1
  47. package/react/hooks/hooks.cjs +26 -52
  48. package/react/hooks/hooks.cjs.map +1 -1
  49. package/react/hooks/hooks.cjs.native.js +26 -52
  50. package/react/hooks/internal/useWarnRemoved.d.ts +1 -1
  51. package/react/hooks/internal/useWarnRemoved.js +1 -1
  52. package/react/hooks/internal/useWarnRemoved.js.map +1 -1
  53. package/react/hooks/internal/useWarnRemovedOption.d.ts +2 -1
  54. package/react/hooks/internal/useWarnRemovedOption.js +7 -5
  55. package/react/hooks/internal/useWarnRemovedOption.js.map +1 -1
  56. package/react/hooks/useApolloClient.js +1 -1
  57. package/react/hooks/useBackgroundQuery.js +1 -1
  58. package/react/hooks/useBackgroundQuery.js.map +1 -1
  59. package/react/hooks/useFragment.js +1 -1
  60. package/react/hooks/useFragment.js.map +1 -1
  61. package/react/hooks/useLazyQuery.js +3 -3
  62. package/react/hooks/useLazyQuery.js.map +1 -1
  63. package/react/hooks/useLoadableQuery.js +3 -3
  64. package/react/hooks/useLoadableQuery.js.map +1 -1
  65. package/react/hooks/useQuery.js +3 -3
  66. package/react/hooks/useQuery.js.map +1 -1
  67. package/react/hooks/useSubscription.js +3 -3
  68. package/react/hooks/useSuspenseQuery.js +3 -3
  69. package/react/hooks/useSuspenseQuery.js.map +1 -1
  70. package/react/hooks/useSyncExternalStore.js +1 -1
  71. package/react/internal/cache/QueryReference.js +2 -2
  72. package/react/internal/cache/QueryReference.js.map +1 -1
  73. package/react/internal/internal.cjs +3 -14
  74. package/react/internal/internal.cjs.map +1 -1
  75. package/react/internal/internal.cjs.native.js +3 -14
  76. package/react/parser/index.js +7 -7
  77. package/react/parser/index.js.map +1 -1
  78. package/react/parser/parser.cjs +9 -29
  79. package/react/parser/parser.cjs.map +1 -1
  80. package/react/parser/parser.cjs.native.js +9 -29
  81. package/react/query-preloader/createQueryPreloader.js +1 -1
  82. package/react/query-preloader/createQueryPreloader.js.map +1 -1
  83. package/react/react.cjs +4 -31
  84. package/react/react.cjs.map +1 -1
  85. package/react/react.cjs.native.js +4 -31
  86. package/testing/core/core.cjs +4 -4
  87. package/testing/core/core.cjs.map +1 -1
  88. package/testing/core/core.cjs.native.js +4 -4
  89. package/testing/core/mocking/mockLink.d.ts +13 -0
  90. package/testing/core/mocking/mockLink.js +4 -4
  91. package/testing/core/mocking/mockLink.js.map +1 -1
  92. package/testing/internal/disposables/index.d.ts +1 -0
  93. package/testing/internal/disposables/index.js +1 -0
  94. package/testing/internal/disposables/index.js.map +1 -1
  95. package/testing/internal/disposables/withMutedDeprecations.d.ts +4 -0
  96. package/testing/internal/disposables/withMutedDeprecations.js +13 -0
  97. package/testing/internal/disposables/withMutedDeprecations.js.map +1 -0
  98. package/testing/react/MockedProvider.js +1 -1
  99. package/testing/react/MockedProvider.js.map +1 -1
  100. package/testing/testing.cjs +5 -32
  101. package/testing/testing.cjs.map +1 -1
  102. package/testing/testing.cjs.native.js +5 -32
  103. package/utilities/deprecation/index.d.ts +0 -3
  104. package/utilities/deprecation/index.js +4 -12
  105. package/utilities/deprecation/index.js.map +1 -1
  106. package/utilities/globals/globals.cjs +1 -1
  107. package/utilities/globals/globals.cjs.map +1 -1
  108. package/utilities/globals/globals.cjs.native.js +1 -1
  109. package/utilities/graphql/DocumentTransform.js +1 -1
  110. package/utilities/graphql/directives.js +7 -7
  111. package/utilities/graphql/fragments.js +3 -3
  112. package/utilities/graphql/getFromAST.js +8 -8
  113. package/utilities/graphql/storeUtils.js +1 -1
  114. package/utilities/graphql/transform.js +2 -2
  115. package/utilities/index.d.ts +2 -0
  116. package/utilities/index.js +1 -0
  117. package/utilities/index.js.map +1 -1
  118. package/utilities/utilities.cjs +54 -22
  119. package/utilities/utilities.cjs.map +1 -1
  120. package/utilities/utilities.cjs.native.js +54 -22
  121. package/version.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 3.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#13168](https://github.com/apollographql/apollo-client/pull/13168) [`6b84ec0`](https://github.com/apollographql/apollo-client/commit/6b84ec02d39a22690ae34113fccf24d59a1142a1) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix issue where muting a deprecation from one entrypoint would not mute the warning when checked in a different entrypoint. This caused some rogue deprecation warnings to appear in the console even though the warnings should have been muted.
8
+
9
+ - [#12970](https://github.com/apollographql/apollo-client/pull/12970) [`f91fab5`](https://github.com/apollographql/apollo-client/commit/f91fab505d8c08ce2bd793e8e73e354f8b8e2534) Thanks [@acemir](https://github.com/acemir)! - Add a deprecation message for the `variableMatcher` option in `MockLink`.
10
+
11
+ - [#13168](https://github.com/apollographql/apollo-client/pull/13168) [`6b84ec0`](https://github.com/apollographql/apollo-client/commit/6b84ec02d39a22690ae34113fccf24d59a1142a1) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Ensure deprecation warnings are properly silenced in React hooks when globally disabled.
12
+
3
13
  ## 3.14.0
4
14
 
5
15
  ### Minor Changes
package/apollo-client.cjs CHANGED
@@ -31,7 +31,7 @@ function _interopNamespace(e) {
31
31
  var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
32
32
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
33
33
 
34
- var version = "3.14.0";
34
+ var version = "3.14.1";
35
35
 
36
36
  function maybe(thunk) {
37
37
  try {
@@ -145,7 +145,7 @@ function shouldInclude(_a, variables) {
145
145
  if (ifArgument.value.kind === "Variable") {
146
146
  evaledValue =
147
147
  variables && variables[ifArgument.value.name.value];
148
- invariant(evaledValue !== void 0, 106, directive.name.value);
148
+ invariant(evaledValue !== void 0, 105, directive.name.value);
149
149
  }
150
150
  else {
151
151
  evaledValue = ifArgument.value.value;
@@ -180,12 +180,12 @@ function getInclusionDirectives(directives) {
180
180
  return;
181
181
  var directiveArguments = directive.arguments;
182
182
  var directiveName = directive.name.value;
183
- invariant(directiveArguments && directiveArguments.length === 1, 107, directiveName);
183
+ invariant(directiveArguments && directiveArguments.length === 1, 106, directiveName);
184
184
  var ifArgument = directiveArguments[0];
185
- invariant(ifArgument.name && ifArgument.name.value === "if", 108, directiveName);
185
+ invariant(ifArgument.name && ifArgument.name.value === "if", 107, directiveName);
186
186
  var ifValue = ifArgument.value;
187
187
  invariant(ifValue &&
188
- (ifValue.kind === "Variable" || ifValue.kind === "BooleanValue"), 109, directiveName);
188
+ (ifValue.kind === "Variable" || ifValue.kind === "BooleanValue"), 108, directiveName);
189
189
  result.push({ directive: directive, ifArgument: ifArgument });
190
190
  });
191
191
  }
@@ -207,13 +207,13 @@ function getFragmentMaskMode(fragment) {
207
207
  if (globalThis.__DEV__ !== false) {
208
208
  if (modeArg) {
209
209
  if (modeArg.value.kind === graphql.Kind.VARIABLE) {
210
- globalThis.__DEV__ !== false && invariant.warn(110);
210
+ globalThis.__DEV__ !== false && invariant.warn(109);
211
211
  }
212
212
  else if (modeArg.value.kind !== graphql.Kind.STRING) {
213
- globalThis.__DEV__ !== false && invariant.warn(111);
213
+ globalThis.__DEV__ !== false && invariant.warn(110);
214
214
  }
215
215
  else if (modeArg.value.value !== "migrate") {
216
- globalThis.__DEV__ !== false && invariant.warn(112, modeArg.value.value);
216
+ globalThis.__DEV__ !== false && invariant.warn(111, modeArg.value.value);
217
217
  }
218
218
  }
219
219
  }
@@ -246,7 +246,7 @@ function getFragmentQueryDocument(document, fragmentName) {
246
246
  document.definitions.forEach(function (definition) {
247
247
  if (definition.kind === "OperationDefinition") {
248
248
  throw newInvariantError(
249
- 113,
249
+ 112,
250
250
  definition.operation,
251
251
  definition.name ? " named '".concat(definition.name.value, "'") : ""
252
252
  );
@@ -256,7 +256,7 @@ function getFragmentQueryDocument(document, fragmentName) {
256
256
  }
257
257
  });
258
258
  if (typeof actualFragmentName === "undefined") {
259
- invariant(fragments.length === 1, 114, fragments.length);
259
+ invariant(fragments.length === 1, 113, fragments.length);
260
260
  actualFragmentName = fragments[0].name.value;
261
261
  }
262
262
  var query = tslib.__assign(tslib.__assign({}, document), { definitions: tslib.__spreadArray([
@@ -297,7 +297,7 @@ function getFragmentFromSelection(selection, fragmentMap) {
297
297
  return fragmentMap(fragmentName);
298
298
  }
299
299
  var fragment = fragmentMap && fragmentMap[fragmentName];
300
- invariant(fragment, 115, fragmentName);
300
+ invariant(fragment, 114, fragmentName);
301
301
  return fragment || null;
302
302
  }
303
303
  default:
@@ -562,7 +562,7 @@ function valueToObjectRepresentation(argObj, name, value, variables) {
562
562
  argObj[name.value] = null;
563
563
  }
564
564
  else {
565
- throw newInvariantError(124, name.value, value.kind);
565
+ throw newInvariantError(123, name.value, value.kind);
566
566
  }
567
567
  }
568
568
  function storeKeyNameFromField(field, variables) {
@@ -696,16 +696,16 @@ function isInlineFragment(selection) {
696
696
  }
697
697
 
698
698
  function checkDocument(doc) {
699
- invariant(doc && doc.kind === "Document", 116);
699
+ invariant(doc && doc.kind === "Document", 115);
700
700
  var operations = doc.definitions
701
701
  .filter(function (d) { return d.kind !== "FragmentDefinition"; })
702
702
  .map(function (definition) {
703
703
  if (definition.kind !== "OperationDefinition") {
704
- throw newInvariantError(117, definition.kind);
704
+ throw newInvariantError(116, definition.kind);
705
705
  }
706
706
  return definition;
707
707
  });
708
- invariant(operations.length <= 1, 118, operations.length);
708
+ invariant(operations.length <= 1, 117, operations.length);
709
709
  return doc;
710
710
  }
711
711
  function getOperationDefinition(doc) {
@@ -728,14 +728,14 @@ function getFragmentDefinitions(doc) {
728
728
  }
729
729
  function getQueryDefinition(doc) {
730
730
  var queryDef = getOperationDefinition(doc);
731
- invariant(queryDef && queryDef.operation === "query", 119);
731
+ invariant(queryDef && queryDef.operation === "query", 118);
732
732
  return queryDef;
733
733
  }
734
734
  function getFragmentDefinition(doc) {
735
- invariant(doc.kind === "Document", 120);
736
- invariant(doc.definitions.length <= 1, 121);
735
+ invariant(doc.kind === "Document", 119);
736
+ invariant(doc.definitions.length <= 1, 120);
737
737
  var fragmentDef = doc.definitions[0];
738
- invariant(fragmentDef.kind === "FragmentDefinition", 122);
738
+ invariant(fragmentDef.kind === "FragmentDefinition", 121);
739
739
  return fragmentDef;
740
740
  }
741
741
  function getMainDefinition(queryDoc) {
@@ -758,7 +758,7 @@ function getMainDefinition(queryDoc) {
758
758
  if (fragmentDefinition) {
759
759
  return fragmentDefinition;
760
760
  }
761
- throw newInvariantError(123);
761
+ throw newInvariantError(122);
762
762
  }
763
763
  function getDefaultValues(definition) {
764
764
  var defaultValues = Object.create(null);
@@ -809,7 +809,7 @@ var DocumentTransform = (function () {
809
809
  makeCacheKey: function (document) {
810
810
  var cacheKeys = _this.getCacheKey(document);
811
811
  if (cacheKeys) {
812
- invariant(Array.isArray(cacheKeys), 105);
812
+ invariant(Array.isArray(cacheKeys), 104);
813
813
  return stableCacheKeys_1.lookupArray(cacheKeys);
814
814
  }
815
815
  },
@@ -939,7 +939,7 @@ function removeDirectivesFromDocument(directives, doc) {
939
939
  return getInUseByFragmentName(ancestor.name.value);
940
940
  }
941
941
  }
942
- globalThis.__DEV__ !== false && invariant.error(125);
942
+ globalThis.__DEV__ !== false && invariant.error(124);
943
943
  return null;
944
944
  };
945
945
  var operationCount = 0;
@@ -1603,6 +1603,35 @@ function mergeOptions(defaults, options) {
1603
1603
  });
1604
1604
  }
1605
1605
 
1606
+ var _a;
1607
+ var muteAllDeprecations = Symbol.for("apollo.deprecations");
1608
+ var deprecationsSlot = Symbol.for("apollo.deprecations.slot");
1609
+ var global$1 = untypedGlobal;
1610
+ var slot = ((_a = global$1[deprecationsSlot]) !== null && _a !== void 0 ? _a : (global$1[deprecationsSlot] = new optimism.Slot()));
1611
+ function isMuted(name) {
1612
+ return global$1[muteAllDeprecations] || (slot.getValue() || []).includes(name);
1613
+ }
1614
+ function muteDeprecations(name) {
1615
+ var args = [];
1616
+ for (var _i = 1; _i < arguments.length; _i++) {
1617
+ args[_i - 1] = arguments[_i];
1618
+ }
1619
+ return slot.withValue.apply(slot, tslib.__spreadArray([Array.isArray(name) ? name : [name]], args, false));
1620
+ }
1621
+ function warnRemovedOption(options, name, callSite, recommendation) {
1622
+ if (recommendation === void 0) { recommendation = "Please remove this option."; }
1623
+ warnDeprecated(name, function () {
1624
+ if (name in options) {
1625
+ globalThis.__DEV__ !== false && invariant.warn(103, callSite, name, recommendation);
1626
+ }
1627
+ });
1628
+ }
1629
+ function warnDeprecated(name, cb) {
1630
+ if (!isMuted(name)) {
1631
+ cb();
1632
+ }
1633
+ }
1634
+
1606
1635
  function fromError(errorValue) {
1607
1636
  return new zenObservableTs.Observable(function (observer) {
1608
1637
  observer.error(errorValue);
@@ -1719,33 +1748,6 @@ function filterOperationVariables(variables, query) {
1719
1748
  return result;
1720
1749
  }
1721
1750
 
1722
- var muteAllDeprecations = Symbol.for("apollo.deprecations");
1723
- var global$1 = untypedGlobal;
1724
- var slot = new optimism.Slot();
1725
- function isMuted(name) {
1726
- return global$1[muteAllDeprecations] || (slot.getValue() || []).includes(name);
1727
- }
1728
- function muteDeprecations(name) {
1729
- var args = [];
1730
- for (var _i = 1; _i < arguments.length; _i++) {
1731
- args[_i - 1] = arguments[_i];
1732
- }
1733
- return slot.withValue.apply(slot, tslib.__spreadArray([Array.isArray(name) ? name : [name]], args, false));
1734
- }
1735
- function warnRemovedOption(options, name, callSite, recommendation) {
1736
- if (recommendation === void 0) { recommendation = "Please remove this option."; }
1737
- warnDeprecated(name, function () {
1738
- if (name in options) {
1739
- globalThis.__DEV__ !== false && invariant.warn(104, callSite, name, recommendation);
1740
- }
1741
- });
1742
- }
1743
- function warnDeprecated(name, cb) {
1744
- if (!isMuted(name)) {
1745
- cb();
1746
- }
1747
- }
1748
-
1749
1751
  function passthrough(op, forward) {
1750
1752
  return (forward ? forward(op) : zenObservableTs.Observable.of());
1751
1753
  }
@@ -7827,7 +7829,7 @@ var ApolloProvider = function (_a) {
7827
7829
  function useApolloClient(override) {
7828
7830
  var context = React__namespace.useContext(getApolloContext());
7829
7831
  var client = override || context.client;
7830
- invariant(!!client, 79);
7832
+ invariant(!!client, 78);
7831
7833
  return client;
7832
7834
  }
7833
7835
 
@@ -7842,7 +7844,7 @@ var useSyncExternalStore = realHook$1 ||
7842
7844
  !didWarnUncachedGetSnapshot &&
7843
7845
  value !== getSnapshot()) {
7844
7846
  didWarnUncachedGetSnapshot = true;
7845
- globalThis.__DEV__ !== false && invariant.error(92);
7847
+ globalThis.__DEV__ !== false && invariant.error(91);
7846
7848
  }
7847
7849
  var _a = React__namespace.useState({
7848
7850
  inst: { value: value, getSnapshot: getSnapshot },
@@ -7904,7 +7906,7 @@ function operationName(type) {
7904
7906
  }
7905
7907
  function parser(document) {
7906
7908
  warnDeprecated("parser", function () {
7907
- globalThis.__DEV__ !== false && invariant.warn(94);
7909
+ globalThis.__DEV__ !== false && invariant.warn(93);
7908
7910
  });
7909
7911
  if (!cache) {
7910
7912
  cache = new AutoCleanedWeakCache(cacheSizes.parser || 1000 );
@@ -7913,7 +7915,7 @@ function parser(document) {
7913
7915
  if (cached)
7914
7916
  return cached;
7915
7917
  var variables, type, name;
7916
- invariant(!!document && !!document.kind, 95, document);
7918
+ invariant(!!document && !!document.kind, 94, document);
7917
7919
  var fragments = [];
7918
7920
  var queries = [];
7919
7921
  var mutations = [];
@@ -7941,10 +7943,10 @@ function parser(document) {
7941
7943
  invariant(!fragments.length ||
7942
7944
  queries.length ||
7943
7945
  mutations.length ||
7944
- subscriptions.length, 96);
7946
+ subscriptions.length, 95);
7945
7947
  invariant(
7946
7948
  queries.length + mutations.length + subscriptions.length <= 1,
7947
- 97,
7949
+ 96,
7948
7950
  document,
7949
7951
  queries.length,
7950
7952
  subscriptions.length,
@@ -7956,7 +7958,7 @@ function parser(document) {
7956
7958
  var definitions = queries.length ? queries
7957
7959
  : mutations.length ? mutations
7958
7960
  : subscriptions;
7959
- invariant(definitions.length === 1, 98, document, definitions.length);
7961
+ invariant(definitions.length === 1, 97, document, definitions.length);
7960
7962
  var definition = definitions[0];
7961
7963
  variables = definition.variableDefinitions || [];
7962
7964
  if (definition.name && definition.name.kind === "Name") {
@@ -7981,7 +7983,7 @@ function verifyDocumentType(document, type) {
7981
7983
  var usedOperationName = operationName(operation.type);
7982
7984
  invariant(
7983
7985
  operation.type === type,
7984
- 99,
7986
+ 98,
7985
7987
  requiredOperationName,
7986
7988
  requiredOperationName,
7987
7989
  usedOperationName
@@ -8025,9 +8027,11 @@ function useWarnRemovedOption(options, name, callSite, recommendation) {
8025
8027
  "use no memo";
8026
8028
  if (recommendation === void 0) { recommendation = "Please remove this option."; }
8027
8029
  var didWarn = React__namespace.useRef(false);
8028
- if (name in options && !didWarn.current) {
8029
- globalThis.__DEV__ !== false && invariant.warn(78, callSite, name, recommendation);
8030
- didWarn.current = true;
8030
+ if (globalThis.__DEV__ !== false) {
8031
+ if (name in options && !didWarn.current) {
8032
+ warnRemovedOption(options, name, callSite, recommendation);
8033
+ didWarn.current = true;
8034
+ }
8031
8035
  }
8032
8036
  }
8033
8037
 
@@ -8083,7 +8087,7 @@ function useInternalState(client, query, options, renderPromises, makeWatchQuery
8083
8087
  (renderPromises &&
8084
8088
  renderPromises.getSSRObservable(makeWatchQueryOptions())) ||
8085
8089
  ObservableQuery["inactiveOnCreation"].withValue(!renderPromises, function () {
8086
- return muteDeprecations("canonizeResults", function () {
8090
+ return muteDeprecations(["canonizeResults", "partialRefetch"], function () {
8087
8091
  return client.watchQuery(getObsQueryOptions(void 0, client, options, makeWatchQueryOptions()));
8088
8092
  });
8089
8093
  }),
@@ -8358,7 +8362,7 @@ function bindObservableMethods(observable) {
8358
8362
  args[_i] = arguments[_i];
8359
8363
  }
8360
8364
  if (globalThis.__DEV__ !== false) {
8361
- globalThis.__DEV__ !== false && invariant.warn(84);
8365
+ globalThis.__DEV__ !== false && invariant.warn(83);
8362
8366
  }
8363
8367
  return observable.reobserve.apply(observable, args);
8364
8368
  },
@@ -8432,7 +8436,7 @@ function useLazyQuery(query, options) {
8432
8436
  eagerMethods[key] = function () {
8433
8437
  if (globalThis.__DEV__ !== false) {
8434
8438
  if (key === "reobserve") {
8435
- globalThis.__DEV__ !== false && invariant.warn(80);
8439
+ globalThis.__DEV__ !== false && invariant.warn(79);
8436
8440
  }
8437
8441
  }
8438
8442
  if (!execOptionsRef.current) {
@@ -8455,7 +8459,7 @@ function useLazyQuery(query, options) {
8455
8459
  var execute = React__namespace.useCallback(function (executeOptions) {
8456
8460
  if (globalThis.__DEV__ !== false) {
8457
8461
  if (calledDuringRender()) {
8458
- globalThis.__DEV__ !== false && invariant.warn(81);
8462
+ globalThis.__DEV__ !== false && invariant.warn(80);
8459
8463
  }
8460
8464
  for (var _i = 0, REMOVED_EXECUTE_OPTIONS_1 = REMOVED_EXECUTE_OPTIONS; _i < REMOVED_EXECUTE_OPTIONS_1.length; _i++) {
8461
8465
  var name_1 = REMOVED_EXECUTE_OPTIONS_1[_i];
@@ -8646,10 +8650,10 @@ function useSubscription(subscription, options) {
8646
8650
  if (!hasIssuedDeprecationWarningRef.current) {
8647
8651
  hasIssuedDeprecationWarningRef.current = true;
8648
8652
  if (options.onSubscriptionData) {
8649
- globalThis.__DEV__ !== false && invariant.warn(options.onData ? 85 : 86);
8653
+ globalThis.__DEV__ !== false && invariant.warn(options.onData ? 84 : 85);
8650
8654
  }
8651
8655
  if (options.onSubscriptionComplete) {
8652
- globalThis.__DEV__ !== false && invariant.warn(options.onComplete ? 87 : 88);
8656
+ globalThis.__DEV__ !== false && invariant.warn(options.onComplete ? 86 : 87);
8653
8657
  }
8654
8658
  }
8655
8659
  var skip = options.skip, fetchPolicy = options.fetchPolicy, errorPolicy = options.errorPolicy, shouldResubscribe = options.shouldResubscribe, context = options.context, extensions = options.extensions, ignoreResults = options.ignoreResults;
@@ -8770,7 +8774,7 @@ function useSubscription(subscription, options) {
8770
8774
  : fallbackResult;
8771
8775
  }, function () { return fallbackResult; });
8772
8776
  var restart = React__namespace.useCallback(function () {
8773
- invariant(!optionsRef.current.skip, 89);
8777
+ invariant(!optionsRef.current.skip, 88);
8774
8778
  setObservable(recreateRef.current());
8775
8779
  }, [optionsRef, recreateRef]);
8776
8780
  return React__namespace.useMemo(function () { return (tslib.__assign(tslib.__assign({}, ret), { restart: restart })); }, [ret, restart]);
@@ -8900,7 +8904,7 @@ function wrapQueryRef(internalQueryRef) {
8900
8904
  return ref;
8901
8905
  }
8902
8906
  function assertWrappedQueryRef(queryRef) {
8903
- invariant(!queryRef || QUERY_REFERENCE_SYMBOL in queryRef, 93);
8907
+ invariant(!queryRef || QUERY_REFERENCE_SYMBOL in queryRef, 92);
8904
8908
  }
8905
8909
  function getWrappedPromise(queryRef) {
8906
8910
  var internalQueryRef = unwrapQueryRef(queryRef);
@@ -9403,11 +9407,11 @@ function validateFetchPolicy(fetchPolicy) {
9403
9407
  "no-cache",
9404
9408
  "cache-and-network",
9405
9409
  ];
9406
- invariant(supportedFetchPolicies.includes(fetchPolicy), 90, fetchPolicy);
9410
+ invariant(supportedFetchPolicies.includes(fetchPolicy), 89, fetchPolicy);
9407
9411
  }
9408
9412
  function validatePartialDataReturn(fetchPolicy, returnPartialData) {
9409
9413
  if (fetchPolicy === "no-cache" && returnPartialData) {
9410
- globalThis.__DEV__ !== false && invariant.warn(91);
9414
+ globalThis.__DEV__ !== false && invariant.warn(90);
9411
9415
  }
9412
9416
  }
9413
9417
  function toApolloError(result) {
@@ -9577,7 +9581,7 @@ function useLoadableQuery(query, options) {
9577
9581
  for (var _i = 0; _i < arguments.length; _i++) {
9578
9582
  args[_i] = arguments[_i];
9579
9583
  }
9580
- invariant(!calledDuringRender(), 82);
9584
+ invariant(!calledDuringRender(), 81);
9581
9585
  var variables = args[0];
9582
9586
  var cacheKey = tslib.__spreadArray([
9583
9587
  query,
@@ -9598,7 +9602,7 @@ function useLoadableQuery(query, options) {
9598
9602
  client,
9599
9603
  ]);
9600
9604
  var subscribeToMore = React__namespace.useCallback(function (options) {
9601
- invariant(internalQueryRef, 83);
9605
+ invariant(internalQueryRef, 82);
9602
9606
  return internalQueryRef.observable.subscribeToMore(
9603
9607
  options);
9604
9608
  }, [internalQueryRef]);