@rotorsoft/act-tck 1.38.18 → 1.38.20

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/index.cjs CHANGED
@@ -2196,7 +2196,7 @@ var runStoreTck = (options) => {
2196
2196
  const second = await store.claim(0, 100, `w-${uid()}`, 1);
2197
2197
  (0, import_vitest9.expect)(second.find((l) => l.stream === s)).toBeDefined();
2198
2198
  });
2199
- (0, import_vitest9.it)("does not starve a default-priority lagging stream under sustained high-priority load (ACT-1223)", async () => {
2199
+ (0, import_vitest9.it)("does not starve a default-priority lagging stream under sustained high-priority load", async () => {
2200
2200
  const fresh = await options.factory();
2201
2201
  try {
2202
2202
  await fresh.drop();
@@ -2598,7 +2598,7 @@ var runStoreTck = (options) => {
2598
2598
  const again = await store.claim(100, 100, `w2-${uid()}`, 1e5);
2599
2599
  (0, import_vitest9.expect)(again.find((l) => l.stream === s)).toBeUndefined();
2600
2600
  });
2601
- (0, import_vitest9.it)("returns the post-block row, not the caller's lease (#1382)", async () => {
2601
+ (0, import_vitest9.it)("returns the post-block row, not the caller's lease", async () => {
2602
2602
  const s = `block-returns-${uid()}`;
2603
2603
  await store.subscribe([{ stream: s }]);
2604
2604
  await store.commit(
@@ -2643,7 +2643,7 @@ var runStoreTck = (options) => {
2643
2643
  ]);
2644
2644
  (0, import_vitest9.expect)(blocked).toHaveLength(0);
2645
2645
  });
2646
- (0, import_vitest9.it)("re-blocking an already-blocked stream is a no-op (#1263)", async () => {
2646
+ (0, import_vitest9.it)("re-blocking an already-blocked stream is a no-op", async () => {
2647
2647
  const s = `block-twice-${uid()}`;
2648
2648
  await store.subscribe([{ stream: s }]);
2649
2649
  await store.commit(
@@ -2761,7 +2761,7 @@ var runStoreTck = (options) => {
2761
2761
  const leased = await store.claim(100, 100, `w-${uid()}`, 1e5);
2762
2762
  (0, import_vitest9.expect)(leased.find((l) => l.stream === s)).toBeDefined();
2763
2763
  });
2764
- (0, import_vitest9.it)("exposes a future deferred_at via query_streams (#1221)", async () => {
2764
+ (0, import_vitest9.it)("exposes a future deferred_at via query_streams", async () => {
2765
2765
  const deferred = `defer-qs-${uid()}`;
2766
2766
  const plain = `defer-qs-plain-${uid()}`;
2767
2767
  await store.subscribe([{ stream: deferred }, { stream: plain }]);
@@ -2816,7 +2816,7 @@ var runStoreTck = (options) => {
2816
2816
  (0, import_vitest9.expect)(await store.defer([`missing-${uid()}`], Date.now())).toBe(0);
2817
2817
  (0, import_vitest9.expect)(await store.defer([], Date.now())).toBe(0);
2818
2818
  });
2819
- (0, import_vitest9.it)("counts a duplicated stream name once (#1360)", async () => {
2819
+ (0, import_vitest9.it)("counts a duplicated stream name once", async () => {
2820
2820
  const s = `defer-dup-${uid()}`;
2821
2821
  await store.subscribe([{ stream: s }]);
2822
2822
  await store.commit(
@@ -2882,7 +2882,7 @@ var runStoreTck = (options) => {
2882
2882
  (0, import_vitest9.expect)(re.retry).toBe(0);
2883
2883
  await store.ack([{ ...re, at: 1e6 }]);
2884
2884
  });
2885
- (0, import_vitest9.it)("persists the lease's retry on a backoff-style due lease (#1262)", async () => {
2885
+ (0, import_vitest9.it)("persists the lease's retry on a backoff-style due lease", async () => {
2886
2886
  const s = `ackdefer-retry-${uid()}`;
2887
2887
  await store.subscribe([{ stream: s }]);
2888
2888
  await store.commit(
@@ -2902,7 +2902,7 @@ var runStoreTck = (options) => {
2902
2902
  (0, import_vitest9.expect)(re.retry).toBe(4);
2903
2903
  await store.ack([{ ...re, at: 1e6 }]);
2904
2904
  });
2905
- (0, import_vitest9.it)("advances the watermark to `at` while persisting the schedule on a partial-progress due lease (#1278)", async () => {
2905
+ (0, import_vitest9.it)("advances the watermark to `at` while persisting the schedule on a partial-progress due lease", async () => {
2906
2906
  const s = `ackadvance-${uid()}`;
2907
2907
  await store.subscribe([{ stream: s }]);
2908
2908
  const [e1] = await store.commit(
@@ -2992,7 +2992,7 @@ var runStoreTck = (options) => {
2992
2992
  (0, import_vitest9.expect)(await store.reset([`missing-${uid()}`])).toBe(0);
2993
2993
  (0, import_vitest9.expect)(await store.reset([])).toBe(0);
2994
2994
  });
2995
- (0, import_vitest9.it)("counts a duplicated stream name once (#1360)", async () => {
2995
+ (0, import_vitest9.it)("counts a duplicated stream name once", async () => {
2996
2996
  const s = `reset-dup-${uid()}`;
2997
2997
  await store.subscribe([{ stream: s }]);
2998
2998
  await store.commit(
@@ -3477,7 +3477,7 @@ var runStoreTck = (options) => {
3477
3477
  });
3478
3478
  });
3479
3479
  (0, import_vitest9.describe)("long identifiers", () => {
3480
- (0, import_vitest9.it)("accepts a stream name well past 100 characters (#1420)", async () => {
3480
+ (0, import_vitest9.it)("accepts a stream name well past 100 characters", async () => {
3481
3481
  const tag = uid();
3482
3482
  const long = `${tag}-${"x".repeat(140)}`;
3483
3483
  await store.commit(
@@ -3500,7 +3500,7 @@ var runStoreTck = (options) => {
3500
3500
  });
3501
3501
  });
3502
3502
  (0, import_vitest9.describe)("truncate", () => {
3503
- (0, import_vitest9.it)("leaves subscriptions untouched for restart and retire alike (#1527)", async () => {
3503
+ (0, import_vitest9.it)("leaves subscriptions untouched for restart and retire alike", async () => {
3504
3504
  const tag = uid();
3505
3505
  const restarted = `trunc-restart-${tag}`;
3506
3506
  const retired = `trunc-retire-${tag}`;
@@ -3528,7 +3528,7 @@ var runStoreTck = (options) => {
3528
3528
  (0, import_vitest9.expect)(rows).toContain(restarted);
3529
3529
  (0, import_vitest9.expect)(rows).toContain(retired);
3530
3530
  });
3531
- (0, import_vitest9.it)("leaves a retired stream's surviving subscription unclaimable (#1527)", async () => {
3531
+ (0, import_vitest9.it)("leaves a retired stream's surviving subscription unclaimable", async () => {
3532
3532
  const lane = `inert-lane-${uid()}`;
3533
3533
  const s = `trunc-inert-${uid()}`;
3534
3534
  const [e] = await store.commit(
@@ -3590,7 +3590,7 @@ var runStoreTck = (options) => {
3590
3590
  );
3591
3591
  (0, import_vitest9.expect)(remaining[0].data).toEqual({ count: 7 });
3592
3592
  });
3593
- (0, import_vitest9.it)("leaves exactly one seed when a stream is listed twice (#1677)", async () => {
3593
+ (0, import_vitest9.it)("leaves exactly one seed when a stream is listed twice", async () => {
3594
3594
  const s = `trunc-dup-${uid()}`;
3595
3595
  await store.commit(
3596
3596
  s,
@@ -3612,7 +3612,7 @@ var runStoreTck = (options) => {
3612
3612
  (0, import_vitest9.expect)(remaining[0].data).toEqual({ count: 2 });
3613
3613
  (0, import_vitest9.expect)(result.get(s)?.deleted).toBe(1);
3614
3614
  });
3615
- (0, import_vitest9.it)("applies windowed targets before full ones (#1677)", async () => {
3615
+ (0, import_vitest9.it)("applies windowed targets before full ones", async () => {
3616
3616
  const s = `trunc-mix-${uid()}`;
3617
3617
  await store.commit(
3618
3618
  s,
@@ -3816,7 +3816,7 @@ var runStoreTck = (options) => {
3816
3816
  });
3817
3817
  });
3818
3818
  (0, import_vitest9.describe)("query_streams", () => {
3819
- (0, import_vitest9.it)("keyset pagination visits every stream regardless of name case (#1375)", async () => {
3819
+ (0, import_vitest9.it)("keyset pagination visits every stream regardless of name case", async () => {
3820
3820
  const tag = uid();
3821
3821
  const names = [
3822
3822
  `${tag}-Bravo`,
@@ -4011,7 +4011,7 @@ var runStoreTck = (options) => {
4011
4011
  });
4012
4012
  (0, import_vitest9.expect)(stats.size).toBe(0);
4013
4013
  });
4014
- (0, import_vitest9.it)("keyset pagination visits every stream regardless of name case (#1357)", async () => {
4014
+ (0, import_vitest9.it)("keyset pagination visits every stream regardless of name case", async () => {
4015
4015
  const tag = uid();
4016
4016
  const names = [
4017
4017
  `${tag}-Bravo`,
@@ -5072,7 +5072,7 @@ var runStoreTck = (options) => {
5072
5072
  (0, import_vitest9.expect)(seen[0].pii).toEqual({ email: "u@example.com", name: "Ursula" });
5073
5073
  (0, import_vitest9.expect)(seen[0].data).toEqual({ amount: 1 });
5074
5074
  });
5075
- (0, import_vitest9.describe)("with_pii (#1675)", () => {
5075
+ (0, import_vitest9.describe)("with_pii", () => {
5076
5076
  const seed_pii = async (s) => await store.commit(
5077
5077
  s,
5078
5078
  [
@@ -5136,7 +5136,7 @@ var runStoreTck = (options) => {
5136
5136
  for (const e of seen) (0, import_vitest9.expect)(e.pii ?? null).toBeNull();
5137
5137
  });
5138
5138
  });
5139
- (0, import_vitest9.it)("round-trips a Date losslessly in pii, like data/meta (#1365/#1370/#1556)", async () => {
5139
+ (0, import_vitest9.it)("round-trips a Date losslessly in pii, like data/meta", async () => {
5140
5140
  const s = `pii-date-${uid()}`;
5141
5141
  const when = /* @__PURE__ */ new Date("2024-03-01T10:20:30.000Z");
5142
5142
  await store.commit(
@@ -5165,7 +5165,7 @@ var runStoreTck = (options) => {
5165
5165
  (0, import_vitest9.expect)(recovered(born)).toBe(when.getTime());
5166
5166
  (0, import_vitest9.expect)(typeof at).toBe(typeof born);
5167
5167
  });
5168
- (0, import_vitest9.it)("query_stats head/tail never carry pii \u2014 introspection surface is pii-safe (#1294)", async () => {
5168
+ (0, import_vitest9.it)("query_stats head/tail never carry pii \u2014 introspection surface is pii-safe", async () => {
5169
5169
  const s = `pii-stats-${uid()}`;
5170
5170
  await store.commit(
5171
5171
  s,