Skip to main content

SvelteKit 3.4.1

Release Date: November 25, 2026

Verdict first: SvelteKit 3.4.1 is a patch release with no migration work attached. Bump the version, run svelte-kit sync, and your app should behave the same or slightly better. The interesting parts are not new features but a cluster of remote form fixes and two routing changes that quietly make development and production agree more often. If you use remote functions, this one is worth doing today.

The release landed on November 25, 2026, roughly two weeks after 3.4.0. I put it into two projects during the day: one app with a dozen remote form actions and one content site that uses route parameters heavily. Nothing broke. The remote form app is where I noticed the difference.

Remote Forms Got the Attention

Most of the changelog touches remote forms, which is a fair signal that the feature still has rough edges in the wild. The fixes I actually felt:

  • Unchanged remote form issues are no longer processed over and over. On a form that failed validation and then sat idle, the previous build kept reprocessing the same error state on each background task.
  • Arrays submitted to remote forms are now capped at 1,000 missing indexes, and undefined is allowed inside RemoteFormInput arrays. A sparse array from a client could previously balloon into a very long list of empty entries.
  • Literal true is accepted in remote form schemas. Small thing, but a checkbox bound to a true literal used to be rejected outright.
  • Request metadata for remote functions is validated, and stack trace handling is hardened. Error pages are less likely to leak internals in development.
  • Duplicate remote metadata is no longer retained during development, which matters after a long session of edits and reloads.

Routing and Rendering

  • Routes with both a page and an endpoint now always return Vary: Accept. That is the correct caching signal, and it fixes a class of cache poisoning between HTML and JSON responses for the same URL.
  • Responses are copied before internal headers are added. Previously a shared response object could pick up headers that belonged to a different request.
  • Route matching with multiple parameters in a single segment is faster, and SvelteKit now warns when a route with parameters is likely to be slow to match. If the warning appears in your build, the route shape is the problem, not the router.
  • Malformed request paths return a 400 in development instead of resolving into odd 404s.
  • Shallow state updates made during a refresh are preserved, which fixes a flicker on pages that mutate shallow state inside a query.live iteration.

Nested Queries and Payload Size

query.live had a subtle bug: nested queries inside the live function re-ran only on the first iteration and then returned that first value for every subsequent iteration. That is fixed, and per-request iterators are now keyed by function rather than by position. The client bundle also got smaller for apps that do not define a reroute hook, since that code is no longer shipped. Request body reading uses less memory, and svelte-kit sync now leaves unchanged route types alone instead of rewriting them, which stops TypeScript from rechecking files that did not change.

Companion Packages

The same day brought @sveltejs/adapter-server 0.2.0, which adds trailingSlashLocation to its runtime and percent-encodes the location header on trailing slash redirects for prerendered pages. @sveltejs/adapter-node moved to 6.0.6 and @sveltejs/adapter-netlify to 7.1.0 with matching patch fixes. If you deploy through one of those adapters, update them together with the kit so the redirect behaviour stays consistent.

How I Upgraded

  1. Bumped @sveltejs/kit to 3.4.1 and ran the package manager install.
  2. Ran npx svelte-kit sync to regenerate route types. This is the step that now avoids touching unchanged files.
  3. Ran the test suite and clicked through the remote form pages, including one failing submission on purpose.

No config changes were needed in either project, and the build output was byte-for-byte similar once the chunk names settled. For a patch release that is exactly the outcome you want. The remote form fixes alone justify the upgrade if those forms carry real traffic in your app.

Other Versions

We use cookies for ads and analytics.