@apollo/client 3.13.0 → 3.13.2
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/README.md +1 -1
- package/apollo-client.cjs +4 -7
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/core/ObservableQuery.js +1 -4
- package/core/ObservableQuery.js.map +1 -1
- package/core/core.cjs +2 -5
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +2 -5
- package/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/package.json +1 -1
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/index.d.ts +1 -1
- package/react/hooks/index.js.map +1 -1
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/hooks/useQuery.d.ts +2 -2
- package/react/hooks/useQuery.js +1 -1
- package/react/hooks/useQuery.js.map +1 -1
- package/react/internal/cache/QueryReference.js +2 -2
- package/react/internal/cache/QueryReference.js.map +1 -1
- package/react/internal/internal.cjs +3 -3
- package/react/internal/internal.cjs.map +1 -1
- package/react/internal/internal.cjs.native.js +3 -3
- package/testing/core/core.cjs +18 -2
- package/testing/core/core.cjs.map +1 -1
- package/testing/core/core.cjs.native.js +18 -2
- package/testing/core/mocking/mockLink.d.ts +1 -0
- package/testing/core/mocking/mockLink.js +23 -3
- package/testing/core/mocking/mockLink.js.map +1 -1
- 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/types/DeepOmit.d.ts +1 -1
- package/utilities/types/DeepOmit.js.map +1 -1
- package/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @apollo/client
|
|
2
2
|
|
|
3
|
+
## 3.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#12409](https://github.com/apollographql/apollo-client/pull/12409) [`6aa2f3e`](https://github.com/apollographql/apollo-client/commit/6aa2f3e81ee0ae59da7ae0b12000bb5a55ec5c6d) Thanks [@phryneas](https://github.com/phryneas)! - To mitigate problems when Apollo Client ends up more than once in the bundle, some unique symbols were converted into `Symbol.for` calls.
|
|
8
|
+
|
|
9
|
+
- [#12392](https://github.com/apollographql/apollo-client/pull/12392) [`644bb26`](https://github.com/apollographql/apollo-client/commit/644bb2662168a9bac0519be6979f0db38b0febc4) Thanks [@Joja81](https://github.com/Joja81)! - Fixes an issue where the DeepOmit type would turn optional properties into required properties. This should only affect you if you were using the omitDeep or stripTypename utilities exported by Apollo Client.
|
|
10
|
+
|
|
11
|
+
- [#12404](https://github.com/apollographql/apollo-client/pull/12404) [`4332b88`](https://github.com/apollographql/apollo-client/commit/4332b886f0409145af57f26d334f86e5a1b465c5) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Show `NaN` rather than converting to `null` in debug messages from `MockLink` for unmatched `variables` values.
|
|
12
|
+
|
|
13
|
+
## 3.13.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#12369](https://github.com/apollographql/apollo-client/pull/12369) [`bdfc5b2`](https://github.com/apollographql/apollo-client/commit/bdfc5b2e386ed5f835716a542de0cf17da37f7fc) Thanks [@phryneas](https://github.com/phryneas)! - `ObervableQuery.refetch`: don't refetch with `cache-and-network`, swich to `network-only` instead
|
|
18
|
+
|
|
19
|
+
- [#12375](https://github.com/apollographql/apollo-client/pull/12375) [`d3f8f13`](https://github.com/apollographql/apollo-client/commit/d3f8f130718ef50531ca0079192c2672a513814a) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Export the `UseSuspenseFragmentOptions` type.
|
|
20
|
+
|
|
3
21
|
## 3.13.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
**Announcement:**
|
|
15
|
-
Join 1000+ engineers at GraphQL Summit for talks, workshops, and office hours
|
|
15
|
+
Join 1000+ engineers at GraphQL Summit 2025 by Apollo for talks, workshops, and office hours. Oct 6-8, 2025 in San Francisco. [Get your pass here ->](https://www.apollographql.com/graphql-summit-2025?utm_campaign=2025-03-04_graphql-summit-github-announcement&utm_medium=github&utm_source=apollo-server)
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
package/apollo-client.cjs
CHANGED
|
@@ -32,7 +32,7 @@ var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
|
|
|
32
32
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
33
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
34
34
|
|
|
35
|
-
var version = "3.13.
|
|
35
|
+
var version = "3.13.2";
|
|
36
36
|
|
|
37
37
|
function maybe(thunk) {
|
|
38
38
|
try {
|
|
@@ -5343,10 +5343,7 @@ var ObservableQuery = (function (_super) {
|
|
|
5343
5343
|
pollInterval: 0,
|
|
5344
5344
|
};
|
|
5345
5345
|
var fetchPolicy = this.options.fetchPolicy;
|
|
5346
|
-
if (fetchPolicy === "cache
|
|
5347
|
-
reobserveOptions.fetchPolicy = fetchPolicy;
|
|
5348
|
-
}
|
|
5349
|
-
else if (fetchPolicy === "no-cache") {
|
|
5346
|
+
if (fetchPolicy === "no-cache") {
|
|
5350
5347
|
reobserveOptions.fetchPolicy = "no-cache";
|
|
5351
5348
|
}
|
|
5352
5349
|
else {
|
|
@@ -8618,8 +8615,8 @@ function diffToResult(diff) {
|
|
|
8618
8615
|
return result;
|
|
8619
8616
|
}
|
|
8620
8617
|
|
|
8621
|
-
var QUERY_REFERENCE_SYMBOL = Symbol();
|
|
8622
|
-
var PROMISE_SYMBOL = Symbol();
|
|
8618
|
+
var QUERY_REFERENCE_SYMBOL = Symbol.for("apollo.internal.queryRef");
|
|
8619
|
+
var PROMISE_SYMBOL = Symbol.for("apollo.internal.refPromise");
|
|
8623
8620
|
function wrapQueryRef(internalQueryRef) {
|
|
8624
8621
|
var _a;
|
|
8625
8622
|
var ref = (_a = {
|