@apollo/client 3.12.1 → 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.
- package/CHANGELOG.md +18 -0
- package/apollo-client.cjs +5 -5
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/core/core.cjs +1 -1
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +1 -1
- package/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/masking/__benches__/types.bench.js +55 -1
- package/masking/__benches__/types.bench.js.map +1 -1
- package/masking/internal/types.d.ts +4 -3
- package/masking/internal/types.js.map +1 -1
- package/package.json +13 -12
- package/react/hoc/hoc.cjs +26 -20
- package/react/hoc/hoc.cjs.map +1 -1
- package/react/hoc/hoc.cjs.native.js +26 -20
- package/react/hoc/mutation-hoc.js +32 -25
- package/react/hoc/mutation-hoc.js.map +1 -1
- package/react/hooks/hooks.cjs +4 -4
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +4 -4
- package/react/hooks/internal/useDeepMemo.js +1 -1
- package/react/hooks/internal/useDeepMemo.js.map +1 -1
- package/react/hooks/useLazyQuery.js +3 -3
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/internal/internal.cjs +1 -1
- package/react/internal/internal.cjs.map +1 -1
- package/react/internal/internal.cjs.native.js +1 -1
- package/testing/internal/ObservableStream.d.ts +1 -2
- package/testing/internal/ObservableStream.js.map +1 -1
- package/testing/internal/rtl/renderHookAsync.js +1 -0
- package/testing/internal/rtl/renderHookAsync.js.map +1 -1
- package/testing/matchers/index.js +14 -0
- package/testing/matchers/index.js.map +1 -1
- package/testing/matchers/toComplete.d.ts +4 -0
- package/testing/matchers/toComplete.js +42 -0
- package/testing/matchers/toComplete.js.map +1 -0
- package/testing/matchers/toEmitAnything.d.ts +4 -0
- package/testing/matchers/toEmitAnything.js +46 -0
- package/testing/matchers/toEmitAnything.js.map +1 -0
- package/testing/matchers/toEmitError.d.ts +7 -0
- package/testing/matchers/toEmitError.js +53 -0
- package/testing/matchers/toEmitError.js.map +1 -0
- package/testing/matchers/toEmitMatchedValue.d.ts +7 -0
- package/testing/matchers/toEmitMatchedValue.js +51 -0
- package/testing/matchers/toEmitMatchedValue.js.map +1 -0
- package/testing/matchers/toEmitNext.d.ts +4 -0
- package/testing/matchers/toEmitNext.js +42 -0
- package/testing/matchers/toEmitNext.js.map +1 -0
- package/testing/matchers/toEmitValue.d.ts +4 -0
- package/testing/matchers/toEmitValue.js +53 -0
- package/testing/matchers/toEmitValue.js.map +1 -0
- package/testing/matchers/toEmitValueStrict.d.ts +7 -0
- package/testing/matchers/toEmitValueStrict.js +56 -0
- package/testing/matchers/toEmitValueStrict.js.map +1 -0
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/utilities/index.d.ts +1 -0
- package/utilities/index.js.map +1 -1
- package/utilities/types/RemoveIndexSignature.d.ts +4 -0
- package/utilities/types/RemoveIndexSignature.js +2 -0
- package/utilities/types/RemoveIndexSignature.js.map +1 -0
- package/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
|
|
15
|
+
## 3.12.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#12175](https://github.com/apollographql/apollo-client/pull/12175) [`84af347`](https://github.com/apollographql/apollo-client/commit/84af347d53bc31df4a6a90a55e7c98413144376a) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Update peer deps to allow for React 19 stable release.
|
|
20
|
+
|
|
3
21
|
## 3.12.1
|
|
4
22
|
|
|
5
23
|
### 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.
|
|
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;
|