@swirls/looms 0.19.1 → 0.21.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/CHANGELOG.md +14 -0
- package/dist/agent/module.d.ts +727 -727
- package/dist/evaluator/effects.d.ts +33 -33
- package/dist/evaluator/module.d.ts +66 -66
- package/dist/nats/index.d.ts +2 -0
- package/dist/nats/index.js +2 -0
- package/dist/nats/projector.d.ts +69 -0
- package/dist/nats/projector.js +278 -0
- package/dist/nats/subjects.d.ts +14 -0
- package/dist/nats/subjects.js +44 -0
- package/dist/projectors/event-log.d.ts +7 -3
- package/dist/projectors/event-log.js +42 -9
- package/dist/projectors/replica/columns.d.ts +10 -3
- package/dist/projectors/replica/columns.js +22 -7
- package/dist/projectors/replica/drizzle.d.ts +9 -242
- package/dist/projectors/replica/drizzle.js +19 -6
- package/dist/projectors/replica/migrations.d.ts +8 -1
- package/dist/projectors/replica/migrations.js +26 -2
- package/dist/projectors/replica/postgres.d.ts +3 -2
- package/dist/projectors/replica/postgres.js +1 -1
- package/dist/projectors/replica/sqlite-migrations.js +19 -1
- package/dist/projectors/replica/sqlite.d.ts +3 -2
- package/dist/projectors/replica/sqlite.js +13 -4
- package/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @swirls/looms
|
|
2
2
|
|
|
3
|
+
## 0.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cc734ac: Add `@swirls/looms/nats`, a projector that replicates committed events to a NATS JetStream stream. Each event goes to `<prefix>.run.<runId>.<type>` with the JSON envelope as the body and `Looms-*` headers. Batches are JetStream atomic batches fenced on the run's last stream sequence, so a batch lands whole or not at all, redelivery is a no-op, and `position` lets durable delivery rewind and refill a stream that fell behind. Requires nats-server 2.12 or newer.
|
|
8
|
+
|
|
9
|
+
## 0.20.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 8d7538f: Carry declared run attributes on every `looms_run_events` row. `postgresEventLog`, `postgresReplica`, and `sqliteReplica` now give the event table one text column per attribute passed as `additionalFields`, with the same name and `fieldName` rules as `looms_run_index`, so a host can put row-level security on both tables without a join. Each column comes with versioned migrations, `event_column_<name>` (which backfills existing event rows from `looms_run_index`) and, for `index: true`, `event_index_<name>` creating `looms_run_event_<name>`. `loomsRunEvents` from `loomsReplicaTables` and `looms replica generate --config` include them. Nothing changes when no attributes are declared.
|
|
14
|
+
|
|
15
|
+
Breaking: hosts that declare attributes and run with `migrate: 'verify'` must generate and apply the new migrations before upgrading. Attribute columns may no longer use an event-table column name (`seq`, `event_id`, `ts`, `type`, `payload`, `thread_id`, `parent_thread_id`, `causation_id`, `effect_id`, `origin`, `idempotency_key`, `ephemeral`); set `fieldName` for those.
|
|
16
|
+
|
|
3
17
|
## 0.19.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|