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

effect__experimental__EventLog.yaml

39 lines3.1 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#Registry":
24 replacement: effect/eventlog/EventLog#Registry
25 note: Import Registry from the v4 EventLog module. add(handlers) became registerHandlerUnsafe({ event, handler }), handlers is a ReadonlyMap instead of an Effect of a record, and the static Registry.layer became EventLog.layerRegistry.
26"@effect/experimental/EventLog#schema":
27 replacement: effect/eventlog/EventLog#schema
28 note: Import schema from the v4 EventLog module.
29"@effect/experimental/EventLog#SchemaTypeId":
30 replacement: effect/eventlog/EventLog#SchemaTypeId
31 note: Import SchemaTypeId from the v4 EventLog module.
32"@effect/experimental/EventLog#groupCompaction":
33 include: true
34 replacement: effect/eventlog/EventLog#groupCompaction
35 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.
36"@effect/experimental/EventLog#makeClient":
37 include: true
38 replacement: effect/eventlog/EventLog#makeClient
39 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.