orez-sync-cf-host 0.5.6 → 0.5.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orez-sync-cf-host",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
Binary file
package/src/host.ts CHANGED
@@ -715,7 +715,11 @@ export function createSyncDurableObject<Env extends SyncHostEnv>(
715
715
  })
716
716
  }
717
717
  if (result.caughtUp) break
718
- if (result.applied === 0) {
718
+ // a page can legitimately apply zero rows while still advancing the
719
+ // watermark: the engine consumes changes for tables this host does not
720
+ // model (subset replica) without materializing them. only a page that
721
+ // neither applied nor advanced is genuinely stalled.
722
+ if (result.applied === 0 && String(nextCursor) === String(cursor)) {
719
723
  this.#tripIngest('ingestCursorStalled', {
720
724
  phase: 'changes',
721
725
  cursor,