Repository navigation
Release 2.6.0
What's New
Features
-
New Error:
entity-event-sourced-fold-nondeterministic. In an
event-sourcedentity, anon eventclause that applies one of the
entity's OWN events (a fold) may no longer readsystem.nowor
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 atellargument 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'sopenssl@4, while the Homebrew formula declaredopenssl@3.
Sobrew install riddlcproduced a binary that aborted at load on any Mac
withoutopenssl@4. The cause was that the native link takes whichever
openssl Homebrew has linked on the build machine. The release build now
linksopenssl@3explicitly, 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 firstId(E)field of its
message.option availableis 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-compatandscala-xmlare 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.