v1.7.0
What's Changed
Added
kind:YAML metadata key on the component/page front-comment. New closed
enum (block | section | element | part | utility) declaring what a
component is — authorial intent, never derived — surfaced on
/api/componentsand/api/pagesalongsiderender.ComponentParser
gainsKIND_VALUESandnormaliseKind(), mirroringRENDER_MODES/
normaliseRender(), except an absent or unrecognised value normalises to
''rather than a guessed default — see
docs/adr/0012-component-kind-taxonomy.mdintailwind-basefor the
taxonomy rationale.normaliseMetadata()'s previously-fixed whitelist array
now includeskind.unknown-kindlint rule (Error).normaliseKind()swallows an
unrecognised value into''with no other signal, sovendor/bin/styleguide lintnow reports it — parity with theunknown-renderrule that exists for
exactly the same reason. Without it a typo likekind: sectoinreaches
/api/componentssilently for any consumer not also running
parisek/definition-kit, which is optional.
Pull Requests
- #100 — Expose kind: closed-enum metadata key on the component API
Full Changelog: v1.6.2...v1.7.0