@rotorsoft/act 1.32.25 → 1.32.27

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.
Files changed (49) hide show
  1. package/README.md +2 -3
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/@types/act.d.ts +5 -151
  4. package/dist/@types/act.d.ts.map +1 -1
  5. package/dist/@types/adapters/in-memory-store.d.ts +0 -21
  6. package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
  7. package/dist/@types/builders/act-builder.d.ts +0 -25
  8. package/dist/@types/builders/act-builder.d.ts.map +1 -1
  9. package/dist/@types/builders/build-classify.d.ts +4 -4
  10. package/dist/@types/builders/build-classify.d.ts.map +1 -1
  11. package/dist/@types/builders/projection-builder.d.ts.map +1 -1
  12. package/dist/@types/builders/slice-builder.d.ts +1 -12
  13. package/dist/@types/builders/slice-builder.d.ts.map +1 -1
  14. package/dist/@types/builders/state-builder.d.ts +0 -189
  15. package/dist/@types/builders/state-builder.d.ts.map +1 -1
  16. package/dist/@types/config.d.ts +0 -27
  17. package/dist/@types/config.d.ts.map +1 -1
  18. package/dist/@types/internal/close-cycle.d.ts +2 -1
  19. package/dist/@types/internal/close-cycle.d.ts.map +1 -1
  20. package/dist/@types/internal/correlate-cycle.d.ts.map +1 -1
  21. package/dist/@types/internal/drain-cycle.d.ts.map +1 -1
  22. package/dist/@types/ports.d.ts +0 -7
  23. package/dist/@types/ports.d.ts.map +1 -1
  24. package/dist/@types/test/sandbox.d.ts +0 -14
  25. package/dist/@types/test/sandbox.d.ts.map +1 -1
  26. package/dist/@types/types/action.d.ts +0 -27
  27. package/dist/@types/types/action.d.ts.map +1 -1
  28. package/dist/@types/types/errors.d.ts +1 -92
  29. package/dist/@types/types/errors.d.ts.map +1 -1
  30. package/dist/@types/types/ports.d.ts +0 -70
  31. package/dist/@types/types/ports.d.ts.map +1 -1
  32. package/dist/@types/types/reaction.d.ts +0 -33
  33. package/dist/@types/types/reaction.d.ts.map +1 -1
  34. package/dist/{chunk-QXW3JV2H.js → chunk-5FXT63KF.js} +2 -2
  35. package/dist/chunk-5FXT63KF.js.map +1 -0
  36. package/dist/{chunk-XSG2NW4J.js → chunk-F7K7SIG6.js} +1 -1
  37. package/dist/chunk-F7K7SIG6.js.map +1 -0
  38. package/dist/index.cjs +79 -165
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.js +81 -167
  41. package/dist/index.js.map +1 -1
  42. package/dist/test/index.cjs.map +1 -1
  43. package/dist/test/index.js +2 -2
  44. package/dist/test/index.js.map +1 -1
  45. package/dist/types/index.cjs.map +1 -1
  46. package/dist/types/index.js +1 -1
  47. package/package.json +1 -4
  48. package/dist/chunk-QXW3JV2H.js.map +0 -1
  49. package/dist/chunk-XSG2NW4J.js.map +0 -1
package/README.md CHANGED
@@ -71,7 +71,7 @@ import { projection, slice } from "@rotorsoft/act";
71
71
  // Projection — read-model updater. Handlers receive (event, stream).
72
72
  const CounterProjection = projection("counters")
73
73
  .on({ Incremented: z.object({ amount: z.number() }) })
74
- .do(async ({ stream, data }) => { /* update read model */ })
74
+ .do(async function updateCounter({ stream, data }) { /* update read model */ })
75
75
  .build();
76
76
 
77
77
  // Slice — partial state + scoped reactions. Handlers receive (event, stream, app).
@@ -79,7 +79,7 @@ const CounterSlice = slice()
79
79
  .withState(Counter)
80
80
  .withProjection(CounterProjection)
81
81
  .on("Incremented")
82
- .do(async (event, _stream, app) => { /* dispatch via app */ })
82
+ .do(async function dispatchCounter(event, _stream, app) { /* dispatch via app */ })
83
83
  .to("counter-target")
84
84
  .build();
85
85
 
@@ -155,7 +155,6 @@ Public API governed by the [Act Stability Charter](../../STABILITY.md). The char
155
155
  - **[Architecture](https://rotorsoft.github.io/act-root/docs/architecture)** — concurrency model, cache + snapshots, correlation + drain, cross-process reactions, priority lanes, close-cycle, schema evolution, extension points.
156
156
  - **[Guides](https://rotorsoft.github.io/act-root/docs/intro)** — production checklist, projections to database, external integration, writing a custom store/cache/logger, contributing a new package, contracts CLI.
157
157
  - **[PERFORMANCE.md](./PERFORMANCE.md)** — measured throughput numbers, optimization history, and the reaction-latency benchmark answering "how long from `do()` to reaction firing?"
158
- - **[BENCH.md](../../BENCH.md)** — index of every benchmark in the workspace with run commands.
159
158
 
160
159
  ## License
161
160