unstale

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 init

@unstale/cli on npm

sveltekit-superforms 35 changes

Breaking changes 2

  • Upgrading to Superforms v3 requires Svelte ^5.56.4; older SvelteKit 2/Svelte 4 projects cannot upgrade.

    3.0.0release notes

  • Superforms version 3 is compatible with SvelteKit ^3.0.0, enabling projects to upgrade to SvelteKit 3.

    3.0.0release notes

Fixes and other changes 3

  • FormPath types now stop at a recursive type, preventing the “possibly infinite” type error.

    3.1.0release notes

  • Transport types are compatible with both SvelteKit 2 and 3.

    3.0.0release notes

  • Vine version ^4.0.0 is now supported.

    3.0.0release notes

sveltekit-superforms 221 changes

Breaking changes 1

  • Empty strings are no longer coerced to literal values during parsing; they properly fail validation.

    2.29.1release notes

Security 3

  • Security update for devalue addressing CVE-2026-42570.

    2.30.2release notes

  • Security update for ts-deepmerge addressing CVE-2026-12644.

    2.30.2release notes

  • Updated the Devalue dependency to prevent CVE-2026-22774 and two other minor vulnerabilities.

    2.30.0release notes

New APIs and options 1

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.

    2.30.0release notes

  • Zod 4 error messages now take the current locale into account as the default.

    2.28.0release notes

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.

    2.30.0release notes

  • Improved the “No shape could be created for schema” error message to suggest the zod4 adapter when applicable.

    2.30.0release notes

  • Fixed a ReferenceError when using customValidity with validateForm({ update: true }).

    2.29.1release notes

  • Fixed FormData parsing for discriminated unions so they work without requiring dataType: 'json'.

    2.29.1release notes

  • Fixed partial resets so tainted state is preserved for fields that are not being reset.

    2.29.1release notes

  • Fixed TypeScript type inference for discriminated unions in ValidationErrors.

    2.29.1release notes

  • The Zod 4 adapter respects global customError configuration when no explicit error map is provided, prioritizing it over localeError.

    2.28.1release notes

  • The Zod 4 adapter fixes default Date values in nested objects.

    2.28.1release notes

  • The adapter now allows top-level .transform() and .refine() in schemas.

    2.28.1release notes

  • filesStore initialValue now matches fileStore.

    2.28.0release notes

  • The broken import on Svelte 5 in enforced runes mode may be fixed.

    2.28.0release notes

  • URL parsing no longer returns false for a default boolean value of true.

    2.28.0release notes

  • Loading timers are fixed when the timeoutMS setting is triggered and a redirect response is returned.

    2.28.0release notes

  • JSON Schema generation now handles set and map properly for non-representable Zod 4 types.

    2.28.0release notes