npm sveltekit-superforms 1.0.0-rc.2
v1.0.0-rc.2

latest releases: 2.23.1, 2.23.0, 2.22.1...
20 months ago

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.

Don't miss a new sveltekit-superforms release

NewReleases is sending notifications on new releases.