v2.6.1
Migration guide: https://superforms.rocks/migration-v2
More detailed list of what's new: https://superforms.rocks/whats-new-v2
Added
- Type narrowing for
FormPathand its relatives, to filter the paths based on a specific type, likeFormPathLeaves<T, Date>. - Proxy types:
FieldProxy,FormFieldProxyandArrayProxy. - Added
invalidateAlloption'force', to always use the load function form data, instead of the one returned from the form action. Useful when updating the form data partially, to ensure that the data is refreshed from the server (a "pessimistic" update compared to the default, which is optimistic). Setting this also bases theresetfunction on the latest load function data returned for the form.
Fixed
defaultsdidn't infer the input type, and didn't generate correctSuperValidateddata, makingsuperFormconfused. Also fixed type signature and removed thejsonSchemaoption that wasn't applicable.- Using
gotoin events didn't work when the target page redirected. FormPathandFormPathLeavesdidn't handle fields with typeunknownandany.- Missing boolean fields were valid in strict mode.