npm / @sveltejs/kit
@sveltejs/kit
What changed in @sveltejs/kit 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-25.
130 breaking24 security9 deprecations48 new APIs and options5 performance28 behavior and defaults13 tooling221 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@sveltejs/kit 3211 changes
Breaking changes 84
Requests using the wrong HTTP method are rejected.
Binary remote forms referencing files with an empty file-offset table are now rejected with 400 Bad Request.
resolve now rejects URL inputs.
Server-only modules can no longer be imported into browser code via src/params.js.
204 responses now return no content.
Adapter Vite plugins are separated into
preandpost.ActionResultandSubmitFunctionmove from@sveltejs/kitto$app/forms.Navigation-related types, including
GotoOptions, move from@sveltejs/kitto$app/navigation.The
base,assets, andresolveRouteexports are removed from$app/paths.Remote function types move to
$app/server.Page,ReadonlyURL, andReadonlyURLSearchParamsmove from@sveltejs/kitto$app/state.The
$app/storesmodule is removed.The type is renamed from
AssettoAssetPath; leading/is removed fromAssetPathvalues.createEntriesis removed from theBuilderobject passed to adapter functions.builder.generateManifestis replaced withbuilder.generateServerInstanceandbuilder.manifest.The deprecated CSRF option is removed in favor of
trustedOrigins.A
configexported from a universal route file takes precedence over one exported from a server route file.The cookie dependency is upgraded to v2, which requires cookie names to contain only ASCII characters.
The cookie
pathoption now defaults to/.Cross-origin form submissions without a
Content-Typeheader are disallowed.Enhanced cross-page form actions navigate to the action page on success and failure, matching native form behavior.
Clicking a link to the current URL refreshes all load functions and queries.
The option value
offis removed in favor offalse.The
data-sveltekit-noscrollanddata-sveltekit-keepfocusattributes are replaced bydata-sveltekit-reset.The
experimental.handleRenderingErrorsflag is removed.External redirects are forbidden by default.
Form action responses now use the HTTP status code returned from
fail.The type changes from
anytoApp.Error | undefined.getRequestis now synchronous.gotorejects when given a URL that does not resolve to a route within the app.The
noScrollandkeepFocusoptions are replaced by theresetoption.handle'sresolveis now typed to always return aPromise.All errors now pass through the
handleErrorhook.handleErrorcan influence the status code.handleValidationErroris removed; remote function validation errors are passed tohandleErrorwithkind: 'validation'.HEADrequests are answered without a response body.Environment variables are populated before
instrumentation.server.jsis evaluated, and the adapter instrumentation API is updated.Calling
invalidateorinvalidateAllduring navigation no longer aborts navigation.Adds
kit.paths.origin;kit.prerender.originand theadapter-nodeORIGINenvironment variable are removed.The
$libalias is replaced with#lib, andfiles.libconfiguration is removed.The
#libdefinition is removed frompaths, requiring explicit module extensions.The deprecated
.run()method is removed from live queries.The
deltaproperty now exists only forpopstatenavigation events.The generated tsconfig is now written to
node_modules/$app/tsconfig.Node 22.17 or newer is required.
page.urlis immutable at the type level.Param files in folders are removed in favor of a
params.js/tsfile.The type is renamed from
PathnametoPath; leading/is removed fromPathvalues.The deprecated
pragmaheader is removed from version polling for improved CORS support.preloadCodetakes a route ID instead of a pathname; route IDs are not prefixed withpaths.base.The result type for
preloadDatanow includes anerrorresult.The option is removed;
modulepreloadis always used.Fallback handlers are rejected on prerendered endpoints.
Programmatic form validation skips clean fields.
Accessing
event.url,event.params, orevent.routeinside queries now errors.Values set or refreshed from within a query during SSR are serialized into the rendered HTML.
Submitting a remote form without JavaScript preserves the current URL search parameters.
These files are disallowed unless
experimental.remoteFunctionsis enabled.Route ID escape sequences are expanded when resolving a route ID to a pathname.
RouteIdincludes only routes with a+pageor+serverfile.The
Serverconstructor is removed from public types.Nested server-only directories are supported, and
/server/paths are treated as server-only throughout the project except insrc/routesand the assets directory.Server-side self-fetch fallbacks no longer follow redirects.
The
$service-workermodule is deleted.Service worker registrations use
type: 'module'.setResponseis now synchronous.The server errors if it does not respect a client-requested single-flight mutation, and can explicitly ignore refreshes.
SSRManifestis removed from public types.Subresource requests receive a lightweight 404 instead of rendering the error page.
Svelte 5.56.4 or newer is required.
Svelte config options must be passed through the Vite plugin.
defineEnvVarsmoves to@sveltejs/kit/env.Environment-related types move to
@sveltejs/kit/env.Hooks-related types move to
@sveltejs/kit/hooks.The
@sveltejs/kit/node/polyfillsmodule is removed.defineParamsand its associated types move to@sveltejs/kit/params.Version 7 is required.
Tracing moves out of the experimental namespace, and the instrumentation flag is removed.
Load functions rerun when the number of values of a tracked search parameter changes.
TypeScript 6 is now the minimum required version.
The experimental remote form option
includeUntouchedis replaced byall.The default polling interval is now one hour; deployment detection also occurs on data, remote, and form action responses, tab focus, and visibility changes.
Vite 8 is required; its hook filters and environment API also enable faster builds and more powerful adapters.
Query parameters beginning with
x-sveltekit-are rejected.
Security 10
A malformed pathname rewritten by reroute now returns a 400 response instead of throwing.
Route resolution no longer loads code from another origin for pathnames starting with //.
SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle
SvelteKit: DoS while parsing form data from a remote functions
formSvelteKit: Private
query.batchfunctions could collide, producing unexpected parameter / function combinationsSvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution
Path traversal is prevented when previewing prerendered pages and data on Windows.
Nested and typed underscore-prefixed remote form fields are redacted after invalid submissions.
SvelteKit: URL redirection to untrusted site via enhanced form submission
SvelteKit : XSS via untrusted cache-control header in prerendered page
Deprecations 9
adapter.emulate is deprecated.
The
aliasoption is deprecated.builder.mkdirpis deprecated in favor ofnode:fsmethods.builder.rimrafis deprecated in favor ofnode:fsmethods.The environment modules are reinstated as deprecated aliases for
$app/env/private,$app/env/public, and$app/env.error(status, {...})is deprecated in favor oferror(status, message, {...}).Response helpers are deprecated in favor of platform-provided alternatives.
Serveris deprecated in favour of theserverobject written bybuilder.generateServerInstance.export const snapshotis deprecated in favor of thesnapshothelper.
New APIs and options 27
Remote function tracing spans now include this attribute.
Adapters can set this to true to disable SvelteKit's Node preview server when providing their own preview implementation.
CSP hash-reporting keyword is supported.
A
sveltekit.endpointspan is emitted for+serverhandlers when server tracing is enabled.Adapters can provide additional Vite plugins and receive the Svelte config as a function argument when adding them.
Adds
$app/manifestwithimmutable,assets,prerendered, androutesexports.$app/pathscan be imported in service workers.Adds the
$app/service-workermodule.Adds an
applyReroutehelper for adapters supporting split serverless function deployments.Adds an option to preload using the
Linkheader.Adds the
cookies.parsemethod.Function validators are supported for environment variables.
Remote form fields gain a
touched()helper.Adds a
dirty()property to form fields.The checked state can be passed as a third argument to
.as('radio', ...)and.as('checkbox', ...), so inputs reset to that state after submission.A new
responseoption letsgetRequestabortrequest.signalwhen a response closes prematurely.Adapters can override
getRequestandsetResponseduringvite devandvite preview.Page state set through
goto(..., { state, persistState: true })is preserved across reloads.Adds shallow routing to
goto;pushStateandreplaceStateare deprecated.Adds
ManifestRouteandpageandendpointbooleans to$app/manifestroutes.Custom values in
page.stateare supported through thetransporthook.Adds
PageRouteIdandEndpointRouteIdto$app/types.The font preload filter receives the project-relative source
filename.The
QUERYHTTP method is supported in+server.js.refreshAllis added, andinvalidateAllis deprecated.Remote form fields are widened to support union schemas and string enums.
Adds the
snapshothelper to$app/navigation.
Performance 3
The
nopushdirective is omitted so Chromium can use CDN Early Hints.In dev, SSR results of remote functions from packages are now reused during hydration.
Remote form submissions are parsed in linear time.
Behavior and default changes 9
Logs now include the remote function name and declaration file when schema validation fails.
builder.compressreturns the list of compressed files.Cookies default to
secure: falseduring development.Hyphens are allowed in param and matcher names.
When a query value arrives through
set(), its pending request is settled in place.All pending query promises are rejected when a query fails before first resolving with a value.
Remote function exports may use reserved words such as
deleteandclass.Routes can contain
[and]using the[x+5b]and[x+5d]escapes.Pages render over sibling endpoints that have no
GETorHEADhandlers.
Tooling 7
The Vite DevTools dock is supported in dev, allowing developers to use it while developing SvelteKit applications.
Dev server logs now include clickable links to remote function invocations.
Generated files are left unchanged when their contents have not changed.
$app/tsconfigcan be generated without TypeScript installed.Adds
ErrorPropsto generated types.Prerender errors are surfaced during development.
Sourcemaps are supported in production.
Fixes and other changes 62
Forked build processes now respect explicit FORCE_COLOR settings.
SvelteKit explains the missing TypeScript compiler API instead of crashing with TypeScript 7.
Forked build processes now respect NO_COLOR settings.
Non-ASCII characters display correctly in plain text error messages during development.
Trailing route groups are stripped correctly when resolving routes with search parameters or fragments.
A user-set build.cssMinify value is now respected.
Route analysis and prerendering now read environment variables after all adapter Vite config hooks have run.
Results of remote functions awaited in server load functions are no longer serialized into the page.
Pages hash their encoded bytes for the ETag and send those same bytes as the body; hashing is skipped when setHeaders sets an etag, the response is no-store, or the page has a CSP nonce.
Async load function return values are checked against App.PageData.
The crawler now finds links located after a quoted attribute value ending with a backslash.
Generated types are valid for route parameter names that start with a digit, such as [2nd].
Routes are scanned correctly on Windows when optimizing dependencies.
On start with SSR disabled, afterNavigate now sets navigation.from to null.
During hydration, afterNavigate now receives correctly populated route and params.
The result now includes assets imported through dynamic imports, remote functions and param matchers, allowing read to find them.
A request for __data.json on a missing route now receives JSON instead of the rendered error page.
Saving files during development no longer reloads unrelated server modules.
Inline assets are now read using their UTF-8 byte length.
When paths.relative is true, data requests now resolve relative paths against the page URL.
When using read, query strings and hashes in imported asset URLs are now ignored.
The original fetch is reused across dev server reloads.
Function snapshots are restored on reload when SSR is disabled.
Separate non-exported query.batch functions no longer share a batch.
Actionable errors are reported for remote modules in server-only locations.
Service worker sourcemaps are preserved when injecting env.
A non-serializable TypeScript config callback is no longer injected by default.
Deployment recovery continues when service worker updates fail.
Focus remains in the parent page when an app in an unfocused iframe starts or navigates.
MIME types for prerendered files are inferred from generated files.
Modules are no longer all treated as server-only when the project is inside a
serverdirectory.Warnings are no longer emitted for Storybook's Vite plugins that use
transformIndexHtml.Relative imports in generated types now work with nodenext module resolution.
Dynamic
$app/env/*variables are populated in contexts that do not run the dev server, such asvite-node.$app/environmentis restored as an alias for$app/envso dependencies importing it continue to work.The error status from
App.Erroris read inprerenderandquery.liveremote functions.Server-side route resolution supports bigint params.
Cookie options are optional.
Deleted cookies are excluded from
cookies.getAll(), keeping it consistent withcookies.get().Fetch responses are no longer serialized when the request body is not a string or TypedArray.
The nearest error page renders when a form submission receives a non-ActionResult error response.
The nearest
+error.svelterenders at its occupied depth when an error is thrown during rendering.Where applicable, form field
.as(...)acceptsundefinedvalues.Form fields can be named after
Objectprototype properties.form.fields.setproperly handlesDateobjects.Reading non-serialized
set-cookieheaders viagetSetCookieinloadno longer errors.Global app state persists across module graph reloads.
The prerender crawler no longer hangs on unterminated unquoted attributes.
User-set
preview.corsconfiguration is respected instead of being overridden.Values set or refreshed from within a query during SSR are serialized into the rendered HTML.
query.livesends periodickeep-aliveSSE comments to prevent idle-timeout errors.data:protocol URLs are treated as external for redirects.Validation checks that all remote form fields were created with
form.fields.foo.as(...).Values typed into remote form fields are coerced, and
.as()defaults apply only until the field is edited.Errors from prerendered remote responses are propagated instead of rerunning the function.
Node.js buffers returned from remote functions during SSR are serialized correctly.
RequestEventproperties are markedreadonly.Route escape sequences above
ffffare decoded correctly.Scheme-like path segments no longer cause off-site trailing-slash redirects.
User-set
server.corsconfiguration is respected instead of being overridden.The trusted-types policy is required only when client-side code is shipped, allowing builds where all pages have
csr: false.Paths resolve using the Vite config
rootoption instead ofprocess.cwd(), improving monorepo support.
@sveltejs/kit 2267 changes
Breaking changes 46
Rewrites of malformed pathnames now return a 400 response instead of throwing.
Prerendering now throws an error when a root +server.js returns a non-HTML response.
The .run() method was removed from remote queries on the client and server; use await query() directly instead.
Queries are no longer refreshed on full-page reload form submissions.
On the server, the returned promise represents adding the refresh to the map, not the time it takes to run the remote function.
Entries yielded by requested now contain arg and query instead of the validated argument.
The limit field is now required in requested, as originally intended.
Calling resolve with an external URL now throws an error.
The request now silently returns 404 in dev and preview.
Select fields that accept multiple values now use an array type.
Client-driven refreshes have been reworked, changing how query refreshes behave.
Refresh failures triggered by commands are isolated per query.
Awaiting queries outside render is disallowed.
Object keys are sorted when caching remote functions, changing cache key generation.
Removed from experimental remote form functions; use a button with the form field action instead.
Forking is now gated behind experimental.forkPreloads.
invalid must now be imported from @sveltejs/kit.
The experimental form validate() method no longer accepts the submitter option and always provides a default submitter.
The RemoteFormAllIssue type was deleted.
A path option is required when setting, deleting, or serializing cookies.
dangerZone.trackServerFetches has been removed.
__data.json files are generated as siblings to .html files.
The type for depends now requires a colon as part of the string.
Dynamic environment variables can no longer be used during prerendering and are served dynamically.
Error handling has been tightened up.
error and redirect are now commands.
The state option has been removed in favour of shallow routing.
External navigation with goto is disallowed.
A form without multipart/form-data enctype errors if it contains a file input.
Node 18.13 or newer is required.
A route fails if +page and +server have mismatched config.
A route with +page and +server fails if it is marked prerenderable.
Path resolution has been fixed.
undefined is no longer a valid value for paths.relative.
Paths passed to preloadCode must be prefixed with the basepath.
resolvePath has been removed in favour of resolveRoute from $app/paths.
resolveRoute from $app/paths replaces resolvePath.
Shallow routing is implemented and replaces the goto state option.
Support for Svelte 3 has been dropped.
The plugin is now a peer dependency and must be installed in each project using SvelteKit.
Top-level promise awaiting has been removed.
The generated tsconfig no longer provides a baseUrl fallback.
The project upgrades to TypeScript 5; user projects default moduleResolution to bundler, while package uses NodeNext.
Deprecated callback values for use:enhance have been removed.
Vite 5.0.3 or newer is required.
vitePreprocess is no longer re-exported.
Security 14
SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header
CSRF protection is enabled in builds with a non-production NODE_ENV value.
SvelteKit: Big remote form function payloads can cause Node process to crash
SvelteKit: Prototype pollution in file input deletion path in remote-function forms
Responses now send cache-control: private, no-store so personalized query results cannot be cached by shared caches.
@sveltejs/kit:
query.batchcross-talkThe body size limit is now enforced on chunked requests.
@sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service
SvelteKit has deserialization expansion in unvalidated
formremote function leading to Denial of Service (experimental only)Validates form file information to prevent amplification attacks.
Memory exhaustion in SvelteKit remote form deserialization (experimental only)
Script CSP nonces are emitted when unsafe-inline is present together with strict-dynamic.
Adds length checks to remote forms.
SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering
New APIs and options 21
Remote forms expose a submitted property.
The type is now exposed for developers to use.
Adds an option for handling invalid URLs discovered while crawling during prerendering.
CSP sources support ws:, wss:, and trusted-types-eval.
Queries can now refresh other queries.
Commands can now receive File objects.
Adds explicit environment variables.
Svelte(Kit) config can now be passed via the Vite plugin.
The enhance callback now receives the form remote function instance.
Form remote function instances now have a programmatic submit method.
Adds the experimental query.live function.
Supports query.batch in requested(...).
Gains an optional third generic parameter, Validated, defaulting to Input and representing the argument type after schema validation or transformation.
Form fields can specify a default value with field.as(type, value).
Queries gain a run() method.
Adds a function to map a path back to a route ID and params.
Navigation callback targets now expose scroll positions, enabling transitions based on the destination scroll position during browser back/forward navigation.
RemoteFormIssue now includes a path field.
Adds the Request.signal property to the request.
Fine-grained invalidation of search params is supported.
untrack has been added to load.
Performance 2
Prerendered Markdown files are precompressed.
Already-loaded CSS is no longer re-loaded during server-side route resolution.
Behavior and default changes 19
Form fields are snapshotted on read.
Users are warned when boolean inputs are not made optional in their form schemas.
Pages are preferred over endpoints when prerendering.
preloadCode can now be called during initial page load.
Link prefetching is disabled on slow internet connections.
Live query instances are now async-iterable.
Remote queries can be awaited in any context, and the shared cache dedupes awaits with reactive subscribers.
submit and hidden form fields now accept numbers and booleans.
Unread validation issues now trigger a warning.
Allows plain functions as overrides in updates.
The enhance function's return type changes from void to MaybePromise<void>.
When configured, the trusted-types directive requires 'svelte-trusted-html' and, if a service worker is automatically registered, 'sveltekit-trusted-url'.
submit now returns a boolean indicating submission validity for enhanced form remote functions.
Remote function transport uses hydratable.
Error boundaries can now catch errors on the server.
Preloads are now placed before styles.
File uploads inside form remote functions are streamed, allowing form data to be accessed before large files finish uploading.
SvelteKit uses the experimental fork API when it is available.
Internal stack traces are redacted when reporting config errors.
Tooling 6
TypeScript 6.0 is supported.
Page and layout params with matchers are now type narrowed, improving type safety when working with params in $app/types, $app/state, and hooks.
SvelteKit supports Vite 8.
The generated
tsconfig.jsonnow includes thetestdirectory alongside the existingtestsentry.Adds typescript as an optional peer dependency, affecting dependency installation and package setup.
SvelteKit HTML typings are provided.
Fixes and other changes 159
Dependencies of $app/state are no longer read eagerly during module initialization.
Type generation now detects destructured actions exports.
Type generation now detects destructured load exports.
The maximum cookie size is aligned with RFC 6265bis.
CSS URL references are now absolute when paths.relative is false.
Define values are now set on globalThis when running Vitest.
Prevents an unhandled promise rejection.
Returns
undefinedwhen onlyfields.branch.leafhas issues.Form reset now clears issues and touched states.
The field prefix is stripped before an error is raised for duplicates.
Skip
native_navigationwhen__data.jsonreturns 404 on a static fallback page.Warning detection ignores third-party monkeypatches to
pushStateandreplaceState.The reset function is called via the prototype.
The value of
submitfields is set when the form is submitted.Avoids unnecessarily overriding a user's Vite 8 codeSplitting setting.
Supports exactOptionalPropertyTypes for optional form schema fields.
Snapshots are restored after afterNavigate callbacks.
The generated tsconfig no longer sets types to ['node'], avoiding errors when @types/node is not installed.
Error pages for missing __data.json requests use correct relative asset paths.
Empty file inputs are omitted from remote form data.
Forms wait a tick before resetting.
The active element is blurred before a component update during navigation, so blur and focusout handlers run while old component data is still valid.
Preflight schemas apply correctly when chained before for.
Active for-await consumers are preserved across live-query reconnects.
Reconnect promises settle on every exit path, preventing invalidateAll() from deadlocking when a live query is offline or interrupted.
The last value is preserved when a live-query stream completes without yielding on reconnect.
The base value is available from $service-worker during development.
A root layout load() error no longer causes a blank page in SPA mode.
Unknown options from the sveltekit Vite plugin are passed through to vite-plugin-svelte.
building now resolves correctly, allowing build-time explicit environment variable validation to be avoided.
Path separators are normalized when comparing config.
Remote function failures consumed via current or error no longer cause unhandled promise rejections instead of being awaited.
Explicit dynamic public environment variables are now accessible from prerendered pages and service workers.
Base64-serialized fetch bodies are decoded before caching them for client-side replay.
Universal nodes are no longer loaded during build analysis when the app uses a hash router.
The client entry is now served correctly during development when using the pnpm global virtual store.
Transport failures preserve the HTTP status and error body instead of reporting a generic 500.
Fixes a regression in loading assets for apps using absolute paths.
With
bundleStrategy: 'inline', unused bundle and stylesheet files are no longer emitted.Queries are reset before navigating when
invalidateAllis set.Builds with a non-standard NODE_ENV no longer import Vite development client code.
The client build is skipped when all routes have CSR disabled.
Remote data is deduplicated.
Server components are no longer bundled when SSR is turned off for a route.
Ensures version is defined when importing from $app/env with explicit environment variables.
Allows importing $app/environment with a warning when explicitEnvironmentVariables is enabled.
Uses forward slashes in the generated import path on Windows.
Uses SSE for query.live.
Allows use of $app/env/public in service workers.
Running sync no longer checks for svelte.config.js first.
A placeholder tsconfig.json is generated to suppress sync-time warnings.
Preloading is fixed for anchor elements that were just previously preloaded.
The module is no longer generated when the app does not use public dynamic environment variables.
Streaming errors from load functions are caught on the client.
Multiple Set-Cookie headers are preserved on 304 responses.
Routes starting and ending with a route group are now matched correctly.
The default error page is preferred when decoding the URL pathname fails.
Binary form deserialization no longer relies on Content-Length, avoiding failures when proxies strip the header and use chunked transfer encoding.
Optional route params now support exactOptionalPropertyTypes.
Routes ending with optional parameters are allowed next to more specific routes.
True values are now correctly sent to the server for submit and hidden form fields.
Build warnings about undefined universal hooks are avoided.
Navigation is aborted after async rendering if it has become obsolete.
Fixes resolving route file paths on Windows when the path includes a drive letter.
form.fields.foo.as('checkbox', default_value) now works.
Remote forms reset to default values provided by field.as('text', defaultValue) once submitted.
Queries now always get started correctly.
The output type now unwraps Promise.
An empty call to .updates() on a command or form invocation means “don't update anything.”
Styles and fonts load before CSR starts to avoid FOUC.
Prevents a crash when nested values are nullish.
The form result is reset on redirect.
query().current, .error, .loading, and .ready now work in non-reactive contexts.
Restores correct typing for nullable array fields, including schemas using .default([]), so .as('checkbox') and similar usages work again.
Removing SSI comments no longer triggers a false positive warning about breaking Svelte hydration.
Default values are used as fallbacks.
Form typings are more permissive for union types.
Avoids an “ignored with codeSplitting” warning when using Vite 8.
Multiple remote functions can be used within one async derived.
Same-cache-key batch calls are deduplicated during SSR.
Backticks are correctly escaped when precomputing CSS.
The default Svelte 5 error.svelte file uses runes mode.
Obsolete forks are discarded before navigation finishes.
Setting paths.base in svelte.config.js no longer causes a false-positive warning about an overridden Vite base setting.
pending_count is decremented when a form callback does not call submit().
Calling .refresh on a query with no cache entry no longer requests new data.
Building the service worker with Vite 8 no longer produces an inlineDynamicImports deprecation warning.
Validation of the Svelte config file no longer emits deprecation warnings for config.kit.files.* options.
Remote functions that are not awaited in the template no longer delay processing.
resolve() now accepts pathnames with a search string and/or hash.
Remote form redirects now handle the form target attribute.
Avoids a Vite warning about the unknown codeSplitting option.
Prevents overlapping file metadata in remote functions form.
Commands are allowed in more places.
The
.value()and.set(...)methods use deep partial types.Server-rendering now handles nested form value sets correctly.
Prerender functions can use optional types.
Remote command functions can use optional types.
Remote functions receive correct URL information.
Remote query functions can use optional types.
Addresses a warning about inlineDynamicImports when using Vite 8.
Event listeners are removed when form attachment cleanup runs.
Queries refreshed in a form remote function are applied when a redirect is thrown.
Types are narrowed to follow trailing slash page settings.
Navigation to a URL-supplied anchor now respects scroll-margin.
A false-positive inner content warning is suppressed when the
childrenprop is forwarded to a child component.fetchnow works when the URL is on the same host but outsidepaths.base.Redirecting in a remote function no longer triggers
handleError.Navigation to hash links now works when a base element is present.
The injected script for
hydratablenow works with CSP.Generated
tsconfig.jsonnow uses the configured value ofkit.files.src.Uses validated arguments in the batch resolver in both CSR and SSR.
Re-exports browser and dev from esm-env.
Inlined CSS now follows paths.assets and paths.relative settings and includes components that are conditionally rendered.
Prerendering now properly handles percent-encoded anchors.
Rest params are matched only when the matcher matches.
Improves the fields type for generic components.
hooks.server and hooks.universal are explicit Vite build inputs so assets imported by hook files are correctly discovered.
Preload links are updated if their href changes.
Avoids overriding Vite's default base when running Vitest 4.
Ensures URL-decoded pathnames are not mistaken for rerouted requests.
Supports the URLSearchParams.has(name, value) overload.
Instrumentation is supported when running vite preview.
Avoids a false-positive Vite config overridden warning when using Vitest 4.
Shared memory is correctly handled when decoding binary form data.
The instrumentation file import is correctly posixified on Windows.
Fixes a TypeError when calling response.clone() in page load.
Suppresses state_referenced_locally warnings in .svelte-kit/generated/root.svelte.
Hash-based apps can now be hosted from files other than index.html.
Root-level issues can now be accessed in schema-less forms.
Multiple server-timing headers are now allowed.
Improves the accuracy of the output types.
Client and universal hooks are treated as entrypoints when detecting illegal server imports.
Prevents type errors when the optional dependency is not installed.
Corrects
.setand.refreshbehavior in commands.A route no longer uses a fork belonging to an unrelated route.
Preserves
thiswhen invoking the validator.Issues are cleared when validation passes.
In dev, SvelteKit waits an extra microtask before calling $_init_$.
SvelteKit discards the existing preload fork before creating a new one.
The prerender cache now works, including in development.
The promise implementation now properly allows chaining.
Fixes the callback not running after hydration when experimental async is enabled.
Exposes issue.path in .allIssues().
Includes the hash when resolve is used with hash routing enabled.
Calls the Snapshot restore method after reload when experimental async is enabled.
The DOM is updated before navigate callbacks run.
Navigation now awaits settled instead of tick.
Avoids hanging when error() is used while streaming promises from a server load function.
Fixes the type for recursive or unknown schemas.
Updates the overload so the invalid type is set to the schema input type.
Fixes streamed promises failing to resolve when another load function returns a fast-resolving promise.
read can now be used at the top level of remote function files.
Remote files generation is more robust.
Resolves remote module syntax errors involving trailing expressions.
The fail method and ActionFailure type have been adjusted.
Invalid resources are reset after a successful invalidation.
Optional parameters are prerendered as empty when entries contains '*'.
Route config is resolved correctly.