@rotorsoft/act 1.22.8 → 1.23.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rotorsoft/act",
3
3
  "type": "module",
4
- "version": "1.22.8",
4
+ "version": "1.23.0",
5
5
  "description": "act core library",
6
6
  "keywords": [
7
7
  "typescript",
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@stryker-mutator/core": "^9.6.1",
64
64
  "@stryker-mutator/vitest-runner": "^9.6.1",
65
- "@rotorsoft/act-tck": "^1.26.9"
65
+ "@rotorsoft/act-tck": "^1.26.10"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "vitest": {
@@ -1,18 +0,0 @@
1
- import { z } from "zod";
2
- import type { BatchHandler, CacheEntry, FoldOptions, Schema, Schemas, State } from "../types/index.js";
3
- export declare const DEFAULT_FOLD_FLUSH_EVERY = 1000;
4
- export declare const DEFAULT_MAX_CACHED_STATES = 10000;
5
- declare const FoldOptionsSchema: z.ZodObject<{
6
- flushEvery: z.ZodDefault<z.ZodNumber>;
7
- maxCachedStates: z.ZodDefault<z.ZodNumber>;
8
- }, z.core.$strip>;
9
- export type FoldConfig = z.infer<typeof FoldOptionsSchema>;
10
- export declare function resolveFoldConfig(options: FoldOptions): FoldConfig;
11
- /**
12
- * Build the batch handler that folds a state's events into per-stream rows.
13
- * The returned closure is long-lived (one per built projection): its cache
14
- * survives across drain cycles, so warm streams fold without I/O.
15
- */
16
- export declare function make_fold_handler<TState extends Schema, TEvents extends Schemas, TActions extends Schemas>(me: State<TState, TEvents, TActions>, flush: (rows: ReadonlyArray<CacheEntry<TState>>) => Promise<void>, config: FoldConfig): BatchHandler<TEvents>;
17
- export {};
18
- //# sourceMappingURL=state-fold.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-fold.d.ts","sourceRoot":"","sources":["../../../src/internal/state-fold.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,WAAW,EACX,MAAM,EACN,OAAO,EACP,KAAK,EACN,MAAM,mBAAmB,CAAC;AAG3B,eAAO,MAAM,wBAAwB,OAAQ,CAAC;AAC9C,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAEhD,QAAA,MAAM,iBAAiB;;;iBAGrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3D,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAElE;AAcD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,OAAO,EACvB,QAAQ,SAAS,OAAO,EAExB,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,EACpC,KAAK,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EACjE,MAAM,EAAE,UAAU,GACjB,YAAY,CAAC,OAAO,CAAC,CA2FvB"}