Releases: ciscoheat/sveltekit-superforms
Releases · ciscoheat/sveltekit-superforms
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.
v1.5.3
Fixed
- Array-level errors weren't typed correctly when changing the cardinality of an array field in the schema (for example with
nonempty
). - customValidity now works with
select
,textarea
andbutton
, not justinput
. - SuperDebug looks a bit better now when there is no css styling on the page.
v1.5.2
v1.5.1
v1.5.0
Fixed
- A boolean schema field didn't accept a boolean
false
value when posted, it was coerced astrue
. - A SuperDebug truncated string showed only the whole string length, not the truncated.
Added
- Added
customValidity
option tosuperForm
, which will use the browser's validation message reporting for validation errors. More information and an example here. - Added
emptyIfZero
option tonumberProxy
andintProxy
.
v1.4.0
Fixed
- When multiple forms exists with the same id, the warning is now displayed on
superForm
instantiation, not just when new form data is received. - Fixed client-side validation for
Date
schema fields. (#232) numberProxy
andintProxy
now works with theempty
option. (#232)- Fixed timer state in combination with navigation events.
Added
- Added
delimiter
option tonumberProxy
.
v1.3.0
Fixed
- Fixed persisting form data when component used data from
$page
in combination withonDestroy
. (#164, thank you to everyone in that thread!) - Fixed exception message when the
dataType
option isn't set to'json'
and the schema contains a nested object. (#225) - Superforms are now ignoring normal SvelteKit form actions when they are posted. (#230)
Added
- More configuration options, customizable styling, automatic promise and store support for SuperDebug, thanks to Josue!
v1.2.0
Added
- The
scrollToError
option can now take the same parameters as scrollIntoView, which makes it work for nested scrollbars. - Added
setError
signature, to more conveniently set a form-level error:setError(form, 'Form-level error message')
Fixed
- If the
resetForm
option was enabled, the form was reset even iffail
was returned.