@lmzhen/dsh-evolution-state 0.3.27 → 0.3.29
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/lib/index.js +3 -2
- package/lib/types/index.d.ts +3 -2
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -32,8 +32,9 @@ var EvolutionState = class extends Service {
|
|
|
32
32
|
saveCuratorState(record) {
|
|
33
33
|
return this.storage().saveCuratorState(record);
|
|
34
34
|
}
|
|
35
|
-
/** Atomic read-modify-write the curator-state record (S5.5)
|
|
36
|
-
*
|
|
35
|
+
/** Atomic read-modify-write the curator-state record (S5.5): `task` returns
|
|
36
|
+
* the next record; returning null keeps the current record unchanged (the
|
|
37
|
+
* seam has no delete semantic). */
|
|
37
38
|
transactCuratorState(task) {
|
|
38
39
|
return this.storage().transactCuratorState(task);
|
|
39
40
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -29,8 +29,9 @@ export declare class EvolutionState extends Service {
|
|
|
29
29
|
saveReviewState(sessionId: string, record: ReviewStateRecord): Promise<void>;
|
|
30
30
|
loadCuratorState(): Promise<CuratorStateRecord | null>;
|
|
31
31
|
saveCuratorState(record: CuratorStateRecord): Promise<void>;
|
|
32
|
-
/** Atomic read-modify-write the curator-state record (S5.5)
|
|
33
|
-
*
|
|
32
|
+
/** Atomic read-modify-write the curator-state record (S5.5): `task` returns
|
|
33
|
+
* the next record; returning null keeps the current record unchanged (the
|
|
34
|
+
* seam has no delete semantic). */
|
|
34
35
|
transactCuratorState(task: (current: CuratorStateRecord | null) => CuratorStateRecord | null): Promise<void>;
|
|
35
36
|
listPending(status?: PendingStatus): Promise<PendingRecord[]>;
|
|
36
37
|
savePending(record: PendingRecord): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state",
|
|
3
3
|
"description": "Durable evolution state consumer over pluggable storage providers (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.29",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
38
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
38
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.29"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
42
42
|
"@deepseek-ai/dsh-storage-domain": "^0.1.1-rc.2",
|
|
43
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
44
|
-
"@lmzhen/dsh-evolution-state-domain": "^0.3.
|
|
45
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
46
|
-
"@lmzhen/dsh-evolution-io-node": "^0.3.
|
|
47
|
-
"@lmzhen/dsh-evolution-state-json": "^0.3.
|
|
43
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.29",
|
|
44
|
+
"@lmzhen/dsh-evolution-state-domain": "^0.3.29",
|
|
45
|
+
"@lmzhen/dsh-evolution-io": "^0.3.29",
|
|
46
|
+
"@lmzhen/dsh-evolution-io-node": "^0.3.29",
|
|
47
|
+
"@lmzhen/dsh-evolution-state-json": "^0.3.29"
|
|
48
48
|
}
|
|
49
49
|
}
|