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
0
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sveltekit-superforms - npm Package Versions

1
22

2.13.0

Diff

Changelog

Source

[2.13.0] - 2024-05-03

Added

  • Support for "raw" JSON Schema validation with the new schemasafe adapter. Thanks to sukeshpabolu for the initial work on this!

Fixed

  • Errors weren't reset properly when the form was resetted, causing client-side validation to behave like the field was tainted.
ciscoheat
published 2.12.6 •

Changelog

Source

[2.12.6] - 2024-04-23

Fixed

  • The Zod adapter didn't handle reused schemas ($ref) properly.
ciscoheat
published 2.12.5 •

Changelog

Source

[2.12.5] - 2024-04-16

Fixed

  • The "GET to POST" modification for use:enhance was only intended for SPA mode to fully support progressive enhancement, so it now properly checks for that before adding the missing method="POST" attribute on the form.
  • The tainted message didn't trigger on page refresh or closing a tab in the browser.
ciscoheat
published 2.12.4 •

Changelog

Source

[2.12.4] - 2024-04-09

Fixed

  • FormPathLeaves caused a memory leak when using svelte-package.
ciscoheat
published 2.12.3 •

Changelog

Source

[2.12.3] - 2024-04-08

Fixed

  • SuperDebug support for Map and Set.
  • submit method now falls back to submit, if no support for requestSubmit in browser.
  • isTainted now handles the type of $tainted in generic components.
  • id option for superForm (not superValidate) wasn't used in multiple form scenarios.
ciscoheat
published 2.12.2 •

Changelog

Source

[2.12.2] - 2024-03-29

Fixed

  • Fixed FormResult type that can be used in onUpdate, it didn't filter out SuperValidated.
ciscoheat
published 2.12.1 •

ciscoheat
published 2.12.0 •

Changelog

Source

[2.12.0] - 2024-03-28

Added

  • SPA action form now supports form elements as well, by adding its use:enhance on all related forms.

Fixed

  • Fixed type inference for FormPath with nested arrays. Error output improved as well.
  • If method is "GET" or doesn't exist on an enhanced form, it's now automatically set to "POST".
ciscoheat
published 2.11.0 •

Changelog

Source

[2.11.0] - 2024-03-22

Added

  • The ActionResult for success or failure is now added to the onUpdate event in the result property. Can be used to more easily access the ActionData.
  • Added a fail function, works the same as the SvelteKit fail, but removes files and sets form.valid to false.
  • options.config added to the Zod adapter, so the JSON Schema generation can be customized.

Fixed

  • Snapshots couldn't handle files. They are now reverted to their default value when captured and restored in a snapshot, including the tainted state for these fields.
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 }.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc