@apollo/client 3.13.1 → 3.13.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 3.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#12362](https://github.com/apollographql/apollo-client/pull/12362) [`f6d387c`](https://github.com/apollographql/apollo-client/commit/f6d387c166cc76f08135966fb6d74fd8fe808c21) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fixes an issue where calling `observableQuery.getCurrentResult()` when the `errorPolicy` was set to `all` would return the `networkStatus` as `NetworkStatus.ready` when there were errors returned in the result. This has been corrected to report `NetworkStatus.error`.
8
+
9
+ This bug also affected the `useQuery` and `useLazyQuery` hooks and may affect you if you check for `networkStatus` in your component.
10
+
11
+ ## 3.13.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#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.
16
+
17
+ - [#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.
18
+
19
+ - [#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.
20
+
3
21
  ## 3.13.1
4
22
 
5
23
  ### Patch 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, Oct 8-10 in NYC. [Get your pass here ->](https://summit.graphql.com/?utm_campaign=github_federation_readme)
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.1";
35
+ var version = "3.13.3";
36
36
 
37
37
  function maybe(thunk) {
38
38
  try {
@@ -5286,6 +5286,10 @@ var ObservableQuery = (function (_super) {
5286
5286
  else {
5287
5287
  result.partial = true;
5288
5288
  }
5289
+ if (result.networkStatus === exports.NetworkStatus.ready &&
5290
+ (result.error || result.errors)) {
5291
+ result.networkStatus = exports.NetworkStatus.error;
5292
+ }
5289
5293
  if (globalThis.__DEV__ !== false &&
5290
5294
  !diff.complete &&
5291
5295
  !this.options.partialRefetch &&
@@ -8615,8 +8619,8 @@ function diffToResult(diff) {
8615
8619
  return result;
8616
8620
  }
8617
8621
 
8618
- var QUERY_REFERENCE_SYMBOL = Symbol();
8619
- var PROMISE_SYMBOL = Symbol();
8622
+ var QUERY_REFERENCE_SYMBOL = Symbol.for("apollo.internal.queryRef");
8623
+ var PROMISE_SYMBOL = Symbol.for("apollo.internal.refPromise");
8620
8624
  function wrapQueryRef(internalQueryRef) {
8621
8625
  var _a;
8622
8626
  var ref = (_a = {