@rotorsoft/act 1.23.5 → 1.23.6
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.map +1 -1
- package/dist/@types/internal/event-sourcing.d.ts.map +1 -1
- package/dist/@types/types/action.d.ts +7 -1
- package/dist/@types/types/action.d.ts.map +1 -1
- package/dist/{chunk-DORIRU2I.js → chunk-C7H3GARW.js} +14 -11
- package/dist/chunk-C7H3GARW.js.map +1 -0
- package/dist/index.cjs +21 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +13 -10
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-DORIRU2I.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
sleep,
|
|
21
21
|
store,
|
|
22
22
|
validate
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-C7H3GARW.js";
|
|
24
24
|
import {
|
|
25
25
|
ActorSchema,
|
|
26
26
|
CausationEventSchema,
|
|
@@ -1958,7 +1958,14 @@ async function load(me, target, callback, patch_fn = bare_patch) {
|
|
|
1958
1958
|
{
|
|
1959
1959
|
stream,
|
|
1960
1960
|
stream_exact: true,
|
|
1961
|
-
|
|
1961
|
+
// The snapshot resume floor is a current-state optimization: it only
|
|
1962
|
+
// holds when the load has no window of its own. `time_travel` already
|
|
1963
|
+
// captures that (any `asOf` bound set), so request `with_snaps` only for
|
|
1964
|
+
// a non-time-travel cold load — a bounded load full-scans real events
|
|
1965
|
+
// under its `asOf` filter. This is the single floor-eligibility decision
|
|
1966
|
+
// for the whole system; the stores apply the floor whenever asked and
|
|
1967
|
+
// never re-derive it (RFC 1274). The warm path resumes from `after`.
|
|
1968
|
+
...cached ? { after: cached.event_id } : { ...time_travel ? {} : { with_snaps: true }, ...asOf }
|
|
1962
1969
|
}
|
|
1963
1970
|
);
|
|
1964
1971
|
const head_is_tombstone = event?.name === TOMBSTONE_EVENT;
|