Back to Blog

RIDDL 2.8.2 Released

RIDDL 2.8.2 is now available.

release riddl compiler

RIDDL 2.8.2 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.2 is a patch release. It contains two validation fixes that riddl-models asked for while adopting 2.8.x. It is binary compatible with 2.8.1 (MiMa clean on all six modules). The BAST format is unchanged, so .bast files written by 2.8.0 or 2.8.1 still load.

Bug Fixes

  • A schedule’s time zone must name a real zone. The in "<zone>" of a calendar schedule (every day at 04:00 in "America/Chicago") or a cron "…" in "<zone>" was checked only by its shape. Any Area/Location passed, so a misspelt "America/Chicgo" or an invented "Mars/Olympus" validated clean, and a generator would have treated the zone as unusable, or as UTC.
    • The zone must now be an IANA time-zone id, as java.time.ZoneId.of accepts it. Z and offsets such as "+05:30" remain legal.
    • Anything else is a value-time-zone-malformed Error, reported at the string.
    • Zone ids are case-sensitive, as in Java. When only the letter case is wrong, the suggestion names the correct spelling ("america/chicago" → "America/Chicago").
    • The check is the same on the JVM, Scala.js and Scala Native. riddlc carries the list of 604 IANA zone names (tzdb 2025b), about 9KB with no zone rules, rather than the full time-zone database, which is absent on JS and Native.
  • value-literal-comparison-style no longer flags zero. Writing when g.count > 0 or require total == 0 no longer suggests replacing the 0 with a named constant. Zero is exempt by value, so 0.0 and 00 are exempt too. Every other number in a comparison is still flagged as before.

Internal

  • New tests cover both fixes. A JVM-only drift test fails if the running JDK knows a time zone that riddlc’s bundled list lacks, so the list is regenerated rather than left stale.
  • The Computational Model now states that a generator may rely on every schedule zone it receives being resolvable.