@rljson/fs-agent 0.0.75 → 0.0.77

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.
Files changed (2) hide show
  1. package/dist/fs-agent.js +3 -2
  2. package/package.json +1 -1
package/dist/fs-agent.js CHANGED
@@ -2131,7 +2131,8 @@ ${err.stack}` : String(err);
2131
2131
  return;
2132
2132
  }
2133
2133
  const dbAdapter = new FsDbAdapter(db, treeKey);
2134
- const parentRef = this._currentRef;
2134
+ const head = this._currentRef;
2135
+ const parentRef = head !== void 0 && head === tree.rootHash ? this._lastAppliedRef ?? head : head;
2135
2136
  const previous = await this._ancestryPrevious(
2136
2137
  db,
2137
2138
  treeKey,
@@ -2641,7 +2642,7 @@ ${err.stack}` : String(err);
2641
2642
  return;
2642
2643
  }
2643
2644
  }
2644
- const ancestryExpected = this._resolveConflicts;
2645
+ const ancestryExpected = this._resolveConflicts || connector.syncConfig?.causalOrdering === true;
2645
2646
  const declaresAncestry = (predecessorRefs?.length ?? 0) > 0;
2646
2647
  const ancestryIsCarried = connector.syncConfig?.causalOrdering === true;
2647
2648
  const statesIAmIn = [this._currentRef, this._lastAppliedRef].filter(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/fs-agent",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "description": "Rljson fs-agent description",
5
5
  "homepage": "https://github.com/rljson/fs-agent",
6
6
  "bugs": "https://github.com/rljson/fs-agent/issues",