Skip to content

Releases: ciscoheat/sveltekit-superforms

v1.6.0

18 Aug 15:02
Compare
Choose a tag to compare

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 to actionResult, 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

16 Aug 15:18
Compare
Choose a tag to compare

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 and button, not just input.
  • SuperDebug looks a bit better now when there is no css styling on the page.

v1.5.2

15 Aug 16:24
Compare
Choose a tag to compare

Fixed

  • Forms in components weren't resetted properly when destroyed and created again.

v1.5.1

09 Aug 18:06
Compare
Choose a tag to compare

Fixed

  • In rare cases, timers weren't resetted when redirecting to the same route.
  • Client-side validation was ignored when a data property was missing or didn't match the schema type. It now fails with a console error. (#243)

v1.5.0

23 Jul 08:56
Compare
Choose a tag to compare

Fixed

  • A boolean schema field didn't accept a boolean false value when posted, it was coerced as true.
  • A SuperDebug truncated string showed only the whole string length, not the truncated.

Added

  • Added customValidity option to superForm, which will use the browser's validation message reporting for validation errors. More information and an example here.
  • Added emptyIfZero option to numberProxy and intProxy.

v1.4.0

20 Jul 10:40
Compare
Choose a tag to compare

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 and intProxy now works with the empty option. (#232)
  • Fixed timer state in combination with navigation events.

Added

  • Added delimiter option to numberProxy.

v1.3.0

14 Jul 13:52
Compare
Choose a tag to compare

Fixed

  • Fixed persisting form data when component used data from $page in combination with onDestroy. (#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

06 Jul 10:26
1f9eb0f
Compare
Choose a tag to compare

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 if fail was returned.

v1.1.3

29 Jun 18:38
Compare
Choose a tag to compare

Fixed

  • Form-level errors couldn't be overwritten.
  • Array-level errors couldn't be added with setError.
  • Native string enums weren't working when posting the actual string value.

v1.1.2

24 Jun 09:55
Compare
Choose a tag to compare

Added

  • Svelte 4 compatibility.