Releases: ciscoheat/sveltekit-superforms
Releases Β· ciscoheat/sveltekit-superforms
v2.27.0
Added
- The Arktype adapter is finally a "full" adapter, meaning it's retrospectable and doesn't require default values anymore!
Fixed
- SuperDebug rune version is back, can now be imported as
import SuperDebug from 'sveltekit-superforms/SuperDebug.svelte';
- Fixed
bigint
handling for Zod 4 and Valibot.
v2.26.1
v2.26.0
Added
- Zod 4 adapter added! Adapter names are
zod4
andzod4Client
, works with both the full version and Zod Mini. As Zod is now using its own JSON Schema representation, and there are some breaking changes like how enums are handled, check migrations carefully and please report any bugs. - taintedMessage now passes
BeforeNavigate
to its callback function. - SuperDebug now has a Runes version, see the docs for how to import it.
- Added config options to
valibotClient
, same as in thevalibot
adapter.
Changed
v2.25.0
Added
- Added
applyAction: 'never'
option, to prevent load function invalidation from overwriting the form state. - Added
invalidateAll: 'pessimistic'
option as an alternative to the'force'
option (recommended to use instead for clarity).
v2.24.1
v2.24.0
Added
- Exported
SuperValidateOptions
type. - Exported
MergeUnion
,MergeFormUnion
and amergeFormUnion
utility, for handling discriminated unions in forms.
Fixed
- Fixed diff algorithm problem with tainted objects.
- Prevented crash when custom validity doesn't exist for an element.
dateProxy
didn't restore properly with snapshots.- Fixed JSON Schema for simple adapters with empty arrays.
Changed
- Bumped TypeBox peerDep requirement to 0.34.28.
- Bumped Effect peerDep requirement to 3.13.7.
- Bumped Valibot peerDep requirement to 1.0.0-rc.3.
- Bumped Zod peerDep requirement to 3.24.2.
Deprecated
- The
flashMessage
option is now deprecated, since SvelteKit has moved to $app/state instead of$app/stores
, making it hard to support both. Use sveltekit-flash-message directly (setFlash
orredirect
) instead of integrating it with Superforms, it's less complicated as well.
v2.23.0
Added
dateProxy
now has astep
option, to support seconds (when not divisible by 60).- SuperDebug now opts out of runes mode as default.
Fixed
- Fixed
dateProxy
fortime
formats, previously it returned an invalid date. If you only care about the time part in the date, usetime-utc
as format to avoid timezone changes. - Vite 6 bundling fixed by introducing a
default
field into exports in package.json.
Changed
- Arktype 2.0 is finally released! Adapter updated, please check it out, it's validation on the next level.
- Arktype is now displaying errors with
problem
instead ofmessage
, for nicer output. - Zod peerDependency updated to 3.24.1 to be compatible with its latest fix.
- VineJS adapter updated to 3.0.0.
v2.22.1
Fixed
- The transport feature released in 2.22.0 didn't fully handle classes. It should work better now, but the classes must be quite simple to work. Let me know if you have any problems with a certain class.
- Fixed Decimal.js detection in SuperDebug.
v2.22.0 - Christmas edition
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 forsuperValidate
andsuperForm
that thetransport
export inhooks.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 theeffect
package is required now, not@effect/schema
as before. See the 3.10 release notes for details.