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

1245
23

2.16.1

Diff
c
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.
c
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.
c
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.
c
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.
c
ciscoheat
published 2.15.0 •
c
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.
c
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.
c
ciscoheat
published 2.13.0 •

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.
c
ciscoheat
published 2.12.6 •

Changelog

Source

[2.12.6] - 2024-04-23

Fixed

  • The Zod adapter didn't handle reused schemas ($ref) properly.
c
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.