Skip to content

Releases: ciscoheat/sveltekit-superforms

v1.11.0

28 Nov 06:29
Compare
Choose a tag to compare

Added

  • A fieldErrors store 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 false or untaint-all, client-side validation was prevented.
  • The novalidate and formnovalidate attributes on forms and buttons weren't respected. (#287)

v1.10.2

14 Nov 15:41
Compare
Choose a tag to compare

Fixed

  • Timers weren't starting until after onSubmit, which allowed multiple form submissions on longer async operations. (#284)
  • Fixed constraints on fields that starts with a number. (#285)

v1.10.1

07 Nov 15:49
Compare
Choose a tag to compare

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 access arrayProxy in a type-safe manner.
  • formFieldProxy now has a taint option, in case a modification should not taint the form.

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.