Back to Blog

RIDDL 2.8.1 Released

RIDDL 2.8.1 is now available.

release riddl compiler

RIDDL 2.8.1 is now available. This release of the RIDDL compiler and language tooling includes the following changes:

What’s New

What’s New

riddl 2.8.1 is a patch release. It fixes gaps found while ossum.tech and synapify adopted 2.8.0. It is binary compatible with 2.8.0 (MiMa clean on all six modules), and the BAST format is unchanged, so .bast files written by 2.8.0 still load.

Bug Fixes

  • entity-event-sourced-unread-history fires again. Since 2.8.0, on init must morph into the entity’s starting state. The advisory counted that creation morph as a state transition, so it could fire only on a model that also drew the entity-init-no-morph deprecation. A morph in on init chooses the first state rather than moving between states, so it is no longer counted. The same fix applies to entity-crud-with-transitions-consumed, which used the same count.
  • on every <period> reports a period that is not a Duration.
    • on every fortnightly now reports the unresolved name (value-ref-unresolved). The period of on every was never validated as a value, unlike the period of send … every.
    • on every 5 now draws handler-every-not-duration (“typed Natural, not Duration”), and send … every 5 draws stmt-send-every-not-duration. A bare number used to pass in silence, because the period check could not type it.
  • riddlc find -type on-every and -type on-entry work. Both kinds were produced by the projection but missing from the vocabulary -type accepts, so the query was refused as “unknown -type”.

Improvements

  • cron, entry, every and starting are listed as keywords. They now appear in Keyword.allKeywords, the tokenizer’s keyword table and the EBNF reserved_word rule, as sum and otherwise already do. Editors and tools that build their vocabulary from allKeywords now see the 2.8.0 recurrence and state-entry words. All four remain legal identifiers.

Internal

  • New tests cover each fix, including some that do not depend on the riddl-models corpus.
    • The corpus-driven find -type vocabulary test could not catch these kinds, because no model uses the new clauses yet, so it gained an inline model.
    • A riddl-models census of 191 entry points is identical before and after these changes, for every rule in every model.