v1.0.0-rc.2
Pre-release
Pre-release
Read the announcement and migration guide here: https://github.com/ciscoheat/sveltekit-superforms/discussions/168
Changed
- The
Validationtype is now calledSuperValidated. StringPathandStringPathLeavesare renamed toFormPathandFormPathLeaves.
Removed
- The
$valid,$emptyand$firstErrorstores are removed from the client, they weren't that useful.allErrorscan be used instead, together with the$postedstore. emptyis removed fromSuperForm
Fixed
- Async validation works again for custom validators and
superValidate.
Added
- Added a
postedstore, a boolean which is false if the form hasn't been posted during its current lifetime. resetnow has an additionaldataoption that can be used to re-populate the form with data, andidto set a different form id.intProxy,numberProxy,dateProxyandstringProxynow have anemptyoption, so empty values can be set tonullorundefined.