@rotorsoft/act 1.32.26 → 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.
- package/README.md +2 -3
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/act.d.ts +5 -151
- package/dist/@types/act.d.ts.map +1 -1
- package/dist/@types/adapters/in-memory-store.d.ts +0 -21
- package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
- package/dist/@types/builders/act-builder.d.ts +0 -25
- package/dist/@types/builders/act-builder.d.ts.map +1 -1
- package/dist/@types/builders/build-classify.d.ts +4 -4
- package/dist/@types/builders/build-classify.d.ts.map +1 -1
- package/dist/@types/builders/projection-builder.d.ts.map +1 -1
- package/dist/@types/builders/slice-builder.d.ts +1 -12
- package/dist/@types/builders/slice-builder.d.ts.map +1 -1
- package/dist/@types/builders/state-builder.d.ts +0 -189
- package/dist/@types/builders/state-builder.d.ts.map +1 -1
- package/dist/@types/config.d.ts +0 -27
- package/dist/@types/config.d.ts.map +1 -1
- package/dist/@types/internal/close-cycle.d.ts +2 -1
- package/dist/@types/internal/close-cycle.d.ts.map +1 -1
- package/dist/@types/ports.d.ts +0 -7
- package/dist/@types/ports.d.ts.map +1 -1
- package/dist/@types/test/sandbox.d.ts +0 -14
- package/dist/@types/test/sandbox.d.ts.map +1 -1
- package/dist/@types/types/action.d.ts +0 -27
- package/dist/@types/types/action.d.ts.map +1 -1
- package/dist/@types/types/errors.d.ts +1 -92
- package/dist/@types/types/errors.d.ts.map +1 -1
- package/dist/@types/types/ports.d.ts +0 -70
- package/dist/@types/types/ports.d.ts.map +1 -1
- package/dist/@types/types/reaction.d.ts +0 -33
- package/dist/@types/types/reaction.d.ts.map +1 -1
- package/dist/{chunk-QXW3JV2H.js → chunk-5FXT63KF.js} +2 -2
- package/dist/chunk-5FXT63KF.js.map +1 -0
- package/dist/{chunk-XSG2NW4J.js → chunk-F7K7SIG6.js} +1 -1
- package/dist/chunk-F7K7SIG6.js.map +1 -0
- package/dist/index.cjs +22 -159
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -161
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +2 -2
- package/dist/test/index.js.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -4
- package/dist/chunk-QXW3JV2H.js.map +0 -1
- 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 })
|
|
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)
|
|
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
|
|