Change8

@astrojs/cloudflare@13.0.0-alpha.3

Breaking Changes
📦 astro
1 breaking2 features🐛 3 fixes1 deprecations🔧 4 symbols

Summary

This release introduces a new object-based configuration for session drivers and includes several deployment and integration fixes for Cloudflare, Vue, and Wrangler.

⚠️ Breaking Changes

  • Removed an exposed internal API of the preview server.

Migration Steps

  1. Update astro/config to import sessionDrivers.
  2. Refactor session configuration from string-based drivers to function calls, e.g., change driver: 'redis' to driver: sessionDrivers.redis({ ...options }).

✨ New Features

  • Introduced a new session driver object shape for improved consistency and flexibility.
  • Added sessionDrivers export to 'astro/config' for configuring session storage.

🐛 Bug Fixes

  • Fixed static content deployment for Wrangler by moving content to a separate folder to distinguish between static and worker assets.
  • Fixed runtime errors occurring when using the Vue integration with the Cloudflare adapter.
  • Excluded 'astro:*' and 'virtual:astro:*' from client optimizeDeps to fix issues for prefetch users where virtual modules appear in the dependency graph.

🔧 Affected Symbols

defineConfigsessionDriverssession.driveroptimizeDeps

⚡ Deprecations

  • Specifying the session driver as a string (e.g., driver: 'redis') is deprecated in favor of the new object shape.