@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/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 writing `Strand.Header`, so a read of a table nobody
115
- * has written is answered from local storage rather than by the cohort proving absence.
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.17.0",
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.15.0",
72
- "@optimystic/db-p2p": "^1.15.0",
73
- "@optimystic/db-p2p-storage-fs": "^1.15.0",
74
- "@optimystic/db-p2p-storage-web": "^1.15.0",
75
- "@optimystic/quereus-plugin-crypto": "^1.15.0",
76
- "@optimystic/quereus-plugin-optimystic": "^1.15.0",
77
- "@quereus/quereus": "^4.20.1",
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": {