@peerbit/shared-log 16.0.32 → 16.0.34

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": "@peerbit/shared-log",
3
- "version": "16.0.32",
3
+ "version": "16.0.34",
4
4
  "description": "Shared log",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -63,36 +63,36 @@
63
63
  "pino": "^9.4.0",
64
64
  "uint8arrays": "^5.1.0",
65
65
  "@peerbit/any-store": "2.2.17",
66
- "@peerbit/blocks": "4.3.1",
67
66
  "@peerbit/blocks-interface": "2.2.1",
68
- "@peerbit/cache": "3.1.1",
67
+ "@peerbit/blocks": "4.3.2",
69
68
  "@peerbit/crypto": "3.1.6",
69
+ "@peerbit/cache": "3.1.1",
70
70
  "@peerbit/diagnostics": "0.0.1",
71
- "@peerbit/indexer-sqlite3": "3.0.20",
72
71
  "@peerbit/indexer-interface": "3.0.13",
73
- "@peerbit/logger": "2.0.2",
72
+ "@peerbit/log": "6.2.34",
73
+ "@peerbit/indexer-sqlite3": "3.0.20",
74
+ "@peerbit/program": "6.0.62",
74
75
  "@peerbit/pubsub-interface": "5.2.2",
75
- "@peerbit/program": "6.0.60",
76
- "@peerbit/log": "6.2.33",
77
- "@peerbit/pubsub": "5.4.6",
76
+ "@peerbit/logger": "2.0.2",
77
+ "@peerbit/pubsub": "5.4.8",
78
78
  "@peerbit/riblt": "1.2.0",
79
- "@peerbit/rpc": "6.1.28",
79
+ "@peerbit/rpc": "6.1.30",
80
80
  "@peerbit/stream-interface": "6.0.16",
81
81
  "@peerbit/time": "3.0.1"
82
82
  },
83
83
  "optionalDependencies": {
84
- "@peerbit/native-backbone": "0.2.15",
84
+ "@peerbit/native-backbone": "0.2.16",
85
85
  "@peerbit/shared-log-rust": "0.1.7"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@types/libsodium-wrappers": "^0.7.14",
89
89
  "@types/pidusage": "^2.0.5",
90
90
  "uuid": "^11.1.1",
91
- "@peerbit/test-utils": "3.1.41",
92
- "peerbit": "5.4.2",
93
- "@peerbit/indexer-rust": "1.0.14",
91
+ "@peerbit/any-store-rust": "0.1.7",
94
92
  "@peerbit/indexer-simple": "1.2.17",
95
- "@peerbit/any-store-rust": "0.1.7"
93
+ "@peerbit/test-utils": "3.1.43",
94
+ "peerbit": "5.4.4",
95
+ "@peerbit/indexer-rust": "1.0.14"
96
96
  },
97
97
  "repository": {
98
98
  "type": "git",
package/src/errors.ts CHANGED
@@ -20,9 +20,11 @@ export const isNotStartedError = (e: Error) => {
20
20
  };
21
21
 
22
22
  export class NoPeersError extends Error {
23
- constructor(topic: string) {
23
+ constructor(topic: string, delivery?: "persisted") {
24
24
  super(
25
- `No peers found for topic ${topic}. Please make sure you are connected to the network and try again.`,
25
+ delivery === "persisted"
26
+ ? `No currently eligible remote entry leaders for persisted delivery on topic ${topic}. Transport connectivity and receipt capability alone do not establish entry-leader eligibility.`
27
+ : `No peers found for topic ${topic}. Please make sure you are connected to the network and try again.`,
26
28
  );
27
29
  }
28
30
  }
package/src/index.ts CHANGED
@@ -6531,7 +6531,7 @@ export class SharedLog<
6531
6531
  (leaders.size === 1 && leaders.has(selfHash)),
6532
6532
  )
6533
6533
  ) {
6534
- throw new NoPeersError(this.rpc.topic);
6534
+ throw new NoPeersError(this.rpc.topic, "persisted");
6535
6535
  }
6536
6536
  }
6537
6537
  for (let index = 0; index < entryArray.length; index++) {