@sveltejs/kit@2.66.0
📦 sveltekitView on GitHub →
✨ 2 features🐛 16 fixes🔧 6 symbols
Summary
This release introduces precompression for markdown files and adds warnings for missing optional boolean inputs in form schemas. Numerous fixes address issues related to live queries, prerendering, form handling, and TypeScript configuration.
Migration Steps
- If you rely on the generated tsconfig including `types: ['node']`, you may need to manually add it back if you encounter type errors after updating, as it has been removed by default.
✨ New Features
- Precompress prerendered .md and .mdx files.
- Warn the user when they forget to make boolean inputs optional in their form schemas.
🐛 Bug Fixes
- Blur active element before component update during navigation so that blur/focusout handlers fire while old component data is still valid.
- Ensure `base` is available from `$service-worker` during development.
- Use correct relative asset paths when rendering an error page for a missing `__data.json` request.
- Preserve active `for await` consumers across `query.live` reconnects.
- Settle `query.live` reconnect promise on all exit paths, preventing `invalidateAll()` from deadlocking when a live query is offline or interrupted.
- Preserve last value when a `query.live` stream completes without yielding on reconnect.
- Remove `types: ['node']` from generated tsconfig to avoid errors when `@types/node` is not installed.
- Prefer pages over endpoints when prerendering.
- Restore snapshots after afterNavigate callbacks.
- Support `ws:`/`wss:` and `trusted-types-eval` for CSP sources.
- Omit empty `file` inputs from remote form data.
- Fail early if a route with `+page` and `+server` is marked as prerenderable.
- Wait a tick before resetting forms.
- `preflight` schemas apply correctly when chained before `for`.
- Fix blank page in SPA mode when root layout `load()` throws.
- Pass all unknown options from the `sveltekit` Vite plugin through to `vite-plugin-svelte`.