SvelteKit 3.0.0-next.9

3.0.0-next.9Pre-release
Changed 3
  • The `handle` hook's `resolve` function is now typed to always return a Promise
  • Server-only directories (`/server/` in the path) are now treated as server-only everywhere inside the project except `src/routes` and the assets directory
  • Delegate CORS handling to Vite for static directory requests during development
Fixed 3
  • Avoid client-side code being bundled by Cloudflare Wrangler
  • Handle rejected streamed server data after delayed loads
  • Enable CSRF protection in builds with a non-production NODE_ENV value
Removed 1
  • Replace the `$lib` alias with `#lib` and remove `files.lib` config
Deprecated 1
  • Reinstate `$env/static/private`, `$env/dynamic/private`, `$env/static/public`, `$env/dynamic/public` and `$app/environment` as deprecated aliases for `$app/env/private`, `$app/env/public` and `$app/env`
Security 1
  • Disallow cross-origin form submissions without a Content-Type header
Major Changes
  • breaking: handle's resolve is now typed to always return a Promise (#16352)

  • breaking: replace the $lib alias with #lib and remove files.lib config. (#16360)

  • breaking: disallow cross-origin form submissions without a Content-Type header (#16347)

  • breaking: Server-only directories (/server/ in the path) are now treated as server-only everywhere inside the project (except src/routes and the assets directory) (#16360)

  • breaking: delegate CORS handling to Vite for static directory requests during development (#16357)

Minor Changes
  • feat: reinstate $env/static/private, $env/dynamic/private, $env/static/public, $env/dynamic/public and $app/environment as deprecated aliases for $app/env/private $app/env/public and $app/env (#16334)
Patch Changes
  • perf: cache the default cookie header parse and avoid allocations in cookies.get (#16341)

  • fix: avoid client-side code being bundled by Cloudflare Wrangler (#16364)

  • fix: handle rejected streamed server data after delayed loads (#16268)

  • fix: enable CSRF protection in builds with a non-production NODE_ENV value (#16313)

View original

Upgraded? How did it go?

Discussion