@serfab/quereus-plugin-sereus 1.16.0 → 1.17.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
@@ -108,6 +108,16 @@ export interface SereusPluginResult {
108
108
  * fires for a forgotten one. Passed through like {@link onCommitDurability}.
109
109
  */
110
110
  onCommitFullyHeld: (listener: CommitFullyHeldListener) => () => void;
111
+ /**
112
+ * Commit an empty collection for every table declared in the `Strand` and `App` schemas that
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.
116
+ *
117
+ * Run it only while no other writer can reach this connection's `Database`: each collection's
118
+ * `sync()` commits whatever is staged in it, outside any SQL transaction.
119
+ */
120
+ createEmptyCollections: () => Promise<number>;
111
121
  /** Shuts down the libp2p node and collection factory. Call when done. */
112
122
  shutdown: () => Promise<void>;
113
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serfab/quereus-plugin-sereus",
3
- "version": "1.16.0",
3
+ "version": "1.17.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",