Your AdonisJS ecosystem, in the loop.
All insights
release

Session v8.3.0: Support for @adonisjs/redis v11 and Store Selection in Configuration

· Developer impact : medium

The AdonisJS Session package version 8.3.0 adds support for @adonisjs/redis version 11 (which uses ioredis 6) while maintaining compatibility with version 10. Additionally, the `node ace add @adonisjs/session` command now allows selecting the session store interactively or via the `--store` flag, supporting cookie, file, redis, and database stores. The configuration file `config/session.ts` reflects the chosen store, and environment variable `SESSION_DRIVER` is set accordingly. When using the database store, a migration for the sessions table is automatically created. DynamoDB store still requires manual configuration.

What this means for your code

Developers can upgrade @adonisjs/redis to version 11 at their own pace without breaking compatibility. The session setup command is more flexible, allowing explicit store selection either interactively or via command-line flags, which improves automation and customization. Projects using the database store benefit from automatic migration creation. Scripts invoking the add command non-interactively must now specify the `--store` flag to avoid prompts.

  • If upgrading @adonisjs/redis, verify compatibility with version 11 as it is now supported.
  • When adding the session package, specify the desired store with `--store` in non-interactive scripts to avoid prompts.
  • Review `config/session.ts` to confirm the session store configuration matches your intended store.
  • If using the database store, check that the sessions table migration is created and applied.
  • Manually configure DynamoDB store if needed, as it is not supported by the new setup command.

Original sources

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.

Independent ecosystem watch. Sources linked in every insight.Built with AdonisJS · AI-assisted summariesBy Jérémy Chaufourier · chaufourier.fr