New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sveltekit-superforms

Package Overview
Dependencies
Maintainers
1
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sveltekit-superforms - npm Package Versions

1
35
22

2.10.6

Diff
ciscoheat
published 2.10.6 •

Changelog

Source

[2.10.6] - 2024-03-20

Changed

  • The clearOnSubmit option didn't clear the errors when supposed to. To avoid a breaking change, the default option for clearOnSubmit is now message, not errors-and-message, as it didn't work anyway.

Fixed

  • the event.result.error signature in onError was incorrect, it doesn't always match App.Error. It is now a union between App.Error, The built-in JS Error class, and the default App.Error signature { message: string }.
ciscoheat
published 2.10.5 •

Changelog

Source

[2.10.5] - 2024-03-18

Added

  • fileProxy, filesProxy, fileFieldProxy and filesFieldProxy, so File objects can be used with bind:files on the input field. See file uploads for examples.
  • Exported FormPathLeavesWithErrors, for the setError function.

Fixed

  • Support for instance and special validators for Valibot, which now enables File validation for Valibot!
  • taintedMessage didn't always work when navigating with the History API.
  • tainted didn't untaint automatically when using arrays.
  • Client-side validation triggered for incorrect fields when starting with the same name.
ciscoheat
published 2.10.4 •
ciscoheat
published 2.10.3 •
ciscoheat
published 2.10.2 •
ciscoheat
published 2.10.1 •
ciscoheat
published 2.10.0 •
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.
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.
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.