Change8

@sveltejs/adapter-cloudflare@8.0.0-next.5

Breaking Changes
📦 sveltekitView on GitHub →
6 breaking🐛 3 fixes🔧 6 symbols

Summary

This release introduces breaking changes including updated Wrangler and `@cloudflare/workers-types` versions, removal of `platform.context`, and a shift to Workers Caching. It also includes several bug fixes and chore updates.

⚠️ Breaking Changes

  • Minimum Wrangler version required is `4.118.0`. Update your Wrangler installation.
  • Upgraded `@cloudflare/workers-types` to `4.20260219.0`. Ensure compatibility with this new version.
  • Minimum `wrangler` version required is `^4.67.0`. Update your Wrangler installation.
  • Removed `platform.context` in favor of `platform.ctx`. Replace all occurrences of `platform.context` with `platform.ctx` in your code.
  • Requires SvelteKit 3. Ensure your project is using SvelteKit 3 or later.
  • Removed the use of the Cloudflare Workers Cache API in favor of Workers Caching. Migrate your caching logic to use the new Workers Caching API.

Migration Steps

  1. Update Wrangler to at least version `4.118.0`.
  2. Update Wrangler to at least version `^4.67.0`.
  3. Replace all occurrences of `platform.context` with `platform.ctx`.
  4. Migrate your caching logic to use the new Workers Caching API instead of the Cloudflare Workers Cache API.

🐛 Bug Fixes

  • Avoided overriding user's existing `_headers` rules.
  • Allowed prerelease versions of SvelteKit 3 to satisfy the peer dependency range.
  • Avoided caching immutable asset 404s.

Affected Symbols