Skip to content

v1.0.0-rc.2

Pre-release
Pre-release

Choose a tag to compare

@ciscoheat ciscoheat released this 03 Jun 20:31
· 1086 commits to main since this release

Read the announcement and migration guide here: https://github.com/ciscoheat/sveltekit-superforms/discussions/168

Changed

  • The Validation type is now called SuperValidated.
  • StringPath and StringPathLeaves are renamed to FormPath and FormPathLeaves.

Removed

  • The $valid, $empty and $firstError stores are removed from the client, they weren't that useful. allErrors can be used instead, together with the $posted store.
  • empty is removed from SuperForm

Fixed

  • Async validation works again for custom validators and superValidate.

Added

  • Added a posted store, a boolean which is false if the form hasn't been posted during its current lifetime.
  • reset now has an additional data option that can be used to re-populate the form with data, and id to set a different form id.
  • intProxy, numberProxy, dateProxy and stringProxy now have an empty option, so empty values can be set to null or undefined.