SvelteKit 2.69.3
SvelteKit 2.69.3 has been released, bringing three targeted fixes that address issues with type generation, CSS URL handling, and cookie size limits. This patch follows the previous 2.69.2 release by less than a week and focuses on stability improvements for production deployments.
What Changed
Type Generation for Destructured Exports
The first fix addresses a scenario where destructured load and actions exports were not properly detected during automatic type generation. Developers using destructured exports in their route files would occasionally encounter missing type definitions, leading to TypeScript errors in otherwise correct code. The fix ensures all export patterns are correctly recognized when generating types.
Absolute CSS URL References
A bug affecting users of the paths.relative configuration option has been resolved. When paths.relative was set to false, CSS URL references were not being converted to absolute paths as expected. This could cause broken asset links in deployed sites that use custom path configurations. The fix ensures that CSS references are always absolute when paths.relative is disabled.
Cookie Size Limit Alignment
The maximum cookie size has been aligned with RFC 6265bis, the updated specification for HTTP cookies. This change ensures that SvelteKit's cookie handling is compliant with current standards, preventing potential issues with browsers that enforce the latest specification.
Why It Matters
While these fixes are narrow in scope, they address real-world issues that developers encountered in production environments. The type generation fix in particular is significant for teams using TypeScript with SvelteKit, as missing type exports can break CI pipelines that rely on strict type checking.
How to Update
Upgrade to SvelteKit 2.69.3 by running your package manager's update command:
npm update @sveltejs/kit
Or if you prefer a clean install:
npm install @sveltejs/kit@latest
What's Next
The Svelte team continues to prepare larger features for upcoming minor releases. This patch ensures the framework remains stable while those features are in development.