Change8

astro@6.0.0-alpha.3

Breaking Changes
📦 astroView on GitHub →
2 breaking1 features🐛 2 fixes1 deprecations🔧 4 symbols

Summary

This release introduces a new object-based configuration for session drivers, deprecates the old string signature, and removes the session test driver and internal preview server APIs.

⚠️ Breaking Changes

  • The session 'test' driver has been removed. Users should refer to the v6 upgrade guidance for alternatives.
  • An exposed internal API of the preview server has been removed.

Migration Steps

  1. Update session configuration to use the new object shape: import { sessionDrivers } from 'astro/config' and set driver: sessionDrivers.driverName({ ...options }).
  2. Remove any usage of the 'test' session driver.
  3. Update Cloudflare deployments by re-running 'astro add cloudflare' or manually correcting the wrangler entrypoint and compatibility date.

✨ New Features

  • Introduced a new session driver object shape for greater flexibility and consistency, accessible via sessionDrivers from 'astro/config'.

🐛 Bug Fixes

  • Fixed wrangler config template in 'astro add cloudflare' to use the correct entrypoint and compatibility date.
  • Excluded 'astro:*' and 'virtual:astro:*' from client optimizeDeps to support prefetch users with virtual modules in the dependency graph.

🔧 Affected Symbols

sessionDriversdefineConfigastro:configoptimizeDeps

⚡ Deprecations

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