@serfab/quereus-plugin-sereus 1.17.0 → 1.18.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 +390 -388
- package/dist/compose-strand.js +12 -10
- package/dist/compose-strand.js.map +1 -1
- package/dist/empty-collections.d.ts +8 -3
- package/dist/empty-collections.js +51 -14
- package/dist/empty-collections.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/plugin-browser.js +25 -25
- package/dist/plugin-browser.js.map +4 -4
- package/dist/types.d.ts +7 -3
- package/package.json +8 -8
- package/src/compose-strand.ts +494 -491
- package/src/empty-collections.ts +65 -15
- package/src/index.ts +1 -0
- package/src/types.ts +135 -131
package/dist/types.d.ts
CHANGED
|
@@ -111,13 +111,17 @@ export interface SereusPluginResult {
|
|
|
111
111
|
/**
|
|
112
112
|
* Commit an empty collection for every table declared in the `Strand` and `App` schemas that
|
|
113
113
|
* has none yet (main, index and unique-enforcement trees), and resolve to how many were
|
|
114
|
-
* committed. A founder calls it before
|
|
115
|
-
*
|
|
114
|
+
* committed. A founder calls it before its founding write, so a read of a table nobody has
|
|
115
|
+
* written is answered from local storage rather than by the cohort proving absence.
|
|
116
|
+
*
|
|
117
|
+
* `except` names qualified tables (`'Strand.Header'`) the caller is about to write, whose
|
|
118
|
+
* collections that write creates; every tree of those tables is left out. A name matching no
|
|
119
|
+
* declared table throws.
|
|
116
120
|
*
|
|
117
121
|
* Run it only while no other writer can reach this connection's `Database`: each collection's
|
|
118
122
|
* `sync()` commits whatever is staged in it, outside any SQL transaction.
|
|
119
123
|
*/
|
|
120
|
-
createEmptyCollections: () => Promise<number>;
|
|
124
|
+
createEmptyCollections: (except?: readonly string[]) => Promise<number>;
|
|
121
125
|
/** Shuts down the libp2p node and collection factory. Call when done. */
|
|
122
126
|
shutdown: () => Promise<void>;
|
|
123
127
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serfab/quereus-plugin-sereus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.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.20.
|
|
71
|
+
"@optimystic/db-core": "^1.18.0",
|
|
72
|
+
"@optimystic/db-p2p": "^1.18.0",
|
|
73
|
+
"@optimystic/db-p2p-storage-fs": "^1.18.0",
|
|
74
|
+
"@optimystic/db-p2p-storage-web": "^1.18.0",
|
|
75
|
+
"@optimystic/quereus-plugin-crypto": "^1.18.0",
|
|
76
|
+
"@optimystic/quereus-plugin-optimystic": "^1.18.0",
|
|
77
|
+
"@quereus/quereus": "^4.20.3",
|
|
78
78
|
"debug": "^4.4.3"
|
|
79
79
|
},
|
|
80
80
|
"quereus": {
|