Skip to content

Breaking change in config

Pre-release
Pre-release
Compare
Choose a tag to compare
@thetutlage thetutlage released this 19 Oct 06:55

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

Full Changelog: v7.0.0-11...v7.0.0-12