@rotorsoft/act-tck 1.39.0 → 1.39.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.
- package/README.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/cache-differential-tck.d.ts +1 -2
- package/dist/@types/cache-differential-tck.d.ts.map +1 -1
- package/dist/@types/logger-differential-tck.d.ts +1 -2
- package/dist/@types/logger-differential-tck.d.ts.map +1 -1
- package/dist/@types/store-differential-tck.d.ts +10 -10
- package/dist/@types/store-property-tck.d.ts +1 -1
- package/dist/@types/store-tck.d.ts +7 -7
- package/dist/@types/store-tck.d.ts.map +1 -1
- package/dist/index.cjs +33 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -547,7 +547,7 @@ var build_plan = (seed, stream_count, pii_isolation) => {
|
|
|
547
547
|
// gated falsy-zero cases below compare only the *guard* behavior
|
|
548
548
|
// (filter applied → subset, vs filter dropped → all), which stays a
|
|
549
549
|
// well-defined divergence regardless of the concrete id values.
|
|
550
|
-
//
|
|
550
|
+
// Edge inputs, gated behind `queryEdgeInputs`.
|
|
551
551
|
{
|
|
552
552
|
label: "empty names filter",
|
|
553
553
|
query: { stream: `^${event_prefix}`, names: [] },
|
|
@@ -1297,6 +1297,19 @@ var runStoreTck = (options) => {
|
|
|
1297
1297
|
});
|
|
1298
1298
|
expect8(limited).toHaveLength(2);
|
|
1299
1299
|
});
|
|
1300
|
+
it7("excludes snapshots when called with no query object", async () => {
|
|
1301
|
+
const s = `q-nofilter-${uid()}`;
|
|
1302
|
+
await store.commit(
|
|
1303
|
+
s,
|
|
1304
|
+
[{ name: SNAP_EVENT2, data: { count: 0 } }],
|
|
1305
|
+
make_meta({ stream: s })
|
|
1306
|
+
);
|
|
1307
|
+
const names = [];
|
|
1308
|
+
await store.query((e) => {
|
|
1309
|
+
names.push(e.name);
|
|
1310
|
+
});
|
|
1311
|
+
expect8(names).not.toContain(SNAP_EVENT2);
|
|
1312
|
+
});
|
|
1300
1313
|
it7("with_snaps resumes from the latest snapshot per stream", async () => {
|
|
1301
1314
|
const s = `q-snap-${uid()}`;
|
|
1302
1315
|
await store.commit(
|
|
@@ -3749,6 +3762,25 @@ var runStoreTck = (options) => {
|
|
|
3749
3762
|
]);
|
|
3750
3763
|
expect8(remaining[0].id).toBe(snap_b.id);
|
|
3751
3764
|
});
|
|
3765
|
+
it7("prunes two windowed targets for one stream in call order", async () => {
|
|
3766
|
+
const later = `trunc-win-twice-${uid()}`;
|
|
3767
|
+
const a1 = await seed_windowed(later);
|
|
3768
|
+
const before = new Date(Date.now() + 6e4);
|
|
3769
|
+
const first = await store.truncate([
|
|
3770
|
+
{ stream: later, before, max_id: a1.snap_b.id },
|
|
3771
|
+
{ stream: later, before, max_id: a1.snap_a.id }
|
|
3772
|
+
]);
|
|
3773
|
+
expect8(first.get(later)?.deleted).toBe(4);
|
|
3774
|
+
expect8(first.get(later)?.committed.id).toBe(a1.snap_b.id);
|
|
3775
|
+
const earlier = `trunc-win-twice-${uid()}`;
|
|
3776
|
+
const a2 = await seed_windowed(earlier);
|
|
3777
|
+
const second = await store.truncate([
|
|
3778
|
+
{ stream: earlier, before, max_id: a2.snap_a.id },
|
|
3779
|
+
{ stream: earlier, before, max_id: a2.snap_b.id }
|
|
3780
|
+
]);
|
|
3781
|
+
expect8(second.get(earlier)?.deleted).toBe(2);
|
|
3782
|
+
expect8(second.get(earlier)?.committed.id).toBe(a2.snap_b.id);
|
|
3783
|
+
});
|
|
3752
3784
|
it7("honors the max_id cap \u2014 boundary never rises past a lagging consumer", async () => {
|
|
3753
3785
|
const s = `trunc-win-cap-${uid()}`;
|
|
3754
3786
|
const { snap_a, snap_b } = await seed_windowed(s);
|