@serfab/quereus-plugin-sereus 1.21.0 → 1.23.0
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/README.md +1 -1
- package/dist/app-schema.d.ts +28 -3
- package/dist/app-schema.js +105 -12
- package/dist/app-schema.js.map +1 -1
- package/dist/compose-strand.js +14 -5
- package/dist/compose-strand.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugin-browser.js +28 -28
- package/dist/plugin-browser.js.map +4 -4
- package/dist/types.d.ts +9 -1
- package/package.json +8 -8
- package/src/app-schema.ts +414 -318
- package/src/compose-strand.ts +21 -6
- package/src/index.ts +30 -30
- package/src/types.ts +9 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Libp2p } from '@libp2p/interface';
|
|
2
|
-
import type { IRepo } from '@optimystic/db-core';
|
|
2
|
+
import type { ICohortReachability, IRepo } from '@optimystic/db-core';
|
|
3
3
|
import type { IRawStorage } from '@optimystic/db-p2p';
|
|
4
4
|
import type { SqlCommitDurabilityListener, CommitFullyHeldListener, OfflineConfig, OfflineMode } from '@optimystic/quereus-plugin-optimystic/plugin';
|
|
5
5
|
/**
|
|
@@ -77,6 +77,14 @@ export interface StrandConnectionOptions {
|
|
|
77
77
|
* {@link SereusPluginResult.offline}. Programmatic only — the SQL plugin config cannot carry it.
|
|
78
78
|
*/
|
|
79
79
|
offline?: StrandOfflineOptions;
|
|
80
|
+
/**
|
|
81
|
+
* The gate this connection's offline queue and offline live reads ask, in place of the node's
|
|
82
|
+
* own `cohortReachability` (Optimystic's `docs/offline-sync.md` → "When to submit"). Registered
|
|
83
|
+
* with the collection factory before any table opens, so every table takes it. cadre-core passes
|
|
84
|
+
* a gate that also waits for the party's own machines (docs/strands.md → "Waiting for the party's
|
|
85
|
+
* own machines"). Absent: the node's gate, or the always-open one on a transactor without a cohort.
|
|
86
|
+
*/
|
|
87
|
+
cohortReachability?: ICohortReachability;
|
|
80
88
|
}
|
|
81
89
|
/**
|
|
82
90
|
* The Optimystic plugin's `offline` registration block (its README § "Offline mode"), less
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serfab/quereus-plugin-sereus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Quereus plugin that connects to a Sereus strand for SQL access",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
"@libp2p/circuit-relay-v2": "^4.2.13",
|
|
69
69
|
"@libp2p/interface": "^3.3.0",
|
|
70
70
|
"@libp2p/websockets": "^10.1.21",
|
|
71
|
-
"@optimystic/db-core": "^1.
|
|
72
|
-
"@optimystic/db-p2p": "^1.
|
|
73
|
-
"@optimystic/db-p2p-storage-fs": "^1.
|
|
74
|
-
"@optimystic/db-p2p-storage-web": "^1.
|
|
75
|
-
"@optimystic/quereus-plugin-crypto": "^1.
|
|
76
|
-
"@optimystic/quereus-plugin-optimystic": "^1.
|
|
77
|
-
"@quereus/quereus": "^4.
|
|
71
|
+
"@optimystic/db-core": "^1.27.0",
|
|
72
|
+
"@optimystic/db-p2p": "^1.27.0",
|
|
73
|
+
"@optimystic/db-p2p-storage-fs": "^1.27.0",
|
|
74
|
+
"@optimystic/db-p2p-storage-web": "^1.27.0",
|
|
75
|
+
"@optimystic/quereus-plugin-crypto": "^1.27.0",
|
|
76
|
+
"@optimystic/quereus-plugin-optimystic": "^1.27.0",
|
|
77
|
+
"@quereus/quereus": "^5.4.0",
|
|
78
78
|
"debug": "^4.4.3"
|
|
79
79
|
},
|
|
80
80
|
"quereus": {
|