@kumiai/rpc 0.10.4 → 0.10.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.
Files changed (2) hide show
  1. package/lib/peer.js +5 -2
  2. package/package.json +1 -1
package/lib/peer.js CHANGED
@@ -1030,13 +1030,16 @@ export function createGroupPeer(input) {
1030
1030
  }));
1031
1031
  if (disposed) return false;
1032
1032
  const gap = result.gap || result.messages.length === 0 && result.head != null && pageAfter != null && result.head > pageAfter;
1033
- if (pageAfter == null) {
1033
+ // With no cursor the hub flags ANY log removal as a gap, so an unflagged read from the
1034
+ // oldest frame holds the whole log: a fresh member's floor stays covered, and its first
1035
+ // publication must not request a heal.
1036
+ if (pageAfter == null && result.gap) {
1034
1037
  covered = false;
1035
1038
  floor = {
1036
1039
  ...floor,
1037
1040
  covered: false
1038
1041
  };
1039
- } else if (gap) {
1042
+ } else if (pageAfter != null && gap) {
1040
1043
  floor = {
1041
1044
  ...floor,
1042
1045
  covered: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumiai/rpc",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "High-level MLS-aware group RPC for Enkaku: bus broadcast/anycast/gather plus directed RPC over the pub/sub hub",
5
5
  "keywords": [
6
6
  "rpc",