Skip to content

Releases

v3.3.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 07:49
Immutable release. Only release title and notes can be modified.
b194e2c

Changed

  • The build, release and documentation workflows run on sbt/setup-sbt 1.5.16.
    The library's code and dependencies are those of 3.3.0.

Full Changelog: v3.3.0...v3.3.1

v3.3.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 14:19
Immutable release. Only release title and notes can be modified.
60f0efb

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.

Full Changelog: v3.2.2...v3.3.0

v3.2.2

Choose a tag to compare

@github-actions github-actions released this 22 Nov 14:03
Immutable release. Only release title and notes can be modified.
8cd3536

Changed

  • The build, release and documentation workflows run on actions/setup-java
    6.3.0 and sbt/setup-sbt 1.5.15. The library's code and dependencies are
    those of 3.2.1.

Full Changelog: v3.2.1...v3.2.2

v3.2.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 21:15
Immutable release. Only release title and notes can be modified.
b68707f

Fixed

  • A service that declares no play.i18n.langs has Play's one default
    language. languages, in TwirlSpec and TwirlSuite, was empty there, so a
    catalogue aborted its suite. Found by following the new guide on a service
    that declares none.
  • i18n-lang-attribute is silent on a fragment, as html-lang already 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.txt at the site's root, an index of every page for tools that read one.
  • ARCHITECTURE.md in the repository: a map of the modules, where each
    behaviour lives, and the constraints the code relies on. AGENTS.md points
    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-munit is held to binary compatibility with 3.2.0 by MiMa, like
    every other module.

Full Changelog: v3.2.0...v3.2.1

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 21:10
Immutable release. Only release title and notes can be modified.
a59b36c

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 catalogue and cataloguePage give a test for each check, named and
      tagged as in ScalaTest, with a check a fixture cancels or leaves pending
      skipped.
    • assertDisplays, assertMeetsStandards, assertTranslatesConsistently
      and assertMatches, 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 TwirlSpecReporter does not report an MUnit run.
  • CI's consumer service runs an MUnit suite beside its ScalaTest spec, on every
    row. checkPoms holds MUnit to the MUnit module's POM.

Full Changelog: v3.1.0...v3.2.0

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 20:23
Immutable release. Only release title and notes can be modified.
a6ce4b9

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.

Full Changelog: v3.0.0...v3.1.0

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 00:09
Immutable release. Only release title and notes can be modified.
6fe483b

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.

Full Changelog: v2.15.0...v3.0.0

v2.15.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 20:29
Immutable release. Only release title and notes can be modified.
9ccb82a

Added

  • TwirlSpecReporter, a ScalaTest reporter to add with -C, writes a report of
    the whole run to target/twirl-spec-report, as index.html and report.md.
    It shows how many tests passed, failed, warned and were cancelled, and how
    long the run, each suite and each test took. Each catalogue page's checks are
    laid out as rules by language, with each failure's message beside it, and
    other tests are listed under their suite.
  • Each catalogue test carries tags, for its kind (twirlspec.render,
    twirlspec.standards, twirlspec.translation), its language
    (twirlspec.lang.cy) and its rule (twirlspec.rule.one-h1), with
    twirlspec.catalogue on all of them and twirlspec.excused where the page is
    excused, so -n and -l can run part of a catalogue.

Full Changelog: v2.14.0...v2.15.0

v2.14.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 12:37
Immutable release. Only release title and notes can be modified.
d16bc01

Changed

  • A catalogue names the language each test ran in, where a test said "in every
    language". In each language the application is configured for, each state
    has a test that it renders, as must render blank, in cy, and each standards
    rule a test of its own, as `must meet one-h1 in cy: a page has exactly one

    `. Each comparison rule has a test for each language other than English, as `must translate consistently by i18n-same-links, cy against en: ...`. With one language, the page still has a test that it declares it, as `i18n-lang-attribute, en alone`, as `checkTranslation` checks. A bilingual page now has about twice the tests, and test names change again: a filter such as `-z "meet one-h1:"` now matches nothing.

  • The languages are read as the spec is built, to name the tests, and a spec
    whose application cannot be built then is refused, with a message saying to
    define applicationConfig with a def or a lazy val.

Full Changelog: v2.13.0...v2.14.0

v2.13.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 12:07
Immutable release. Only release title and notes can be modified.
6b7e1dd

Added

  • cataloguePage(page) { ... } puts a page's own tests under its label, after a
    test for each of its checks, so a spec per view names the view once in the
    report, where a catalogue and the spec's own "View" must { ... } each named
    it. catalogue(pages*) writes each page as cataloguePage does, with no tests
    of its own.

Full Changelog: v2.12.0...v2.13.0