@apollo/client 4.1.0-alpha.4 → 4.1.0-alpha.5
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 +10 -0
- package/__cjs/cache/inmemory/entityStore.cjs +3 -1
- package/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/helpers.d.cts +1 -1
- package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/__cjs/core/ObservableQuery.cjs +11 -31
- package/__cjs/core/ObservableQuery.cjs.map +1 -1
- package/__cjs/incremental/handlers/defer20220824.cjs +33 -23
- package/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
- package/__cjs/incremental/handlers/defer20220824.d.cts +1 -0
- package/__cjs/incremental/handlers/graphql17Alpha9.cjs +24 -23
- package/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
- package/__cjs/utilities/internal/DeepMerger.cjs +28 -5
- package/__cjs/utilities/internal/DeepMerger.cjs.map +1 -1
- package/__cjs/utilities/internal/DeepMerger.d.cts +9 -5
- package/__cjs/version.cjs +1 -1
- package/cache/inmemory/entityStore.js +3 -1
- package/cache/inmemory/entityStore.js.map +1 -1
- package/cache/inmemory/helpers.d.ts +1 -1
- package/cache/inmemory/readFromStore.js.map +1 -1
- package/core/ObservableQuery.js +11 -31
- package/core/ObservableQuery.js.map +1 -1
- package/incremental/handlers/defer20220824.d.ts +1 -0
- package/incremental/handlers/defer20220824.js +33 -23
- package/incremental/handlers/defer20220824.js.map +1 -1
- package/incremental/handlers/graphql17Alpha9.js +24 -23
- package/incremental/handlers/graphql17Alpha9.js.map +1 -1
- package/package.json +1 -1
- package/utilities/internal/DeepMerger.d.ts +9 -5
- package/utilities/internal/DeepMerger.js +28 -5
- package/utilities/internal/DeepMerger.js.map +1 -1
- package/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @apollo/client
|
|
2
2
|
|
|
3
|
+
## 4.1.0-alpha.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#13010](https://github.com/apollographql/apollo-client/pull/13010) [`7627000`](https://github.com/apollographql/apollo-client/commit/76270002254b0c6acb18872a39ab180f9f1e4067) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where errors parsed from incremental chunks in `ErrorLink` might throw when using the `GraphQL17Alpha9Handler`.
|
|
8
|
+
|
|
9
|
+
- [#13010](https://github.com/apollographql/apollo-client/pull/13010) [`7627000`](https://github.com/apollographql/apollo-client/commit/76270002254b0c6acb18872a39ab180f9f1e4067) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Handle `@stream` payloads that send multiple items in the same chunk when using the `Defer20220824Handler`.
|
|
10
|
+
|
|
11
|
+
- [#13010](https://github.com/apollographql/apollo-client/pull/13010) [`7627000`](https://github.com/apollographql/apollo-client/commit/76270002254b0c6acb18872a39ab180f9f1e4067) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Handle an edge case with the `Defer20220824Handler` where an error for a `@stream` item that bubbles to the `@stream` boundary (such as an item returning `null` for a non-null array item) would write items from future chunks to the wrong array index. In these cases, the `@stream` field is no longer processed and future updates to the field are ignored. This prevents runtime errors that TypeScript would otherwise not be able to catch.
|
|
12
|
+
|
|
3
13
|
## 4.1.0-alpha.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -83,7 +83,9 @@ class EntityStore {
|
|
|
83
83
|
if (!incoming)
|
|
84
84
|
return;
|
|
85
85
|
(0, invariant_1.invariant)(typeof dataId === "string", 98);
|
|
86
|
-
const merged = new internal_1.DeepMerger(
|
|
86
|
+
const merged = new internal_1.DeepMerger({
|
|
87
|
+
reconciler: storeObjectReconciler,
|
|
88
|
+
}).merge(existing, incoming);
|
|
87
89
|
// Even if merged === existing, existing may have come from a lower
|
|
88
90
|
// layer, so we always need to set this.data[dataId] on this level.
|
|
89
91
|
this.data[dataId] = merged;
|