@apollo/client 3.12.2 → 3.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/apollo-client.cjs +5 -5
  3. package/apollo-client.cjs.map +1 -1
  4. package/apollo-client.min.cjs +1 -1
  5. package/core/core.cjs +1 -1
  6. package/core/core.cjs.map +1 -1
  7. package/core/core.cjs.native.js +1 -1
  8. package/dev/dev.cjs +1 -1
  9. package/dev/dev.cjs.map +1 -1
  10. package/dev/dev.cjs.native.js +1 -1
  11. package/masking/__benches__/types.bench.js +55 -1
  12. package/masking/__benches__/types.bench.js.map +1 -1
  13. package/masking/internal/types.d.ts +4 -3
  14. package/masking/internal/types.js.map +1 -1
  15. package/package.json +11 -10
  16. package/react/hoc/hoc.cjs +26 -20
  17. package/react/hoc/hoc.cjs.map +1 -1
  18. package/react/hoc/hoc.cjs.native.js +26 -20
  19. package/react/hoc/mutation-hoc.js +32 -25
  20. package/react/hoc/mutation-hoc.js.map +1 -1
  21. package/react/hooks/hooks.cjs +4 -4
  22. package/react/hooks/hooks.cjs.map +1 -1
  23. package/react/hooks/hooks.cjs.native.js +4 -4
  24. package/react/hooks/internal/useDeepMemo.js +1 -1
  25. package/react/hooks/internal/useDeepMemo.js.map +1 -1
  26. package/react/hooks/useLazyQuery.js +3 -3
  27. package/react/hooks/useLazyQuery.js.map +1 -1
  28. package/react/internal/internal.cjs +1 -1
  29. package/react/internal/internal.cjs.map +1 -1
  30. package/react/internal/internal.cjs.native.js +1 -1
  31. package/testing/internal/rtl/renderHookAsync.js +1 -0
  32. package/testing/internal/rtl/renderHookAsync.js.map +1 -1
  33. package/utilities/globals/globals.cjs +1 -1
  34. package/utilities/globals/globals.cjs.map +1 -1
  35. package/utilities/globals/globals.cjs.native.js +1 -1
  36. package/utilities/index.d.ts +1 -0
  37. package/utilities/index.js.map +1 -1
  38. package/utilities/types/RemoveIndexSignature.d.ts +4 -0
  39. package/utilities/types/RemoveIndexSignature.js +2 -0
  40. package/utilities/types/RemoveIndexSignature.js.map +1 -0
  41. package/version.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 3.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#12214](https://github.com/apollographql/apollo-client/pull/12214) [`8bfee88`](https://github.com/apollographql/apollo-client/commit/8bfee88102dd071ea5836f7267f30ca082671b2b) Thanks [@phryneas](https://github.com/phryneas)! - Data masking: prevent infinite recursion of `ContainsFragmentsRefs` type
8
+
9
+ - [#12204](https://github.com/apollographql/apollo-client/pull/12204) [`851deb0`](https://github.com/apollographql/apollo-client/commit/851deb06f42eb255b4839c2b88430f991943ae0f) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix `Unmasked` unwrapping tuple types into an array of their subtypes.
10
+
11
+ - [#12204](https://github.com/apollographql/apollo-client/pull/12204) [`851deb0`](https://github.com/apollographql/apollo-client/commit/851deb06f42eb255b4839c2b88430f991943ae0f) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Ensure `MaybeMasked` does not try and unwrap types that contain index signatures.
12
+
13
+ - [#12204](https://github.com/apollographql/apollo-client/pull/12204) [`851deb0`](https://github.com/apollographql/apollo-client/commit/851deb06f42eb255b4839c2b88430f991943ae0f) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Ensure `MaybeMasked` does not try to unwrap the type as `Unmasked` if the type contains `any`.
14
+
3
15
  ## 3.12.2
4
16
 
5
17
  ### Patch 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.12.2";
34
+ var version = "3.12.3";
35
35
 
36
36
  function maybe(thunk) {
37
37
  try {
@@ -7805,7 +7805,7 @@ function verifyDocumentType(document, type) {
7805
7805
  }
7806
7806
 
7807
7807
  function useDeepMemo(memoFn, deps) {
7808
- var ref = React__namespace.useRef();
7808
+ var ref = React__namespace.useRef(void 0);
7809
7809
  if (!ref.current || !equal.equal(ref.current.deps, deps)) {
7810
7810
  ref.current = { value: memoFn(), deps: deps };
7811
7811
  }
@@ -8167,9 +8167,9 @@ var EAGER_METHODS = [
8167
8167
  ];
8168
8168
  function useLazyQuery(query, options) {
8169
8169
  var _a;
8170
- var execOptionsRef = React__namespace.useRef();
8171
- var optionsRef = React__namespace.useRef();
8172
- var queryRef = React__namespace.useRef();
8170
+ var execOptionsRef = React__namespace.useRef(void 0);
8171
+ var optionsRef = React__namespace.useRef(void 0);
8172
+ var queryRef = React__namespace.useRef(void 0);
8173
8173
  var merged = mergeOptions(options, execOptionsRef.current || {});
8174
8174
  var document = (_a = merged === null || merged === void 0 ? void 0 : merged.query) !== null && _a !== void 0 ? _a : query;
8175
8175
  optionsRef.current = options;