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

1345
23

2.22.0

Diff
c
ciscoheat
published 2.22.0 •

Changelog

Source

[2.22.0] - 2024-12-15

Added

  • Support for Zod 3.24 and Infer improvements for all adapters, by no other than the Zod creator himself, Colin McDonnell! What a christmas present! 🎄
  • Arbitrary types can now be used in the form with the transport feature in SvelteKit hooks. There is a transport option both for superValidate and superForm that the transport export in hooks.ts can be directly used in. Note: Requires SvelteKit ^2.11.0.

Fixed

  • z.bigint() was interpreted as a number instead of a BigInt.

Changed

  • Effect updated to require ^3.10.0. Only the effect package is required now, not @effect/schema as before. See the 3.10 release notes for details.
c
ciscoheat
published 2.21.1 •

Changelog

Source

[2.21.1] - 2024-12-04

Fixed

  • Default values for nested discriminated unions didn't work.
c
ciscoheat
published 2.21.0 •

Changelog

Source

[2.21.0] - 2024-12-01

Fixed

  • All properties for object unions weren't added to the adapter defaults.

Changed

  • Typebox updated to require ^0.34.9 (hoping for a stable release soon).
c
ciscoheat
published 2.20.1 •

Changelog

Source

[2.20.1] - 2024-11-15

Changed

  • Valibot updated to require 1.0.0-beta.3 (hoping for a stable release soon).
  • Arktype updated to require 2.0.0-rc.23 (hoping for a stable release soon).

Added

  • Support for Vine 2.0.

Fixed

  • customRequest didn't cancel when client-side validation failed.
c
ciscoheat
published 2.20.0 •

Changelog

Source

[2.20.0] - 2024-10-18

Added

  • New validation library: Effect!

Changed

  • @typeschema/class-validator version bump to ^0.3.0.
c
ciscoheat
published 2.19.1 •

Changelog

Source

[2.19.1] - 2024-10-05

Added

  • Exported ClientValidationAdapter from sveltekit-superforms/adapters.

Fixed

  • Result can now be modified in onError, for setting a status code for example.
  • Status codes above 400 but below 500 were not applied to the page status when the result was modified in onUpdate.
c
ciscoheat
published 2.19.0 •

Changelog

Source

[2.19.0] - 2024-09-18

Changed

  • Arktype updated to require 2.0.0-rc.8, fixing some types (last update before 2.0).

Deprecated

Added

  • Exceptions thrown in the onSubmit, onResult and onUpdate events will now be caught and sent to onError, if it exists.

Fixed

  • Updating the same variable to the same value prevented the onChange event from being triggered.
  • Factorized SuperDebug clipboard script
c
ciscoheat
published 2.18.1 •

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