@sveltejs/kit@3.0.0-next.11
Breaking Changes📦 sveltekitView on GitHub →
⚠ 2 breaking✨ 3 features🐛 6 fixes
Summary
This release introduces support for production sourcemaps and function validators for environment variables. It also includes several bug fixes for improved error handling and consistency.
⚠️ Breaking Changes
- The `config` exported from a universal route file now takes precedence over a server one. If you have conflicting `config` exports, ensure the desired configuration is in the universal route file.
- Special filename patterns are now handled more consistently. Review your file naming conventions, especially for route files, to ensure they adhere to the updated patterns.
✨ New Features
- Support for sourcemaps in production builds.
- Support for function validators for environment variables.
- Improved error logging for better debugging.
🐛 Bug Fixes
- Callable standard schemas are no longer treated as function parameter matchers.
- Malformed streamed data encoding is now rejected.
- Stack traces for internal errors like 404s are now hidden.
- HTML escaping now correctly matches only unpaired surrogates.
- Empty environment variables are no longer reported as missing.
- Clarified which hooks run during server route resolution.