Skip to content

Release 2.6.0

Choose a tag to compare

@reid-spencer reid-spencer released this 08 Nov 02:46
· 96 commits to main since this release

What's New

Features

  • New Error: entity-event-sourced-fold-nondeterministic. In an
    event-sourced entity, an on event clause that applies one of the
    entity's OWN events (a fold) may no longer read system.now or
    system.random. A fold runs again on every replay, and both values are
    re-evaluated each time they are read. In state, that makes the entity
    reconstruct a different state on each recovery, which breaks the
    Computational Model's requirement that state be reconstructible as of any
    past point. Anywhere else in the fold, such as a tell argument or a
    condition, it makes the fold compute something different on each replay.
    The message says which of the two applies. The fix is to read the clock in
    the command handler and carry the instant on the yielded event, then read
    that field in the fold. Command handlers, and folds of events declared
    outside the entity, are unaffected.

    Models may need changes. This is a new Error. In the riddl-models
    corpus it fired 3 times, all in reactive-bbq, and those sites are now fixed.

Bug Fixes

  • macOS native riddlc and openssl. The 2.5.0 macOS binary linked
    Homebrew's openssl@4, while the Homebrew formula declared openssl@3.
    So brew install riddlc produced a binary that aborted at load on any Mac
    without openssl@4. The cause was that the native link takes whichever
    openssl Homebrew has linked on the build machine. The release build now
    links openssl@3 explicitly, and fails if the binary links anything else,
    so the formula and the binary cannot disagree again.

Improvements

  • Repository write ordering is documented as per entity. The
    Computational Model (§5.6/§5.7) now says that a repository applies the
    writes about ONE entity one at a time, in arrival order, and writes about
    different entities concurrently. There is no total order across a
    repository. A write names its entity by the first Id(E) field of its
    message. option available is defined as the CAP choice: during a network
    partition, keep operating and give up consistency. This guides code
    generators; riddlc's behaviour is unchanged.

Internal

  • Build toolchain: sbt 2.0.12 and sbt-ossuminc 3.2.0. Scala stays 3.9.0.
  • Libraries upgraded to current releases, all built for Scala 3.9.0 or
    earlier:
    • sttp client4 4.1.0, which moves off a milestone
    • upickle 4.4.3
    • airframe 2026.2.5
    • sconfig 1.12.4
    • scopt 4.2.0
    • commons-compress 1.28.0, commons-lang3 3.21.0
    • scala-java-time 2.9.0
    • scalatest 3.2.20
  • Third-party notices were regenerated from what actually ships.
    scala-collection-compat and scala-xml are gone, because nothing in the
    distributions uses them any more.
  • Unused dependency declarations were removed from the build.
  • Binary compatibility is checked against 2.5.0. The MiMa check now runs
    as a release gate, and its baseline moves forward after each release.