@usearete/sdk 0.4.1 → 0.5.0
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/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +7 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2081,7 +2081,13 @@ class FrameProcessor {
|
|
|
2081
2081
|
if (normalized === null) {
|
|
2082
2082
|
break;
|
|
2083
2083
|
}
|
|
2084
|
-
const nextValue = this.attachInternalSeq(viewPath, normalized,
|
|
2084
|
+
const nextValue = this.attachInternalSeq(viewPath, normalized,
|
|
2085
|
+
// Fall back to the previous entity's sequence, as the patch branch
|
|
2086
|
+
// below does. Without this an unsequenced upsert drops the tracked
|
|
2087
|
+
// sequence (it rides on the object being replaced), disarming the
|
|
2088
|
+
// staleness guard until the next sequenced frame and letting a
|
|
2089
|
+
// later older frame overwrite newer data.
|
|
2090
|
+
frame.seq ?? this.extractSeq(frame.data) ?? this.getInternalSeq(previousValue));
|
|
2085
2091
|
this.storage.set(viewPath, frame.key, nextValue);
|
|
2086
2092
|
const update = {
|
|
2087
2093
|
type: 'upsert',
|