npm / sveltekit-superforms
sveltekit-superforms
What changed in sveltekit-superforms 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking3 security1 new APIs and options2 behavior and defaults17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsveltekit-superforms 35 changes
Breaking changes 2
Upgrading to Superforms v3 requires Svelte ^5.56.4; older SvelteKit 2/Svelte 4 projects cannot upgrade.
Superforms version 3 is compatible with SvelteKit ^3.0.0, enabling projects to upgrade to SvelteKit 3.
Fixes and other changes 3
FormPath types now stop at a recursive type, preventing the “possibly infinite” type error.
Transport types are compatible with both SvelteKit 2 and 3.
Vine version ^4.0.0 is now supported.
sveltekit-superforms 221 changes
Breaking changes 1
Empty strings are no longer coerced to literal values during parsing; they properly fail validation.
Security 3
Security update for devalue addressing CVE-2026-42570.
Security update for ts-deepmerge addressing CVE-2026-12644.
Updated the Devalue dependency to prevent CVE-2026-22774 and two other minor vulnerabilities.
New APIs and options 1
booleanProxy now supports the empty option.
Behavior and default changes 2
Added a runtime warning when a Zod v4 schema is passed to the Zod v3 adapter, helping identify adapter version mismatches.
Zod 4 error messages now take the current locale into account as the default.
Fixes and other changes 14
Transformation actions such as trim and transform are handled using typeMode: 'input' and errorMode: 'ignore' as defaults; users can override these settings.
Improved the “No shape could be created for schema” error message to suggest the zod4 adapter when applicable.
Fixed a ReferenceError when using customValidity with validateForm({ update: true }).
Fixed FormData parsing for discriminated unions so they work without requiring dataType: 'json'.
Fixed partial resets so tainted state is preserved for fields that are not being reset.
Fixed TypeScript type inference for discriminated unions in ValidationErrors.
The Zod 4 adapter respects global customError configuration when no explicit error map is provided, prioritizing it over localeError.
The Zod 4 adapter fixes default Date values in nested objects.
The adapter now allows top-level .transform() and .refine() in schemas.
filesStore initialValue now matches fileStore.
The broken import on Svelte 5 in enforced runes mode may be fixed.
URL parsing no longer returns false for a default boolean value of true.
Loading timers are fixed when the timeoutMS setting is triggered and a redirect response is returned.
JSON Schema generation now handles set and map properly for non-representable Zod 4 types.