Releases: ciscoheat/sveltekit-superforms
Releases Β· ciscoheat/sveltekit-superforms
v1.11.0
Added
- A
fieldErrorsstore is added to arrayProxy, so field errors (for items in the array, not the array itself) can be accessed.
Fixed
- When cancelling a request, timers were cancelled too early in SPA mode and when client-side validation failed.
- Proxies didn't set or update a nested path unless it previously existed.
- When the taint option was set to
falseoruntaint-all, client-side validation was prevented. - The
novalidateandformnovalidateattributes on forms and buttons weren't respected. (#287)
v1.10.2
v1.10.1
Added
- Added
arrayProxy, for proxying arrays and their errors in the form data. Example available on Stackblitz. - Added
FormPathArraystype, enumerating all arrays in an object as string accessors. Used to accessarrayProxyin a type-safe manner. formFieldProxynow has ataintoption, in case a modification should not taint the form.
v1.9.0
Added
- In
app.d.ts, by declaring namespaceApp.Superformswith atype Message, status messages will always be set to that type. (#261) - Added
FormResult<T>, which can be used in onResult to make the ActionResult strongly typed. - SuperDebug now has a
collapsedprop, to make it initially collapsed. Use together withcollapsible. (#279)
Fixed
- Schema
transformoperations weren't applied in SPA forms and when posting to the server with client-side validators enabled.
v1.8.0
Fixed
- Array errors were always added, even if the array or any data in it hadn't tainted the form.
Added
- formFieldProxy now contains a proxy for
tainted.
v1.7.4
v1.7.3
Fixed
- SuperDebug: Collapsible bar was a submit button and didn't toggle the collapsed status properly.
v1.7.2
Fixed
- Array and form-level errors didn't respect
submit-onlyas validationMethod. (#270) - The customValidity option didn't respect
submit-onlyandonbluras validationMethod.
v1.7.1
v1.7.0
Fixed
- Type error with
formFieldProxywhen using a strongly typed status message. (#260) - Nested Superforms validators didn't work when a field was missing compared to the schema. (#266)
Added
- Added
preprocessedoption to superValidate, for handling the processing/coercion of posted form fields manually.