Skip to content

Releases: ciscoheat/sveltekit-superforms

v1.9.0

31 Oct 13:51
Compare
Choose a tag to compare

Added

  • In app.d.ts, by declaring namespace App.Superforms with a type 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 with collapsible. (#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

02 Oct 13:29
Compare
Choose a tag to compare

Fixed

  • Array errors were always added, even if the array or any data in it hadn't tainted the form.

Added

v1.7.4

29 Sep 09:26
Compare
Choose a tag to compare

Fixed

  • Timing issue in SPA mode displayed errors for valid data, when submitting a form by pressing enter.

v1.7.3

28 Sep 16:42
Compare
Choose a tag to compare

Fixed

  • SuperDebug: Collapsible bar was a submit button and didn't toggle the collapsed status properly.

v1.7.2

23 Sep 15:18
Compare
Choose a tag to compare

Fixed

v1.7.1

19 Sep 17:37
Compare
Choose a tag to compare

Fixed

  • Regression: Forms didn't display validation errors when javascript was disabled.

v1.7.0

16 Sep 09:14
Compare
Choose a tag to compare

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

22 Aug 10:16
Compare
Choose a tag to compare

Fixed

  • Client-side validation didn't take refine into account on a successful validation, not clearing all errors.

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.