chore(deps): update dependency @sveltejs/kit to v3 [security] #7

Open
renovate-bot wants to merge 1 commits from renovate/npm-sveltejs-kit-vulnerability into main
pull from: renovate/npm-sveltejs-kit-vulnerability
Collaborator

This PR contains the following updates:

Package Change Age Confidence
@sveltejs/kit (source) ^2.49.1 → ^3.0.0 age confidence

@​sveltejs/kit has memory amplification DoS vulnerability in Remote Functions binary form deserializer (application/x-sveltekit-formdata)

CVE-2026-22803 / GHSA-j2f3-wq62-6q46

More information

Details

Summary

The experimental form remote function uses a binary data format containing a representation of submitted form data. A specially-crafted payload can cause the server to allocate a large amount of memory, causing DoS via memory exhaustion.

Details

When a form is submitted to a remote function endpoint, the SvelteKit client encodes the data using a custom format, and POSTs it to the endpoint as a request with an application/x-sveltekit-formdata content type.

The first few bytes of the request body encode the length of the data. SvelteKit will attempt to read the request body up until the specified offset, but if the body is not yet available then an array buffer of that size will be created eagerly to accommodate it as it arrives.

An attacker can force this code path by sending a small payload that specifies a large data length, then stalling the connection. The resulting array buffer will be held in memory, potentially causing memory exhaustion.

Impact
  • Vulnerability type: Availability / memory exhaustion (memory amplification).
  • Who is impacted: SvelteKit apps with experimental.remoteFunctions enabled, and that expose a reachable Remote Form endpoint.
  • Attack: an unauthenticated attacker can repeatedly open connections, send only the 8-byte header/prefix (with large data_length), and stall the body to hold large allocations, exhausting memory.

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering

CVE-2025-67647 / GHSA-j62c-4x62-9r35

More information

Details

Summary

Versions of SvelteKit are vulnerable to a server side request forgery (SSRF) and denial of service (DoS) under certain conditions.

Details

Affected versions from 2.44.0 onwards are vulnerable to DoS if:

  • your app has at least one prerendered route (export const prerender = true)

Affected versions from 2.19.0 onwards are vulnerable to DoS and SSRF if:

  • your app has at least one prerendered route (export const prerender = true)
  • AND you are using adapter-node without a configured ORIGIN environment variable, and you are not using a reverse proxy that implements Host header validation
Impact

The DoS causes the running server process to end.

The SSRF allows access to internal services that can be reached without authentication when fetched from SvelteKit's server runtime.

It is also possible to obtain an SXSS via cache poisoning, by forcing a potential CDN to cache an XSS returned by the attacker's server (the latter being able to specify the cache-control of their choice).

Credits

Severity

  • CVSS Score: 8.4 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:L/SI:L/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


CPU exhaustion in SvelteKit remote form deserialization (experimental only)

CVE-2026-82261 / GHSA-88qp-p4qg-rqm6

More information

Details

Versions of @sveltejs/kit prior to 2.52.2 with remote functions enabled are vulnerable to CPU exhaustion. Malformed form data can cause the server to become unresponsive while processing a request, resulting in denial of service.

Only applications using both experimental.remoteFunctions and form are vulnerable.

Severity

  • CVSS Score: 6.9 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Memory exhaustion in SvelteKit remote form deserialization (experimental only)

CVE-2026-82260 / GHSA-vrhm-gvg7-fpcf

More information

Details

Versions of @sveltejs/kit prior to 2.52.2 with remote functions enabled can be vulnerable to memory exhaustion. Malformed form data can cause the server process to crash due to excessive memory allocation, resulting in denial of service.

Only applications using both experimental.remoteFunctions and form are vulnerable.

Severity

  • CVSS Score: 4.6 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


SvelteKit has deserialization expansion in unvalidated form remote function leading to Denial of Service (experimental only)

CVE-2026-82259 / GHSA-fpg4-jhqr-589c

More information

Details

Some relatively small inputs can cause very large files arrays in form handlers. If the SvelteKit application code doesn't check files.length or individual files' sizes and performs expensive processing with them, it can result in Denial of Service.

Only users with experimental.remoteFunctions: true who are using the form function and are processing the files array without validation are vulnerable.

Severity

  • CVSS Score: 1.7 / 10 (Low)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


@​sveltejs/adapter-node has a BODY_SIZE_LIMIT bypass

CVE-2026-40073 / GHSA-2crg-3p73-43xp

More information

Details

Under certain circumstances, requests could bypass the BODY_SIZE_LIMIT on SvelteKit applications running with adapter-node. This bypass does not affect body size limits at other layers of the application stack, so limits enforced in the WAF, gateway, or at the platform level are unaffected.

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


@​sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service

CVE-2026-40074 / GHSA-3f6h-2hrp-w5wx

More information

Details

redirect, when called from inside the handle server hook with a location parameter containing characters that are invalid in a HTTP header, will cause an unhandled TypeError. This could result in DoS on some platforms, especially if the location passed to redirect contains unsanitized user input.

Severity

  • CVSS Score: 6.3 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


@​sveltejs/kit: query.batch cross-talk

CVE-2026-82258 / GHSA-hgv7-v322-mmgr

More information

Details

query.batch() could, under very rare and specific timings, cause concurrent requests from different users to merge and resolve under single request context, enabling cross-user data disclosure.

Severity

  • CVSS Score: 5.9 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


SvelteKit: Prototype pollution in file input deletion path in remote-function forms

CVE-2026-82257 / GHSA-866w-xmhq-wj7x

More information

Details

If you use remote form functions, have an input field of type file, and accept arbitrary user-controlled path names for the field, then you are vulnerable to a prototype pollution attack where the attacker can remove e.g. methods on the prototype.

Severity

  • CVSS Score: 4.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


SvelteKit: Big remote form function payloads can cause Node process to crash

CVE-2026-82256 / GHSA-wqjv-9729-c5q2

More information

Details

Big remote form function payloads can cause the Node process to crash. Doing this repeatedly can cause DoS.

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header

CVE-2026-66062 / GHSA-29g2-3rmr-qm68

More information

Details

Impact

SvelteKit is vulnerable to remote CPU-exhaustion DoS attacks via specifically-crafted Accept headers. The impact is mitigated by default header length limits on most platforms, but in the case of raised or absent limits a denial of service is possible.

Patches

The vulnerability is patched in @sveltejs/kit version 2.70.2.

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


SvelteKit : XSS via untrusted cache-control header in prerendered page

CVE-2026-114061 / GHSA-27mw-82g8-phjj

More information

Details

Impact

Applications that prerender pages and use setHeaders to set a cache-control header from an untrusted source are vulnerable to cross-site scripting (XSS).

SvelteKit inserts the header value into a <meta http-equiv="cache-control"> tag without escaping it. An attacker who can influence this value at prerender time can break out of the content attribute and inject HTML or JavaScript into the generated page. The injected code can then execute when users visit the page.

Patches

The fix escapes the header value before inserting it into the generated HTML. Upgrade to @sveltejs/kit version 3.0.0 or later.

Workarounds

Avoid forwarding untrusted cache-control header values with setHeaders on prerendered pages. Use a fixed, trusted cache policy instead.

Severity

  • CVSS Score: 0.0 / 10 (None)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


SvelteKit: URL redirection to untrusted site via enhanced form submission

CVE-2026-114060 / GHSA-pfhg-q3qv-9q6r

More information

Details

Impact

Applications using enhanced form actions (use:enhance) on routes that accept paths beginning with //, such as catch-all routes, may be vulnerable to an open redirect.

Patches

A fix has been prepared for @sveltejs/kit 3.0.0. Users should upgrade to 3.0.0 or later.

The fix preserves leading double slashes in action paths without generating protocol-relative URLs, restricts non-redirect action navigation to the current origin, and includes the origin when comparing action locations with the current page.

Workarounds

Reject requests whose parsed URL pathname begins with // before route resolution, for example in a reverse proxy or a SvelteKit handle hook.

Alternatively, disable navigation for non-redirect enhanced form results by supplying a custom submission callback:

<form method="POST" use:enhance={() => ({ update }) => update({ navigate: false })}>
  <!-- form fields -->
</form>

This applies non-redirect results to the current page instead of navigating to the action location.

Severity

  • CVSS Score: 2.1 / 10 (Low)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

sveltejs/kit (@​sveltejs/kit)

v3.0.0

Compare Source

Major Changes
  • breaking: move remote function types to $app/server (#​16740)

  • breaking: remove experimental.handleRenderingErrors flag (#​16265)

  • breaking: make getRequest and setResponse synchronous (#​16280)

  • breaking: TypeScript 6 is now the minimum required version (#​15930)

  • breaking: refresh all load functions/queries when clicking a link to the current URL (#​16572)

  • breaking: move remote function types to $app/server (#​16764)

  • breaking: upgrade to cookie v2. Cookie names must now contain only ASCII characters (#​13386)

  • breaking: require Node 22 or newer (#​12548)

  • major: error when a client-requested single-flight mutation isn't respected by the server, allow the server to explicitly ignore refreshes (#​16892)

  • breaking: remove the preloadStrategy option. modulepreload will always be used (#​15256)

  • breaking: default the cookie path option to '/' (#​15398)

  • breaking: remove @sveltejs/kit/node/polyfills (#​15430)

  • breaking: add config.kit.output.linkHeaderPreload to preload using the Link header (#​15939)

  • breaking: require @sveltejs/vite-plugin-svelte v7 (#​15371)

  • breaking: make page.url immutable on a type level (#​16256)

  • breaking: remove base, assets, and resolveRoute from $app/paths (#​15507)

  • breaking: remove createEntries from the Builder object passed to adapter functions (#​15509)

  • breaking: return no content for 204 responses (#​16200)

  • breaking: rename Pathname type to Path and Asset to AssetPath (#​16430)
    breaking: remove leading / from Path and AssetPath

  • breaking: handle's resolve is now typed to always return a Promise (#​16352)

  • breaking: remove Server constructor and SSRManifest from public types (#​16876)

  • breaking: require Svelte config options to be passed through the Vite plugin (#​16007)

  • breaking: form action responses now use the HTTP status code returned from fail (#​16200)

  • breaking: write tsconfig to node_modules/$app/tsconfig (#​16458)

  • breaking: move defineParams and associated types to @sveltejs/kit/params (#​16716)

  • breaking: remove the deprecated CSRF checkOrigin option in favor of trustedOrigins (#​15437)

  • breaking: the delta property now only exists for popstate navigation events (#​15522)

  • breaking: change form.error type from any to App.Error | undefined (#​16245)

  • breaking: remove deprecated pragma header in version polling for improved CORS support (#​15428)

  • breaking: goto now rejects when called with a URL that does not resolve to a route within the app, matching the existing behaviour for external URLs (#​16164)

  • breaking: run all errors through the handleError hook (#​16664)

  • breaking: require Svelte 5.56.4 or newer (#​15371)

  • breaking: error on event.url, event.params and event.route access inside queries (#​16452)

  • breaking: enhanced cross-page form actions now navigate to the action page on success and failure, matching native form behavior (#​16684)

  • breaking: delete $service-worker module (#​16450)

  • breaking: move defineEnvVars to @sveltejs/kit/env (#​16375)

  • breaking: nested server-only directories (#​15685)

  • feat: allow adapters to provide additional Vite plugins (#​16206)

  • breaking: replace the $lib alias with #lib and remove files.lib config. (#​16360)

  • breaking: remove #lib definition from paths; requires explicit module extensions as a result (#​16736)

  • chore: change error, isHttpError, redirect, and isRedirect to refer to public type instead of internal class (#​13036)

  • breaking: move hooks-related types to @sveltejs/kit/hooks (#​16737)

  • breaking: add 'error' result type to preloadData (#​12579)

  • breaking: detect new deployments on data, remote, and form action responses, tab focus, and visibility change, and default version.pollInterval to 1 hour (#​16496)

  • breaking: disallow cross-origin form submissions without a Content-Type header (#​16347)

  • breaking: Server-only directories (/server/ in the path) are now treated as server-only everywhere inside the project (except src/routes and the assets directory) (#​16360)

  • breaking: config exported from a universal route file takes precedence over a server one (#​16400)

  • breaking: require Vite 8. Provides new functionality even for existing Vite 8 users such as faster builds with Vite hook filters and more powerful SvelteKit adapters with the Vite environment API (#​15371)

  • breaking: remove data-sveltekit-* option 'off' in favour of false (#​15907)

  • breaking: move tracing out of the experimental namespace and remove the instrumentation flag (#​16260)

  • breaking: add kit.paths.origin config option, remove kit.prerender.origin and the adapter-node ORIGIN environment variable (#​16161)

  • breaking: move Page, ReadonlyURL and ReadonlyURLSearchParams from @sveltejs/kit to $app/state (#​16694)

  • breaking: remove $app/stores (#​15499)

  • breaking: add refreshAll and deprecate invalidateAll (#​16289)

  • breaking: reject query parameters beginning with x-sveltekit- (#​17125)

  • breaking: disallow *.remote.ts/js files unless experimental.remoteFunctions is enabled (#​16247)

  • breaking: replace the noScroll and keepFocus options of goto with a single reset option, and the data-sveltekit-noscroll and data-sveltekit-keepfocus attributes with data-sveltekit-reset (#​16558)

  • breaking: don't abort navigation when calling invalidate(All) during navigation (#​16188)

  • breaking: consistent special filename patterns (#​16382)

  • breaking: allow handleError to influence status code (#​16162)

  • breaking: delegate CORS handling to Vite for static directory requests during development (#​16357)

  • breaking: require vite@^8.0.12, the first Vite 8 release bundling stable rolldown 1.0.0 (#​16134)

  • breaking: only include routes with a +page or +server in RouteId (#​16580)

  • breaking: require Node 22.17 (#​16597)

  • breaking: deprecate error(status, {...}) in favour of error(status, message, {...}) (#​16540)

  • breaking: replace the builder.generateManifest with builder.generateServerInstance and builder.manifest (#​16875)

  • breaking: forbid external redirects by default (#​16198)

  • breaking: separate adapter Vite plugins into pre and post (#​16711)

  • breaking: remove param files in folder in favor of params.js/ts file (#​16189)

  • breaking: move env-related types to @sveltejs/kit/env (#​16739)

  • breaking: preloadCode now takes a route ID (e.g. /blog/[slug]) instead of a pathname. Route IDs are not prefixed with paths.base (#​16576)

  • breaking: move BeforeNavigate, OnNavigate, AfterNavigate, Navigation, NavigationTarget, NavigationType, GotoOptions and the Navigation* variant types from @sveltejs/kit to $app/navigation (#​16694)

  • breaking: move ActionResult and SubmitFunction from @sveltejs/kit to $app/forms (#​16694)

  • breaking: remove handleValidationError and pass remote function validation errors to handleError with kind: 'validation' (#​16672)

  • breaking: remove deprecated .run() method from live queries (#​16573)

Minor Changes
  • feat: allow hyphens in param and matcher names (#​16284)

  • feat: add $app/manifest module with immutable, assets, prerendered, and routes exports (#​16372)

  • feat: ignore files with + prefix if they contain test/spec/stories (#​16715)

  • feat: add ErrorProps to generated types (#​16272)

  • feat: support sourcemaps in production (#​16412)

  • feat: return the list of compressed files from builder.compress (#​16566)

  • feat: better response logging (#​16744)

  • feat: warn when tsconfig doesn't exclude service worker (#​16645)

  • feat: validate that all remote form fields were created with form.fields.foo.as(...) (#​16331)

  • feat: support function validators for environment variables (#​16402)

  • feat: use type: 'module' for service worker registrations (#​16169)

  • feat: allow adapters to receive the Svelte config as a function argument when adding Vite plugins (#​16986)

  • feat: add shallow routing to goto and deprecate pushState and replaceState (#​16449)

  • feat: abort request.signal when the response closes prematurely, via a new response option for getRequest (#​16793)

  • feat: make $app/paths importable in service workers (#​16441)

  • feat: pass the project-relative source filename to the preload filter for fonts (#​16443)

  • feat: preserve page state set through goto(..., { state, persistState: true }) across reloads (#​16449)

  • feat: reinstate $env/static/private, $env/dynamic/private, $env/static/public, $env/dynamic/public and $app/environment as deprecated aliases for $app/env/private $app/env/public and $app/env (#​16334)

  • feat: add page and endpoint booleans to $app/manifest's routes, and export a ManifestRoute type (#​16594)

  • feat: $app/service-worker module (#​16458)

  • feat: resolve paths using the Vite config root option instead of process.cwd() to better support monorepo configurations such as Vitest workspaces (#​15469)

  • feat: better error logging (#​16374)

  • feat: add PageRouteId and EndpointRouteId to $app/types (#​16594)

  • feat: better tsconfig validation (#​16458)

  • feat: add dirty() property to form fields (#​16208)

  • feat: support the QUERY HTTP method in +server.js (#​16782)

  • feat: allow adapters to override getRequest and setResponse during vite dev and vite preview (#​16753)

  • chore: deprecate Response helpers in favor of platform-provided alternatives (#​15448)

  • feat: add cookies.parse method (#​16203)

  • chore: deprecate export const snapshot in favour of the snapshot helper (#​16687)

  • feat: add snapshot helper to $app/navigation (#​16685)

  • feat: support custom values in page.state via transport hook (#​16662)

  • fix: default cookies to secure to false during development (#​16462)

  • feat: warn when naively proxying requests that result in responses with a content-encoding header (#​16633)

  • feat: accept the checked state as a third argument to .as('radio', ...) and .as('checkbox', ...) so that these inputs reset to it after a submission (#​16926)

  • feat: add an applyReroute helper for adapters that support split serverless function deployments (#​16665)

Patch Changes
  • fix: prevent scheme-like path segments from causing off-site trailing-slash redirects (#​17294)

  • chore: share the action error result between form actions and remote forms (#​16835)

  • fix: persist global app state across module graph reloads (#​16663)

  • fix: generate valid Path types for routes with optional or rest params, several params in one segment, or escape sequences (#​16577)

  • fix: coerce values typed into remote form fields, and only apply the default given to .as() until the field is edited (#​16939)

  • fix: blur focused SVG elements before the DOM update on navigation (#​16983)

  • fix: support bigint params in server-side route resolution (#​17130)

  • chore: build streamed responses from async generators (#​16847)

  • fix: generate types when dev server starts (#​17034)

  • fix: allow undefined values to be passed to form field .as(...) where applicable (#​15681)

  • fix: respect paths.relative during development for client files (#​17053)

  • fix: validate prerender concurrency (#​17145)

  • chore: deprecate builder.rimraf and builder.mkdirp in favour of node:fs methods (#​16610)

  • fix: manipulate stack trace for errors that happen while generating prerender inputs (#​17113)

  • fix: don't treat callable standard schemas as function param matchers (#​16403)

  • fix: prevent non-redirect enhanced form results from navigating to another origin (#​17293)

  • fix: clarify circular imports from src/env (#​17014)

  • fix: keep memory flat when precompressing many files (#​16993)

  • fix: render remote form actions while prerendering (#​17139)

  • fix: ignore Vitest browser loader HTML transforms (#​17092)

  • fix: prevent failed link preloads from causing unhandled promise rejections in production (#​17181)

  • fix: resolve generated rootDirs from the project root (#​17242)

  • fix: generate route resolution modules as siblings of .html pages (#​16674)

  • perf: parse large streamed frames in linear time (#​16489)

  • fix: keep at most one pending body read at a time when deserializing binary forms (#​16783)

  • fix: escape cache-control headers in prerendered HTML (#​17293)

  • fix: decode all numeric character references, including above ffff, when crawling prerendered pages (#​16611)

  • fix: enforce request body size limits when Content-Type is absent (#​17127)

  • fix: include queries refreshed from within another query in the serialized response (#​16461)

  • fix: reject malformed streamed data encoding (#​16423)

  • perf: cache the default cookie header parse and avoid allocations in cookies.get (#​16341)

  • fix: exclude deleted cookies from cookies.getAll() so it stays consistent with cookies.get() (#​16297)

  • fix: hide stack traces for internal errors like 404s (#​16411)

  • chore: deduplicate repeated CSP directive handling (#​16498)

  • fix: render the nearest error page when a form submission receives a non-ActionResult error response (#​16308)

  • chore: bump mrmime to 2.0.1 (#​16745)

  • fix: correctly implement Vite plugin hook filters (#​16760)

  • fix: ignore nested outDir files outside generated (#​17150)

  • fix: defer query.refresh() in server commands until after the command body completes (#​16225)

  • fix: drain unconsumed request bodies so keep-alive connections don't hang (#​16170)

  • fix: keep history.scrollRestoration set to manual when leaving the page, so a document restored from the back/forward cache does not fall back to browser scroll restoration (#​17244)

  • fix: resolve service worker and tsconfig.json based on Vite root setting (#​16229)

  • fix: rebuild the dev manifest when route files disappear during an incremental update (#​16643)

  • breaking: populate env vars before instrumentation.server.js is evaluated and update the adapter instrumentation API (#​16303)

  • fix: only print prerender progress newline when necessary (#​16766)

  • perf: match only unpaired surrogates when escaping HTML (#​16407)

  • fix: treat data: protocol URLs as external for redirect (#​16392)

  • chore: deduplicate request hashing for serialized fetch responses (#​16499)

  • fix: don't treat Object.prototype members as param matchers during validation (#​16612)

  • fix: generate a never Path type when there are no routes (#​17228)

  • fix: follow HTTP redirects from authentication proxies when enhancing form submissions (#​17106)

  • fix: don't report empty environment variables as missing (#​16401)

  • chore: generate the env modules in a single pass (#​16833)

  • fix: externalize @opentelemetry/api to prevent bundler chunk colocation between instrumentation.server.js and application code (#​16302)

  • fix: support form fields named after Object prototype properties (#​17136)

  • fix: exclude routes without a page or endpoint from routes in $app/manifest, and remove directories with no route files from LayoutParams (#​16588)

  • fix: record a history traversal before resolving its route (#​16959)

  • fix: avoid Vite dev server reload on initial page request (#​16553)

  • fix: don't set a null accept-language header on internal fetch sub-requests when the incoming request has none (#​16527)

  • fix: reuse SSR-cached fetch responses during hydration when a cross-origin URL is not in canonical form (#​16339)

  • fix: correctly detect prerendered paths in server fetch when paths.base is set (#​16525)

  • chore: say what a valid remote form field name looks like when rejecting one (#​16938)

  • chore: warn when remote form fields are enumerated in dev (#​16940)

  • fix: populate $app/env/* dynamic variables in contexts that don't run the dev server, such as vite-node (#​16223)

  • fix: resolve client manifest imports against the Vite root (#​16803)

  • fix: properly handle Date objects in form.fields.set (#​16168)

  • fix: return 404 for form actions and remote functions whose name is an Object.prototype member (#​16072)

  • fix: no longer throw "An impossible situation occurred" when a server-only module is imported by both server and client code (#​16257)

  • fix: respect Vite default log level (#​16767)

  • fix: set the focus starting point without a fragment navigation, which leaked a hashchange to app listeners (#​16992)

  • fix: keep a form.for instance registered when the derived that holds it disconnects and reconnects (#​17230)

  • fix: make cookie options optional (#​17201)

  • fix: don't duplicate remote modules in the generated manifest (#​16532)

  • fix: evict hashed fetch cache entries after mutations (#​17146)

  • chore: reuse base64 and text decoding helpers (#​16608)

  • fix: explain the removal of $lib and $service-worker when their imports fail to resolve (#​16635)

  • fix: tweak response logging for remote requests (#​16865)

  • fix: correctly massage stack traces with async frames (#​16633)

  • fix: mark RequestEvent properties as readonly (#​16661)

  • fix: render the nearest +error.svelte at the depth it occupies when an error is thrown during rendering (#​16526)

  • fix: support coordinate objects from image inputs in remote forms (#​16944)

  • fix: revert route metadata caching to regenerate missing root-route types during sync (#​17281)

  • chore: bump @sveltejs/acorn-typescript to 1.0.12 (#​16745)

  • fix: update match parameter type (#​16636)

  • fix: generate sourcemaps for remote modules (#​16440)

  • fix: keep hash-router links on the current document when resolving paths (#​17107)

  • fix: avoid empty getElementById() call on hash routing navigation (#​16448)

  • fix: resolve every module entry point using kit.moduleExtensions (#​17043)

  • fix: serve .ico files with image/x-icon Content-Type (#​16234)

  • chore: bump magic-string to 1.1.0 (#​16745)

  • fix: exclude inlined files from the page's $app/manifest immutable list (#​16531)

  • fix: discard invalidation results when a navigation completes while they load (#​16852)

  • fix: avoid client-side code being bundled by Cloudflare Wrangler (#​16364)

  • fix: wait for the redirect navigation before remote form submissions resolve (#​16765)

  • fix: record the mime types of prerendered paths in the server manifest (#​16564)

  • fix: only require the svelte-trusted-html trusted-types policy when client-side code is shipped, allowing builds where all pages have csr: false (#​16928)

  • chore: clarify which hooks run during server route resolution (#​16397)

  • fix: yield to allow prerender updates to be visible (#​16748)

  • fix: make paths.origin type looser (#​16215)

  • chore: bump devalue to 5.9.0 (#​16745)

  • feat: send periodic keep-alive SSE comments from query.live to prevent idle-timeout errors (#​16063)

  • fix: send an explicit SSE Accept header for query.live requests to avoid buffering by proxies (#​17104)

  • fix: don't touch the query.live stream controller after teardown, and make response cancellation observable via the generator's request.signal (#​16790)

  • fix: print builder.log.warn messages to stderr, as documented (#​17253)

  • fix: warn if hook files are spelled as "hook" instead of "hooks" (#​16483)

  • fix: only suggest a + prefix for route filenames that are valid with the file's extension (#​16837)

  • chore: only generate each route's resolution module once when prerendering (#​16576)

  • fix: don't throw from remote form validate() if the form unmounts while it is waiting for a tick (#​16720)

  • chore: share navigation completion between navigate and shallow routing (#​16838)

  • fix: route dev-server response logging through Vite's logger so it respects logLevel and customLogger (#​16858)

  • fix: skip clean fields when programmatically validating forms (#​16208)

  • perf: skip import graph collection outside client environments (#​16383)

  • breaking: experimental remote form validate({ includeUntouched }) option is now all (#​16208)

  • fix: rerun load functions when the number of values of a tracked search parameter changes (#​16495)

  • chore: read build-time config from defines on the server instead of carrying it in options (#​16873)

  • fix: avoid client build warning about externalising node:async_hooks (#​16244)

  • chore: stop externalizing cookie dependency during build (#​16936)

  • fix: reinstate $app/environment as an alias for $app/env, in case dependencies import it (#​15964)

  • fix: preserve paths.base when vite preview redirects a prerendered page to the correct trailing slash (#​16836)

  • fix: error when reading non-serialized set-cookie headers via getSetCookie in load (#​16614)

  • fix: walk and copy directories without a stat per file (#​16995)

  • perf: avoid quadratic remote form issue merging (#​16493)

  • fix: widen remote form fields for union schemas and string enums (#​16937)

  • chore: deprecate the alias option (#​16470)

  • fix: don't attempt to serialize fetch responses when the request body is not a string or TypedArray (#​16501)

  • fix: respond to HEAD requests without a body (#​17036)

  • chore: replace deprecated Vite dev server APIs (#​16961)

  • chore: iterate the query cache maps through a single generator (#​16846)

  • fix: handle rejected streamed server data after delayed loads (#​16268)

  • fix: don't crash on interactions inside a form whose controls shadow nodeName (#​16769)

  • fix: don't replay a preloaded redirect when a later hop of the navigation returns to the route (#​16955)

  • fix: prevent path traversal when previewing prerendered pages and data on Windows (#​17293)

  • fix: settle a query's pending request in place when its value arrives through set() (#​16958)

  • fix: render pages over sibling endpoints without GET or HEAD handlers (#​16125)

  • fix: exit build workers after completing their tasks while allowing synchronous exit handlers to run (#​17135)

  • fix: prevent infinite loops when server-side queries refresh each other in a cycle during the single-flight drain (#​16461)

  • fix: populate version in service workers (#​16434)

  • feat: add field.touched() helper to remote form fields (#​14692)

  • fix: respect paths.relative for server-side route resolution imports (#​17056)

  • fix: read the error status of App.Error in the prerender and query.live remote functions (#​16529)

  • fix: resolve remote modules as external during dev prebundling so packages can re-export remote functions (#​16426)

  • chore: standardize remote-function and shared form diagnostics (#​17277)

  • fix: avoid Promise.withResolvers in client remote functions for older browser support (#​16777)

  • fix: propagate errors from prerendered remote responses instead of re-running the function (#​16535)

  • chore: remove unused helpers (#​16834)

  • fix: allow reserved words (e.g. delete, class) as remote function export names (#​16264)

  • fix: reset failed <svelte:boundary> on client navigation so a stale +error.svelte is torn down (#​16296)

  • fix: clear navigating when a shallow popstate aborts an in-flight navigation (#​17118)

  • fix: expand [x+nn] and [u+nnnn] escape sequences when resolving a route id to a pathname (#​16570)

  • fix: respect user-set server.cors and preview.cors config instead of overriding them (#​16924)

  • fix: respect the status returned from handleError on the fallback error page served to error-page sub-requests (#​16528)

  • fix: restore scroll position after back-forward cache returns (#​17255)

  • fix: warn if there are plugins using transformIndexHtml (#​16394)

  • fix: refetch route-tracking server data when navigating away from an error page (#​16381)

  • fix: allow routes to contain [ and ] via the [x+5b] and [x+5d] escapes (#​16569)

  • chore: use Response.json instead of the deprecated json helper in runtime responses (#​16804)

  • fix: recommend safe include and exclude patterns in tsconfig warning (#​17102)

  • chore: remove dependency on kleur (#​12548)

  • fix: prevent server-side self-fetch fallbacks from following redirects (#​17293)

  • fix: serialize query(...).set(...)/query(...).refresh() values into the rendered HTML when called from within a query during SSR (#​16461)

  • chore: configure the server runtime in one place, deprecate Server in favour of the server object written by builder.generateServerInstance (#​17000)

  • chore: derive content-length from fixed response bodies in setResponse (#​16794)

  • fix: correctly read zero-length files at the end of a binary form payload (#​16783)

  • fix: reject fallback handlers on prerendered endpoints (#​17140)

  • fix: don't destroy partial-line app output with the prerender progress line (#​16750)

  • chore: remove virtual modules (#​16813)

  • fix: surface prerender errors during development (#​16507)

  • chore: bump cookie to 2.0.1 (#​16745)

  • fix: detect $app/server and $app/env/private client imports when SvelteKit is installed inside the project root (#​16648)

  • chore: read options from a single module instead of passing it through the server runtime (#​16871)

  • fix: wait for the redirect navigation before prerendered remote functions resolve (#​16765)

  • fix: sort directory entries when building the route manifest so node indices are deterministic across runtimes (e.g. Bun and Node) (#​16074)

  • fix: skip unnecessary version.json checks if updated.current is already true (#​16518)

  • fix: allow generation of $app/tsconfig without TypeScript installed (#​16534)

  • chore: remove dependency on set-cookie-parser (#​15384)

  • chore: share the nearest error page walk between client and server (#​16774)

  • fix: fall back to the page's form actions when a sibling endpoint has no POST handler (#​16349)

  • fix: record client output extensions in builder.mimeTypes (#​16908)

  • perf: use a Set to check element ids when validating fragment links during prerendering (#​16494)

  • fix: preserve shared client chunk hashes when the app version changes (#​16324)

  • fix: include hoisted packages in Vite's server.fs.allow list (#​15998)

  • chore: standardize app template diagnostics (#​17250)

  • chore: standardize Vite plugin, build, prerender and adapter diagnostics (#​17253)

  • chore: standardize client navigation, preload, snapshot and enhancement diagnostics (#​17276)

  • chore: standardize configuration, environment and tsconfig diagnostics (#​17251)

  • chore: standardize public API, $app/* and deprecated module diagnostics (#​17265)

  • chore: standardize route discovery, parameter and route export diagnostics (#​17252)

  • chore: standardize server request, hook and page diagnostics (#​17275)

  • fix: preserve metadata on streamed page responses (#​16935)

  • fix: only include _app/immutable files in $app/manifest's immutable in the service worker (#​16531)

  • chore: remove the dead SSRState.fallback field and name the server state fork semantics (#​16598)

  • fix: atomically replace route metadata during sync (#​17096)

  • fix: import resolved peer dependencies as file URLs so project-relative resolution works on Windows (#​16618)

  • fix: preserve sourcemap source paths when adapters copy build output (#​17082)

  • fix: log errors caught by the Vite dev server handler (#​16550)

  • chore: bump acorn to 8.18.0 (#​16745)

  • fix: resolve root per instance of the SvelteKit Vite plugin (#​16513)

  • fix: report tsconfig parse errors on Windows (#​17251)

  • fix: return root layout server data for error-page data requests to non-existent routes (#​16376)

  • fix: prevent prerender crawler from hanging on unterminated unquoted attributes (#​17141)

  • fix: prevent await_reactivity_loss warning and state_unsafe_mutation error when the new version detector runs after an await (#​16915)

  • fix: redact nested and typed underscore-prefixed remote form fields after invalid submissions (#​17128)

  • fix: ignore path casing differences when warning about overridden Vite config on Windows (#​16545)

  • fix: return a lightweight 404 instead of rendering the error page for subresource requests (#​16463)

  • fix: preserve stripped path prefixes by making trailing-slash redirects relative (#​16431)

  • fix: preserve the current URL search parameters when submitting a remote form without JavaScript (#​16373)

  • fix: only treat files in node_modules as remote modules when the package has a peer dependency on @​sveltejs/kit (#​16492)

  • fix: treeshake prerendered remote functions in the right chunks (#​16533)

  • fix: correctly serialize Node.js buffers returned from remote functions during SSR (#​17158)

  • fix: preserve errors with read-only stack properties (#​17180)

  • chore: deduplicate type-stripping logic in tweak_types (#​16454)

  • fix: avoid infinite loop when building with --watch flag (#​16632)

  • chore: unify the walk and list_files filesystem helpers (#​16784)

  • fix: error during development if the adapter does not support instrumentation and it exists (#​16548)

  • fix: use mouseover+mousemove for preloading to reduce events (#​16325)

  • fix: reject invalid binary form file metadata (#​17149)

  • fix: error on server-only imports reachable from hooks or service worker files outside the project root (#​16912)

  • fix: write generated tsconfig to node_modules/$app/tsconfig.json so that tools with simplified tsconfig resolution can find it (#​16589)

  • chore: emit env modules to disk (#​16807)

  • fix: more informative error message when running a command inside a query or prerender function (#​17293)

  • fix: adjust error overload for optional App.Error parameters (#​16725)

  • fix: prerender and crawl pages whose content-type header carries a charset parameter (#​16567)

  • fix: stream promised read results lazily instead of eagerly buffering them (#​16622)

  • fix: copy worker files emitted by the server build to the client output directory (#​16929)

  • chore: parse page options and remote modules with Vite's parseSync instead of acorn (#​16947)

  • fix: correctly decode [u+nnnn] escape sequences above ffff (#​16611)

  • fix: Reject all pending query promises when a query fails before resolving with a value for the first time (#​16890)

v2.70.3

Compare Source

Patch Changes
  • fix: avoid eagerly reading $app/state dependencies during module initialization (b61018d)

v2.70.2

Compare Source

Patch Changes
  • fix: prevent quadratic backtracking in Accept header content negotiation (82712fc)

v2.70.1

Compare Source

Patch Changes
  • docs: update links to hooks documentation (#​16417)

v2.70.0

Compare Source

Minor Changes
  • feat: move defineEnvVars to @sveltejs/kit/env (#​16378)
Patch Changes
  • fix: enable CSRF protection in builds with a non-production NODE_ENV value (#​16313)

v2.69.3

Compare Source

Patch Changes
  • fix: detect destructured load and actions exports during type generation (#​16329)

  • fix: ensure CSS URL references are absolute when paths.relative is false (#​16315)

  • fix: align MAX_COOKIE_SIZE with RFC 6265bis (#​16322)

v2.69.2

Compare Source

Patch Changes
  • fix: set define values on globalThis when running Vitest (#​16246)

v2.69.1

Compare Source

Patch Changes
  • fix: prevent prototype pollution when deleting file inputs (#​16218)

  • fix: prevent unhandled promise rejection (#​16219)

v2.69.0

Compare Source

Minor Changes
  • feat: expose submitted property of remote forms (#​14811)
Patch Changes
  • fix: clear issues and touched states on form reset (#​16163)

  • fix: return undefined from fields.branch.issues() when only fields.branch.leaf has issues (#​16187)

v2.68.0

Compare Source

Minor Changes
  • feat: expose RemoteFormEnhanceInstance and RemoteFormEnhanceCallback types (#​15816)

  • feat: set value of submit fields when form is submitted (#​15979)

Patch Changes
  • fix: skip native_navigation when __data.json returns 404 on a static fallback page (#​16135)

  • fix: ignore third-party monkeypatches in pushState/replaceState warning detection (#​15267)

  • fix: snapshot form fields on read (#​16150)

  • fix: strip field prefix before erroring on duplicates (#​16151)

  • fix: call reset function via prototype (#​16138)

  • chore: fix navigation type hover info (#​16147)

v2.67.0

Compare Source

Minor Changes
  • feat: add prerender.handleInvalidUrl option for invalid URLs discovered while crawling (#​16088)
Patch Changes
  • fix: dedupe remote data (#​15991)

  • fix: skip client build if all routes have CSR disabled (#​15936)

v2.66.0

Compare Source

Minor Changes
  • feat: precompress prerendered .md and .mdx files (#​15893)

  • feat: warn the user when they forget to make boolean inputs optional in their form schemas (#​15804)

Patch Changes
  • fix: blur active element before component update during navigation so that blur/focusout handlers fire while old component data is still valid (#​15452)

  • fix: ensure base is available from $service-worker during development (#​15882)

  • fix: use correct relative asset paths when rendering an error page for a missing __data.json request (#​15884)

  • fix: preserve active for await consumers across query.live reconnects (#​16022)

  • fix: settle query.live reconnect promise on all exit paths, preventing invalidateAll() from deadlocking when a live query is offline or interrupted (#​16022)

  • fix: preserve last value when a query.live stream completes without yielding on reconnect (#​16022)

  • fix: remove types: ['node'] from generated tsconfig to avoid errors when @types/node is not installed (#​15709)

  • fix: prefer pages over endpoints when prerendering (#​16076)

  • fix: restore snapshots after afterNavigate callbacks (#​16066)

  • fix: support ws:/wss: and trusted-types-eval for CSP sources (#​15938)

  • fix: omit empty file inputs from remote form data (#​15898)

  • fix: fail early if a route with +page and +server is marked as prerenderable (#​16075)

  • fix: wait a tick before resetting forms (#​15805)

  • fix: preflight schemas apply correctly when chained before for (#​15863)

  • fix: blank page in SPA mode when root layout load() throws (#​15798)

  • fix: pass all unknown options from the sveltekit Vite plugin through to vite-plugin-svelte (#​16010)

v2.65.2

Compare Source

Patch Changes
  • fix: throw an error when prerendering a root +server.js that returns a non-HTML response (#​15994)

  • fix: decode base64-serialized fetch bodies before caching them for client-side replay (#​16034)

  • fix: correctly access explicit dynamic public environment variables from prerendered pages and service workers (#​16024)

  • fix: allow preloadCode to be called during initial page load (#​16028)

  • fix: send cache-control: private, no-store on remote function responses so personalized query results can never be cached by shared caches (#​16020)

  • fix: preserve the HTTP status and error body when a remote function request fails in transport (e.g. a 401/403 from a handle hook), instead of reporting a generic 500 (#​16021)

  • fix: avoid loading universal nodes during build analysis when the app uses a hash router (#​16042)

  • fix: correctly serve client entry during development when using the pnpm global virtual store (#​16045)

  • fix: normalize path separators when comparing config (#​16037)

  • fix: ensure building resolves correctly to allow avoiding build-time explicit environment variable validation (#​16058)

  • fix: prevent unhandled promise rejections when remote function failures are consumed via current/error instead of await (#​16018)

v2.65.1

Compare Source

Patch Changes
  • fix: avoid importing the Vite development client code into builds with a non-standard NODE_ENV (#​16023)

  • fix: don't emit the unused bundle and stylesheet files when using bundleStrategy: 'inline' (#​16025)

  • fix: reset queries before navigating when invalidateAll is set (#​16014)

  • fix: regression in loading assets for absolute path apps (#​16026)

v2.65.0

Compare Source

Minor Changes
  • feat: allow queries to refresh other queries (#​16012)
Patch Changes
  • fix: dedupe remote data (#​15991)

  • fix: skip client build if all routes have CSR disabled (#​15936)

v2.64.0

Compare Source

Minor Changes
  • feat: allow commands to receive File objects (#​15978)
Patch Changes
  • fix: avoid server components from being bundled if SSR is turned off for a route (#​15982)

v2.63.1

Compare Source

Patch Changes
  • fix: use SSE for query.live (#​15957)

  • fix: use forward slashes in the generated env.d.ts import path on Windows (#​15977)

  • fix: allow $app/environment with a warning when explicitEnvironmentVariables is enabled (#​15980)

  • fix: avoid importing Vite while validating explicit environment variables (#​15953)

  • docs: adjust the release version of explicit env vars (#​15968)

  • fix: ensure version is defined when importing from $app/env with explicit environment variables (#​15971)

v2.63.0

Compare Source

Minor Changes
Patch Changes
  • fix: remove check for svelte.config.js before running sync (#​15946)

  • fix: generate a placeholder tsconfig.json to squelch sync-time warnings (#​15948)

  • fix: allow use of $app/env/public in service workers (#​15950)

v2.62.0

Compare Source

Minor Changes
  • feat: support passing Svelte(Kit) config via Vite plugin (#​15944)
Patch Changes
  • fix: preserve multiple Set-Cookie headers on 304 responses (#​15902)

  • fix: preload for anchor elements that were just previously preloaded (#​15915)

  • fix: catch load function streaming errors on the client (#​15929)

  • fix: avoid generating the _app/env.js module if public dynamic environment variables are not used by the app (#​15940)

v2.61.1

Compare Source

Patch Changes
  • fix: regression where routes starting and ending with a route group are not matched correctly (#​15903)

v2.61.0

Compare Source

Minor Changes
  • breaking: the .run() method has been removed from remote queries on both the client and the server. Use await query() directly instead — it now works everywhere (#​15779)

  • feat: remote queries can now be awaited in any context (event handlers, module scope, async callbacks), not just inside reactive contexts. The cache is shared across reactive and non-reactive subscribers, so awaiting a query in an event handler will dedupe with components that have already subscribed to the same query. (#​15779)

  • feat: live query instances are now themselves async-iterable (#​15878)

  • feat: add programmatic submit method to form remote function instances (#​15657)

  • feat: pass form remote function instance into enhance callback (#​15657)

Patch Changes
  • fix: resolve the app payload without using process.env.NODE_ENV (#​15852)

  • fix: support exactOptionalPropertyTypes for optional route params (#​15825)

  • fix: correctly send true value to the server for 'submit' and 'hidden' form fields (#​15858)

  • fix: avoid build warnings about undefined universal hooks (#​15895)

  • fix: prefer default error page when failing to decode the URL pathname (#​15744)

  • fix: disable link prefetching on slow internet connections (#​15885)

  • fix: allow routes ending with optional parameters next to more specific routes (#​15861)

  • fix: remove reliance on Content-Length header in deserialize_binary_form, which caused failures when proxies (e.g. Vercel, Azure) strip the header and use chunked transfer encoding (#​15796)

v2.60.1

Compare Source

Patch Changes
  • chore: bump svelte and devalue (#​15836)

  • fix: prevent query.batch cross-talk (dadaefc)

v2.60.0

Compare Source

Minor Changes
  • feat: allow 'submit' and 'hidden' form fields to accept numbers and booleans (#​15802)

  • feat: warn on unread form remote function validation issues (#​15653)

Patch Changes
  • fix: abort navigation after async rendering if obsolete (#​15811)

  • fix: skip refreshing queries on full-page reload form submissions (#​15803)

v2.59.1

Compare Source

Patch Changes
  • fix: resolve paths to route files with the letter drive on Windows (#​15793)

v2.59.0

Compare Source

Minor Changes
  • feat: support query.batch in requested(...) (#​15751)

  • breaking: on the server, make the promise returned from refresh represent adding the refresh to the map, not the time it takes to run the remote function (#​15705)

  • feat: experimental query.live function (#​15705)

Patch Changes
  • fix: unwrap Promise in RemoteCommand output type (#​15771)

  • fix: empty call to .updates() on a command/form invocation means "don't update anything" (#​15705)

  • fix: form.fields.foo.as('checkbox', default_value) now works (#​15752)

  • fix: remote forms with default values defined by field.as('text', defaultValue) now correctly reset to the provided default values once submitted (#​15753)

  • fix: make sure queries always get started correctly (#​15705)

  • fix: allow plain functions as overrides in updates (#​15705)

v2.58.0

Compare Source

Minor Changes
  • breaking: require limit in requested (as originally intended) (#​15739)

  • feat: RemoteQueryFunction gains an optional third generic parameter Validated (defaulting to Input) that represents the argument type after schema validation/transformation (#​15739)

  • breaking: requested now yields { arg, query } entries instead of the validated argument (#​15739)

Patch Changes
  • fix: allow query().current, .error, .loading, and .ready to work in non-reactive contexts (#​15699)

  • fix: prevent deep_set crash on nullish nested values (#​15600)

  • fix: restore correct RemoteFormFields typing for nullable array fields (e.g. when a schema uses .default([])), so .as('checkbox') and friends work again (#​15723)

  • fix: don't warn about removed SSI comments in transformPageChunk (#​15695)

    Server-side include (SSI) directives like <!--#include virtual="..." --> are HTML comments that are replaced by servers such as nginx. Previously, removing them in transformPageChunk would trigger a false positive warning about breaking Svelte's hydration. Since SSI comments always start with <!--# and Svelte's hydration comments never do, they can be safely excluded from the check.

  • Change enhance function return type from void to MaybePromise. (#​15710)

  • fix: throw an error when resolve is called with an external URL (#​15733)

  • fix: avoid FOUC for CSR-only pages by loading styles and fonts before CSR starts (#​15718)

  • fix: reset form result on redirect (#​15724)

v2.57.1

Compare Source

Patch Changes
  • fix: better validation for redirect inputs (10d7b44)

  • fix: enforce BODY_SIZE_LIMIT on chunked requests (3202ed6)

  • fix: use default values as fallbacks (#​15680)

  • fix: relax form typings for union types (#​15687)

v2.57.0

Compare Source

Minor Changes
  • feat: return boolean from submit to indicate submission validity for enhanced form remote functions (#​15530)
Patch Changes
  • fix: use array type for select fields that accept multiple values (#​15591)

  • fix: silently 404 Chrome DevTools workspaces request in dev and preview (#​15656)

  • fix: config.kit.csp.directives['trusted-types'] requires 'svelte-trusted-html' (and 'sveltekit-trusted-url' when a service worker is automatically registered) if it is configured (#​15323)

  • fix: avoid inlineDynamicImports ignored with codeSplitting warning when using Vite 8 (#​15647)

  • fix: reimplement treeshaking non-dynamic prerendered remote functions (#​15447)

v2.56.1

Compare Source

Patch Changes

v2.56.0

Compare Source

Minor Changes
  • breaking: rework client-driven refreshes (#​15562)

  • breaking: stabilize remote function caching by sorting object keys (#​15570)

  • breaking: add run() method to queries, disallow awaiting queries outside render (#​15533)

  • feat: support TypeScript 6.0 (#​15595)

  • breaking: isolate command-triggered query refresh failures per-query (#​15562)

  • feat: use hydratable for remote function transport (#​15533)

  • feat: allow form fields to specify a default value (field.as(type, value)) (#​15577)

Patch Changes
  • fix: don't request new data when .refresh is called on a query with no cache entry (#​15533)

  • fix: allow using multiple remote functions within one async derived (#​15561)

  • fix: avoid false-positive overridden Vite base setting warning when setting a paths.base in svelte.config.js (#​15623)

  • fix: manage queries in their own $effect.root (#​15533)

  • fix: avoid inlineDynamicImports deprecation warning when building the service worker with Vite 8 (#​15550)

  • fix: correctly escape backticks when precomputing CSS (#​15593)

  • fix: discard obsolete forks before finishing navigation (#​15634)

  • chore: tighten up override implementation (#​15562)

  • fix: ensure the default Svelte 5 error.svelte file uses runes mode (#​15609)

  • fix: deduplicate same-cache-key batch calls during SSR (#​15533)

  • fix: decrement pending_count when form callback doesn't call submit() (#​15520)

v2.55.0

Compare Source

Minor Changes
  • feat: page and layout params with matchers are now type narrowed in $app/types, leading to better type safety when working with params in $app/types, $app/state, and hooks. (#​15502)

v2.54.0

Compare Source

Minor Changes
  • feat: allow error boundaries to catch errors on the server (#​15308)
Patch Changes
  • chore: upgrade devalue (#​15535)

  • fix: don't wait for remote functions that are not awaited in the template (#​15280)

  • feat: allow resolve() to accept pathnames with a search string and/or hash (#​15458)

  • chore: remove deprecation warnings for config.kit.files.* options when validating the Svelte config file (#​15482)

  • fix: handles form target attribute in remote form redirects (#​15457)

v2.53.4

Compare Source

Patch Changes
  • fix: avoid Vite warning about unknown codeSplitting option (#​15451)

v2.53.3

Compare Source

Patch Changes
  • fix: prevent overlapping file metadata in remote functions form (faba869)

v2.53.2

Compare Source

Patch Changes
  • fix: server-render nested form value sets (#​15378)

  • fix: use deep partial types for form remote functions .value() and .set(...) (#​14837)

  • fix: provide correct url info to remote functions (#​15418)

  • fix: allow optional types for remote query/command/prerender functions (#​15293)

  • fix: allow commands in more places (#​15288)

v2.53.1

Compare Source

Patch Changes
  • fix: address warning about inlineDynamicImports when using Vite 8 (#​15403)

v2.53.0

Compare Source

Minor Changes
Patch Changes
  • fix: remove event listeners on form attachment cleanup (#​15286)

  • fix: apply queries refreshed in a form remote function when a redirect is thrown (#​15362)

v2.52.2

Compare Source

Patch Changes
  • fix: validate form file information to prevent amplification attacks (3e607b3)

  • chore: upgrade devalue and svelte (#​15339)

  • fix: parse file offset table more strictly (f47c01b)

v2.52.0

Compare Source

Minor Changes
  • feat: match function to map a path back to a route id and params (#​14997)
Patch Changes
  • fix: respect scroll-margin when navigating to a url-supplied anchor (#​15246)

  • fix: resolve will narrow types to follow trailing slash page settings (#​15027)

v2.51.0

Compare Source

Minor Changes
  • feat: add scroll property to NavigationTarget in navigation callbacks (#​15248)

    Navigation callbacks (beforeNavigate, onNavigate, and afterNavigate) now include scroll position information via the scroll property on from and to targets:

    • from.scroll: The scroll position at the moment navigation was triggered
    • to.scroll: In beforeNavigate and onNavigate, this is populated for popstate navigations (back/forward) with the scroll position that will be restored, and null for other navigation types. In afterNavigate, this is always the final scroll position after navigation completed.

    This enables use cases like animating transitions based on the target scroll position when using browser back/forward navigation.

  • feat: hydratable's injected script now works with CSP (#​15048)

Patch Changes
  • fix: put preloads before styles (#​15232)

  • fix: suppress false-positive inner content warning when children prop is forwarded to a child component (#​15269)

  • fix: fetch not working when URL is same host but different than paths.base (#​15291)

  • fix: navigate to hash link when base element is present (#​15236)

  • fix: avoid triggering handleError when redirecting in a remote function (#​15222)

  • fix: include test directory in generated tsconfig.json alongside existing tests entry (#​15254)

  • fix: generate tsconfig.json using the value of kit.files.src (#​15253)

v2.50.2

Compare Source

Patch Changes
  • fix: ensure inlined CSS follows paths.assets and paths.relative settings (#​15153)

  • fix: emit script CSP nonces when unsafe-inline is present if strict-dynamic is also present (#​15221)

  • fix: re-export browser/dev from esm-env (#​15206)

  • fix: use validated args in batch resolver in both csr and ssr (#​15215)

  • fix: ensure CSS inlining includes components that are conditionally rendered (#​15153)

  • fix: only match rest params with matchers when the matcher matches (#​15216)

  • fix: properly handle percent-encoded anchors (e.g. <a href="#sparkles-%E2%9C%A8">) during prerendering. (#​15231)

v2.50.1

Compare Source

Patch Changes
  • fix: include hooks.server and hooks.universal as explicit Vite build inputs to ensure assets imported by hooks files are correctly discovered (#​15178)

  • fix: improves fields type for generic components (#​14974)

  • fix: preload links if href changes (#​15191)

v2.50.0

Compare Source

Minor Changes
  • breaking: remove buttonProps from experimental remote form functions; use e.g. <button {...myForm.fields.action.as('submit', 'register')}>Register</button> button instead (#​15144)

v2.49.5

Compare Source

Patch Changes
  • fix: avoid overriding Vite default base when running Vitest 4 (#​14866)

  • fix: ensure url decoded pathnames are not mistaken as rerouted requests (d9ae9b0)

  • fix: add length checks to remote forms (8ed8155)


Configuration

📅 Schedule: (in timezone America/Los_Angeles)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@sveltejs/kit](https://svelte.dev) ([source](https://github.com/sveltejs/kit/tree/HEAD/packages/kit)) | [`^2.49.1` → `^3.0.0`](https://renovatebot.com/diffs/npm/@sveltejs%2fkit/2.49.4/3.0.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@sveltejs%2fkit/3.0.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@sveltejs%2fkit/2.49.4/3.0.0?slim=true) | --- ### @&#8203;sveltejs/kit has memory amplification DoS vulnerability in Remote Functions binary form deserializer (application/x-sveltekit-formdata) [CVE-2026-22803](https://nvd.nist.gov/vuln/detail/CVE-2026-22803) / [GHSA-j2f3-wq62-6q46](https://github.com/advisories/GHSA-j2f3-wq62-6q46) <details> <summary>More information</summary> #### Details ##### Summary The experimental `form` remote function uses a binary data format containing a representation of submitted form data. A specially-crafted payload can cause the server to allocate a large amount of memory, causing DoS via memory exhaustion. ##### Details When a form is submitted to a remote function endpoint, the SvelteKit client encodes the data using a custom format, and POSTs it to the endpoint as a request with an `application/x-sveltekit-formdata` content type. The first few bytes of the request body encode the length of the data. SvelteKit will attempt to read the request body up until the specified offset, but if the body is not yet available then an array buffer of that size will be created eagerly to accommodate it as it arrives. An attacker can force this code path by sending a small payload that specifies a large data length, then stalling the connection. The resulting array buffer will be held in memory, potentially causing memory exhaustion. ##### Impact - Vulnerability type: Availability / memory exhaustion (memory amplification). - Who is impacted: SvelteKit apps with `experimental.remoteFunctions` enabled, and that expose a reachable Remote Form endpoint. - Attack: an unauthenticated attacker can repeatedly open connections, send only the 8-byte header/prefix (with large data_length), and stall the body to hold large allocations, exhausting memory. #### Severity - CVSS Score: 8.2 / 10 (High) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-j2f3-wq62-6q46](https://github.com/sveltejs/kit/security/advisories/GHSA-j2f3-wq62-6q46) - [https://nvd.nist.gov/vuln/detail/CVE-2026-22803](https://nvd.nist.gov/vuln/detail/CVE-2026-22803) - [https://github.com/sveltejs/kit/commit/8ed8155215b9a74012fecffb942ad9a793b274e5](https://github.com/sveltejs/kit/commit/8ed8155215b9a74012fecffb942ad9a793b274e5) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.49.5](https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.49.5) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs%2Fadapter-node@5.5.1](https://github.com/sveltejs/kit/releases/tag/@sveltejs%2Fadapter-node@5.5.1) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-j2f3-wq62-6q46) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering [CVE-2025-67647](https://nvd.nist.gov/vuln/detail/CVE-2025-67647) / [GHSA-j62c-4x62-9r35](https://github.com/advisories/GHSA-j62c-4x62-9r35) <details> <summary>More information</summary> #### Details ##### Summary Versions of SvelteKit are vulnerable to a server side request forgery (SSRF) and denial of service (DoS) under certain conditions. ##### Details Affected versions from 2.44.0 onwards are vulnerable to DoS if: - your app has at least one prerendered route (`export const prerender = true`) Affected versions from 2.19.0 onwards are vulnerable to DoS and SSRF if: - your app has at least one prerendered route (`export const prerender = true`) - AND you are using `adapter-node` without a configured `ORIGIN` environment variable, and you are not using a reverse proxy that implements Host header validation ##### Impact The DoS causes the running server process to end. The SSRF allows access to internal services that can be reached without authentication when fetched from SvelteKit's server runtime. It is also possible to obtain an SXSS via cache poisoning, by forcing a potential CDN to cache an XSS returned by the attacker's server (the latter being able to specify the cache-control of their choice). ##### Credits - Allam Rachid ([zhero;](https://zhero-web-sec.github.io/research-and-things/)) - Allam Yasser (inzo) - d-xuan ([wednesday](https://d-xuan.github.io/wednesday/)) #### Severity - CVSS Score: 8.4 / 10 (High) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:L/SI:L/SA:N` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-j62c-4x62-9r35](https://github.com/sveltejs/kit/security/advisories/GHSA-j62c-4x62-9r35) - [https://nvd.nist.gov/vuln/detail/CVE-2025-67647](https://nvd.nist.gov/vuln/detail/CVE-2025-67647) - [https://github.com/sveltejs/kit/commit/d9ae9b00b14f5574d109f3fd548f960594346226](https://github.com/sveltejs/kit/commit/d9ae9b00b14f5574d109f3fd548f960594346226) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fadapter-node%405.5.1](https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fadapter-node%405.5.1) - [https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.49.5](https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.49.5) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-j62c-4x62-9r35) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### CPU exhaustion in SvelteKit remote form deserialization (experimental only) [CVE-2026-82261](https://nvd.nist.gov/vuln/detail/CVE-2026-82261) / [GHSA-88qp-p4qg-rqm6](https://github.com/advisories/GHSA-88qp-p4qg-rqm6) <details> <summary>More information</summary> #### Details Versions of `@sveltejs/kit` prior to 2.52.2 with remote functions enabled are vulnerable to CPU exhaustion. Malformed form data can cause the server to become unresponsive while processing a request, resulting in denial of service. Only applications using both `experimental.remoteFunctions` and `form` are vulnerable. #### Severity - CVSS Score: 6.9 / 10 (Medium) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-88qp-p4qg-rqm6](https://github.com/sveltejs/kit/security/advisories/GHSA-88qp-p4qg-rqm6) - [https://github.com/sveltejs/kit/commit/3e607b314aec9e5f278d32847945b8b6323e1cb8](https://github.com/sveltejs/kit/commit/3e607b314aec9e5f278d32847945b8b6323e1cb8) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.52.2](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.52.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-88qp-p4qg-rqm6) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Memory exhaustion in SvelteKit remote form deserialization (experimental only) [CVE-2026-82260](https://nvd.nist.gov/vuln/detail/CVE-2026-82260) / [GHSA-vrhm-gvg7-fpcf](https://github.com/advisories/GHSA-vrhm-gvg7-fpcf) <details> <summary>More information</summary> #### Details Versions of `@sveltejs/kit` prior to 2.52.2 with remote functions enabled can be vulnerable to memory exhaustion. Malformed form data can cause the server process to crash due to excessive memory allocation, resulting in denial of service. Only applications using both `experimental.remoteFunctions` and `form` are vulnerable. #### Severity - CVSS Score: 4.6 / 10 (Medium) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-vrhm-gvg7-fpcf](https://github.com/sveltejs/kit/security/advisories/GHSA-vrhm-gvg7-fpcf) - [https://github.com/sveltejs/kit/commit/f47c01bd8100328c24fdb8522fe35913b0735f35](https://github.com/sveltejs/kit/commit/f47c01bd8100328c24fdb8522fe35913b0735f35) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.52.2](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.52.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-vrhm-gvg7-fpcf) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### SvelteKit has deserialization expansion in unvalidated `form` remote function leading to Denial of Service (experimental only) [CVE-2026-82259](https://nvd.nist.gov/vuln/detail/CVE-2026-82259) / [GHSA-fpg4-jhqr-589c](https://github.com/advisories/GHSA-fpg4-jhqr-589c) <details> <summary>More information</summary> #### Details Some relatively small inputs can cause very large files arrays in `form` handlers. If the SvelteKit application code doesn't check `files.length` or individual files' sizes and performs expensive processing with them, it can result in Denial of Service. Only users with `experimental.remoteFunctions: true` who are using the `form` function and are processing the `files` array without validation are vulnerable. #### Severity - CVSS Score: 1.7 / 10 (Low) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-fpg4-jhqr-589c](https://github.com/sveltejs/kit/security/advisories/GHSA-fpg4-jhqr-589c) - [https://github.com/sveltejs/kit/commit/faba869db3644077169bf5d7c6e41fd5f3d6c65e](https://github.com/sveltejs/kit/commit/faba869db3644077169bf5d7c6e41fd5f3d6c65e) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.53.3](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.53.3) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-fpg4-jhqr-589c) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### @&#8203;sveltejs/adapter-node has a BODY_SIZE_LIMIT bypass [CVE-2026-40073](https://nvd.nist.gov/vuln/detail/CVE-2026-40073) / [GHSA-2crg-3p73-43xp](https://github.com/advisories/GHSA-2crg-3p73-43xp) <details> <summary>More information</summary> #### Details Under certain circumstances, requests could bypass the `BODY_SIZE_LIMIT` on SvelteKit applications running with `adapter-node`. This bypass does not affect body size limits at other layers of the application stack, so limits enforced in the WAF, gateway, or at the platform level are unaffected. #### Severity - CVSS Score: 8.2 / 10 (High) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-2crg-3p73-43xp](https://github.com/sveltejs/kit/security/advisories/GHSA-2crg-3p73-43xp) - [https://nvd.nist.gov/vuln/detail/CVE-2026-40073](https://nvd.nist.gov/vuln/detail/CVE-2026-40073) - [https://github.com/sveltejs/kit/commit/3202ed6c98f9e8d86bf0c4c7ad0f2e273e5e3b95](https://github.com/sveltejs/kit/commit/3202ed6c98f9e8d86bf0c4c7ad0f2e273e5e3b95) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.57.1](https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.57.1) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.57.1](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.57.1) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-2crg-3p73-43xp) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### @&#8203;sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service [CVE-2026-40074](https://nvd.nist.gov/vuln/detail/CVE-2026-40074) / [GHSA-3f6h-2hrp-w5wx](https://github.com/advisories/GHSA-3f6h-2hrp-w5wx) <details> <summary>More information</summary> #### Details `redirect`, when called from inside the `handle` server hook with a location parameter containing characters that are invalid in a HTTP header, will cause an unhandled `TypeError`. This could result in DoS on some platforms, especially if the location passed to `redirect` contains unsanitized user input. #### Severity - CVSS Score: 6.3 / 10 (Medium) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-3f6h-2hrp-w5wx](https://github.com/sveltejs/kit/security/advisories/GHSA-3f6h-2hrp-w5wx) - [https://nvd.nist.gov/vuln/detail/CVE-2026-40074](https://nvd.nist.gov/vuln/detail/CVE-2026-40074) - [https://github.com/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd](https://github.com/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.57.1](https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.57.1) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.57.1](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.57.1) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-3f6h-2hrp-w5wx) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### @&#8203;sveltejs/kit: `query.batch` cross-talk [CVE-2026-82258](https://nvd.nist.gov/vuln/detail/CVE-2026-82258) / [GHSA-hgv7-v322-mmgr](https://github.com/advisories/GHSA-hgv7-v322-mmgr) <details> <summary>More information</summary> #### Details `query.batch()` could, under very rare and specific timings, cause concurrent requests from different users to merge and resolve under single request context, enabling cross-user data disclosure. #### Severity - CVSS Score: 5.9 / 10 (Medium) - Vector String: `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-hgv7-v322-mmgr](https://github.com/sveltejs/kit/security/advisories/GHSA-hgv7-v322-mmgr) - [https://github.com/sveltejs/kit/commit/dadaefc2e647a0a62f49f3ee8bc7aa46f5e27056](https://github.com/sveltejs/kit/commit/dadaefc2e647a0a62f49f3ee8bc7aa46f5e27056) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-hgv7-v322-mmgr) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### SvelteKit: Prototype pollution in file input deletion path in remote-function forms [CVE-2026-82257](https://nvd.nist.gov/vuln/detail/CVE-2026-82257) / [GHSA-866w-xmhq-wj7x](https://github.com/advisories/GHSA-866w-xmhq-wj7x) <details> <summary>More information</summary> #### Details If you use remote form functions, have an input field of type `file`, and accept arbitrary user-controlled path names for the field, then you are vulnerable to a prototype pollution attack where the attacker can remove e.g. methods on the prototype. #### Severity - CVSS Score: 4.3 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-866w-xmhq-wj7x](https://github.com/sveltejs/kit/security/advisories/GHSA-866w-xmhq-wj7x) - [https://github.com/sveltejs/kit/pull/16218](https://github.com/sveltejs/kit/pull/16218) - [https://github.com/sveltejs/kit/commit/df32f6fe86cdd0b68b650e3e4631e5896453dcd3](https://github.com/sveltejs/kit/commit/df32f6fe86cdd0b68b650e3e4631e5896453dcd3) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.69.1](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.69.1) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0-next.7](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0-next.7) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-866w-xmhq-wj7x) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### SvelteKit: Big remote form function payloads can cause Node process to crash [CVE-2026-82256](https://nvd.nist.gov/vuln/detail/CVE-2026-82256) / [GHSA-wqjv-9729-c5q2](https://github.com/advisories/GHSA-wqjv-9729-c5q2) <details> <summary>More information</summary> #### Details Big remote form function payloads can cause the Node process to crash. Doing this repeatedly can cause DoS. #### Severity - CVSS Score: 5.3 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-wqjv-9729-c5q2](https://github.com/sveltejs/kit/security/advisories/GHSA-wqjv-9729-c5q2) - [https://github.com/sveltejs/kit/pull/16219](https://github.com/sveltejs/kit/pull/16219) - [https://github.com/sveltejs/kit/commit/82b0370c793ac392cee5c2e28f4b8fed09c64582](https://github.com/sveltejs/kit/commit/82b0370c793ac392cee5c2e28f4b8fed09c64582) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.69.1](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.69.1) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0-next.7](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0-next.7) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-wqjv-9729-c5q2) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header [CVE-2026-66062](https://nvd.nist.gov/vuln/detail/CVE-2026-66062) / [GHSA-29g2-3rmr-qm68](https://github.com/advisories/GHSA-29g2-3rmr-qm68) <details> <summary>More information</summary> #### Details ##### Impact SvelteKit is vulnerable to remote CPU-exhaustion DoS attacks via specifically-crafted `Accept` headers. The impact is mitigated by default header length limits on most platforms, but in the case of raised or absent limits a denial of service is possible. ##### Patches The vulnerability is patched in `@sveltejs/kit` version 2.70.2. #### Severity - CVSS Score: 5.3 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-29g2-3rmr-qm68](https://github.com/sveltejs/kit/security/advisories/GHSA-29g2-3rmr-qm68) - [https://github.com/sveltejs/kit/commit/82712fc02c24b1dcf5b25d7a52129cd8455f04f5](https://github.com/sveltejs/kit/commit/82712fc02c24b1dcf5b25d7a52129cd8455f04f5) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.70.2](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.70.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-29g2-3rmr-qm68) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### SvelteKit : XSS via untrusted cache-control header in prerendered page [CVE-2026-114061](https://nvd.nist.gov/vuln/detail/CVE-2026-114061) / [GHSA-27mw-82g8-phjj](https://github.com/advisories/GHSA-27mw-82g8-phjj) <details> <summary>More information</summary> #### Details ##### Impact Applications that prerender pages and use `setHeaders` to set a `cache-control` header from an untrusted source are vulnerable to cross-site scripting (XSS). SvelteKit inserts the header value into a `<meta http-equiv="cache-control">` tag without escaping it. An attacker who can influence this value at prerender time can break out of the `content` attribute and inject HTML or JavaScript into the generated page. The injected code can then execute when users visit the page. ##### Patches The fix escapes the header value before inserting it into the generated HTML. Upgrade to `@sveltejs/kit` version 3.0.0 or later. ##### Workarounds Avoid forwarding untrusted `cache-control` header values with `setHeaders` on prerendered pages. Use a fixed, trusted cache policy instead. #### Severity - CVSS Score: 0.0 / 10 (None) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:N` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-27mw-82g8-phjj](https://github.com/sveltejs/kit/security/advisories/GHSA-27mw-82g8-phjj) - [https://nvd.nist.gov/vuln/detail/CVE-2026-114061](https://nvd.nist.gov/vuln/detail/CVE-2026-114061) - [https://github.com/sveltejs/kit/commit/d9d55b579743c80ee7cb59c272d864fd9253dae7](https://github.com/sveltejs/kit/commit/d9d55b579743c80ee7cb59c272d864fd9253dae7) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0) - [https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-xss-via-cache-control-header-in-prerendered-pages](https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-xss-via-cache-control-header-in-prerendered-pages) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-27mw-82g8-phjj) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### SvelteKit: URL redirection to untrusted site via enhanced form submission [CVE-2026-114060](https://nvd.nist.gov/vuln/detail/CVE-2026-114060) / [GHSA-pfhg-q3qv-9q6r](https://github.com/advisories/GHSA-pfhg-q3qv-9q6r) <details> <summary>More information</summary> #### Details ##### Impact Applications using enhanced form actions (`use:enhance`) on routes that accept paths beginning with `//`, such as catch-all routes, may be vulnerable to an open redirect. ##### Patches A fix has been prepared for `@sveltejs/kit` 3.0.0. Users should upgrade to 3.0.0 or later. The fix preserves leading double slashes in action paths without generating protocol-relative URLs, restricts non-redirect action navigation to the current origin, and includes the origin when comparing action locations with the current page. ##### Workarounds Reject requests whose parsed URL pathname begins with `//` before route resolution, for example in a reverse proxy or a SvelteKit `handle` hook. Alternatively, disable navigation for non-redirect enhanced form results by supplying a custom submission callback: ```svelte <form method="POST" use:enhance={() => ({ update }) => update({ navigate: false })}> <!-- form fields --> </form> ``` This applies non-redirect results to the current page instead of navigating to the action location. #### Severity - CVSS Score: 2.1 / 10 (Low) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N` #### References - [https://github.com/sveltejs/kit/security/advisories/GHSA-pfhg-q3qv-9q6r](https://github.com/sveltejs/kit/security/advisories/GHSA-pfhg-q3qv-9q6r) - [https://nvd.nist.gov/vuln/detail/CVE-2026-114060](https://nvd.nist.gov/vuln/detail/CVE-2026-114060) - [https://github.com/sveltejs/kit/commit/91aae3547c6cd2935d79c09a53e27c740100000a](https://github.com/sveltejs/kit/commit/91aae3547c6cd2935d79c09a53e27c740100000a) - [https://github.com/sveltejs/kit](https://github.com/sveltejs/kit) - [https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0) - [https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-open-redirect-via-enhanced-form-actions](https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-open-redirect-via-enhanced-form-actions) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-pfhg-q3qv-9q6r) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>sveltejs/kit (@&#8203;sveltejs/kit)</summary> ### [`v3.0.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#300) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.70.3...@sveltejs/kit@3.0.0) ##### Major Changes - breaking: move remote function types to `$app/server` ([#&#8203;16740](https://github.com/sveltejs/kit/pull/16740)) - breaking: remove `experimental.handleRenderingErrors` flag ([#&#8203;16265](https://github.com/sveltejs/kit/pull/16265)) - breaking: make `getRequest` and `setResponse` synchronous ([#&#8203;16280](https://github.com/sveltejs/kit/pull/16280)) - breaking: TypeScript 6 is now the minimum required version ([#&#8203;15930](https://github.com/sveltejs/kit/pull/15930)) - breaking: refresh all load functions/queries when clicking a link to the current URL ([#&#8203;16572](https://github.com/sveltejs/kit/pull/16572)) - breaking: move remote function types to `$app/server` ([#&#8203;16764](https://github.com/sveltejs/kit/pull/16764)) - breaking: upgrade to `cookie` v2. Cookie names must now contain only ASCII characters ([#&#8203;13386](https://github.com/sveltejs/kit/pull/13386)) - breaking: require Node 22 or newer ([#&#8203;12548](https://github.com/sveltejs/kit/pull/12548)) - major: error when a client-requested single-flight mutation isn't respected by the server, allow the server to explicitly ignore refreshes ([#&#8203;16892](https://github.com/sveltejs/kit/pull/16892)) - breaking: remove the `preloadStrategy` option. `modulepreload` will always be used ([#&#8203;15256](https://github.com/sveltejs/kit/pull/15256)) - breaking: default the cookie `path` option to `'/'` ([#&#8203;15398](https://github.com/sveltejs/kit/pull/15398)) - breaking: remove `@sveltejs/kit/node/polyfills` ([#&#8203;15430](https://github.com/sveltejs/kit/pull/15430)) - breaking: add `config.kit.output.linkHeaderPreload` to preload using the `Link` header ([#&#8203;15939](https://github.com/sveltejs/kit/pull/15939)) - breaking: require `@sveltejs/vite-plugin-svelte` v7 ([#&#8203;15371](https://github.com/sveltejs/kit/pull/15371)) - breaking: make `page.url` immutable on a type level ([#&#8203;16256](https://github.com/sveltejs/kit/pull/16256)) - breaking: remove `base`, `assets`, and `resolveRoute` from `$app/paths` ([#&#8203;15507](https://github.com/sveltejs/kit/pull/15507)) - breaking: remove `createEntries` from the `Builder` object passed to adapter functions ([#&#8203;15509](https://github.com/sveltejs/kit/pull/15509)) - breaking: return no content for 204 responses ([#&#8203;16200](https://github.com/sveltejs/kit/pull/16200)) - breaking: rename `Pathname` type to `Path` and `Asset` to `AssetPath` ([#&#8203;16430](https://github.com/sveltejs/kit/pull/16430)) breaking: remove leading `/` from `Path` and `AssetPath` - breaking: `handle`'s `resolve` is now typed to always return a `Promise` ([#&#8203;16352](https://github.com/sveltejs/kit/pull/16352)) - breaking: remove `Server` constructor and `SSRManifest` from public types ([#&#8203;16876](https://github.com/sveltejs/kit/pull/16876)) - breaking: require Svelte config options to be passed through the Vite plugin ([#&#8203;16007](https://github.com/sveltejs/kit/pull/16007)) - breaking: form action responses now use the HTTP status code returned from `fail` ([#&#8203;16200](https://github.com/sveltejs/kit/pull/16200)) - breaking: write tsconfig to `node_modules/$app/tsconfig` ([#&#8203;16458](https://github.com/sveltejs/kit/pull/16458)) - breaking: move `defineParams` and associated types to `@sveltejs/kit/params` ([#&#8203;16716](https://github.com/sveltejs/kit/pull/16716)) - breaking: remove the deprecated CSRF `checkOrigin` option in favor of `trustedOrigins` ([#&#8203;15437](https://github.com/sveltejs/kit/pull/15437)) - breaking: the `delta` property now only exists for `popstate` navigation events ([#&#8203;15522](https://github.com/sveltejs/kit/pull/15522)) - breaking: change `form.error` type from `any` to `App.Error | undefined` ([#&#8203;16245](https://github.com/sveltejs/kit/pull/16245)) - breaking: remove deprecated `pragma` header in version polling for improved CORS support ([#&#8203;15428](https://github.com/sveltejs/kit/pull/15428)) - breaking: `goto` now rejects when called with a URL that does not resolve to a route within the app, matching the existing behaviour for external URLs ([#&#8203;16164](https://github.com/sveltejs/kit/pull/16164)) - breaking: run all errors through the `handleError` hook ([#&#8203;16664](https://github.com/sveltejs/kit/pull/16664)) - breaking: require Svelte 5.56.4 or newer ([#&#8203;15371](https://github.com/sveltejs/kit/pull/15371)) - breaking: error on `event.url`, `event.params` and `event.route` access inside queries ([#&#8203;16452](https://github.com/sveltejs/kit/pull/16452)) - breaking: enhanced cross-page form actions now navigate to the action page on success and failure, matching native form behavior ([#&#8203;16684](https://github.com/sveltejs/kit/pull/16684)) - breaking: delete `$service-worker` module ([#&#8203;16450](https://github.com/sveltejs/kit/pull/16450)) - breaking: move `defineEnvVars` to `@sveltejs/kit/env` ([#&#8203;16375](https://github.com/sveltejs/kit/pull/16375)) - breaking: nested server-only directories ([#&#8203;15685](https://github.com/sveltejs/kit/pull/15685)) - feat: allow adapters to provide additional Vite plugins ([#&#8203;16206](https://github.com/sveltejs/kit/pull/16206)) - breaking: replace the `$lib` alias with `#lib` and remove `files.lib` config. ([#&#8203;16360](https://github.com/sveltejs/kit/pull/16360)) - breaking: remove `#lib` definition from `paths`; requires explicit module extensions as a result ([#&#8203;16736](https://github.com/sveltejs/kit/pull/16736)) - chore: change `error`, `isHttpError`, `redirect`, and `isRedirect` to refer to public type instead of internal class ([#&#8203;13036](https://github.com/sveltejs/kit/pull/13036)) - breaking: move hooks-related types to `@sveltejs/kit/hooks` ([#&#8203;16737](https://github.com/sveltejs/kit/pull/16737)) - breaking: add 'error' result type to `preloadData` ([#&#8203;12579](https://github.com/sveltejs/kit/pull/12579)) - breaking: detect new deployments on data, remote, and form action responses, tab focus, and visibility change, and default `version.pollInterval` to 1 hour ([#&#8203;16496](https://github.com/sveltejs/kit/pull/16496)) - breaking: disallow cross-origin form submissions without a `Content-Type` header ([#&#8203;16347](https://github.com/sveltejs/kit/pull/16347)) - breaking: Server-only directories (`/server/` in the path) are now treated as server-only everywhere inside the project (except `src/routes` and the assets directory) ([#&#8203;16360](https://github.com/sveltejs/kit/pull/16360)) - breaking: `config` exported from a universal route file takes precedence over a server one ([#&#8203;16400](https://github.com/sveltejs/kit/pull/16400)) - breaking: require Vite 8. Provides new functionality even for existing Vite 8 users such as faster builds with Vite hook filters and more powerful SvelteKit adapters with the Vite environment API ([#&#8203;15371](https://github.com/sveltejs/kit/pull/15371)) - breaking: remove `data-sveltekit-*` option `'off'` in favour of `false` ([#&#8203;15907](https://github.com/sveltejs/kit/pull/15907)) - breaking: move tracing out of the experimental namespace and remove the instrumentation flag ([#&#8203;16260](https://github.com/sveltejs/kit/pull/16260)) - breaking: add `kit.paths.origin` config option, remove `kit.prerender.origin` and the `adapter-node` `ORIGIN` environment variable ([#&#8203;16161](https://github.com/sveltejs/kit/pull/16161)) - breaking: move `Page`, `ReadonlyURL` and `ReadonlyURLSearchParams` from `@sveltejs/kit` to `$app/state` ([#&#8203;16694](https://github.com/sveltejs/kit/pull/16694)) - breaking: remove `$app/stores` ([#&#8203;15499](https://github.com/sveltejs/kit/pull/15499)) - breaking: add `refreshAll` and deprecate `invalidateAll` ([#&#8203;16289](https://github.com/sveltejs/kit/pull/16289)) - breaking: reject query parameters beginning with `x-sveltekit-` ([#&#8203;17125](https://github.com/sveltejs/kit/pull/17125)) - breaking: disallow `*.remote.ts/js` files unless `experimental.remoteFunctions` is enabled ([#&#8203;16247](https://github.com/sveltejs/kit/pull/16247)) - breaking: replace the `noScroll` and `keepFocus` options of `goto` with a single `reset` option, and the `data-sveltekit-noscroll` and `data-sveltekit-keepfocus` attributes with `data-sveltekit-reset` ([#&#8203;16558](https://github.com/sveltejs/kit/pull/16558)) - breaking: don't abort navigation when calling `invalidate(All)` during navigation ([#&#8203;16188](https://github.com/sveltejs/kit/pull/16188)) - breaking: consistent special filename patterns ([#&#8203;16382](https://github.com/sveltejs/kit/pull/16382)) - breaking: allow `handleError` to influence status code ([#&#8203;16162](https://github.com/sveltejs/kit/pull/16162)) - breaking: delegate CORS handling to Vite for static directory requests during development ([#&#8203;16357](https://github.com/sveltejs/kit/pull/16357)) - breaking: require `vite@^8.0.12`, the first Vite 8 release bundling stable `rolldown` 1.0.0 ([#&#8203;16134](https://github.com/sveltejs/kit/pull/16134)) - breaking: only include routes with a `+page` or `+server` in `RouteId` ([#&#8203;16580](https://github.com/sveltejs/kit/pull/16580)) - breaking: require Node 22.17 ([#&#8203;16597](https://github.com/sveltejs/kit/pull/16597)) - breaking: deprecate `error(status, {...})` in favour of `error(status, message, {...})` ([#&#8203;16540](https://github.com/sveltejs/kit/pull/16540)) - breaking: replace the `builder.generateManifest` with `builder.generateServerInstance` and `builder.manifest` ([#&#8203;16875](https://github.com/sveltejs/kit/pull/16875)) - breaking: forbid external redirects by default ([#&#8203;16198](https://github.com/sveltejs/kit/pull/16198)) - breaking: separate adapter Vite plugins into `pre` and `post` ([#&#8203;16711](https://github.com/sveltejs/kit/pull/16711)) - breaking: remove param files in folder in favor of `params.js/ts` file ([#&#8203;16189](https://github.com/sveltejs/kit/pull/16189)) - breaking: move env-related types to `@sveltejs/kit/env` ([#&#8203;16739](https://github.com/sveltejs/kit/pull/16739)) - breaking: `preloadCode` now takes a route ID (e.g. `/blog/[slug]`) instead of a pathname. Route IDs are not prefixed with `paths.base` ([#&#8203;16576](https://github.com/sveltejs/kit/pull/16576)) - breaking: move `BeforeNavigate`, `OnNavigate`, `AfterNavigate`, `Navigation`, `NavigationTarget`, `NavigationType`, `GotoOptions` and the `Navigation*` variant types from `@sveltejs/kit` to `$app/navigation` ([#&#8203;16694](https://github.com/sveltejs/kit/pull/16694)) - breaking: move `ActionResult` and `SubmitFunction` from `@sveltejs/kit` to `$app/forms` ([#&#8203;16694](https://github.com/sveltejs/kit/pull/16694)) - breaking: remove `handleValidationError` and pass remote function validation errors to `handleError` with `kind: 'validation'` ([#&#8203;16672](https://github.com/sveltejs/kit/pull/16672)) - breaking: remove deprecated `.run()` method from live queries ([#&#8203;16573](https://github.com/sveltejs/kit/pull/16573)) ##### Minor Changes - feat: allow hyphens in param and matcher names ([#&#8203;16284](https://github.com/sveltejs/kit/pull/16284)) - feat: add `$app/manifest` module with `immutable`, `assets`, `prerendered`, and `routes` exports ([#&#8203;16372](https://github.com/sveltejs/kit/pull/16372)) - feat: ignore files with + prefix if they contain test/spec/stories ([#&#8203;16715](https://github.com/sveltejs/kit/pull/16715)) - feat: add `ErrorProps` to generated types ([#&#8203;16272](https://github.com/sveltejs/kit/pull/16272)) - feat: support sourcemaps in production ([#&#8203;16412](https://github.com/sveltejs/kit/pull/16412)) - feat: return the list of compressed files from `builder.compress` ([#&#8203;16566](https://github.com/sveltejs/kit/pull/16566)) - feat: better response logging ([#&#8203;16744](https://github.com/sveltejs/kit/pull/16744)) - feat: warn when tsconfig doesn't exclude service worker ([#&#8203;16645](https://github.com/sveltejs/kit/pull/16645)) - feat: validate that all remote form fields were created with form.fields.foo.as(...) ([#&#8203;16331](https://github.com/sveltejs/kit/pull/16331)) - feat: support function validators for environment variables ([#&#8203;16402](https://github.com/sveltejs/kit/pull/16402)) - feat: use `type: 'module'` for service worker registrations ([#&#8203;16169](https://github.com/sveltejs/kit/pull/16169)) - feat: allow adapters to receive the Svelte config as a function argument when adding Vite plugins ([#&#8203;16986](https://github.com/sveltejs/kit/pull/16986)) - feat: add shallow routing to `goto` and deprecate `pushState` and `replaceState` ([#&#8203;16449](https://github.com/sveltejs/kit/pull/16449)) - feat: abort `request.signal` when the response closes prematurely, via a new `response` option for `getRequest` ([#&#8203;16793](https://github.com/sveltejs/kit/pull/16793)) - feat: make `$app/paths` importable in service workers ([#&#8203;16441](https://github.com/sveltejs/kit/pull/16441)) - feat: pass the project-relative source `filename` to the `preload` filter for fonts ([#&#8203;16443](https://github.com/sveltejs/kit/pull/16443)) - feat: preserve page state set through `goto(..., { state, persistState: true })` across reloads ([#&#8203;16449](https://github.com/sveltejs/kit/pull/16449)) - feat: reinstate `$env/static/private`, `$env/dynamic/private`, `$env/static/public`, `$env/dynamic/public` and `$app/environment` as deprecated aliases for `$app/env/private` `$app/env/public` and `$app/env` ([#&#8203;16334](https://github.com/sveltejs/kit/pull/16334)) - feat: add `page` and `endpoint` booleans to `$app/manifest`'s `routes`, and export a `ManifestRoute` type ([#&#8203;16594](https://github.com/sveltejs/kit/pull/16594)) - feat: `$app/service-worker` module ([#&#8203;16458](https://github.com/sveltejs/kit/pull/16458)) - feat: resolve paths using the Vite config `root` option instead of `process.cwd()` to better support monorepo configurations such as Vitest workspaces ([#&#8203;15469](https://github.com/sveltejs/kit/pull/15469)) - feat: better error logging ([#&#8203;16374](https://github.com/sveltejs/kit/pull/16374)) - feat: add `PageRouteId` and `EndpointRouteId` to `$app/types` ([#&#8203;16594](https://github.com/sveltejs/kit/pull/16594)) - feat: better tsconfig validation ([#&#8203;16458](https://github.com/sveltejs/kit/pull/16458)) - feat: add `dirty()` property to form fields ([#&#8203;16208](https://github.com/sveltejs/kit/pull/16208)) - feat: support the `QUERY` HTTP method in `+server.js` ([#&#8203;16782](https://github.com/sveltejs/kit/pull/16782)) - feat: allow adapters to override `getRequest` and `setResponse` during `vite dev` and `vite preview` ([#&#8203;16753](https://github.com/sveltejs/kit/pull/16753)) - chore: deprecate `Response` helpers in favor of platform-provided alternatives ([#&#8203;15448](https://github.com/sveltejs/kit/pull/15448)) - feat: add `cookies.parse` method ([#&#8203;16203](https://github.com/sveltejs/kit/pull/16203)) - chore: deprecate `export const snapshot` in favour of the `snapshot` helper ([#&#8203;16687](https://github.com/sveltejs/kit/pull/16687)) - feat: add `snapshot` helper to `$app/navigation` ([#&#8203;16685](https://github.com/sveltejs/kit/pull/16685)) - feat: support custom values in `page.state` via `transport` hook ([#&#8203;16662](https://github.com/sveltejs/kit/pull/16662)) - fix: default cookies to `secure` to `false` during development ([#&#8203;16462](https://github.com/sveltejs/kit/pull/16462)) - feat: warn when naively proxying requests that result in responses with a `content-encoding` header ([#&#8203;16633](https://github.com/sveltejs/kit/pull/16633)) - feat: accept the checked state as a third argument to `.as('radio', ...)` and `.as('checkbox', ...)` so that these inputs reset to it after a submission ([#&#8203;16926](https://github.com/sveltejs/kit/pull/16926)) - feat: add an `applyReroute` helper for adapters that support split serverless function deployments ([#&#8203;16665](https://github.com/sveltejs/kit/pull/16665)) ##### Patch Changes - fix: prevent scheme-like path segments from causing off-site trailing-slash redirects ([#&#8203;17294](https://github.com/sveltejs/kit/pull/17294)) - chore: share the action error result between form actions and remote forms ([#&#8203;16835](https://github.com/sveltejs/kit/pull/16835)) - fix: persist global app state across module graph reloads ([#&#8203;16663](https://github.com/sveltejs/kit/pull/16663)) - fix: generate valid `Path` types for routes with optional or rest params, several params in one segment, or escape sequences ([#&#8203;16577](https://github.com/sveltejs/kit/pull/16577)) - fix: coerce values typed into remote form fields, and only apply the default given to `.as()` until the field is edited ([#&#8203;16939](https://github.com/sveltejs/kit/pull/16939)) - fix: blur focused SVG elements before the DOM update on navigation ([#&#8203;16983](https://github.com/sveltejs/kit/pull/16983)) - fix: support bigint params in server-side route resolution ([#&#8203;17130](https://github.com/sveltejs/kit/pull/17130)) - chore: build streamed responses from async generators ([#&#8203;16847](https://github.com/sveltejs/kit/pull/16847)) - fix: generate types when dev server starts ([#&#8203;17034](https://github.com/sveltejs/kit/pull/17034)) - fix: allow `undefined` values to be passed to form field `.as(...)` where applicable ([#&#8203;15681](https://github.com/sveltejs/kit/pull/15681)) - fix: respect `paths.relative` during development for client files ([#&#8203;17053](https://github.com/sveltejs/kit/pull/17053)) - fix: validate prerender concurrency ([#&#8203;17145](https://github.com/sveltejs/kit/pull/17145)) - chore: deprecate `builder.rimraf` and `builder.mkdirp` in favour of `node:fs` methods ([#&#8203;16610](https://github.com/sveltejs/kit/pull/16610)) - fix: manipulate stack trace for errors that happen while generating prerender inputs ([#&#8203;17113](https://github.com/sveltejs/kit/pull/17113)) - fix: don't treat callable standard schemas as function param matchers ([#&#8203;16403](https://github.com/sveltejs/kit/pull/16403)) - fix: prevent non-redirect enhanced form results from navigating to another origin ([#&#8203;17293](https://github.com/sveltejs/kit/pull/17293)) - fix: clarify circular imports from `src/env` ([#&#8203;17014](https://github.com/sveltejs/kit/pull/17014)) - fix: keep memory flat when precompressing many files ([#&#8203;16993](https://github.com/sveltejs/kit/pull/16993)) - fix: render remote form actions while prerendering ([#&#8203;17139](https://github.com/sveltejs/kit/pull/17139)) - fix: ignore Vitest browser loader HTML transforms ([#&#8203;17092](https://github.com/sveltejs/kit/pull/17092)) - fix: prevent failed link preloads from causing unhandled promise rejections in production ([#&#8203;17181](https://github.com/sveltejs/kit/pull/17181)) - fix: resolve generated rootDirs from the project root ([#&#8203;17242](https://github.com/sveltejs/kit/pull/17242)) - fix: generate route resolution modules as siblings of `.html` pages ([#&#8203;16674](https://github.com/sveltejs/kit/pull/16674)) - perf: parse large streamed frames in linear time ([#&#8203;16489](https://github.com/sveltejs/kit/pull/16489)) - fix: keep at most one pending body read at a time when deserializing binary forms ([#&#8203;16783](https://github.com/sveltejs/kit/pull/16783)) - fix: escape cache-control headers in prerendered HTML ([#&#8203;17293](https://github.com/sveltejs/kit/pull/17293)) - fix: decode all numeric character references, including above `ffff`, when crawling prerendered pages ([#&#8203;16611](https://github.com/sveltejs/kit/pull/16611)) - fix: enforce request body size limits when Content-Type is absent ([#&#8203;17127](https://github.com/sveltejs/kit/pull/17127)) - fix: include queries refreshed from within another query in the serialized response ([#&#8203;16461](https://github.com/sveltejs/kit/pull/16461)) - fix: reject malformed streamed data encoding ([#&#8203;16423](https://github.com/sveltejs/kit/pull/16423)) - perf: cache the default cookie header parse and avoid allocations in `cookies.get` ([#&#8203;16341](https://github.com/sveltejs/kit/pull/16341)) - fix: exclude deleted cookies from `cookies.getAll()` so it stays consistent with `cookies.get()` ([#&#8203;16297](https://github.com/sveltejs/kit/pull/16297)) - fix: hide stack traces for internal errors like 404s ([#&#8203;16411](https://github.com/sveltejs/kit/pull/16411)) - chore: deduplicate repeated CSP directive handling ([#&#8203;16498](https://github.com/sveltejs/kit/pull/16498)) - fix: render the nearest error page when a form submission receives a non-ActionResult error response ([#&#8203;16308](https://github.com/sveltejs/kit/pull/16308)) - chore: bump `mrmime` to 2.0.1 ([#&#8203;16745](https://github.com/sveltejs/kit/pull/16745)) - fix: correctly implement Vite plugin hook filters ([#&#8203;16760](https://github.com/sveltejs/kit/pull/16760)) - fix: ignore nested outDir files outside generated ([#&#8203;17150](https://github.com/sveltejs/kit/pull/17150)) - fix: defer `query.refresh()` in server commands until after the command body completes ([#&#8203;16225](https://github.com/sveltejs/kit/pull/16225)) - fix: drain unconsumed request bodies so keep-alive connections don't hang ([#&#8203;16170](https://github.com/sveltejs/kit/pull/16170)) - fix: keep `history.scrollRestoration` set to `manual` when leaving the page, so a document restored from the back/forward cache does not fall back to browser scroll restoration ([#&#8203;17244](https://github.com/sveltejs/kit/pull/17244)) - fix: resolve service worker and `tsconfig.json` based on Vite `root` setting ([#&#8203;16229](https://github.com/sveltejs/kit/pull/16229)) - fix: rebuild the dev manifest when route files disappear during an incremental update ([#&#8203;16643](https://github.com/sveltejs/kit/pull/16643)) - breaking: populate env vars before `instrumentation.server.js` is evaluated and update the adapter instrumentation API ([#&#8203;16303](https://github.com/sveltejs/kit/pull/16303)) - fix: only print prerender progress newline when necessary ([#&#8203;16766](https://github.com/sveltejs/kit/pull/16766)) - perf: match only unpaired surrogates when escaping HTML ([#&#8203;16407](https://github.com/sveltejs/kit/pull/16407)) - fix: treat `data:` protocol URLs as external for redirect ([#&#8203;16392](https://github.com/sveltejs/kit/pull/16392)) - chore: deduplicate request hashing for serialized fetch responses ([#&#8203;16499](https://github.com/sveltejs/kit/pull/16499)) - fix: don't treat `Object.prototype` members as param matchers during validation ([#&#8203;16612](https://github.com/sveltejs/kit/pull/16612)) - fix: generate a `never` `Path` type when there are no routes ([#&#8203;17228](https://github.com/sveltejs/kit/pull/17228)) - fix: follow HTTP redirects from authentication proxies when enhancing form submissions ([#&#8203;17106](https://github.com/sveltejs/kit/pull/17106)) - fix: don't report empty environment variables as missing ([#&#8203;16401](https://github.com/sveltejs/kit/pull/16401)) - chore: generate the env modules in a single pass ([#&#8203;16833](https://github.com/sveltejs/kit/pull/16833)) - fix: externalize `@opentelemetry/api` to prevent bundler chunk colocation between `instrumentation.server.js` and application code ([#&#8203;16302](https://github.com/sveltejs/kit/pull/16302)) - fix: support form fields named after Object prototype properties ([#&#8203;17136](https://github.com/sveltejs/kit/pull/17136)) - fix: exclude routes without a page or endpoint from `routes` in `$app/manifest`, and remove directories with no route files from `LayoutParams` ([#&#8203;16588](https://github.com/sveltejs/kit/pull/16588)) - fix: record a history traversal before resolving its route ([#&#8203;16959](https://github.com/sveltejs/kit/pull/16959)) - fix: avoid Vite dev server reload on initial page request ([#&#8203;16553](https://github.com/sveltejs/kit/pull/16553)) - fix: don't set a `null` `accept-language` header on internal `fetch` sub-requests when the incoming request has none ([#&#8203;16527](https://github.com/sveltejs/kit/pull/16527)) - fix: reuse SSR-cached fetch responses during hydration when a cross-origin URL is not in canonical form ([#&#8203;16339](https://github.com/sveltejs/kit/pull/16339)) - fix: correctly detect prerendered paths in server `fetch` when `paths.base` is set ([#&#8203;16525](https://github.com/sveltejs/kit/pull/16525)) - chore: say what a valid remote form field name looks like when rejecting one ([#&#8203;16938](https://github.com/sveltejs/kit/pull/16938)) - chore: warn when remote form fields are enumerated in dev ([#&#8203;16940](https://github.com/sveltejs/kit/pull/16940)) - fix: populate `$app/env/*` dynamic variables in contexts that don't run the dev server, such as `vite-node` ([#&#8203;16223](https://github.com/sveltejs/kit/pull/16223)) - fix: resolve client manifest imports against the Vite root ([#&#8203;16803](https://github.com/sveltejs/kit/pull/16803)) - fix: properly handle Date objects in form.fields.set ([#&#8203;16168](https://github.com/sveltejs/kit/pull/16168)) - fix: return 404 for form actions and remote functions whose name is an `Object.prototype` member ([#&#8203;16072](https://github.com/sveltejs/kit/pull/16072)) - fix: no longer throw "An impossible situation occurred" when a server-only module is imported by both server and client code ([#&#8203;16257](https://github.com/sveltejs/kit/pull/16257)) - fix: respect Vite default log level ([#&#8203;16767](https://github.com/sveltejs/kit/pull/16767)) - fix: set the focus starting point without a fragment navigation, which leaked a `hashchange` to app listeners ([#&#8203;16992](https://github.com/sveltejs/kit/pull/16992)) - fix: keep a `form.for` instance registered when the derived that holds it disconnects and reconnects ([#&#8203;17230](https://github.com/sveltejs/kit/pull/17230)) - fix: make cookie options optional ([#&#8203;17201](https://github.com/sveltejs/kit/pull/17201)) - fix: don't duplicate remote modules in the generated manifest ([#&#8203;16532](https://github.com/sveltejs/kit/pull/16532)) - fix: evict hashed fetch cache entries after mutations ([#&#8203;17146](https://github.com/sveltejs/kit/pull/17146)) - chore: reuse base64 and text decoding helpers ([#&#8203;16608](https://github.com/sveltejs/kit/pull/16608)) - fix: explain the removal of `$lib` and `$service-worker` when their imports fail to resolve ([#&#8203;16635](https://github.com/sveltejs/kit/pull/16635)) - fix: tweak response logging for remote requests ([#&#8203;16865](https://github.com/sveltejs/kit/pull/16865)) - fix: correctly massage stack traces with async frames ([#&#8203;16633](https://github.com/sveltejs/kit/pull/16633)) - fix: mark `RequestEvent` properties as `readonly` ([#&#8203;16661](https://github.com/sveltejs/kit/pull/16661)) - fix: render the nearest `+error.svelte` at the depth it occupies when an error is thrown during rendering ([#&#8203;16526](https://github.com/sveltejs/kit/pull/16526)) - fix: support coordinate objects from image inputs in remote forms ([#&#8203;16944](https://github.com/sveltejs/kit/pull/16944)) - fix: revert route metadata caching to regenerate missing root-route types during sync ([#&#8203;17281](https://github.com/sveltejs/kit/pull/17281)) - chore: bump `@sveltejs/acorn-typescript` to 1.0.12 ([#&#8203;16745](https://github.com/sveltejs/kit/pull/16745)) - fix: update `match` parameter type ([#&#8203;16636](https://github.com/sveltejs/kit/pull/16636)) - fix: generate sourcemaps for remote modules ([#&#8203;16440](https://github.com/sveltejs/kit/pull/16440)) - fix: keep hash-router links on the current document when resolving paths ([#&#8203;17107](https://github.com/sveltejs/kit/pull/17107)) - fix: avoid empty getElementById() call on hash routing navigation ([#&#8203;16448](https://github.com/sveltejs/kit/pull/16448)) - fix: resolve every module entry point using `kit.moduleExtensions` ([#&#8203;17043](https://github.com/sveltejs/kit/pull/17043)) - fix: serve `.ico` files with `image/x-icon` Content-Type ([#&#8203;16234](https://github.com/sveltejs/kit/pull/16234)) - chore: bump `magic-string` to 1.1.0 ([#&#8203;16745](https://github.com/sveltejs/kit/pull/16745)) - fix: exclude inlined files from the page's `$app/manifest` immutable list ([#&#8203;16531](https://github.com/sveltejs/kit/pull/16531)) - fix: discard invalidation results when a navigation completes while they load ([#&#8203;16852](https://github.com/sveltejs/kit/pull/16852)) - fix: avoid client-side code being bundled by Cloudflare Wrangler ([#&#8203;16364](https://github.com/sveltejs/kit/pull/16364)) - fix: wait for the redirect navigation before remote form submissions resolve ([#&#8203;16765](https://github.com/sveltejs/kit/pull/16765)) - fix: record the mime types of prerendered paths in the server manifest ([#&#8203;16564](https://github.com/sveltejs/kit/pull/16564)) - fix: only require the `svelte-trusted-html` trusted-types policy when client-side code is shipped, allowing builds where all pages have `csr: false` ([#&#8203;16928](https://github.com/sveltejs/kit/pull/16928)) - chore: clarify which hooks run during server route resolution ([#&#8203;16397](https://github.com/sveltejs/kit/pull/16397)) - fix: yield to allow prerender updates to be visible ([#&#8203;16748](https://github.com/sveltejs/kit/pull/16748)) - fix: make `paths.origin` type looser ([#&#8203;16215](https://github.com/sveltejs/kit/pull/16215)) - chore: bump `devalue` to 5.9.0 ([#&#8203;16745](https://github.com/sveltejs/kit/pull/16745)) - feat: send periodic `keep-alive` SSE comments from `query.live` to prevent idle-timeout errors ([#&#8203;16063](https://github.com/sveltejs/kit/pull/16063)) - fix: send an explicit SSE Accept header for `query.live` requests to avoid buffering by proxies ([#&#8203;17104](https://github.com/sveltejs/kit/pull/17104)) - fix: don't touch the `query.live` stream controller after teardown, and make response cancellation observable via the generator's `request.signal` ([#&#8203;16790](https://github.com/sveltejs/kit/pull/16790)) - fix: print `builder.log.warn` messages to stderr, as documented ([#&#8203;17253](https://github.com/sveltejs/kit/pull/17253)) - fix: warn if hook files are spelled as "hook" instead of "hooks" ([#&#8203;16483](https://github.com/sveltejs/kit/pull/16483)) - fix: only suggest a `+` prefix for route filenames that are valid with the file's extension ([#&#8203;16837](https://github.com/sveltejs/kit/pull/16837)) - chore: only generate each route's resolution module once when prerendering ([#&#8203;16576](https://github.com/sveltejs/kit/pull/16576)) - fix: don't throw from remote form `validate()` if the form unmounts while it is waiting for a tick ([#&#8203;16720](https://github.com/sveltejs/kit/pull/16720)) - chore: share navigation completion between navigate and shallow routing ([#&#8203;16838](https://github.com/sveltejs/kit/pull/16838)) - fix: route dev-server response logging through Vite's logger so it respects `logLevel` and `customLogger` ([#&#8203;16858](https://github.com/sveltejs/kit/pull/16858)) - fix: skip clean fields when programmatically validating forms ([#&#8203;16208](https://github.com/sveltejs/kit/pull/16208)) - perf: skip import graph collection outside client environments ([#&#8203;16383](https://github.com/sveltejs/kit/pull/16383)) - breaking: experimental remote form `validate({ includeUntouched })` option is now `all` ([#&#8203;16208](https://github.com/sveltejs/kit/pull/16208)) - fix: rerun load functions when the number of values of a tracked search parameter changes ([#&#8203;16495](https://github.com/sveltejs/kit/pull/16495)) - chore: read build-time config from defines on the server instead of carrying it in `options` ([#&#8203;16873](https://github.com/sveltejs/kit/pull/16873)) - fix: avoid client build warning about externalising `node:async_hooks` ([#&#8203;16244](https://github.com/sveltejs/kit/pull/16244)) - chore: stop externalizing `cookie` dependency during build ([#&#8203;16936](https://github.com/sveltejs/kit/pull/16936)) - fix: reinstate `$app/environment` as an alias for `$app/env`, in case dependencies import it ([#&#8203;15964](https://github.com/sveltejs/kit/pull/15964)) - fix: preserve `paths.base` when `vite preview` redirects a prerendered page to the correct trailing slash ([#&#8203;16836](https://github.com/sveltejs/kit/pull/16836)) - fix: error when reading non-serialized `set-cookie` headers via `getSetCookie` in `load` ([#&#8203;16614](https://github.com/sveltejs/kit/pull/16614)) - fix: walk and copy directories without a stat per file ([#&#8203;16995](https://github.com/sveltejs/kit/pull/16995)) - perf: avoid quadratic remote form issue merging ([#&#8203;16493](https://github.com/sveltejs/kit/pull/16493)) - fix: widen remote form fields for union schemas and string enums ([#&#8203;16937](https://github.com/sveltejs/kit/pull/16937)) - chore: deprecate the `alias` option ([#&#8203;16470](https://github.com/sveltejs/kit/pull/16470)) - fix: don't attempt to serialize fetch responses when the request body is not a string or TypedArray ([#&#8203;16501](https://github.com/sveltejs/kit/pull/16501)) - fix: respond to `HEAD` requests without a body ([#&#8203;17036](https://github.com/sveltejs/kit/pull/17036)) - chore: replace deprecated Vite dev server APIs ([#&#8203;16961](https://github.com/sveltejs/kit/pull/16961)) - chore: iterate the query cache maps through a single generator ([#&#8203;16846](https://github.com/sveltejs/kit/pull/16846)) - fix: handle rejected streamed server data after delayed loads ([#&#8203;16268](https://github.com/sveltejs/kit/pull/16268)) - fix: don't crash on interactions inside a form whose controls shadow `nodeName` ([#&#8203;16769](https://github.com/sveltejs/kit/pull/16769)) - fix: don't replay a preloaded redirect when a later hop of the navigation returns to the route ([#&#8203;16955](https://github.com/sveltejs/kit/pull/16955)) - fix: prevent path traversal when previewing prerendered pages and data on Windows ([#&#8203;17293](https://github.com/sveltejs/kit/pull/17293)) - fix: settle a query's pending request in place when its value arrives through `set()` ([#&#8203;16958](https://github.com/sveltejs/kit/pull/16958)) - fix: render pages over sibling endpoints without GET or HEAD handlers ([#&#8203;16125](https://github.com/sveltejs/kit/pull/16125)) - fix: exit build workers after completing their tasks while allowing synchronous exit handlers to run ([#&#8203;17135](https://github.com/sveltejs/kit/pull/17135)) - fix: prevent infinite loops when server-side queries refresh each other in a cycle during the single-flight drain ([#&#8203;16461](https://github.com/sveltejs/kit/pull/16461)) - fix: populate `version` in service workers ([#&#8203;16434](https://github.com/sveltejs/kit/pull/16434)) - feat: add field.touched() helper to remote form fields ([#&#8203;14692](https://github.com/sveltejs/kit/pull/14692)) - fix: respect `paths.relative` for server-side route resolution imports ([#&#8203;17056](https://github.com/sveltejs/kit/pull/17056)) - fix: read the error status of `App.Error` in the `prerender` and `query.live` remote functions ([#&#8203;16529](https://github.com/sveltejs/kit/pull/16529)) - fix: resolve remote modules as external during dev prebundling so packages can re-export remote functions ([#&#8203;16426](https://github.com/sveltejs/kit/pull/16426)) - chore: standardize remote-function and shared form diagnostics ([#&#8203;17277](https://github.com/sveltejs/kit/pull/17277)) - fix: avoid `Promise.withResolvers` in client remote functions for older browser support ([#&#8203;16777](https://github.com/sveltejs/kit/pull/16777)) - fix: propagate errors from prerendered remote responses instead of re-running the function ([#&#8203;16535](https://github.com/sveltejs/kit/pull/16535)) - chore: remove unused helpers ([#&#8203;16834](https://github.com/sveltejs/kit/pull/16834)) - fix: allow reserved words (e.g. `delete`, `class`) as remote function export names ([#&#8203;16264](https://github.com/sveltejs/kit/pull/16264)) - fix: reset failed `<svelte:boundary>` on client navigation so a stale `+error.svelte` is torn down ([#&#8203;16296](https://github.com/sveltejs/kit/pull/16296)) - fix: clear `navigating` when a shallow popstate aborts an in-flight navigation ([#&#8203;17118](https://github.com/sveltejs/kit/pull/17118)) - fix: expand `[x+nn]` and `[u+nnnn]` escape sequences when resolving a route id to a pathname ([#&#8203;16570](https://github.com/sveltejs/kit/pull/16570)) - fix: respect user-set `server.cors` and `preview.cors` config instead of overriding them ([#&#8203;16924](https://github.com/sveltejs/kit/pull/16924)) - fix: respect the status returned from `handleError` on the fallback error page served to error-page sub-requests ([#&#8203;16528](https://github.com/sveltejs/kit/pull/16528)) - fix: restore scroll position after back-forward cache returns ([#&#8203;17255](https://github.com/sveltejs/kit/pull/17255)) - fix: warn if there are plugins using `transformIndexHtml` ([#&#8203;16394](https://github.com/sveltejs/kit/pull/16394)) - fix: refetch route-tracking server data when navigating away from an error page ([#&#8203;16381](https://github.com/sveltejs/kit/pull/16381)) - fix: allow routes to contain `[` and `]` via the `[x+5b]` and `[x+5d]` escapes ([#&#8203;16569](https://github.com/sveltejs/kit/pull/16569)) - chore: use `Response.json` instead of the deprecated `json` helper in runtime responses ([#&#8203;16804](https://github.com/sveltejs/kit/pull/16804)) - fix: recommend safe include and exclude patterns in tsconfig warning ([#&#8203;17102](https://github.com/sveltejs/kit/pull/17102)) - chore: remove dependency on kleur ([#&#8203;12548](https://github.com/sveltejs/kit/pull/12548)) - fix: prevent server-side self-fetch fallbacks from following redirects ([#&#8203;17293](https://github.com/sveltejs/kit/pull/17293)) - fix: serialize `query(...).set(...)`/`query(...).refresh()` values into the rendered HTML when called from within a query during SSR ([#&#8203;16461](https://github.com/sveltejs/kit/pull/16461)) - chore: configure the server runtime in one place, deprecate `Server` in favour of the `server` object written by `builder.generateServerInstance` ([#&#8203;17000](https://github.com/sveltejs/kit/pull/17000)) - chore: derive `content-length` from fixed response bodies in `setResponse` ([#&#8203;16794](https://github.com/sveltejs/kit/pull/16794)) - fix: correctly read zero-length files at the end of a binary form payload ([#&#8203;16783](https://github.com/sveltejs/kit/pull/16783)) - fix: reject fallback handlers on prerendered endpoints ([#&#8203;17140](https://github.com/sveltejs/kit/pull/17140)) - fix: don't destroy partial-line app output with the prerender progress line ([#&#8203;16750](https://github.com/sveltejs/kit/pull/16750)) - chore: remove virtual modules ([#&#8203;16813](https://github.com/sveltejs/kit/pull/16813)) - fix: surface prerender errors during development ([#&#8203;16507](https://github.com/sveltejs/kit/pull/16507)) - chore: bump `cookie` to 2.0.1 ([#&#8203;16745](https://github.com/sveltejs/kit/pull/16745)) - fix: detect `$app/server` and `$app/env/private` client imports when SvelteKit is installed inside the project root ([#&#8203;16648](https://github.com/sveltejs/kit/pull/16648)) - chore: read `options` from a single module instead of passing it through the server runtime ([#&#8203;16871](https://github.com/sveltejs/kit/pull/16871)) - fix: wait for the redirect navigation before prerendered remote functions resolve ([#&#8203;16765](https://github.com/sveltejs/kit/pull/16765)) - fix: sort directory entries when building the route manifest so node indices are deterministic across runtimes (e.g. Bun and Node) ([#&#8203;16074](https://github.com/sveltejs/kit/pull/16074)) - fix: skip unnecessary `version.json` checks if `updated.current` is already `true` ([#&#8203;16518](https://github.com/sveltejs/kit/pull/16518)) - fix: allow generation of $app/tsconfig without TypeScript installed ([#&#8203;16534](https://github.com/sveltejs/kit/pull/16534)) - chore: remove dependency on `set-cookie-parser` ([#&#8203;15384](https://github.com/sveltejs/kit/pull/15384)) - chore: share the nearest error page walk between client and server ([#&#8203;16774](https://github.com/sveltejs/kit/pull/16774)) - fix: fall back to the page's form actions when a sibling endpoint has no POST handler ([#&#8203;16349](https://github.com/sveltejs/kit/pull/16349)) - fix: record client output extensions in `builder.mimeTypes` ([#&#8203;16908](https://github.com/sveltejs/kit/pull/16908)) - perf: use a `Set` to check element ids when validating fragment links during prerendering ([#&#8203;16494](https://github.com/sveltejs/kit/pull/16494)) - fix: preserve shared client chunk hashes when the app version changes ([#&#8203;16324](https://github.com/sveltejs/kit/pull/16324)) - fix: include hoisted packages in Vite's `server.fs.allow` list ([#&#8203;15998](https://github.com/sveltejs/kit/pull/15998)) - chore: standardize app template diagnostics ([#&#8203;17250](https://github.com/sveltejs/kit/pull/17250)) - chore: standardize Vite plugin, build, prerender and adapter diagnostics ([#&#8203;17253](https://github.com/sveltejs/kit/pull/17253)) - chore: standardize client navigation, preload, snapshot and enhancement diagnostics ([#&#8203;17276](https://github.com/sveltejs/kit/pull/17276)) - chore: standardize configuration, environment and tsconfig diagnostics ([#&#8203;17251](https://github.com/sveltejs/kit/pull/17251)) - chore: standardize public API, `$app/*` and deprecated module diagnostics ([#&#8203;17265](https://github.com/sveltejs/kit/pull/17265)) - chore: standardize route discovery, parameter and route export diagnostics ([#&#8203;17252](https://github.com/sveltejs/kit/pull/17252)) - chore: standardize server request, hook and page diagnostics ([#&#8203;17275](https://github.com/sveltejs/kit/pull/17275)) - fix: preserve metadata on streamed page responses ([#&#8203;16935](https://github.com/sveltejs/kit/pull/16935)) - fix: only include `_app/immutable` files in `$app/manifest`'s `immutable` in the service worker ([#&#8203;16531](https://github.com/sveltejs/kit/pull/16531)) - chore: remove the dead `SSRState.fallback` field and name the server state fork semantics ([#&#8203;16598](https://github.com/sveltejs/kit/pull/16598)) - fix: atomically replace route metadata during sync ([#&#8203;17096](https://github.com/sveltejs/kit/pull/17096)) - fix: import resolved peer dependencies as file URLs so project-relative resolution works on Windows ([#&#8203;16618](https://github.com/sveltejs/kit/pull/16618)) - fix: preserve sourcemap source paths when adapters copy build output ([#&#8203;17082](https://github.com/sveltejs/kit/pull/17082)) - fix: log errors caught by the Vite dev server handler ([#&#8203;16550](https://github.com/sveltejs/kit/pull/16550)) - chore: bump `acorn` to 8.18.0 ([#&#8203;16745](https://github.com/sveltejs/kit/pull/16745)) - fix: resolve `root` per instance of the SvelteKit Vite plugin ([#&#8203;16513](https://github.com/sveltejs/kit/pull/16513)) - fix: report tsconfig parse errors on Windows ([#&#8203;17251](https://github.com/sveltejs/kit/pull/17251)) - fix: return root layout server data for error-page data requests to non-existent routes ([#&#8203;16376](https://github.com/sveltejs/kit/pull/16376)) - fix: prevent prerender crawler from hanging on unterminated unquoted attributes ([#&#8203;17141](https://github.com/sveltejs/kit/pull/17141)) - fix: prevent `await_reactivity_loss` warning and `state_unsafe_mutation` error when the new version detector runs after an `await` ([#&#8203;16915](https://github.com/sveltejs/kit/pull/16915)) - fix: redact nested and typed underscore-prefixed remote form fields after invalid submissions ([#&#8203;17128](https://github.com/sveltejs/kit/pull/17128)) - fix: ignore path casing differences when warning about overridden Vite config on Windows ([#&#8203;16545](https://github.com/sveltejs/kit/pull/16545)) - fix: return a lightweight 404 instead of rendering the error page for subresource requests ([#&#8203;16463](https://github.com/sveltejs/kit/pull/16463)) - fix: preserve stripped path prefixes by making trailing-slash redirects relative ([#&#8203;16431](https://github.com/sveltejs/kit/pull/16431)) - fix: preserve the current URL search parameters when submitting a remote form without JavaScript ([#&#8203;16373](https://github.com/sveltejs/kit/pull/16373)) - fix: only treat files in node_modules as remote modules when the package has a peer dependency on [@&#8203;sveltejs/kit](https://github.com/sveltejs/kit) ([#&#8203;16492](https://github.com/sveltejs/kit/pull/16492)) - fix: treeshake prerendered remote functions in the right chunks ([#&#8203;16533](https://github.com/sveltejs/kit/pull/16533)) - fix: correctly serialize Node.js buffers returned from remote functions during SSR ([#&#8203;17158](https://github.com/sveltejs/kit/pull/17158)) - fix: preserve errors with read-only stack properties ([#&#8203;17180](https://github.com/sveltejs/kit/pull/17180)) - chore: deduplicate type-stripping logic in `tweak_types` ([#&#8203;16454](https://github.com/sveltejs/kit/pull/16454)) - fix: avoid infinite loop when building with `--watch` flag ([#&#8203;16632](https://github.com/sveltejs/kit/pull/16632)) - chore: unify the `walk` and `list_files` filesystem helpers ([#&#8203;16784](https://github.com/sveltejs/kit/pull/16784)) - fix: error during development if the adapter does not support instrumentation and it exists ([#&#8203;16548](https://github.com/sveltejs/kit/pull/16548)) - fix: use mouseover+mousemove for preloading to reduce events ([#&#8203;16325](https://github.com/sveltejs/kit/pull/16325)) - fix: reject invalid binary form file metadata ([#&#8203;17149](https://github.com/sveltejs/kit/pull/17149)) - fix: error on server-only imports reachable from hooks or service worker files outside the project root ([#&#8203;16912](https://github.com/sveltejs/kit/pull/16912)) - fix: write generated tsconfig to `node_modules/$app/tsconfig.json` so that tools with simplified tsconfig resolution can find it ([#&#8203;16589](https://github.com/sveltejs/kit/pull/16589)) - chore: emit env modules to disk ([#&#8203;16807](https://github.com/sveltejs/kit/pull/16807)) - fix: more informative error message when running a command inside a query or prerender function ([#&#8203;17293](https://github.com/sveltejs/kit/pull/17293)) - fix: adjust error overload for optional `App.Error` parameters ([#&#8203;16725](https://github.com/sveltejs/kit/pull/16725)) - fix: prerender and crawl pages whose `content-type` header carries a `charset` parameter ([#&#8203;16567](https://github.com/sveltejs/kit/pull/16567)) - fix: stream promised `read` results lazily instead of eagerly buffering them ([#&#8203;16622](https://github.com/sveltejs/kit/pull/16622)) - fix: copy worker files emitted by the server build to the client output directory ([#&#8203;16929](https://github.com/sveltejs/kit/pull/16929)) - chore: parse page options and remote modules with Vite's `parseSync` instead of `acorn` ([#&#8203;16947](https://github.com/sveltejs/kit/pull/16947)) - fix: correctly decode `[u+nnnn]` escape sequences above `ffff` ([#&#8203;16611](https://github.com/sveltejs/kit/pull/16611)) - fix: Reject all pending query promises when a query fails before resolving with a value for the first time ([#&#8203;16890](https://github.com/sveltejs/kit/pull/16890)) ### [`v2.70.3`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2703) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.70.2...@sveltejs/kit@2.70.3) ##### Patch Changes - fix: avoid eagerly reading `$app/state` dependencies during module initialization ([`b61018d`](https://github.com/sveltejs/kit/commit/b61018d0526e827d1ef8cf8e21ef62b92230ae3d)) ### [`v2.70.2`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2702) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.70.1...@sveltejs/kit@2.70.2) ##### Patch Changes - fix: prevent quadratic backtracking in `Accept` header content negotiation ([`82712fc`](https://github.com/sveltejs/kit/commit/82712fc02c24b1dcf5b25d7a52129cd8455f04f5)) ### [`v2.70.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2701) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.70.0...@sveltejs/kit@2.70.1) ##### Patch Changes - docs: update links to hooks documentation ([#&#8203;16417](https://github.com/sveltejs/kit/pull/16417)) ### [`v2.70.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2700) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.69.3...@sveltejs/kit@2.70.0) ##### Minor Changes - feat: move `defineEnvVars` to `@sveltejs/kit/env` ([#&#8203;16378](https://github.com/sveltejs/kit/pull/16378)) ##### Patch Changes - fix: enable CSRF protection in builds with a non-production `NODE_ENV` value ([#&#8203;16313](https://github.com/sveltejs/kit/pull/16313)) ### [`v2.69.3`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2693) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.69.2...@sveltejs/kit@2.69.3) ##### Patch Changes - fix: detect destructured `load` and `actions` exports during type generation ([#&#8203;16329](https://github.com/sveltejs/kit/pull/16329)) - fix: ensure CSS URL references are absolute when `paths.relative` is `false` ([#&#8203;16315](https://github.com/sveltejs/kit/pull/16315)) - fix: align MAX_COOKIE_SIZE with RFC 6265bis ([#&#8203;16322](https://github.com/sveltejs/kit/pull/16322)) ### [`v2.69.2`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2692) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.69.1...@sveltejs/kit@2.69.2) ##### Patch Changes - fix: set `define` values on `globalThis` when running Vitest ([#&#8203;16246](https://github.com/sveltejs/kit/pull/16246)) ### [`v2.69.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2691) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.69.0...@sveltejs/kit@2.69.1) ##### Patch Changes - fix: prevent prototype pollution when deleting file inputs ([#&#8203;16218](https://github.com/sveltejs/kit/pull/16218)) - fix: prevent unhandled promise rejection ([#&#8203;16219](https://github.com/sveltejs/kit/pull/16219)) ### [`v2.69.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2690) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.68.0...@sveltejs/kit@2.69.0) ##### Minor Changes - feat: expose `submitted` property of remote forms ([#&#8203;14811](https://github.com/sveltejs/kit/pull/14811)) ##### Patch Changes - fix: clear issues and touched states on form reset ([#&#8203;16163](https://github.com/sveltejs/kit/pull/16163)) - fix: return `undefined` from `fields.branch.issues()` when only `fields.branch.leaf` has issues ([#&#8203;16187](https://github.com/sveltejs/kit/pull/16187)) ### [`v2.68.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2680) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.67.0...@sveltejs/kit@2.68.0) ##### Minor Changes - feat: expose `RemoteFormEnhanceInstance` and `RemoteFormEnhanceCallback` types ([#&#8203;15816](https://github.com/sveltejs/kit/pull/15816)) - feat: set value of `submit` fields when form is submitted ([#&#8203;15979](https://github.com/sveltejs/kit/pull/15979)) ##### Patch Changes - fix: skip `native_navigation` when `__data.json` returns 404 on a static fallback page ([#&#8203;16135](https://github.com/sveltejs/kit/pull/16135)) - fix: ignore third-party monkeypatches in `pushState`/`replaceState` warning detection ([#&#8203;15267](https://github.com/sveltejs/kit/pull/15267)) - fix: snapshot form fields on read ([#&#8203;16150](https://github.com/sveltejs/kit/pull/16150)) - fix: strip field prefix before erroring on duplicates ([#&#8203;16151](https://github.com/sveltejs/kit/pull/16151)) - fix: call reset function via prototype ([#&#8203;16138](https://github.com/sveltejs/kit/pull/16138)) - chore: fix navigation `type` hover info ([#&#8203;16147](https://github.com/sveltejs/kit/pull/16147)) ### [`v2.67.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2670) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.66.0...@sveltejs/kit@2.67.0) ##### Minor Changes - feat: add `prerender.handleInvalidUrl` option for invalid URLs discovered while crawling ([#&#8203;16088](https://github.com/sveltejs/kit/pull/16088)) ##### Patch Changes - fix: dedupe remote data ([#&#8203;15991](https://github.com/sveltejs/kit/pull/15991)) - fix: skip client build if all routes have CSR disabled ([#&#8203;15936](https://github.com/sveltejs/kit/pull/15936)) ### [`v2.66.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2660) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.65.2...@sveltejs/kit@2.66.0) ##### Minor Changes - feat: precompress prerendered `.md` and `.mdx` files ([#&#8203;15893](https://github.com/sveltejs/kit/pull/15893)) - feat: warn the user when they forget to make boolean inputs optional in their form schemas ([#&#8203;15804](https://github.com/sveltejs/kit/pull/15804)) ##### Patch Changes - fix: blur active element before component update during navigation so that blur/focusout handlers fire while old component data is still valid ([#&#8203;15452](https://github.com/sveltejs/kit/pull/15452)) - fix: ensure `base` is available from `$service-worker` during development ([#&#8203;15882](https://github.com/sveltejs/kit/pull/15882)) - fix: use correct relative asset paths when rendering an error page for a missing `__data.json` request ([#&#8203;15884](https://github.com/sveltejs/kit/pull/15884)) - fix: preserve active `for await` consumers across `query.live` reconnects ([#&#8203;16022](https://github.com/sveltejs/kit/pull/16022)) - fix: settle `query.live` reconnect promise on all exit paths, preventing `invalidateAll()` from deadlocking when a live query is offline or interrupted ([#&#8203;16022](https://github.com/sveltejs/kit/pull/16022)) - fix: preserve last value when a `query.live` stream completes without yielding on reconnect ([#&#8203;16022](https://github.com/sveltejs/kit/pull/16022)) - fix: remove `types: ['node']` from generated tsconfig to avoid errors when `@types/node` is not installed ([#&#8203;15709](https://github.com/sveltejs/kit/pull/15709)) - fix: prefer pages over endpoints when prerendering ([#&#8203;16076](https://github.com/sveltejs/kit/pull/16076)) - fix: restore snapshots after afterNavigate callbacks ([#&#8203;16066](https://github.com/sveltejs/kit/pull/16066)) - fix: support `ws:`/`wss:` and `trusted-types-eval` for CSP sources ([#&#8203;15938](https://github.com/sveltejs/kit/pull/15938)) - fix: omit empty `file` inputs from remote form data ([#&#8203;15898](https://github.com/sveltejs/kit/pull/15898)) - fix: fail early if a route with `+page` and `+server` is marked as prerenderable ([#&#8203;16075](https://github.com/sveltejs/kit/pull/16075)) - fix: wait a tick before resetting forms ([#&#8203;15805](https://github.com/sveltejs/kit/pull/15805)) - fix: `preflight` schemas apply correctly when chained before `for` ([#&#8203;15863](https://github.com/sveltejs/kit/pull/15863)) - fix: blank page in SPA mode when root layout `load()` throws ([#&#8203;15798](https://github.com/sveltejs/kit/pull/15798)) - fix: pass all unknown options from the `sveltekit` Vite plugin through to `vite-plugin-svelte` ([#&#8203;16010](https://github.com/sveltejs/kit/pull/16010)) ### [`v2.65.2`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2652) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.65.1...@sveltejs/kit@2.65.2) ##### Patch Changes - fix: throw an error when prerendering a root +server.js that returns a non-HTML response ([#&#8203;15994](https://github.com/sveltejs/kit/pull/15994)) - fix: decode base64-serialized fetch bodies before caching them for client-side replay ([#&#8203;16034](https://github.com/sveltejs/kit/pull/16034)) - fix: correctly access explicit dynamic public environment variables from prerendered pages and service workers ([#&#8203;16024](https://github.com/sveltejs/kit/pull/16024)) - fix: allow `preloadCode` to be called during initial page load ([#&#8203;16028](https://github.com/sveltejs/kit/pull/16028)) - fix: send `cache-control: private, no-store` on remote function responses so personalized query results can never be cached by shared caches ([#&#8203;16020](https://github.com/sveltejs/kit/pull/16020)) - fix: preserve the HTTP status and error body when a remote function request fails in transport (e.g. a 401/403 from a `handle` hook), instead of reporting a generic 500 ([#&#8203;16021](https://github.com/sveltejs/kit/pull/16021)) - fix: avoid loading universal nodes during build analysis when the app uses a hash router ([#&#8203;16042](https://github.com/sveltejs/kit/pull/16042)) - fix: correctly serve client entry during development when using the pnpm global virtual store ([#&#8203;16045](https://github.com/sveltejs/kit/pull/16045)) - fix: normalize path separators when comparing config ([#&#8203;16037](https://github.com/sveltejs/kit/pull/16037)) - fix: ensure `building` resolves correctly to allow avoiding build-time explicit environment variable validation ([#&#8203;16058](https://github.com/sveltejs/kit/pull/16058)) - fix: prevent unhandled promise rejections when remote function failures are consumed via `current`/`error` instead of `await` ([#&#8203;16018](https://github.com/sveltejs/kit/pull/16018)) ### [`v2.65.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2651) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.65.0...@sveltejs/kit@2.65.1) ##### Patch Changes - fix: avoid importing the Vite development client code into builds with a non-standard `NODE_ENV` ([#&#8203;16023](https://github.com/sveltejs/kit/pull/16023)) - fix: don't emit the unused bundle and stylesheet files when using `bundleStrategy: 'inline'` ([#&#8203;16025](https://github.com/sveltejs/kit/pull/16025)) - fix: reset queries before navigating when `invalidateAll` is set ([#&#8203;16014](https://github.com/sveltejs/kit/pull/16014)) - fix: regression in loading assets for absolute path apps ([#&#8203;16026](https://github.com/sveltejs/kit/pull/16026)) ### [`v2.65.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2650) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.64.0...@sveltejs/kit@2.65.0) ##### Minor Changes - feat: allow queries to refresh other queries ([#&#8203;16012](https://github.com/sveltejs/kit/pull/16012)) ##### Patch Changes - fix: dedupe remote data ([#&#8203;15991](https://github.com/sveltejs/kit/pull/15991)) - fix: skip client build if all routes have CSR disabled ([#&#8203;15936](https://github.com/sveltejs/kit/pull/15936)) ### [`v2.64.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2640) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.63.1...@sveltejs/kit@2.64.0) ##### Minor Changes - feat: allow commands to receive `File` objects ([#&#8203;15978](https://github.com/sveltejs/kit/pull/15978)) ##### Patch Changes - fix: avoid server components from being bundled if SSR is turned off for a route ([#&#8203;15982](https://github.com/sveltejs/kit/pull/15982)) ### [`v2.63.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2631) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.63.0...@sveltejs/kit@2.63.1) ##### Patch Changes - fix: use SSE for `query.live` ([#&#8203;15957](https://github.com/sveltejs/kit/pull/15957)) - fix: use forward slashes in the generated `env.d.ts` import path on Windows ([#&#8203;15977](https://github.com/sveltejs/kit/pull/15977)) - fix: allow `$app/environment` with a warning when `explicitEnvironmentVariables` is enabled ([#&#8203;15980](https://github.com/sveltejs/kit/pull/15980)) - fix: avoid importing Vite while validating explicit environment variables ([#&#8203;15953](https://github.com/sveltejs/kit/pull/15953)) - docs: adjust the release version of explicit env vars ([#&#8203;15968](https://github.com/sveltejs/kit/pull/15968)) - fix: ensure `version` is defined when importing from `$app/env` with explicit environment variables ([#&#8203;15971](https://github.com/sveltejs/kit/pull/15971)) ### [`v2.63.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2630) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.62.0...@sveltejs/kit@2.63.0) ##### Minor Changes - feat: explicit env vars ([#&#8203;15934](https://github.com/sveltejs/kit/pull/15934)) ##### Patch Changes - fix: remove check for svelte.config.js before running `sync` ([#&#8203;15946](https://github.com/sveltejs/kit/pull/15946)) - fix: generate a placeholder tsconfig.json to squelch sync-time warnings ([#&#8203;15948](https://github.com/sveltejs/kit/pull/15948)) - fix: allow use of `$app/env/public` in service workers ([#&#8203;15950](https://github.com/sveltejs/kit/pull/15950)) ### [`v2.62.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2620) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.61.1...@sveltejs/kit@2.62.0) ##### Minor Changes - feat: support passing Svelte(Kit) config via Vite plugin ([#&#8203;15944](https://github.com/sveltejs/kit/pull/15944)) ##### Patch Changes - fix: preserve multiple `Set-Cookie` headers on 304 responses ([#&#8203;15902](https://github.com/sveltejs/kit/pull/15902)) - fix: preload for anchor elements that were just previously preloaded ([#&#8203;15915](https://github.com/sveltejs/kit/pull/15915)) - fix: catch load function streaming errors on the client ([#&#8203;15929](https://github.com/sveltejs/kit/pull/15929)) - fix: avoid generating the `_app/env.js` module if public dynamic environment variables are not used by the app ([#&#8203;15940](https://github.com/sveltejs/kit/pull/15940)) ### [`v2.61.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2611) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.61.0...@sveltejs/kit@2.61.1) ##### Patch Changes - fix: regression where routes starting and ending with a route group are not matched correctly ([#&#8203;15903](https://github.com/sveltejs/kit/pull/15903)) ### [`v2.61.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2610) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.60.1...@sveltejs/kit@2.61.0) ##### Minor Changes - breaking: the `.run()` method has been removed from remote queries on both the client and the server. Use `await query()` directly instead — it now works everywhere ([#&#8203;15779](https://github.com/sveltejs/kit/pull/15779)) - feat: remote queries can now be awaited in any context (event handlers, module scope, async callbacks), not just inside reactive contexts. The cache is shared across reactive and non-reactive subscribers, so awaiting a query in an event handler will dedupe with components that have already subscribed to the same query. ([#&#8203;15779](https://github.com/sveltejs/kit/pull/15779)) - feat: live query instances are now themselves async-iterable ([#&#8203;15878](https://github.com/sveltejs/kit/pull/15878)) - feat: add programmatic `submit` method to `form` remote function instances ([#&#8203;15657](https://github.com/sveltejs/kit/pull/15657)) - feat: pass `form` remote function instance into `enhance` callback ([#&#8203;15657](https://github.com/sveltejs/kit/pull/15657)) ##### Patch Changes - fix: resolve the app payload without using `process.env.NODE_ENV` ([#&#8203;15852](https://github.com/sveltejs/kit/pull/15852)) - fix: support `exactOptionalPropertyTypes` for optional route params ([#&#8203;15825](https://github.com/sveltejs/kit/pull/15825)) - fix: correctly send `true` value to the server for 'submit' and 'hidden' form fields ([#&#8203;15858](https://github.com/sveltejs/kit/pull/15858)) - fix: avoid build warnings about undefined universal hooks ([#&#8203;15895](https://github.com/sveltejs/kit/pull/15895)) - fix: prefer default error page when failing to decode the URL pathname ([#&#8203;15744](https://github.com/sveltejs/kit/pull/15744)) - fix: disable link prefetching on slow internet connections ([#&#8203;15885](https://github.com/sveltejs/kit/pull/15885)) - fix: allow routes ending with optional parameters next to more specific routes ([#&#8203;15861](https://github.com/sveltejs/kit/pull/15861)) - fix: remove reliance on Content-Length header in deserialize_binary_form, which caused failures when proxies (e.g. Vercel, Azure) strip the header and use chunked transfer encoding ([#&#8203;15796](https://github.com/sveltejs/kit/pull/15796)) ### [`v2.60.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2601) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.60.0...@sveltejs/kit@2.60.1) ##### Patch Changes - chore: bump `svelte` and `devalue` ([#&#8203;15836](https://github.com/sveltejs/kit/pull/15836)) - fix: prevent `query.batch` cross-talk ([`dadaefc`](https://github.com/sveltejs/kit/commit/dadaefc2e647a0a62f49f3ee8bc7aa46f5e27056)) ### [`v2.60.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2600) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.59.1...@sveltejs/kit@2.60.0) ##### Minor Changes - feat: allow 'submit' and 'hidden' form fields to accept numbers and booleans ([#&#8203;15802](https://github.com/sveltejs/kit/pull/15802)) - feat: warn on unread `form` remote function validation issues ([#&#8203;15653](https://github.com/sveltejs/kit/pull/15653)) ##### Patch Changes - fix: abort navigation after async rendering if obsolete ([#&#8203;15811](https://github.com/sveltejs/kit/pull/15811)) - fix: skip refreshing queries on full-page reload form submissions ([#&#8203;15803](https://github.com/sveltejs/kit/pull/15803)) ### [`v2.59.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2591) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.59.0...@sveltejs/kit@2.59.1) ##### Patch Changes - fix: resolve paths to route files with the letter drive on Windows ([#&#8203;15793](https://github.com/sveltejs/kit/pull/15793)) ### [`v2.59.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2590) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.58.0...@sveltejs/kit@2.59.0) ##### Minor Changes - feat: support `query.batch` in `requested(...)` ([#&#8203;15751](https://github.com/sveltejs/kit/pull/15751)) - breaking: on the server, make the promise returned from `refresh` represent adding the refresh to the map, not the time it takes to run the remote function ([#&#8203;15705](https://github.com/sveltejs/kit/pull/15705)) - feat: experimental `query.live` function ([#&#8203;15705](https://github.com/sveltejs/kit/pull/15705)) ##### Patch Changes - fix: unwrap `Promise` in `RemoteCommand` output type ([#&#8203;15771](https://github.com/sveltejs/kit/pull/15771)) - fix: empty call to `.updates()` on a command/form invocation means "don't update anything" ([#&#8203;15705](https://github.com/sveltejs/kit/pull/15705)) - fix: `form.fields.foo.as('checkbox', default_value)` now works ([#&#8203;15752](https://github.com/sveltejs/kit/pull/15752)) - fix: remote forms with default values defined by `field.as('text', defaultValue)` now correctly reset to the provided default values once submitted ([#&#8203;15753](https://github.com/sveltejs/kit/pull/15753)) - fix: make sure queries always get started correctly ([#&#8203;15705](https://github.com/sveltejs/kit/pull/15705)) - fix: allow plain functions as overrides in `updates` ([#&#8203;15705](https://github.com/sveltejs/kit/pull/15705)) ### [`v2.58.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2580) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.57.1...@sveltejs/kit@2.58.0) ##### Minor Changes - breaking: require `limit` in `requested` (as originally intended) ([#&#8203;15739](https://github.com/sveltejs/kit/pull/15739)) - feat: `RemoteQueryFunction` gains an optional third generic parameter `Validated` (defaulting to `Input`) that represents the argument type after schema validation/transformation ([#&#8203;15739](https://github.com/sveltejs/kit/pull/15739)) - breaking: `requested` now yields `{ arg, query }` entries instead of the validated argument ([#&#8203;15739](https://github.com/sveltejs/kit/pull/15739)) ##### Patch Changes - fix: allow `query().current`, `.error`, `.loading`, and `.ready` to work in non-reactive contexts ([#&#8203;15699](https://github.com/sveltejs/kit/pull/15699)) - fix: prevent `deep_set` crash on nullish nested values ([#&#8203;15600](https://github.com/sveltejs/kit/pull/15600)) - fix: restore correct `RemoteFormFields` typing for nullable array fields (e.g. when a schema uses `.default([])`), so `.as('checkbox')` and friends work again ([#&#8203;15723](https://github.com/sveltejs/kit/pull/15723)) - fix: don't warn about removed SSI comments in `transformPageChunk` ([#&#8203;15695](https://github.com/sveltejs/kit/pull/15695)) Server-side include (SSI) directives like `<!--#include virtual="..." -->` are HTML comments that are replaced by servers such as nginx. Previously, removing them in `transformPageChunk` would trigger a false positive warning about breaking Svelte's hydration. Since SSI comments always start with `<!--#` and Svelte's hydration comments never do, they can be safely excluded from the check. - Change enhance function return type from void to MaybePromise<void>. ([#&#8203;15710](https://github.com/sveltejs/kit/pull/15710)) - fix: throw an error when `resolve` is called with an external URL ([#&#8203;15733](https://github.com/sveltejs/kit/pull/15733)) - fix: avoid FOUC for CSR-only pages by loading styles and fonts before CSR starts ([#&#8203;15718](https://github.com/sveltejs/kit/pull/15718)) - fix: reset form result on redirect ([#&#8203;15724](https://github.com/sveltejs/kit/pull/15724)) ### [`v2.57.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2571) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.57.0...@sveltejs/kit@2.57.1) ##### Patch Changes - fix: better validation for `redirect` inputs ([`10d7b44`](https://github.com/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd)) - fix: enforce `BODY_SIZE_LIMIT` on chunked requests ([`3202ed6`](https://github.com/sveltejs/kit/commit/3202ed6c98f9e8d86bf0c4c7ad0f2e273e5e3b95)) - fix: use default values as fallbacks ([#&#8203;15680](https://github.com/sveltejs/kit/pull/15680)) - fix: relax form typings for union types ([#&#8203;15687](https://github.com/sveltejs/kit/pull/15687)) ### [`v2.57.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2570) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.56.1...@sveltejs/kit@2.57.0) ##### Minor Changes - feat: return boolean from `submit` to indicate submission validity for enhanced `form` remote functions ([#&#8203;15530](https://github.com/sveltejs/kit/pull/15530)) ##### Patch Changes - fix: use array type for select fields that accept multiple values ([#&#8203;15591](https://github.com/sveltejs/kit/pull/15591)) - fix: silently 404 Chrome DevTools workspaces request in dev and preview ([#&#8203;15656](https://github.com/sveltejs/kit/pull/15656)) - fix: `config.kit.csp.directives['trusted-types']` requires `'svelte-trusted-html'` (and `'sveltekit-trusted-url'` when a service worker is automatically registered) if it is configured ([#&#8203;15323](https://github.com/sveltejs/kit/pull/15323)) - fix: avoid inlineDynamicImports ignored with codeSplitting warning when using Vite 8 ([#&#8203;15647](https://github.com/sveltejs/kit/pull/15647)) - fix: reimplement treeshaking non-dynamic prerendered remote functions ([#&#8203;15447](https://github.com/sveltejs/kit/pull/15447)) ### [`v2.56.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2561) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.56.0...@sveltejs/kit@2.56.1) ##### Patch Changes - chore: update JSDoc ([#&#8203;15640](https://github.com/sveltejs/kit/pull/15640)) ### [`v2.56.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2560) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.55.0...@sveltejs/kit@2.56.0) ##### Minor Changes - breaking: rework client-driven refreshes ([#&#8203;15562](https://github.com/sveltejs/kit/pull/15562)) - breaking: stabilize remote function caching by sorting object keys ([#&#8203;15570](https://github.com/sveltejs/kit/pull/15570)) - breaking: add `run()` method to queries, disallow awaiting queries outside render ([#&#8203;15533](https://github.com/sveltejs/kit/pull/15533)) - feat: support TypeScript 6.0 ([#&#8203;15595](https://github.com/sveltejs/kit/pull/15595)) - breaking: isolate command-triggered query refresh failures per-query ([#&#8203;15562](https://github.com/sveltejs/kit/pull/15562)) - feat: use `hydratable` for remote function transport ([#&#8203;15533](https://github.com/sveltejs/kit/pull/15533)) - feat: allow `form` fields to specify a default value (`field.as(type, value)`) ([#&#8203;15577](https://github.com/sveltejs/kit/pull/15577)) ##### Patch Changes - fix: don't request new data when `.refresh` is called on a query with no cache entry ([#&#8203;15533](https://github.com/sveltejs/kit/pull/15533)) - fix: allow using multiple remote functions within one async derived ([#&#8203;15561](https://github.com/sveltejs/kit/pull/15561)) - fix: avoid false-positive overridden Vite `base` setting warning when setting a `paths.base` in `svelte.config.js` ([#&#8203;15623](https://github.com/sveltejs/kit/pull/15623)) - fix: manage queries in their own `$effect.root` ([#&#8203;15533](https://github.com/sveltejs/kit/pull/15533)) - fix: avoid `inlineDynamicImports` deprecation warning when building the service worker with Vite 8 ([#&#8203;15550](https://github.com/sveltejs/kit/pull/15550)) - fix: correctly escape backticks when precomputing CSS ([#&#8203;15593](https://github.com/sveltejs/kit/pull/15593)) - fix: discard obsolete forks before finishing navigation ([#&#8203;15634](https://github.com/sveltejs/kit/pull/15634)) - chore: tighten up override implementation ([#&#8203;15562](https://github.com/sveltejs/kit/pull/15562)) - fix: ensure the default Svelte 5 `error.svelte` file uses runes mode ([#&#8203;15609](https://github.com/sveltejs/kit/pull/15609)) - fix: deduplicate same-cache-key `batch` calls during SSR ([#&#8203;15533](https://github.com/sveltejs/kit/pull/15533)) - fix: decrement pending_count when form callback doesn't call submit() ([#&#8203;15520](https://github.com/sveltejs/kit/pull/15520)) ### [`v2.55.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2550) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.54.0...@sveltejs/kit@2.55.0) ##### Minor Changes - feat: page and layout params with matchers are now type narrowed in `$app/types`, leading to better type safety when working with params in `$app/types`, `$app/state`, and hooks. ([#&#8203;15502](https://github.com/sveltejs/kit/pull/15502)) ### [`v2.54.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2540) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.53.4...@sveltejs/kit@2.54.0) ##### Minor Changes - feat: allow error boundaries to catch errors on the server ([#&#8203;15308](https://github.com/sveltejs/kit/pull/15308)) ##### Patch Changes - chore: upgrade `devalue` ([#&#8203;15535](https://github.com/sveltejs/kit/pull/15535)) - fix: don't wait for remote functions that are not awaited in the template ([#&#8203;15280](https://github.com/sveltejs/kit/pull/15280)) - feat: allow `resolve()` to accept pathnames with a search string and/or hash ([#&#8203;15458](https://github.com/sveltejs/kit/pull/15458)) - chore: remove deprecation warnings for `config.kit.files.*` options when validating the Svelte config file ([#&#8203;15482](https://github.com/sveltejs/kit/pull/15482)) - fix: handles form target attribute in remote form redirects ([#&#8203;15457](https://github.com/sveltejs/kit/pull/15457)) ### [`v2.53.4`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2534) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.53.3...@sveltejs/kit@2.53.4) ##### Patch Changes - fix: avoid Vite warning about unknown `codeSplitting` option ([#&#8203;15451](https://github.com/sveltejs/kit/pull/15451)) ### [`v2.53.3`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2533) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.53.2...@sveltejs/kit@2.53.3) ##### Patch Changes - fix: prevent overlapping file metadata in remote functions `form` ([`faba869`](https://github.com/sveltejs/kit/commit/faba869db3644077169bf5d7c6e41fd5f3d6c65e)) ### [`v2.53.2`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2532) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.53.1...@sveltejs/kit@2.53.2) ##### Patch Changes - fix: server-render nested form value sets ([#&#8203;15378](https://github.com/sveltejs/kit/pull/15378)) - fix: use deep partial types for form remote functions `.value()` and `.set(...)` ([#&#8203;14837](https://github.com/sveltejs/kit/pull/14837)) - fix: provide correct url info to remote functions ([#&#8203;15418](https://github.com/sveltejs/kit/pull/15418)) - fix: allow optional types for remote query/command/prerender functions ([#&#8203;15293](https://github.com/sveltejs/kit/pull/15293)) - fix: allow commands in more places ([#&#8203;15288](https://github.com/sveltejs/kit/pull/15288)) ### [`v2.53.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2531) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.53.0...@sveltejs/kit@2.53.1) ##### Patch Changes - fix: address warning about `inlineDynamicImports` when using Vite 8 ([#&#8203;15403](https://github.com/sveltejs/kit/pull/15403)) ### [`v2.53.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2530) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.52.2...@sveltejs/kit@2.53.0) ##### Minor Changes - feat: support Vite 8 ([#&#8203;15024](https://github.com/sveltejs/kit/pull/15024)) ##### Patch Changes - fix: remove event listeners on form attachment cleanup ([#&#8203;15286](https://github.com/sveltejs/kit/pull/15286)) - fix: apply queries refreshed in a form remote function when a redirect is thrown ([#&#8203;15362](https://github.com/sveltejs/kit/pull/15362)) ### [`v2.52.2`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2522) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.52.0...@sveltejs/kit@2.52.2) ##### Patch Changes - fix: validate `form` file information to prevent amplification attacks ([`3e607b3`](https://github.com/sveltejs/kit/commit/3e607b314aec9e5f278d32847945b8b6323e1cb8)) - chore: upgrade `devalue` and `svelte` ([#&#8203;15339](https://github.com/sveltejs/kit/pull/15339)) - fix: parse file offset table more strictly ([`f47c01b`](https://github.com/sveltejs/kit/commit/f47c01bd8100328c24fdb8522fe35913b0735f35)) ### [`v2.52.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2520) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.51.0...@sveltejs/kit@2.52.0) ##### Minor Changes - feat: `match` function to map a path back to a route id and params ([#&#8203;14997](https://github.com/sveltejs/kit/pull/14997)) ##### Patch Changes - fix: respect scroll-margin when navigating to a url-supplied anchor ([#&#8203;15246](https://github.com/sveltejs/kit/pull/15246)) - fix: `resolve` will narrow types to follow trailing slash page settings ([#&#8203;15027](https://github.com/sveltejs/kit/pull/15027)) ### [`v2.51.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2510) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.50.2...@sveltejs/kit@2.51.0) ##### Minor Changes - feat: add `scroll` property to `NavigationTarget` in navigation callbacks ([#&#8203;15248](https://github.com/sveltejs/kit/pull/15248)) Navigation callbacks (`beforeNavigate`, `onNavigate`, and `afterNavigate`) now include scroll position information via the `scroll` property on `from` and `to` targets: - `from.scroll`: The scroll position at the moment navigation was triggered - `to.scroll`: In `beforeNavigate` and `onNavigate`, this is populated for `popstate` navigations (back/forward) with the scroll position that will be restored, and `null` for other navigation types. In `afterNavigate`, this is always the final scroll position after navigation completed. This enables use cases like animating transitions based on the target scroll position when using browser back/forward navigation. - feat: `hydratable`'s injected script now works with CSP ([#&#8203;15048](https://github.com/sveltejs/kit/pull/15048)) ##### Patch Changes - fix: put preloads before styles ([#&#8203;15232](https://github.com/sveltejs/kit/pull/15232)) - fix: suppress false-positive inner content warning when children prop is forwarded to a child component ([#&#8203;15269](https://github.com/sveltejs/kit/pull/15269)) - fix: `fetch` not working when URL is same host but different than `paths.base` ([#&#8203;15291](https://github.com/sveltejs/kit/pull/15291)) - fix: navigate to hash link when base element is present ([#&#8203;15236](https://github.com/sveltejs/kit/pull/15236)) - fix: avoid triggering `handleError` when redirecting in a remote function ([#&#8203;15222](https://github.com/sveltejs/kit/pull/15222)) - fix: include `test` directory in generated `tsconfig.json` alongside existing `tests` entry ([#&#8203;15254](https://github.com/sveltejs/kit/pull/15254)) - fix: generate `tsconfig.json` using the value of `kit.files.src` ([#&#8203;15253](https://github.com/sveltejs/kit/pull/15253)) ### [`v2.50.2`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2502) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.50.1...@sveltejs/kit@2.50.2) ##### Patch Changes - fix: ensure inlined CSS follows `paths.assets` and `paths.relative` settings ([#&#8203;15153](https://github.com/sveltejs/kit/pull/15153)) - fix: emit script CSP nonces when `unsafe-inline` is present if `strict-dynamic` is also present ([#&#8203;15221](https://github.com/sveltejs/kit/pull/15221)) - fix: re-export browser/dev from esm-env ([#&#8203;15206](https://github.com/sveltejs/kit/pull/15206)) - fix: use validated args in batch resolver in both csr and ssr ([#&#8203;15215](https://github.com/sveltejs/kit/pull/15215)) - fix: ensure CSS inlining includes components that are conditionally rendered ([#&#8203;15153](https://github.com/sveltejs/kit/pull/15153)) - fix: only match rest params with matchers when the matcher matches ([#&#8203;15216](https://github.com/sveltejs/kit/pull/15216)) - fix: properly handle percent-encoded anchors (e.g. `<a href="#sparkles-%E2%9C%A8">`) during prerendering. ([#&#8203;15231](https://github.com/sveltejs/kit/pull/15231)) ### [`v2.50.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2501) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.50.0...@sveltejs/kit@2.50.1) ##### Patch Changes - fix: include `hooks.server` and `hooks.universal` as explicit Vite build inputs to ensure assets imported by hooks files are correctly discovered ([#&#8203;15178](https://github.com/sveltejs/kit/pull/15178)) - fix: improves fields type for generic components ([#&#8203;14974](https://github.com/sveltejs/kit/pull/14974)) - fix: preload links if href changes ([#&#8203;15191](https://github.com/sveltejs/kit/pull/15191)) ### [`v2.50.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2500) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.49.5...@sveltejs/kit@2.50.0) ##### Minor Changes - breaking: remove `buttonProps` from experimental remote form functions; use e.g. `<button {...myForm.fields.action.as('submit', 'register')}>Register</button>` button instead ([#&#8203;15144](https://github.com/sveltejs/kit/pull/15144)) ### [`v2.49.5`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2495) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.49.4...@sveltejs/kit@2.49.5) ##### Patch Changes - fix: avoid overriding Vite default `base` when running Vitest 4 ([#&#8203;14866](https://github.com/sveltejs/kit/pull/14866)) - fix: ensure url decoded pathnames are not mistaken as rerouted requests ([`d9ae9b0`](https://github.com/sveltejs/kit/commit/d9ae9b00b14f5574d109f3fd548f960594346226)) - fix: add length checks to remote forms ([`8ed8155`](https://github.com/sveltejs/kit/commit/8ed8155215b9a74012fecffb942ad9a793b274e5)) </details> --- ### Configuration 📅 **Schedule**: (in timezone America/Los_Angeles) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODYuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE4Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJzZWN1cml0eSJdfQ==-->
renovate-bot added 1 commit 2026-10-26 15:59:57 -07:00
chore(deps): update dependency @sveltejs/kit to v3 [security]
renovate/artifacts Artifact file update failure
d28be73043
Author
Collaborator

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn Unknown env config "store". This will error in a future major version of npm. See `npm help npmrc` for supported config options.
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: teh-riehl-skill-tree-portfolio@0.0.1
npm error Found: @sveltejs/vite-plugin-svelte@6.2.4
npm error node_modules/@sveltejs/vite-plugin-svelte
npm error   dev @sveltejs/vite-plugin-svelte@"^6.2.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @sveltejs/vite-plugin-svelte@"^7.0.0" from @sveltejs/kit@3.1.0
npm error node_modules/@sveltejs/kit
npm error   dev @sveltejs/kit@"^3.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2026-10-26T22_59_20_072Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2026-10-26T22_59_20_072Z-debug-0.log

### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: package-lock.json ``` npm warn Unknown env config "store". This will error in a future major version of npm. See `npm help npmrc` for supported config options. npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: teh-riehl-skill-tree-portfolio@0.0.1 npm error Found: @sveltejs/vite-plugin-svelte@6.2.4 npm error node_modules/@sveltejs/vite-plugin-svelte npm error dev @sveltejs/vite-plugin-svelte@"^6.2.1" from the root project npm error npm error Could not resolve dependency: npm error peer @sveltejs/vite-plugin-svelte@"^7.0.0" from @sveltejs/kit@3.1.0 npm error node_modules/@sveltejs/kit npm error dev @sveltejs/kit@"^3.0.0" from the root project npm error npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error /tmp/renovate/cache/others/npm/_logs/2026-10-26T22_59_20_072Z-eresolve-report.txt npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2026-10-26T22_59_20_072Z-debug-0.log ```
Some required checks failed
renovate/artifacts Artifact file update failure
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/npm-sveltejs-kit-vulnerability:renovate/npm-sveltejs-kit-vulnerability
git checkout renovate/npm-sveltejs-kit-vulnerability
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TehRiehlDeal/skill-tree-portfolio#7