Skip to content
Source
Sign inSign up
Open History to see the last commit

effect__experimental__EventLog.yaml

36 lines2.8 KB

1"@effect/experimental/EventLog#group":
2 replacement: effect/eventlog/EventLog#group
3 note: Import group from the v4 EventLog module; it now requires the shared Registry service.
4"@effect/experimental/EventLog#Handlers":
5 include: true
6 replacement: effect/eventlog/EventLog#Handlers
7 note: Import Handlers from the v4 EventLog module; handlers now also receive storeId. Remote decode or handler failures leave the entire batch uncommitted and retry it after backoff instead of logging and committing past the failure. Replay handlers must tolerate repeated execution. Conflicts are stored entries with strictly greater ids, in id order; compacted replacements use their source entry as the conflict anchor.
8"@effect/experimental/EventLog#Handlers.Error":
9 replacement: effect/eventlog/EventLog#Handlers.Error
10 note: Import the retained Handlers.Error type from the v4 EventLog module.
11"@effect/experimental/EventLog#Handlers.ValidateReturn":
12 replacement: effect/eventlog/EventLog#Handlers.ValidateReturn
13 note: Import the retained Handlers.ValidateReturn type from the v4 EventLog module.
14"@effect/experimental/EventLog#HandlersTypeId":
15 replacement: effect/eventlog/EventLog#HandlersTypeId
16 note: Import HandlersTypeId from the v4 EventLog module.
17"@effect/experimental/EventLog#layer":
18 replacement: effect/eventlog/EventLog#layer
19 note: The v4 layer takes both the schema and handler layer; use layerEventLog for runtime only.
20"@effect/experimental/EventLog#layerIdentityKvs":
21 replacement: none
22 note: Compose KeyValueStore.toSchemaStore, EventLog.IdentitySchema, EventLog.makeIdentity, and Layer.effect manually.
23"@effect/experimental/EventLog#schema":
24 replacement: effect/eventlog/EventLog#schema
25 note: Import schema from the v4 EventLog module.
26"@effect/experimental/EventLog#SchemaTypeId":
27 replacement: effect/eventlog/EventLog#SchemaTypeId
28 note: Import SchemaTypeId from the v4 EventLog module.
29"@effect/experimental/EventLog#groupCompaction":
30 include: true
31 replacement: effect/eventlog/EventLog#groupCompaction
32 note: Use forward(entry) to retain an input entry unchanged rather than writing a replacement. Entries neither forwarded nor replaced are dropped; undecodable entries are preserved automatically. Replacements are anchored to the first decoded entry for the primary key and replayed in anchor-id order, then write order, with conflicts newer than that anchor. Collapsing entries across an intervening stored entry for the same event and primary key can break convergence.
33"@effect/experimental/EventLog#makeClient":
34 include: true
35 replacement: effect/eventlog/EventLog#makeClient
36 note: The returned client now takes one { event, payload } object instead of separate event and payload arguments. The payload remains paired with its event tag, and each call delegates to EventLog.write; use EventLog.writeMany for an atomic batch of events.