Skip to content

Release v0.13.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 10:32
9ee9de3

Graph projections and projection dictionary, set-once and child-ordering parity with the C# client. These changes require Chronicle 19.150.0 or later.

Added

  • Graph projections: the graphs package declares nodes with graphs.NewNode[T]() (one field tagged chronicle:"key"), edges with graphs.NewEdge[T](source, target) and the graph with graphs.New(name, elements...).Build(), registered with Registry.AddGraph. See Graph projections.
  • Graph node and edge options From, RemovedWith (with graphs.Detach() for nodes), UsingKey, UsingSourceKey, UsingTargetKey, UsingIdentity, OnlyWhenExisting, mappings Set, SetFromContext, SetFromEventSourceID, SetValue, Add, Subtract, Increment, Decrement, Count, Clear, and declaration errors as *graphs.DeclarationError matchable with errors.Is.
  • graphs.Neo4j (the default) and graphs.InMemoryGraph sinks, and chronicle.WithDefaultGraphSinkType.
  • eventsequences.ConstraintIndexUnavailable: an append the Kernel refuses while a unique-constraint index rebuilds is reported as a rejection that stored nothing and can be retried.
  • Key read-model dictionary entries by event content, event context or the causing user, and remove entries with RemoveKey.
  • Set values only once with MapOnce, ContextOnce, ValueOnce and their every/all variants, or once=true in model-bound tags.
  • Map the causing user into read models with CausedBy, CausedByOnce and EveryCausedBy.
  • Insert children at the start with Prepend() or keep them sorted with OrderBy and OrderByDescending, also available as model-bound tags, completing projection dictionary, set-once and child-ordering parity with the C# client (#127)

Changed

  • Generated contracts and decision-read admission target Chronicle 19.150.1; a Chronicle Kernel 19.150.0 or later is required.

Fixed

  • Redaction markers and event values whose time offset the Kernel writes as an escaped + now decode instead of failing.