Change8

@sveltejs/kit@3.0.0-next.24

📦 sveltekitView on GitHub →
2 features🐛 14 fixes🔧 5 symbols

Summary

Introduces support for the QUERY HTTP method and passes project-relative filenames to the preload filter for fonts. Includes numerous bug fixes for form submissions, error handling, and navigation.

✨ New Features

  • Pass the project-relative source `filename` to the `preload` filter for fonts.
  • Support the `QUERY` HTTP method in `+server.js`.

🐛 Bug Fixes

  • Keep at most one pending body read at a time when deserializing binary forms.
  • Render the nearest error page when a form submission receives a non-ActionResult error response.
  • Reuse SSR-cached fetch responses during hydration when a cross-origin URL is not in canonical form.
  • Resolve client manifest imports against the Vite root.
  • Render the nearest `+error.svelte` at the depth it occupies when an error is thrown during rendering.
  • Wait for the redirect navigation before remote form submissions resolve.
  • Only suggest a `+` prefix for route filenames that are valid with the file's extension.
  • Don't throw from remote form `validate()` if the form unmounts while it is waiting for a tick.
  • Rerun load functions when the number of values of a tracked search parameter changes.
  • Preserve `paths.base` when `vite preview` redirects a prerendered page to the correct trailing slash.
  • Don't crash on interactions inside a form whose controls shadow `nodeName`.
  • Correctly read zero-length files at the end of a binary form payload.
  • Wait for the redirect navigation before prerendered remote functions resolve.
  • Return root layout server data for error-page data requests to non-existent routes.

Affected Symbols