@sveltejs/kit@2.65.2
📦 sveltekitView on GitHub →
🐛 11 fixes🔧 3 symbols
Summary
This patch release focuses on numerous bug fixes across prerendering, caching, environment variable access, and remote function handling.
🐛 Bug Fixes
- Throw an error when prerendering a root +server.js that returns a non-HTML response.
- Decode base64-serialized fetch bodies before caching them for client-side replay.
- Correctly access explicit dynamic public environment variables from prerendered pages and service workers.
- Allow `preloadCode` to be called during initial page load.
- Send `cache-control: private, no-store` on remote function responses so personalized query results can never be cached by shared caches.
- 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.
- Avoid loading universal nodes during build analysis when the app uses a hash router.
- Correctly serve client entry during development when using the pnpm global virtual store.
- Normalize path separators when comparing config.
- Ensure `building` resolves correctly to allow avoiding build-time explicit environment variable validation.
- Prevent unhandled promise rejections when remote function failures are consumed via `current`/`error` instead of `await`.