v2.5.0
Migration guide: https://superforms.rocks/migration-v2
More detailed list of what's new: https://superforms.rocks/whats-new-v2
Added
getandsetaccessor foronChange.submitmethod forsuperForm, a convenience instead of using requestSubmit. Requiresuse:enhanceor that aHTMLElementinside the form (or the form itself) is passed as an argument.
Fixed
- Type parameter was missing in
ChangeEvent, which should be of the inferred schema type. - Type for
onChange.pathswasn't strongly typed toFormPath. - Initial data was dereferenced after calling
superForm, so it wasn't possible to update it when usingreset. FormOptionstype required a type parameter that should've been defaulted toRecord<string, unknown>.- Auto-overflow on SuperDebug, for small spaces.