Skip to content

Release v2.0.8

Choose a tag to compare

@github-actions github-actions released this 17 Jul 22:58
· 83 commits to main since this release

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() on FormOptionsTrait and FormKitTrait — 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. Existing addText($builder, …) APIs remain unchanged.
  • resolveFieldOptions() on FormOptionsTrait — merge conventions/config without adding the field (for FormEvents + $form->add()).
  • Docs + demo: conditional fieldsUSAGE 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 (FormKitAbstractType snake_case + named bootstrap config); expanded /controller-form (select, radios, money); boundBuilder() on autocomplete demo; configs.bootstrap enabled in demo YAML.
  • Spec Kit baselinespecs/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