Skip to content

v0.22.0

Choose a tag to compare

@github-actions github-actions released this 30 Sep 09:48
· 13 commits to main since this release

What's Changed

Added

  • unknown-return-key: a read below a kind: file field is checked against
    what the field returns (#43).
    The contract check stopped at a declared
    leaf, so content.video.url for a file that returns src was accepted and
    rendered empty. schemas/type-return-shapes.yaml lists the eleven keys
    parisek/timber-kit's formatFile() returns; the first key below the leaf
    must be one of them. A type without an entry (kind: image, kind: gallery)
    keeps the old behaviour. A project's own type-return-shapes.yaml next to
    the components root replaces the table (a type it omits is unchecked), so a
    project on another framework is not judged against timber-kit's shape. The
    note fails the component, like the other two read-side defects. Measured on two downstream themes: no read falls outside
    the list.

Pull Requests

  • #95 — feat(contract): check reads below a kind: file leaf against its return shape

Full Changelog: v0.21.0...v0.22.0