# What changed in sveltekit-superforms

> 26 changes in sveltekit-superforms 2 to 3 from its official release notes, upgrade guides and advisories: 3 breaking, 3 security, 1 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/sveltekit-superforms/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## sveltekit-superforms 3

### Breaking changes

- Upgrading to Superforms v3 requires Svelte ^5.56.4; older SvelteKit 2/Svelte 4 projects cannot upgrade. (3.0.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v3.0.0)
- Superforms version 3 is compatible with SvelteKit ^3.0.0, enabling projects to upgrade to SvelteKit 3. (3.0.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v3.0.0)

### Fixes and other changes

- FormPath types now stop at a recursive type, preventing the “possibly infinite” type error. (3.1.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v3.1.0)
- Transport types are compatible with both SvelteKit 2 and 3. (3.0.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v3.0.0)
- Vine version ^4.0.0 is now supported. (3.0.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v3.0.0)

## sveltekit-superforms 2

### Breaking changes

- Empty strings are no longer coerced to literal values during parsing; they properly fail validation. (2.29.1) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.29.1)

### Security

- Security update for devalue addressing CVE-2026-42570. (2.30.2) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.30.2)
- Security update for ts-deepmerge addressing CVE-2026-12644. (2.30.2) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.30.2)
- Updated the Devalue dependency to prevent CVE-2026-22774 and two other minor vulnerabilities. (2.30.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.30.0)

### New APIs and options

- booleanProxy now supports the empty option. (2.28.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.0)

### Behavior and default changes

- Added a runtime warning when a Zod v4 schema is passed to the Zod v3 adapter, helping identify adapter version mismatches. (2.30.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.30.0)
- Zod 4 error messages now take the current locale into account as the default. (2.28.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.0)

### Fixes and other changes

- Transformation actions such as trim and transform are handled using typeMode: 'input' and errorMode: 'ignore' as defaults; users can override these settings. (2.30.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.30.0)
- Improved the “No shape could be created for schema” error message to suggest the zod4 adapter when applicable. (2.30.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.30.0)
- Fixed a ReferenceError when using customValidity with validateForm({ update: true }). (2.29.1) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.29.1)
- Fixed FormData parsing for discriminated unions so they work without requiring dataType: 'json'. (2.29.1) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.29.1)
- Fixed partial resets so tainted state is preserved for fields that are not being reset. (2.29.1) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.29.1)
- Fixed TypeScript type inference for discriminated unions in ValidationErrors. (2.29.1) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.29.1)
- The Zod 4 adapter respects global customError configuration when no explicit error map is provided, prioritizing it over localeError. (2.28.1) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.1)
- The Zod 4 adapter fixes default Date values in nested objects. (2.28.1) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.1)
- The adapter now allows top-level .transform() and .refine() in schemas. (2.28.1) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.1)
- filesStore initialValue now matches fileStore. (2.28.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.0)
- The broken import on Svelte 5 in enforced runes mode may be fixed. (2.28.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.0)
- URL parsing no longer returns false for a default boolean value of true. (2.28.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.0)
- Loading timers are fixed when the timeoutMS setting is triggered and a redirect response is returned. (2.28.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.0)
- JSON Schema generation now handles set and map properly for non-representable Zod 4 types. (2.28.0) — [release notes](https://github.com/ciscoheat/sveltekit-superforms/releases/tag/v2.28.0)
