@astrojs/node@10.0.0-alpha.3
📦 astroView on GitHub →
✨ 2 features⚡ 1 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
- Import 'sessionDrivers' from 'astro/config'.
- 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.