@interncom/diplomatic 0.19.1 → 0.19.2
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.
|
@@ -47,10 +47,9 @@ export declare class CachedEntDB implements IEntDB {
|
|
|
47
47
|
private emit;
|
|
48
48
|
private run;
|
|
49
49
|
/**
|
|
50
|
-
* Fan-out write: mem
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* `{ optimistic: false }`: skip the sync prefix; notify after durable.
|
|
50
|
+
* Fan-out write: patch mem, queue durable, notify UI on a microtask,
|
|
51
|
+
* then reconcile. Not `async`: mem patch must run before any await.
|
|
52
|
+
* `{ optimistic: false }`: skip the mem prefix; notify after durable.
|
|
54
53
|
*/
|
|
55
54
|
apply(ops: IOp[]): Promise<import("./entdb").ApplyResult>;
|
|
56
55
|
clear(): Promise<Status>;
|
|
@@ -3,8 +3,8 @@ import type { IEntDB } from "./entdb";
|
|
|
3
3
|
/**
|
|
4
4
|
* Build a StateManager for an EntDB.
|
|
5
5
|
* When `edb` is a {@link CachedEntDB}, type notifies come from the cache
|
|
6
|
-
* subscribe path (
|
|
7
|
-
* cacheDriven: StateManager.apply must not emit after the
|
|
8
|
-
* settles — that would delay UI until durable IDB.
|
|
6
|
+
* subscribe path (mem patch + microtask notify, then durable reconcile /
|
|
7
|
+
* peer ingest). cacheDriven: StateManager.apply must not emit after the
|
|
8
|
+
* applier Promise settles — that would delay UI until durable IDB.
|
|
9
9
|
*/
|
|
10
10
|
export declare function entStateManager(edb: IEntDB): StateManager;
|