Release v2.0.8
v2.0.8
Bound-builder helpers (withBuilder + add*Field), resolveFieldOptions for FormEvents, conditional-field docs/demos, and Kit API patterns demo.
Changelog
Added
withBuilder()+add*Field()onFormOptionsTraitandFormKitTrait— bind the form builder once and add fields without repeating$builder(e.g.$this->addTextField('name')). Also:boundBuilder(),addTypedField()/addNamedField(),buildFieldsFromArray(), and bound aliases for choice presets and model-transformer helpers. ExistingaddText($builder, …)APIs remain unchanged.resolveFieldOptions()onFormOptionsTrait— merge conventions/config without adding the field (forFormEvents+$form->add()).- Docs + demo: conditional fields — USAGE patterns (build-time
if,PRE_SET_DATA/PRE_SUBMIT, UI hide, Live Component) and demo route/conditional-fields(ConditionalFieldsDemoType+BuildTimeConditionalDemoType). - Demo coverage —
/kit-api-patterns(FormKitAbstractTypesnake_case + namedbootstrapconfig); expanded/controller-form(select, radios, money);boundBuilder()on autocomplete demo;configs.bootstrapenabled in demo YAML. - Spec Kit baseline —
specs/001-baseline/updated for bound-builder helpers,resolveFieldOptions, and conditional-field patterns (US-03b/US-03c/US-06,FR-FORM-009/FR-FORM-010,SC-004).
Changed
- README / INSTALLATION / USAGE — Prefer
withBuilder()+add*Field()in quick-start examples; document conditional-field patterns and new demo routes.
What's Changed
- chore(ci): bump actions/github-script from 7 to 9 by @dependabot[bot] in #15
- chore(ci): bump actions/checkout from 6 to 7 by @dependabot[bot] in #14
- chore(ci): bump actions/cache from 5 to 6 by @dependabot[bot] in #13
- chore(deps): bump the phpstan group with 2 updates by @dependabot[bot] in #11
- chore(deps): bump rector/rector from 2.5.2 to 2.5.3 by @dependabot[bot] in #12
Full Changelog: v2.0.7...v2.0.8