Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 10:47
· 39 commits to main since this release

What's Changed

🚀 New Features

  • Managed Event Lifecycle: Added opt-in lifecycle events (load, new/edit, change, cancel, unload) with explicit recordKind and optional focus/blur/click field interactions via engineOptions.events (bf1c0a3)
  • Event Controller: Added onEventController with dispatch() and prepareSave(), both returning promises in every execution mode (bf1c0a3)
  • Save Preparation: Added prepareSave to validate, run pre-save hooks, await delegated operations and return a final payload without persisting or closing the editor (bf1c0a3)
  • Custom Validation: Added INVALID(message) for validate-record handlers, reported as scope-level findings in the validation summary and navigation (bf1c0a3)
  • Repeatable Row Events: Added row-level events carrying action (add, edit, remove) and affectedInstancePath, plus change-status for user changes to status fields (bf1c0a3)
  • Worker Event Support: Added event and save-preparation transport in worker mode, keeping callbacks and alerts on the host (bf1c0a3)

📚 Documentation

  • Managed Events Guide: Added a README section covering lifecycle options, the controller API, prepareSave behavior, INVALID, row requests and worker limits (bf1c0a3)

🔧 Maintenance

  • Core Upgrade: Updated form0-core from ^0.4.1 to ^0.5.1, now the minimum required version (f6c0332)
  • Test Tooling: Patched test tooling dependencies (f6c0332)
  • Version Bump: Bumped package version to 0.4.0 (ac1e0a3)
  • Development Merge: Merged pull request #82 from development (9ed01f8)

Full Changelog: v0.3.0...v0.4.0