Read the announcement and migration guide here: https://github.com/ciscoheat/sveltekit-superforms/discussions/168
Changed
- The
Validation
type is now calledSuperValidated
. StringPath
andStringPathLeaves
are renamed toFormPath
andFormPathLeaves
.
Removed
- The
$valid
,$empty
and$firstError
stores are removed from the client, they weren't that useful.allErrors
can be used instead, together with the$posted
store. empty
is removed fromSuperForm
Fixed
- Async validation works again for custom validators and
superValidate
.
Added
- Added a
posted
store, a boolean which is false if the form hasn't been posted during its current lifetime. reset
now has an additionaldata
option that can be used to re-populate the form with data, andid
to set a different form id.intProxy
,numberProxy
,dateProxy
andstringProxy
now have anempty
option, so empty values can be set tonull
orundefined
.