Change8

@sveltejs/kit@2.57.0

📦 sveltekitView on GitHub →
1 features🐛 5 fixes🔧 1 symbols

Summary

This release introduces a boolean return value for the `submit` function in remote functions and resolves several bugs related to CSP directives, Vite 8 compatibility, and form field typing.

✨ New Features

  • The `submit` function in remote functions now returns a boolean indicating submission validity for enhanced form handling.

🐛 Bug Fixes

  • Select fields that accept multiple values now correctly use the array type.
  • Silently 404 Chrome DevTools workspaces requests during development and preview.
  • Fixed an issue where `config.kit.csp.directives['trusted-types']` was not correctly requiring `'svelte-trusted-html'` (and `'sveltekit-trusted-url'` if a service worker is auto-registered) when configured.
  • Avoided ignoring `inlineDynamicImports` with a codeSplitting warning when using Vite 8.
  • Reimplemented treeshaking for non-dynamic prerendered remote functions.

Affected Symbols