Change8

@astrojs/netlify@7.0.0-alpha.4

📦 astroView on GitHub →
2 features1 deprecations🔧 3 symbols

Summary

This release introduces a new object-based configuration for session drivers to improve consistency, deprecating the previous string-based configuration method.

Migration Steps

  1. Import 'sessionDrivers' from 'astro/config'.
  2. Update the 'session.driver' configuration from a string to a function call from 'sessionDrivers', passing any options directly into the function.

✨ New Features

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

🔧 Affected Symbols

defineConfigsessionDriverssession.driver

⚡ Deprecations

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