Changelog
All notable changes to this project are recorded here. The format follows Keep a Changelog, and the project uses Semantic Versioning from 1.0.0 — see Versioning in the README for what a minor release may and may not do.
Every push to main that changes something a user could depend on is a
release, and each one has a GitHub Release whose notes are its section here. Every release on the current major line is
recorded in full; earlier lines are kept to one entry each, so the file stays
readable.
3.3.1 - 2026-11-30
Changed
- The build, release and documentation workflows run on
sbt/setup-sbt1.5.16. The library’s code and dependencies are those of 3.3.0.
3.3.0 - 2026-11-22
Changed
- Starts the 3.3 line on the code of 3.2.2. Nothing a service depends on has changed: the API, behaviour and dependencies are those of 3.2.2.
3.2.2 - 2026-11-22
Changed
- The build, release and documentation workflows run on
actions/setup-java6.3.0 andsbt/setup-sbt1.5.15. The library’s code and dependencies are those of 3.2.1.
3.2.1 - 2026-11-19
Fixed
- A service that declares no
play.i18n.langshas Play’s one default language.languages, inTwirlSpecandTwirlSuite, was empty there, so a catalogue aborted its suite. Found by following the new guide on a service that declares none. i18n-lang-attributeis silent on a fragment, ashtml-langalready was: a component rendered without a layout has no<html>to declare a language on, so a catalogued component could never pass it.
Added
- For coding agents, a guide that takes adoption as a procedure: the facts to collect from a service, the base and rule traits to choose, one spec per view through the catalogue, what to do when a check fails and what never to do to make a run green, a definition of done, and a block of instructions and a skill file to keep in the service. Its examples are the consumer build’s specs, compiled and run in CI.
llms.txtat the site’s root, an index of every page for tools that read one.ARCHITECTURE.mdin the repository: a map of the modules, where each behaviour lives, and the constraints the code relies on.AGENTS.mdpoints to it and names the constraints easiest to break.
Changed
- The consumer service’s ScalaTest spec puts its view through
cataloguePage, as the guide recommends, so CI runs a ScalaTest catalogue on every row. twirl-spec-munitis held to binary compatibility with 3.2.0 by MiMa, like every other module.
3.2.0 - 2026-11-15
Added
twirl-spec-munit, a tenth module:TwirlSuite, the library for an MUnit suite.- It has
TwirlSpec’s shared application,inject, languages, rendering and the expectation DSL, and mixes in the same rule traits. - Its
catalogueandcataloguePagegive a test for each check, named and tagged as in ScalaTest, with a check a fixture cancels or leaves pending skipped. assertDisplays,assertMeetsStandards,assertTranslatesConsistentlyandassertMatches, for any other matcher, fail with the same messages.- Nothing else depends on the module, so a ScalaTest project never gets
MUnit. ScalaTest stays on an MUnit suite’s class path, as the rules are
built on it, and
TwirlSpecReporterdoes not report an MUnit run.
- It has
- CI’s consumer service runs an MUnit suite beside its ScalaTest spec, on every
row.
checkPomsholds MUnit to the MUnit module’s POM.
3.1.0 - 2026-11-15
Changed
- The library is compiled for Java 17 where it was compiled for Java 21, so a service on Java 17 can use it as well. Its classes use nothing newer than Java 17 and are Java 17 class files, which Java 21 and later still run, so nothing changes for a service already on Java 21. Scala 3.3.0, the first of the 3.3 LTS line, stays the oldest Scala it supports.
- CI runs a service’s view specs at the floor as well: Java 17, Scala 3.3.0 and Play 3.0.0, with the library itself built on Java 17.
3.0.0 - 2026-11-13
Changed
- The 2.x line closes, and 3.x begins as the stable line, from 2.15.0’s code. The public API, the rule ids, the published dependencies and every verdict are those of 2.15.0, so a 2.x service moves by its version alone: see Moving from 2.x to 3.x. Binary compatibility is held against 3.0.0 from here, and a minor version may change only what the README’s Versioning section says it may.
- The changelog keeps the 2.x line to one entry, as it keeps 1.x. Each 2.x release’s notes stay on its GitHub Release.
2.x
Nineteen releases, from 2.0.0 on 2026-09-13 to 2.15.0 on 2026-11-13, for Scala 3 only, built against Play 3.0.0 and Twirl 2.0.1, with jsoup 1.24.1 from 2.7.0.
- Rules: the line added
GovukServiceChecksandHmrcServiceChecks. Among its new rules arei18n-same-submissions,button-has-name,post-form-has-csrf-tokenandmessages.malformed. - Expectations: among the new ones are
within,columnHeaders,summaryListkeys with arguments, andmatchOutlineSnapshot. - Reading markup:
tags-are-balancedreads it in one pass, as HTML’s tokenizer does. The rules read a page alike in jsoup’s two query modes, but for one difference jsoup intends: Web mode keeps a class name’s case, so a GOV.UK or HMRC class written in capitals is found only in the legacy mode. A spec’s own CSS selector is read in whichever mode jsoup is in. - Catalogue and report:
PageCataloguebecame a table of a service’s pages, with a test for each state, rule and language.cataloguePageputs a view’s own tests under its label, andTwirlSpecReporterreports a run as a page.
Each release’s notes are on its GitHub Release.
1.x
One release, 1.0.0 on 2026-09-03: the first version published, cross-built for
Scala 2.13 and 3 against Play 3.0.11. It shipped the nine modules 2.x still
has: the page model, expectation DSL and matchers in twirl-spec-core; the
WCAG, rendering and safety rules in twirl-spec-wcag; the GOV.UK error
conventions in twirl-spec-govuk; ARIA correctness in twirl-spec-aria; HTML
validity in twirl-spec-html; semantics, page weight, metadata, coverage and
the Twirl entry points in twirl-spec-quality; language parity in
twirl-spec-i18n; message-file integrity in twirl-spec-messages; and all of
them in twirl-spec-all. The renames a service built against a 0.x snapshot
would meet are listed in the adoption guide.