Change8

@astrojs/node@10.0.0-alpha.3

📦 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 the options directly into the function.

✨ New Features

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

🔧 Affected Symbols

defineConfigsessionDriverssession.driver

⚡ Deprecations

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