Tree-domain event-sourcing: Tree-as-Aggregate (a hierarchy of nodes is ONE aggregate with hard invariants — structural consistency, acyclic move/reparent, a prototype-safe node pool). Commands/events, treeAggregate, treeProjection, createTreeStore. Built
Tree-domain event sourcing — the data layer (aggregate + projection + store)
of the @bimetal/tree component family. This package has no UI;
the UI lives in @bimetal/tree-*-components.
Tree-as-Aggregate: a hierarchy of nodes is ONE aggregate with hard
invariants — structural consistency, acyclic move/reparent, and a
prototype-safe node pool (a node id may legitimately be __proto__).
Installation
npm install @bimetal/tree-data
What's Inside
Commands and domain events, treeAggregate,
treeProjection and createTreeStore — built on
@bimetal/event-sourcing.
Tree-domain event-sourcing: Tree-as-Aggregate (a hierarchy of nodes is ONE aggregate with hard invariants — structural consistency, acyclic move/reparent, a prototype-safe node pool). Commands/events, treeAggregate, treeProjection, createTreeStore. Built