v2.5.0
Migration guide: https://superforms.rocks/migration-v2
More detailed list of what's new: https://superforms.rocks/whats-new-v2
Added
get
andset
accessor foronChange
.submit
method forsuperForm
, a convenience instead of using requestSubmit. Requiresuse:enhance
or that aHTMLElement
inside 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.paths
wasn't strongly typed toFormPath
. - Initial data was dereferenced after calling
superForm
, so it wasn't possible to update it when usingreset
. FormOptions
type required a type parameter that should've been defaulted toRecord<string, unknown>
.- Auto-overflow on SuperDebug, for small spaces.