Releases: ciscoheat/sveltekit-superforms
Releases Β· ciscoheat/sveltekit-superforms
v1.10.1
Added
- Added
arrayProxy
, for proxying arrays and their errors in the form data. Example available on Stackblitz. - Added
FormPathArrays
type, enumerating all arrays in an object as string accessors. Used to accessarrayProxy
in a type-safe manner. formFieldProxy
now has ataint
option, in case a modification should not taint the form.
v1.9.0
Added
- In
app.d.ts
, by declaring namespaceApp.Superforms
with 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
collapsed
prop, to make it initially collapsed. Use together withcollapsible
. (#279)
Fixed
- Schema
transform
operations 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-only
as validationMethod. (#270) - The customValidity option didn't respect
submit-only
andonblur
as validationMethod.
v1.7.1
v1.7.0
Fixed
- Type error with
formFieldProxy
when 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
preprocessed
option to superValidate, for handling the processing/coercion of posted form fields manually.
v1.6.1
v1.6.0
Fixed
- Client-side validation wasn't resetted properly, when a component containing a form was destroyed and mounted again.
- Removed debug statement left from 1.5.3
Added
- Added
cookieOptions
toactionResult
, for customizing the cookie when setting a flash message. - SuperDebug now has a
collapsible
prop, that will make the component collapsible on a per-route basis.