Repository navigation
v0.15.0
What's Changed
Added
objectandlistare the canonical structural types (#79).object
is one nested object andlistis a list of objects.groupand
repeaterstay valid aliases: the schema accepts the same keys, and the
generatedacf.jsonandblock.jsonare byte-identical for either name.
Aliases resolve once, when a definition is read
(Support\StructuralType), so the generator and linters branch only on
the canonical names.listmeans a list of objects only; there is no
scalar list. No deprecation warning for the old names yet.fields-migrate --rename-structural-typesrewritestype: groupto
objectandtype: repeatertolistin existing definitions. It prints
by default and writes only with--write. The rewrite is textual (comments,
quoting and order stay), idempotent, and checked against the parser: a
line inside a block scalar is skipped, and a flow-style mapping it cannot
rewrite line by line fails the definition instead of half-renaming it.
Changed
fields-migratewritesobject/listinstead ofgroup/repeater,
for bothacf.jsonand twigfields:sources. The twig annotation also
acceptsobject/list, and thetype: arrayrefusal now suggests them.- Lint messages that echo a field's type print the canonical name.
Pull Requests
- #80 — feat: object and list as canonical structural types
Full Changelog: v0.14.0...v0.15.0