Repository navigation
v0.22.0
What's Changed
Added
unknown-return-key: a read below akind: filefield is checked against
what the field returns (#43). The contract check stopped at a declared
leaf, socontent.video.urlfor a file that returnssrcwas accepted and
rendered empty.schemas/type-return-shapes.yamllists the eleven keys
parisek/timber-kit'sformatFile()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 owntype-return-shapes.yamlnext 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