Update dependency @sveltejs/kit to v3 #70
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/sveltejs-kit-3.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.22.2→3.0.1Release Notes
sveltejs/kit (@sveltejs/kit)
v3.0.1Compare Source
Patch Changes
nodenextmodule resolution (#17351)v3.0.0Compare Source
Major Changes
breaking: move remote function types to
$app/server(#16740)breaking: remove
experimental.handleRenderingErrorsflag (#16265)breaking: make
getRequestandsetResponsesynchronous (#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
cookiev2. 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
preloadStrategyoption.modulepreloadwill always be used (#15256)breaking: default the cookie
pathoption to'/'(#15398)breaking: remove
@sveltejs/kit/node/polyfills(#15430)breaking: add
config.kit.output.linkHeaderPreloadto preload using theLinkheader (#15939)breaking: require
@sveltejs/vite-plugin-sveltev7 (#15371)breaking: make
page.urlimmutable on a type level (#16256)breaking: remove
base,assets, andresolveRoutefrom$app/paths(#15507)breaking: remove
createEntriesfrom theBuilderobject passed to adapter functions (#15509)breaking: return no content for 204 responses (#16200)
breaking: rename
Pathnametype toPathandAssettoAssetPath(#16430)breaking: remove leading
/fromPathandAssetPathbreaking:
handle'sresolveis now typed to always return aPromise(#16352)breaking: remove
Serverconstructor andSSRManifestfrom 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
defineParamsand associated types to@sveltejs/kit/params(#16716)breaking: remove the deprecated CSRF
checkOriginoption in favor oftrustedOrigins(#15437)breaking: the
deltaproperty now only exists forpopstatenavigation events (#15522)breaking: change
form.errortype fromanytoApp.Error | undefined(#16245)breaking: remove deprecated
pragmaheader in version polling for improved CORS support (#15428)breaking:
gotonow 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
handleErrorhook (#16664)breaking: require Svelte 5.56.4 or newer (#15371)
breaking: error on
event.url,event.paramsandevent.routeaccess 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-workermodule (#16450)breaking: move
defineEnvVarsto@sveltejs/kit/env(#16375)breaking: nested server-only directories (#15685)
feat: allow adapters to provide additional Vite plugins (#16206)
breaking: replace the
$libalias with#liband removefiles.libconfig. (#16360)breaking: remove
#libdefinition frompaths; requires explicit module extensions as a result (#16736)chore: change
error,isHttpError,redirect, andisRedirectto 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.pollIntervalto 1 hour (#16496)breaking: disallow cross-origin form submissions without a
Content-Typeheader (#16347)breaking: Server-only directories (
/server/in the path) are now treated as server-only everywhere inside the project (exceptsrc/routesand the assets directory) (#16360)breaking:
configexported 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 offalse(#15907)breaking: move tracing out of the experimental namespace and remove the instrumentation flag (#16260)
breaking: add
kit.paths.originconfig option, removekit.prerender.originand theadapter-nodeORIGINenvironment variable (#16161)breaking: move
Page,ReadonlyURLandReadonlyURLSearchParamsfrom@sveltejs/kitto$app/state(#16694)breaking: remove
$app/stores(#15499)breaking: add
refreshAlland deprecateinvalidateAll(#16289)breaking: reject query parameters beginning with
x-sveltekit-(#17125)breaking: disallow
*.remote.ts/jsfiles unlessexperimental.remoteFunctionsis enabled (#16247)breaking: replace the
noScrollandkeepFocusoptions ofgotowith a singleresetoption, and thedata-sveltekit-noscrollanddata-sveltekit-keepfocusattributes withdata-sveltekit-reset(#16558)breaking: don't abort navigation when calling
invalidate(All)during navigation (#16188)breaking: consistent special filename patterns (#16382)
breaking: allow
handleErrorto 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 stablerolldown1.0.0 (#16134)breaking: only include routes with a
+pageor+serverinRouteId(#16580)breaking: require Node 22.17 (#16597)
breaking: deprecate
error(status, {...})in favour oferror(status, message, {...})(#16540)breaking: replace the
builder.generateManifestwithbuilder.generateServerInstanceandbuilder.manifest(#16875)breaking: forbid external redirects by default (#16198)
breaking: separate adapter Vite plugins into
preandpost(#16711)breaking: remove param files in folder in favor of
params.js/tsfile (#16189)breaking: move env-related types to
@sveltejs/kit/env(#16739)breaking:
preloadCodenow takes a route ID (e.g./blog/[slug]) instead of a pathname. Route IDs are not prefixed withpaths.base(#16576)breaking: move
BeforeNavigate,OnNavigate,AfterNavigate,Navigation,NavigationTarget,NavigationType,GotoOptionsand theNavigation*variant types from@sveltejs/kitto$app/navigation(#16694)breaking: move
ActionResultandSubmitFunctionfrom@sveltejs/kitto$app/forms(#16694)breaking: remove
handleValidationErrorand pass remote function validation errors tohandleErrorwithkind: '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/manifestmodule withimmutable,assets,prerendered, androutesexports (#16372)feat: ignore files with + prefix if they contain test/spec/stories (#16715)
feat: add
ErrorPropsto 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
gotoand deprecatepushStateandreplaceState(#16449)feat: abort
request.signalwhen the response closes prematurely, via a newresponseoption forgetRequest(#16793)feat: make
$app/pathsimportable in service workers (#16441)feat: pass the project-relative source
filenameto thepreloadfilter 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/publicand$app/environmentas deprecated aliases for$app/env/private$app/env/publicand$app/env(#16334)feat: add
pageandendpointbooleans to$app/manifest'sroutes, and export aManifestRoutetype (#16594)feat:
$app/service-workermodule (#16458)feat: resolve paths using the Vite config
rootoption instead ofprocess.cwd()to better support monorepo configurations such as Vitest workspaces (#15469)feat: better error logging (#16374)
feat: add
PageRouteIdandEndpointRouteIdto$app/types(#16594)feat: better tsconfig validation (#16458)
feat: add
dirty()property to form fields (#16208)feat: support the
QUERYHTTP method in+server.js(#16782)feat: allow adapters to override
getRequestandsetResponseduringvite devandvite preview(#16753)chore: deprecate
Responsehelpers in favor of platform-provided alternatives (#15448)feat: add
cookies.parsemethod (#16203)chore: deprecate
export const snapshotin favour of thesnapshothelper (#16687)feat: add
snapshothelper to$app/navigation(#16685)feat: support custom values in
page.stateviatransporthook (#16662)fix: default cookies to
securetofalseduring development (#16462)feat: warn when naively proxying requests that result in responses with a
content-encodingheader (#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
applyReroutehelper 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
Pathtypes 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
undefinedvalues to be passed to form field.as(...)where applicable (#15681)fix: respect
paths.relativeduring development for client files (#17053)fix: validate prerender concurrency (#17145)
chore: deprecate
builder.rimrafandbuilder.mkdirpin favour ofnode:fsmethods (#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
.htmlpages (#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 withcookies.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
mrmimeto 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.scrollRestorationset tomanualwhen 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.jsonbased on Viterootsetting (#16229)fix: rebuild the dev manifest when route files disappear during an incremental update (#16643)
breaking: populate env vars before
instrumentation.server.jsis 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.prototypemembers as param matchers during validation (#16612)fix: generate a
neverPathtype 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/apito prevent bundler chunk colocation betweeninstrumentation.server.jsand application code (#16302)fix: support form fields named after Object prototype properties (#17136)
fix: exclude routes without a page or endpoint from
routesin$app/manifest, and remove directories with no route files fromLayoutParams(#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
nullaccept-languageheader on internalfetchsub-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
fetchwhenpaths.baseis 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 asvite-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.prototypemember (#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
hashchangeto app listeners (#16992)fix: keep a
form.forinstance 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
$liband$service-workerwhen 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
RequestEventproperties asreadonly(#16661)fix: render the nearest
+error.svelteat 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-typescriptto 1.0.12 (#16745)fix: update
matchparameter 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
.icofiles withimage/x-iconContent-Type (#16234)chore: bump
magic-stringto 1.1.0 (#16745)fix: exclude inlined files from the page's
$app/manifestimmutable 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-htmltrusted-types policy when client-side code is shipped, allowing builds where all pages havecsr: 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.origintype looser (#16215)chore: bump
devalueto 5.9.0 (#16745)feat: send periodic
keep-aliveSSE comments fromquery.liveto prevent idle-timeout errors (#16063)fix: send an explicit SSE Accept header for
query.liverequests to avoid buffering by proxies (#17104)fix: don't touch the
query.livestream controller after teardown, and make response cancellation observable via the generator'srequest.signal(#16790)fix: print
builder.log.warnmessages 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
logLevelandcustomLogger(#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 nowall(#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
cookiedependency during build (#16936)fix: reinstate
$app/environmentas an alias for$app/env, in case dependencies import it (#15964)fix: preserve
paths.basewhenvite previewredirects a prerendered page to the correct trailing slash (#16836)fix: error when reading non-serialized
set-cookieheaders viagetSetCookieinload(#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
aliasoption (#16470)fix: don't attempt to serialize fetch responses when the request body is not a string or TypedArray (#16501)
fix: respond to
HEADrequests 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
versionin service workers (#16434)feat: add field.touched() helper to remote form fields (#14692)
fix: respect
paths.relativefor server-side route resolution imports (#17056)fix: read the error status of
App.Errorin theprerenderandquery.liveremote 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.withResolversin 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.svelteis torn down (#16296)fix: clear
navigatingwhen 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.corsandpreview.corsconfig instead of overriding them (#16924)fix: respect the status returned from
handleErroron 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.jsoninstead of the deprecatedjsonhelper 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
Serverin favour of theserverobject written bybuilder.generateServerInstance(#17000)chore: derive
content-lengthfrom fixed response bodies insetResponse(#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
cookieto 2.0.1 (#16745)fix: detect
$app/serverand$app/env/privateclient imports when SvelteKit is installed inside the project root (#16648)chore: read
optionsfrom 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.jsonchecks ifupdated.currentis alreadytrue(#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
Setto 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.allowlist (#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/immutablefiles in$app/manifest'simmutablein the service worker (#16531)chore: remove the dead
SSRState.fallbackfield 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
acornto 8.18.0 (#16745)fix: resolve
rootper 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_losswarning andstate_unsafe_mutationerror when the new version detector runs after anawait(#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
--watchflag (#16632)chore: unify the
walkandlist_filesfilesystem 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.jsonso 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.Errorparameters (#16725)fix: prerender and crawl pages whose
content-typeheader carries acharsetparameter (#16567)fix: stream promised
readresults 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
parseSyncinstead ofacorn(#16947)fix: correctly decode
[u+nnnn]escape sequences aboveffff(#16611)fix: Reject all pending query promises when a query fails before resolving with a value for the first time (#16890)
v2.70.3Compare Source
Patch Changes
$app/statedependencies during module initialization (b61018d)v2.70.2Compare Source
Patch Changes
Acceptheader content negotiation (82712fc)v2.70.1Compare Source
Patch Changes
v2.70.0Compare Source
Minor Changes
defineEnvVarsto@sveltejs/kit/env(#16378)Patch Changes
NODE_ENVvalue (#16313)v2.69.3Compare Source
Patch Changes
fix: detect destructured
loadandactionsexports during type generation (#16329)fix: ensure CSS URL references are absolute when
paths.relativeisfalse(#16315)fix: align MAX_COOKIE_SIZE with RFC 6265bis (#16322)
v2.69.2Compare Source
Patch Changes
definevalues onglobalThiswhen running Vitest (#16246)v2.69.1Compare Source
Patch Changes
fix: prevent prototype pollution when deleting file inputs (#16218)
fix: prevent unhandled promise rejection (#16219)
v2.69.0Compare Source
Minor Changes
submittedproperty of remote forms (#14811)Patch Changes
fix: clear issues and touched states on form reset (#16163)
fix: return
undefinedfromfields.branch.issues()when onlyfields.branch.leafhas issues (#16187)v2.68.0Compare Source
Minor Changes
feat: expose
RemoteFormEnhanceInstanceandRemoteFormEnhanceCallbacktypes (#15816)feat: set value of
submitfields when form is submitted (#15979)Patch Changes
fix: skip
native_navigationwhen__data.jsonreturns 404 on a static fallback page (#16135)fix: ignore third-party monkeypatches in
pushState/replaceStatewarning 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
typehover info (#16147)v2.67.0Compare Source
Minor Changes
prerender.handleInvalidUrloption 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.0Compare Source
Minor Changes
feat: precompress prerendered
.mdand.mdxfiles (#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
baseis available from$service-workerduring development (#15882)fix: use correct relative asset paths when rendering an error page for a missing
__data.jsonrequest (#15884)fix: preserve active
for awaitconsumers acrossquery.livereconnects (#16022)fix: settle
query.livereconnect promise on all exit paths, preventinginvalidateAll()from deadlocking when a live query is offline or interrupted (#16022)fix: preserve last value when a
query.livestream completes without yielding on reconnect (#16022)fix: remove
types: ['node']from generated tsconfig to avoid errors when@types/nodeis not installed (#15709)fix: prefer pages over endpoints when prerendering (#16076)
fix: restore snapshots after afterNavigate callbacks (#16066)
fix: support
ws:/wss:andtrusted-types-evalfor CSP sources (#15938)fix: omit empty
fileinputs from remote form data (#15898)fix: fail early if a route with
+pageand+serveris marked as prerenderable (#16075)fix: wait a tick before resetting forms (#15805)
fix:
preflightschemas apply correctly when chained beforefor(#15863)fix: blank page in SPA mode when root layout
load()throws (#15798)fix: pass all unknown options from the
sveltekitVite plugin through tovite-plugin-svelte(#16010)v2.65.2Compare 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
preloadCodeto be called during initial page load (#16028)fix: send
cache-control: private, no-storeon 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
handlehook), 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
buildingresolves correctly to allow avoiding build-time explicit environment variable validation (#16058)fix: prevent unhandled promise rejections when remote function failures are consumed via
current/errorinstead ofawait(#16018)v2.65.1Compare 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
invalidateAllis set (#16014)fix: regression in loading assets for absolute path apps (#16026)
v2.65.0Compare Source
Minor Changes
Patch Changes
fix: dedupe remote data (#15991)
fix: skip client build if all routes have CSR disabled (#15936)
v2.64.0Compare Source
Minor Changes
Fileobjects (#15978)Patch Changes
v2.63.1Compare Source
Patch Changes
fix: use SSE for
query.live(#15957)fix: use forward slashes in the generated
env.d.tsimport path on Windows (#15977)fix: allow
$app/environmentwith a warning whenexplicitEnvironmentVariablesis enabled (#15980)fix: avoid importing Vite while validating explicit environment variables (#15953)
docs: adjust the release version of explicit env vars (#15968)
fix: ensure
versionis defined when importing from$app/envwith explicit environment variables (#15971)v2.63.0Compare 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/publicin service workers (#15950)v2.62.0Compare Source
Minor Changes
Patch Changes
fix: preserve multiple
Set-Cookieheaders 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.jsmodule if public dynamic environment variables are not used by the app (#15940)v2.61.1Compare Source
Patch Changes
v2.61.0Compare Source
Minor Changes
breaking: the
.run()method has been removed from remote queries on both the client and the server. Useawait 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
submitmethod toformremote function instances (#15657)feat: pass
formremote function instance intoenhancecallback (#15657)Patch Changes
fix: resolve the app payload without using
process.env.NODE_ENV(#15852)fix: support
exactOptionalPropertyTypesfor optional route params (#15825)fix: correctly send
truevalue 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.1Compare Source
Patch Changes
chore: bump
svelteanddevalue(#15836)fix: prevent
query.batchcross-talk (dadaefc)v2.60.0Compare Source
Minor Changes
feat: allow 'submit' and 'hidden' form fields to accept numbers and booleans (#15802)
feat: warn on unread
formremote 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.1Compare Source
Patch Changes
v2.59.0Compare Source
Minor Changes
feat: support
query.batchinrequested(...)(#15751)breaking: on the server, make the promise returned from
refreshrepresent adding the refresh to the map, not the time it takes to run the remote function (#15705)feat: experimental
query.livefunction (#15705)Patch Changes
fix: unwrap
PromiseinRemoteCommandoutput 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.0Compare Source
Minor Changes
breaking: require
limitinrequested(as originally intended) (#15739)feat:
RemoteQueryFunctiongains an optional third generic parameterValidated(defaulting toInput) that represents the argument type after schema validation/transformation (#15739)breaking:
requestednow yields{ arg, query }entries instead of the validated argument (#15739)Patch Changes
fix: allow
query().current,.error,.loading, and.readyto work in non-reactive contexts (#15699)fix: prevent
deep_setcrash on nullish nested values (#15600)fix: restore correct
RemoteFormFieldstyping 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 intransformPageChunkwould 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
resolveis 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.1Compare Source
Patch Changes
fix: better validation for
redirectinputs (10d7b44)fix: enforce
BODY_SIZE_LIMITon chunked requests (3202ed6)fix: use default values as fallbacks (#15680)
fix: relax form typings for union types (#15687)
v2.57.0Compare Source
Minor Changes
submitto indicate submission validity for enhancedformremote 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.1Compare Source
Patch Changes
v2.56.0Compare 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
hydratablefor remote function transport (#15533)feat: allow
formfields to specify a default value (field.as(type, value)) (#15577)Patch Changes
fix: don't request new data when
.refreshis 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
basesetting warning when setting apaths.baseinsvelte.config.js(#15623)fix: manage queries in their own
$effect.root(#15533)fix: avoid
inlineDynamicImportsdeprecation 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.sveltefile uses runes mode (#15609)fix: deduplicate same-cache-key
batchcalls during SSR (#15533)fix: decrement pending_count when form callback doesn't call submit() (#15520)
v2.55.0Compare Source
Minor Changes
$app/types, leading to better type safety when working with params in$app/types,$app/state, and hooks. (#15502)v2.54.0Compare Source
Minor Changes
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.4Compare Source
Patch Changes
codeSplittingoption (#15451)v2.53.3Compare Source
Patch Changes
form(faba869)v2.53.2Compare 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.1Compare Source
Patch Changes
inlineDynamicImportswhen using Vite 8 (#15403)v2.53.0Compare 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.2Compare Source
Patch Changes
fix: validate
formfile information to prevent amplification attacks (3e607b3)chore: upgrade
devalueandsvelte(#15339)fix: parse file offset table more strictly (
f47c01b)v2.52.0Compare Source
Minor Changes
matchfunction 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:
resolvewill narrow types to follow trailing slash page settings (#15027)v2.51.0Compare Source
Minor Changes
feat: add
scrollproperty toNavigationTargetin navigation callbacks (#15248)Navigation callbacks (
beforeNavigate,onNavigate, andafterNavigate) now include scroll position information via thescrollproperty onfromandtotargets:from.scroll: The scroll position at the moment navigation was triggeredto.scroll: InbeforeNavigateandonNavigate, this is populated forpopstatenavigations (back/forward) with the scroll position that will be restored, andnullfor other navigation types. InafterNavigate, 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:
fetchnot working when URL is same host but different thanpaths.base(#15291)fix: navigate to hash link when base element is present (#15236)
fix: avoid triggering
handleErrorwhen redirecting in a remote function (#15222)fix: include
testdirectory in generatedtsconfig.jsonalongside existingtestsentry (#15254)fix: generate
tsconfig.jsonusing the value ofkit.files.src(#15253)v2.50.2Compare Source
Patch Changes
fix: ensure inlined CSS follows
paths.assetsandpaths.relativesettings (#15153)fix: emit script CSP nonces when
unsafe-inlineis present ifstrict-dynamicis 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.1Compare Source
Patch Changes
fix: include
hooks.serverandhooks.universalas 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.0Compare Source
Minor Changes
buttonPropsfrom experimental remote form functions; use e.g.<button {...myForm.fields.action.as('submit', 'register')}>Register</button>button instead (#15144)v2.49.5Compare Source
Patch Changes
fix: avoid overriding Vite default
basewhen running Vitest 4 (#14866)fix: ensure url decoded pathnames are not mistaken as rerouted requests (
d9ae9b0)fix: add length checks to remote forms (
8ed8155)v2.49.4Compare Source
Patch Changes
fix: support instrumentation for
vite preview(#15105)fix: support for
URLSearchParams.has(name, value)overload (#15076)fix: put forking behind
experimental.forkPreloads(#15135)v2.49.3Compare Source
Patch Changes
fix: avoid false-positive Vite config overridden warning when using Vitest 4 (#15121)
fix: add
typescriptas an optional peer dependency (#15074)fix: use hasOwn check when deep-setting object properties (#15127)
v2.49.2Compare Source
Patch Changes
fix: Stop re-loading already-loaded CSS during server-side route resolution (#15014)
fix: posixify the instrumentation file import on Windows (#14993)
fix: Correctly handle shared memory when decoding binary form data (#15028)
v2.49.1Compare Source
Patch Changes
fix: suppress
state_referenced_locallywarnings in.svelte-kit/generated/root.svelte(#15013)fix: TypeError when doing response.clone() in page load (#15005)
v2.49.0Compare Source
Minor Changes
formremote functions allowing form data to be accessed before large files finish uploading (#14775)v2.48.8Compare Source
Patch Changes
breaking:
invalidnow must be imported from@sveltejs/kit(#14768)breaking: remove
submitteroption from experimental formvalidate()method, always provide default submitter (#14762)v2.48.7Compare Source
Patch Changes
fix: allow multiple
server-timingheaders (#14700)fix: allow access to root-level issues in schema-less forms (#14893)
fix: allow hosting hash-based apps from non-index.html files (#14825)
v2.48.6Compare Source
Patch Changes
fix: clear issues upon passing validation (#14683)
fix: don't use fork of unrelated route (#14947)
fix: prevent type errors when optional
@opentelemetry/apidependency isn't installed (#14949)fix: preserve
thiswhen invoking standard validator (#14943)fix: treat client/universal hooks as entrypoints for illegal server import detection (#14876)
fix: correct query
.setand.refreshbehavior in commands (#14877)fix: improved the accuracy of the types of the output of
field.as('...')(#14908)v2.48.5Compare Source
Patch Changes
fix: wait an extra microtask in dev before calling
$_init_$(#14799)fix: discard preload fork before creating a new one (#14865)
fix: delete
RemoteFormAllIssue, addpathtoRemoteFormIssue(#14864)v2.48.4Compare Source
Patch Changes
fix: adjust query's promise implementation to properly allow chaining (#14859)
fix: make prerender cache work, including in development (#14860)
v2.48.3Compare Source
Patch Changes
fix: include hash when using
resolvewith hash routing enabled (#14786)fix:
afterNavigatecallback not running after hydration when experimental async is enabled (#14644)fix: Snapshot
restoremethod not called after reload when experimental async is enabledfix: expose
issue.pathin.allIssues()(#14784)v2.48.2Compare Source
Patch Changes
v2.48.1Compare Source
Patch Changes
settled(#14818)v2.48.0Compare Source
Minor Changes
forkAPI when available (#14793)Patch Changes
settledinstead oftickin navigate (#14800)v2.47.3Compare Source
Patch Changes
fix: avoid hanging when
error()is used while streaming promises from a serverloadfunction (#14722)chore: treeshake load function code if we know it's unused (#14764)
fix:
RecursiveFormFieldstype for recursive or unknown schemas (#14734)fix: rework internal representation of form value to be
$state(#14771)v2.47.2Compare Source
Patch Changes
fix: streamed promise not resolving when another load function returns a fast resolving promise (#14753)
chore: allow to run preflight validation only (#14744)
fix: update overload to set
invalidtype to schema input (#14748)v2.47.1Compare Source
Patch Changes
fix: allow
readto be used at the top-level of remote function files (#14672)fix: more robust remote files generation (#14682)
v2.47.0Compare Source
Minor Changes
signalproperty to request (#14715)Patch Changes
v2.46.5Compare Source
Patch Changes
formremote functions'fields.settriggers reactivity (#14661)v2.46.4Compare Source
Patch Changes
untrackfunction (#14658)v2.46.3Compare Source
Patch Changes
fix: merge
field.set(...)calls (#14651)fix: don't automatically reset form after an enhanced submission (#14626)
fix: normalize path strings when updating field values (#14649)
v2.46.2Compare Source
Patch Changes
envmodules (#14637)v2.46.1Compare Source
Patch Changes
fix: use
$derivedfor form fields (#14621)docs: remove
@exampleblocks to allow docs to deploy (#14636)fix: require a value with
submitandhiddenfields (#14635)fix: delete hydration cache on effect teardown (#14611)
v2.46.0Compare Source
Minor Changes
Patch Changes
fix: wait a tick before collecting form data for validation (#14631)
fix: prevent code execution order issues around SvelteKit's
envmodules (#14632)v2.45.0Compare Source
Minor Changes
form.for(id)now implicitly sets id on form object (#14623)Patch Changes
fetchin remote function without emitting a warning (#14610)v2.44.0Compare Source
Minor Changes
feat: expose
event.routeandevent.urlto remote functions (#14606)breaking: update experimental
formAPI (#14481)Patch Changes
v2.43.8Compare Source
Patch Changes
fix: HMR for
query(#14587)fix: avoid client modules while traversing dependencies to prevent FOUC during dev (#14577)
fix: skip prebundling of .remote.js files (#14583)
fix: more robust remote file pattern matching (#14578)
v2.43.7Compare Source
Patch Changes
fix: correctly type the
resultofformremote functions that do not accept data (#14573)fix: force remote module chunks to isolate themselves (#14571)
v2.43.6Compare Source
Patch Changes
fix: ensure cache key is consistent between client/server (#14563)
fix: keep resolve relative to initial base during prerender (#14533)
fix: avoid including
HEADtwice when an unhandled HTTP method is used in a request to a+serverhandler that has both aGEThandler and aHEADhandler (#14564)fix: smoothscroll to deep link (#14569)
v2.43.5Compare Source
Patch Changes
resolve(...)outside an event context (#14532)v2.43.4Compare Source
Patch Changes
v2.43.3Compare Source
Patch Changes
fix: Webcontainer AsyncLocalStorage workaround (#14521)
fix: include the value of form submitters on
formremote functions (#14475)v2.43.2Compare Source
Patch Changes
fix: ensure rendering starts off synchronously (#14517)
fix: keep serialized remote data alive until navigation (#14508)
v2.43.1Compare Source
Patch Changes
v2.43.0Compare Source
Minor Changes
Patch Changes
fix: ensure
__SVELTEKIT_PAYLOAD__.datais accessed safely (#14491)fix: create separate cache entries for non-exported remote function queries (#14499)
v2.42.2Compare Source
Patch Changes
fix: prevent loops in postbuild analysis phase (#14450)
fix: handle nested object fields in form data (#14469)
fix: robustify form helper types (#14463)
fix: avoid running the
inithook during builds if there's nothing to prerender (#14464)fix: ensure SSR rendering gets request store context (#14476)
v2.42.1Compare Source
Patch Changes
v2.42.0Compare Source
Minor Changes
feat: enhance remote form functions with schema support,
inputandissuesproperties (#14383)breaking: remote form functions get passed a parsed POJO instead of a
FormDataobject now (#14383)v2.41.0Compare Source
Minor Changes
%sveltekit.version%toapp.html(#12132)Patch Changes
fix: allow remote functions to return custom types serialized with
transporthooks (#14435)fix: fulfil
beforeNavigatecompletewhen redirected (#12896)v2.40.0Compare Source
Minor Changes
eventproperty on popstate/link/form navigation (#14307)Patch Changes
fix: respect
replaceState/keepFocus/noScrollwhen a navigation results in a redirect (#14424)fix: invalidate preload cache when invalidateAll is true (#14420)
v2.39.1Compare Source
Patch Changes
v2.39.0Compare Source
Minor Changes
Patch Changes
fix: layout load data not serialized on error page (#14395)
fix: fail prerendering when remote function fails (#14365)
fix: treat handle hook redirect as part of remote function call as json redirect (#14362)
v2.38.1Compare Source
Patch Changes
fix: enable redirects from queries (#14400)
fix: remove empty nodes from serialized server load data (#14404)
fix: allow commands from within endpoints (#14343)
v2.38.0Compare Source
Minor Changes
query.batch(#14272)v2.37.1Compare Source
Patch Changes
fix: serialize server
loaddata before passing to universalload, to handle mutations and promises (#14298)fix: resolve_route prevent dropping a trailing slash of id (#14294)
fix: assign correct status code to form submission error on the client (#14345)
fix: un-proxy
form.result(#14346)v2.37.0Compare Source
Minor Changes
feat: automatically resolve
query.refresh()promises on the server (#14332)feat: allow query.set() to be called on the server (#14304)
Patch Changes
fix: disable CSRF checks in dev (#14335)
fix: allow redirects to external URLs from within form functions (#14329)
fix: add type definitions for
query.set()method to override the value of a remote query function (#14303)fix: ensure uniqueness of
form.for(...)across form functions (#14327)v2.36.3Compare Source
Patch Changes
fix: bump devalue (#14323)
chore: consolidate dev checks to use
esm-envinstead of a__SVELTEKIT_DEV__global (#14308)fix: reset form inputs by default when using remote form functions (#14322)
v2.36.2Compare Source
Patch Changes
chore: make config deprecation warnings more visible (#14281)
chore: remove redundant Not Found error message (#14289)
chore: deprecate
csrf.checkOriginin favour ofcsrf.trustedOrigins: ['*'](#14281)v2.36.1Compare Source
Patch Changes
$app/navigationworks in test files (#14195)v2.36.0Compare Source
Minor Changes
csrf.trustedOriginsconfiguration (#14021)Patch Changes
fix: correctly decode custom types streamed from a server load function (#14261)
fix: add trailing slash pathname when generating typed routes (#14065)
v2.35.0Compare Source
Minor Changes
Patch Changes
v2.34.1Compare Source
Patch Changes
fix: support multiple cookies with the same name across different paths and domains (
b2c5d02)fix: add link header when preloading font (#14200)
fix:
cookies.get(...)returnsundefinedfor a just-deleted cookie (b2c5d02)fix: load env before prerender (
c5f7139)v2.34.0Compare Source
Minor Changes
envaccess during prerender (#14243)Patch Changes
fix: clone
fetchresponses so that headers are mutable (#13942)fix: serialize server
loaddata before passing to universalload, to handle mutations (#14268)fix: allow
asset(...)to be used with imported assets (#14270)v2.33.1Compare Source
Patch Changes
fix: make paths in .css assets relative (#14262)
fix: avoid copying SSR stylesheets to client assets (#13069)
v2.33.0Compare Source
Minor Changes
Patch Changes
fix: use correct flag for server tracing (#14250)
fix: correct type names for new
handleUnseenRoutesoption (#14254)chore: Better docs and error message for missing
@opentelemetry/apidependency (#14250)v2.32.0Compare Source
Minor Changes
response.bodystream data as base64 in page (#11473)Patch Changes
.remote.tsfiles are used without theexperimental.remoteFunctionsflag (#14225)v2.31.1Compare Source
Patch Changes
v2.31.0Compare Source
Minor Changes
feat: OpenTelemetry tracing for
handle,sequence, form actions, remote functions, andloadfunctions running on the server (#13899)feat: add
instrumentation.server.tsfor tracing and observability setup (#13899)v2.30.1Compare Source
Patch Changes
$app/typesin a more Typescript-friendly way (#14207)v2.30.0Compare Source
Minor Changes
svelte.config.js(#13578)Patch Changes
fix: ensure buttonProps.enhance works on buttons with nested text (#14199)
fix: pass validation issues specifically to avoid non-enumerable spreading error (#14197)
v2.29.1Compare Source
Patch Changes
v2.29.0Compare Source
Minor Changes
kit.files.srcoption (#14152)Patch Changes
fix: don't treat
$lib/server.tsor$lib/server_whatever.tsas server-only modules, only$lib/server/**(#14191)fix: make illegal server-only import errors actually useful (#14155)
chore: deprecate
config.kit.filesoptions (#14152)fix: avoid warning if page options in a Svelte file belongs to a comment (#14180)
v2.28.0Compare Source
Minor Changes
feat: add
RouteIdandRouteParamsto NavigationTarget interface (#14167)feat: add
pendingproperty to forms and commands (#14137)Patch Changes
fix:
fetchimported assets during prerender (#12201)chore: refactor redundant base64 encoding/decoding functions (#14160)
fix: use correct cache result when fetching same url multiple times (#12355)
fix: don't refresh queries automatically when running commands (#14170)
fix: avoid writing remote function bundle to disk when treeshaking prerendered queries (#14161)
v2.27.3Compare Source
Patch Changes
.gitto the end ofpackage.jsonrepository url (#14134)v2.27.2Compare Source
Patch Changes
fix: ensure
form()remote functions work when the app is configured to a single output (#14127)fix: use the configured base path when calling remote functions from the client (#14106)
v2.27.1Compare Source
Patch Changes
fix: correctly type remote function input parameters from a schema (#14098)
fix: match URL-encoded newlines in rest route params (#14102)
fix: correctly spell server-side in error messages (#14101)
v2.27.0Compare Source
Minor Changes
v2.26.1Compare Source
Patch Changes
fix: posixify internal app server path (#14049)
fix: ignore route groups when generating typed routes (#14050)
v2.26.0Compare Source
Minor Changes
feat: better type-safety for
page.route.id,page.params,page.url.pathnameand various other places (#13864)feat:
resolve(...)andasset(...)helpers for resolving paths (#13864)feat: Add
$app/typesmodule withAsset,RouteId,Pathname,ResolvedPathnameRouteParams<T>andLayoutParams<T>(#13864)v2.25.2Compare Source
Patch Changes
v2.25.1Compare Source
Patch Changes
v2.25.0Compare Source
Minor Changes
readimplementations from adapters (#13859)Patch Changes
v2.24.0Compare Source
Minor Changes
paramsprop for page/layout components (#13999)Patch Changes
storage.gethelper (#13998)v2.23.0Compare Source
Minor Changes
feat: support svelte.config.ts (#13935)
Patch Changes
fix: extend
vite-plugin-svelte'sConfigtype instead of duplicating it (#13982)fix: regression with
rolldown-vitenot bundling a single JS file for single and inline apps (#13941)v2.22.5Compare Source
Patch Changes
@sveltejs/kittooptimizeDeps.exclude(#13983)v2.22.4Compare Source
Patch Changes
$app/*modules to be bundled (#13977)v2.22.3Compare Source
Patch Changes
@sveltejs/kit(#13971)Configuration
📅 Schedule: (UTC)
🚦 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.
This PR has been generated by Mend Renovate CLI.
⚠️ 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:
The artifact failure details are included below:
File name: package-lock.json
2fc02d609fa20e57a475a20e57a475793df15a81View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.