Releases: ciscoheat/sveltekit-superforms
Releases Β· ciscoheat/sveltekit-superforms
v0.8.5
[0.8.5] - 2023-05-04
Fixed
captureandrestoreare now hoisted functions.- Fixed timing issues with radio buttons and validation with side-effects.
- Using standard array access to fix problems with iOS and iPadOS <= 15.3
- Fixed client validation problems with multi-select fields.
- Client validation now runs properly when
$formis modified directly by assignment.
v0.8.4
[0.8.4] - 2023-04-27
Fixed
- Select fields had some timing issue, but should now work properly with client-side validation.
- Fixed a few problems with error/tainted checking for client-side validation.
- Typing should now work properly with schema fields containing union types.
v0.8.3
v0.8.2
[0.8.2] - 2023-04-24
Fixed
allErrorsstopped working when realtime validation errors were cleared.- Large payloads with
dataType: 'json'still didn't work, fixed now.
[0.8.1] - 2023-04-24
Fixed
- Realtime validation didn't work for Zod schemas without effects.
[0.8.0] - 2023-04-22
Changed
- Client-side validators now works in realtime, based on "reward early, validate late": If no field error, validate on
blur. If field error exists, validate oninput.
Removed
- The rarely used
updatefunction is removed. Useforminstead, which now has an option for not tainting the affected fields.
Fixed
taintedwasn't updated properly for array data.dataType: 'json'now handles large (+1Mb) payloads.
Added
- Added
validatetosuperForm, which can be used to validate any field, at any time. - Client-side validation can be customized with the
validationMethod: 'auto' | 'oninput' | 'onblur' | 'submit-only'option. - The option
{ taint: boolean | 'untaint' | 'untaint-all' }has been added toform.setandform.update. - The
resetFormoption can now take anasync () => booleanfunction to determine whether the form should be resetted or not.