@rotorsoft/act 0.43.0 → 0.44.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/.tsbuildinfo +1 -1
- package/dist/@types/adapters/in-memory-store.d.ts +18 -1
- package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
- package/dist/@types/types/ports.d.ts +194 -0
- package/dist/@types/types/ports.d.ts.map +1 -1
- package/dist/{chunk-QAB4SDOS.js → chunk-LKRNWD7C.js} +72 -1
- package/dist/chunk-LKRNWD7C.js.map +1 -0
- package/dist/index.cjs +82 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -18
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +73 -2
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +3 -3
- package/dist/test/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-QAB4SDOS.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
sleep,
|
|
19
19
|
store,
|
|
20
20
|
validate
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LKRNWD7C.js";
|
|
22
22
|
import {
|
|
23
23
|
ActorSchema,
|
|
24
24
|
CausationEventSchema,
|
|
@@ -133,24 +133,18 @@ async function runCloseCycle(targets, deps) {
|
|
|
133
133
|
return { truncated, skipped };
|
|
134
134
|
}
|
|
135
135
|
async function scanStreamHeads(streams) {
|
|
136
|
+
const stats = await store().query_stats(streams, {
|
|
137
|
+
exclude: [SNAP_EVENT]
|
|
138
|
+
});
|
|
136
139
|
const out = /* @__PURE__ */ new Map();
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
maxId = e.id;
|
|
146
|
-
version = e.version;
|
|
147
|
-
lastEventName = e.name;
|
|
148
|
-
},
|
|
149
|
-
{ stream: s, stream_exact: true, backward: true, limit: 1 }
|
|
150
|
-
);
|
|
151
|
-
if (maxId >= 0) out.set(s, { maxId, version, lastEventName });
|
|
152
|
-
})
|
|
153
|
-
);
|
|
140
|
+
for (const [stream, { head }] of stats) {
|
|
141
|
+
if (head.name === TOMBSTONE_EVENT) continue;
|
|
142
|
+
out.set(stream, {
|
|
143
|
+
maxId: head.id,
|
|
144
|
+
version: head.version,
|
|
145
|
+
lastEventName: head.name
|
|
146
|
+
});
|
|
147
|
+
}
|
|
154
148
|
return out;
|
|
155
149
|
}
|
|
156
150
|
async function partitionBySafety(streamInfo, reactiveEventsSize, skipped) {
|