Release v2.5.0
Summary
Closes three ways the library lets consumers write code that silently misbehaves: string icons that render nothing, onBeforeExecute callbacks that wipe command values, and view models that call hooks.
Added
onBeforeExecuteonCommandDialog,StepperCommandDialog, andCommandSteppernow accepts an async callback returningPromise<T>.@cratis/eslint-plugin-componentsruleonbeforeexecute-must-return, flagging anonBeforeExecutecallback that can complete without returning the command values.@cratis/eslint-plugin-componentsruleno-hooks-in-view-model, flagging React hooks and Arc proxy.use()calls inside a view model class.
Changed
IconDisplaynow repairs a lone PrimeIcons class missing its base class (pi-home→pi pi-home) so it renders, and warns in development when given a bare icon name (e.g.plus) that is not a CSS class.
Fixed
onBeforeExecuteno longer executes the command withundefinedvalues when a callback returns nothing — the current values are kept and a warning is logged.