@absolutejs/sync 1.18.1 → 1.18.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.
@@ -2090,13 +2090,20 @@ var createSyncEngine = (options = {}) => {
2090
2090
  oldestPerOrigin.set(entry.origin, entry.originVersion);
2091
2091
  }
2092
2092
  }
2093
+ const oldestLogVersion = changeLog[0]?.version;
2093
2094
  for (const [origin, lastSeen] of Object.entries(sinceVec)) {
2094
2095
  if (origin === instanceId) {
2095
2096
  if (lastSeen >= version)
2096
2097
  continue;
2097
2098
  const oldestLocal = oldestPerOrigin.get(instanceId);
2098
- if (oldestLocal === undefined || oldestLocal > lastSeen + 1)
2099
+ if (oldestLocal !== undefined) {
2100
+ if (oldestLocal > lastSeen + 1)
2101
+ return false;
2102
+ continue;
2103
+ }
2104
+ if (oldestLogVersion !== undefined && oldestLogVersion > lastSeen + 1) {
2099
2105
  return false;
2106
+ }
2100
2107
  } else {
2101
2108
  const oldestPeer = oldestPerOrigin.get(origin);
2102
2109
  if (oldestPeer === undefined) {
@@ -3399,5 +3406,5 @@ export {
3399
3406
  CdcConsumerSlowError
3400
3407
  };
3401
3408
 
3402
- //# debugId=2B4AA96446522F9164756E2164756E21
3409
+ //# debugId=83816548811B9BFD64756E2164756E21
3403
3410
  //# sourceMappingURL=index.js.map