You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sveltekit-superforms

Package Overview
Dependencies
Maintainers
1
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sveltekit-superforms - npm Package Versions

1
46
23

2.10.2

Diff
c
ciscoheat
published 2.10.2 •
c
ciscoheat
published 2.10.1 •
c
ciscoheat
published 2.10.0 •
c
ciscoheat
published 2.9.0 •

Changelog

Source

[2.9.0] - 2024-03-12

Added

  • "SPA action mode", the SPA option can now take a string, corresponding to a form action, and it will post there, even without a html form on the page. Especially useful for debounced server checks like available usernames.

Fixed

  • Fixed types for constraints, tainted and errors when using intersections and unions in schemas.
  • Fixed SuperDebug collapsed height by preventing global css leak.
  • Redirect in SPA mode cancelled normal redirects, preventing applyAction.
  • Default objects sent to superForm returned a form with an empty id, causing collisions, it is now a random string.
  • customValidity didn't clear without client-side validators.
c
ciscoheat
published 2.8.1 •

Changelog

Source

[2.8.1] - 2024-03-07

Added

  • Clipboard copy button for SuperDebug. Also fixed height when collapsed without label.

Fixed

  • Storybook fix for missing page store.
c
ciscoheat
published 2.8.0 •

Changelog

Source

[2.8.0] - 2024-03-05

Added

  • Support for object unions, with implicit default values.
  • Experimental storybook support.

Fixed

  • It wasn't possible to directly assign undefined to a field in the $errors store.
  • Intersections in Zod schemas weren't handled properly.
  • It wasn't possible to change the reference to the result in onResult.
c
ciscoheat
published 2.7.0 •

Changelog

Source

[2.7.0] - 2024-03-03

Added

  • newState option for reset, to set a new state for future resets. Can be used instead of the data option.

Fixed

  • Empty file entries didn't return null for nullable schema fields. Ensure that all required file fields aren't set to nullable.
  • Allowed string index in $errors and $tainted.
  • submit can now be passed directly to event handlers.
  • Updated to latest valibot-json-schema, with support for enum_, amongst others.
  • Zod adapter now supports ZodType.
c
ciscoheat
published 2.6.2 •

Changelog

Source

[2.6.2] - 2024-02-25

Fixed

  • Schema literals weren't treated as their typeof type, which prevented multi-type union detection.
  • FormPath and FormPathLeaves didn't narrow the types correctly for Date, Set and File.
  • stringProxy didn't accept FormPathLeaves as path.
  • Fixed removal of uploads for empty files (as is the default for empty file inputs), they are now ignored.
  • Exported Schema type, for any supported validation schema.
c
ciscoheat
published 2.6.1 •

Changelog

Source

[2.6.1] - 2024-02-24

Added

  • Type narrowing for FormPath and its relatives, to filter the paths based on a specific type, like FormPathLeaves<T, Date>.
  • Proxy types: FieldProxy, FormFieldProxy and ArrayProxy.
  • Added invalidateAll option 'force', to always use the load function form data, instead of the one returned from the form action. Useful when updating the form data partially, to ensure that the data is refreshed from the server (a "pessimistic" update compared to the default, which is optimistic). Setting this also bases the reset function on the latest load function data returned for the form.

Fixed

  • defaults didn't infer the input type, and didn't generate correct SuperValidated data, making superForm confused. Also fixed type signature and removed the jsonSchema option that wasn't applicable.
  • Using goto in events didn't work when the target page redirected.
  • FormPath and FormPathLeaves didn't handle fields with type unknown and any.
  • Missing boolean fields were valid in strict mode.
c
ciscoheat
published 2.6.0 •