@rotorsoft/act-tck 1.27.31 → 1.27.33

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.
@@ -1 +1 @@
1
- {"version":3,"file":"store-tck.d.ts","sourceRoot":"","sources":["../../src/store-tck.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAQV,KAAK,EAEN,MAAM,sBAAsB,CAAC;AAc9B;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;;;;OASG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;;;;;OAQG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IACxC;;;;;;;;OAQG;IACH,QAAQ,CAAC,gCAAgC,CAAC,EAAE,OAAO,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/C;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAC3C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,eAAO,MAAM,WAAW,YAAa,eAAe,KAAG,IA6nItD,CAAC"}
1
+ {"version":3,"file":"store-tck.d.ts","sourceRoot":"","sources":["../../src/store-tck.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAQV,KAAK,EAEN,MAAM,sBAAsB,CAAC;AAc9B;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;;;;OASG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;;;;;OAQG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IACxC;;;;;;;;OAQG;IACH,QAAQ,CAAC,gCAAgC,CAAC,EAAE,OAAO,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/C;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAC3C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,eAAO,MAAM,WAAW,YAAa,eAAe,KAAG,IAsqItD,CAAC"}
package/dist/index.cjs CHANGED
@@ -3188,6 +3188,30 @@ var runStoreTck = (options) => {
3188
3188
  });
3189
3189
  });
3190
3190
  (0, import_vitest9.describe)("query_streams", () => {
3191
+ (0, import_vitest9.it)("keyset pagination visits every stream regardless of name case (#1375)", async () => {
3192
+ const tag = uid();
3193
+ const names = [
3194
+ `${tag}-Bravo`,
3195
+ `${tag}-alpha`,
3196
+ `${tag}-Charlie`,
3197
+ `${tag}-delta`
3198
+ ];
3199
+ await store.subscribe(names.map((stream) => ({ stream })));
3200
+ const visited = [];
3201
+ let after;
3202
+ for (; ; ) {
3203
+ const page = [];
3204
+ await store.query_streams((p) => page.push(p.stream), {
3205
+ stream: `${tag}-.*`,
3206
+ after,
3207
+ limit: 1
3208
+ });
3209
+ if (page.length === 0) break;
3210
+ visited.push(...page);
3211
+ after = page.at(-1);
3212
+ }
3213
+ (0, import_vitest9.expect)([...visited].sort()).toEqual([...names].sort());
3214
+ });
3191
3215
  (0, import_vitest9.it)("returns positions filtered by stream regex, exact, source, and source_exact", async () => {
3192
3216
  const tag = uid();
3193
3217
  const proj1 = `qs-${tag}-projection-tickets`;
@@ -4262,24 +4286,33 @@ var runStoreTck = (options) => {
4262
4286
  (0, import_vitest9.expect)(seen[0].pii).toEqual({ email: "u@example.com", name: "Ursula" });
4263
4287
  (0, import_vitest9.expect)(seen[0].data).toEqual({ amount: 1 });
4264
4288
  });
4265
- (0, import_vitest9.it)("revives a Date in a pii field to a Date, like data (#1365)", async () => {
4289
+ (0, import_vitest9.it)("revives a Date in pii like data/meta (#1365/#1370)", async () => {
4266
4290
  const s = `pii-date-${uid()}`;
4267
- const dob = /* @__PURE__ */ new Date("2000-03-04T05:06:07.000Z");
4291
+ const when = /* @__PURE__ */ new Date("2024-03-01T10:20:30.000Z");
4268
4292
  await store.commit(
4269
4293
  s,
4270
- [{ name: "Incremented", data: { amount: 1 }, pii: { dob } }],
4294
+ [
4295
+ {
4296
+ name: "Incremented",
4297
+ data: { amount: 1, at: when },
4298
+ pii: { born: when }
4299
+ }
4300
+ ],
4271
4301
  make_meta({ stream: s })
4272
4302
  );
4273
4303
  const seen = [];
4274
- await store.query((e) => seen.push(e), {
4275
- stream: s,
4276
- stream_exact: true
4277
- });
4278
- (0, import_vitest9.expect)(seen).toHaveLength(1);
4279
- (0, import_vitest9.expect)(seen[0].pii.dob).toBeInstanceOf(Date);
4280
- (0, import_vitest9.expect)(seen[0].pii.dob.getTime()).toBe(
4281
- dob.getTime()
4304
+ await store.query(
4305
+ (e) => {
4306
+ seen.push(e);
4307
+ },
4308
+ { stream: s, stream_exact: true }
4282
4309
  );
4310
+ (0, import_vitest9.expect)(seen).toHaveLength(1);
4311
+ const at = seen[0].data.at;
4312
+ const born = seen[0].pii.born;
4313
+ (0, import_vitest9.expect)(at).toBeInstanceOf(Date);
4314
+ (0, import_vitest9.expect)(born).toBeInstanceOf(Date);
4315
+ (0, import_vitest9.expect)(born.toISOString()).toBe(when.toISOString());
4283
4316
  });
4284
4317
  (0, import_vitest9.it)("query_stats head/tail never carry pii \u2014 introspection surface is pii-safe (#1294)", async () => {
4285
4318
  const s = `pii-stats-${uid()}`;