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

13
22

2.18.1

Diff

Changelog

Source

[2.18.1] - 2024-09-13

Added

  • New validation library: class-validator!
  • Exported SuperFormData and SuperFormErrors types for superForm.
  • Exported ZodObjectType, ZodObjectTypes and ZodValidation types for the Zod adapter.
  • customRequest can now handle an ActionResult as well, for better error handling.

Fixed

  • Using setError in the load function and navigating to the same page client-side removed the errors.
ciscoheat
published 2.18.0 •

ciscoheat
published 2.17.0 •

Changelog

Source

[2.17.0] - 2024-08-13

Deprecated

  • posted is deprecated, due to inconsistencies between server and client validation, and SPA mode. It will be removed in v3. Use a status message or return your own data in the form action to handle form post status.

Added

  • descriptionAsErrors option for the JSON Schema validator, so you can specify error messages directly in the schema with the description field.

Fixed

  • File uploads required extra configuration for the valibot adapter, now it works directly.
  • Events added in enhance weren't cleaned up when the form was destroyed. Note that this could be deprecated in a future version. It's advised to use events only when calling superForm, not with enhance.
ciscoheat
published 2.16.1 •

Changelog

Source

[2.16.1] - 2024-07-18

Changed

  • Arktype updated to require 2.0.0-beta.0, which should fix some typing issues with the adapter.
ciscoheat
published 2.16.0 •

Changelog

Source

[2.16.0] - 2024-07-09

Added

  • New validation library: Superstruct!
  • customRequest added to the onSubmit options, that lets you use a custom fetch or XMLHttpRequest when submitting the form. Very useful for progress bars when uploading large files.

Fixed

  • Type inference for validation errors didn't include _errors for all objects, only for arrays.
ciscoheat
published 2.15.2 •

Changelog

Source

[2.15.2] - 2024-06-26

Changed

  • Valibot minimum dependency is now >=0.33.0 to fix a type issue. Please follow the migration guide to update your Valibot schemas if your version is below v0.31.0.
ciscoheat
published 2.15.1 •

Changelog

Source

[2.15.1] - 2024-06-10

Changed

  • Valibot updated to 0.31.0, which ends support for any version below that. Please follow the migration guide to update your Valibot schemas.

Fixed

  • Inlined the SuperDebug css, to prevent it from being automatically bundled due to it being a default import.
  • The customValidity option now handles object errors, and can refer to any part of the schema.
  • Arktype code wasn't excluded from bundle due to not being dynamically loaded.
ciscoheat
published 2.15.0 •

ciscoheat
published 2.14.0 •

Changelog

Source

[2.14.0] - 2024-05-26

Added

  • errorMap option for the Zod adapter, for simplified error handling in localization. (Zod docs)

Fixed

  • isTainted now works with undefined values in the $tainted store.
  • Fixed default properties for Record in schemas.
ciscoheat
published 2.13.1 •

Changelog

Source

[2.13.1] - 2024-05-07

Fixed

  • FormPath now extends only basic objects and arrays, avoiding issues with classes, all built-in objects like File and Date, and special "branded" types that validation libraries are using. Thanks to Matt DeKok for this fix!
  • SuperDebug always renders left-to-right now.
  • Discriminated unions for the form itself weren't including the union keys for the schema, when parsing the form data.
  • devalue updated to ^5.0.0 to handle invalid dates.
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