Breaking change in config
Pre-release
Pre-release
The configuration now uses the concept of stores and configures them using the stores
object. This release only impacts the users using the alpha release.
import {
defineConfig,
+ stores
} from '@adonisjs/session'
export default defineConfig({
// ...rest of the config remains unchanged.
- driver: env.get('SESSION_DRIVER'),
+ store: env.get('SESSION_DRIVER'),
- file: {},
- redis: {},
+ stores: {
+ cookie: stores.cookie(),
+ },
})
- refactor: use session stores and get rid of drivers collection 3e967ac
- fix(cookie): change default config (#81) 3a0a592
- chore: update dependencies 9edb89e
What's Changed
- fix(cookie): change default config by @RomainLanz in #81
Full Changelog: v7.0.0-11...v7.0.0-12