Skip to content

Releases: adonisjs/session

Flash message changes and target v7

09 Sep 05:52
Compare
Choose a tag to compare
Pre-release

8.0.0-next.0 (2025-09-09)

In this release, we remove the deprecated errors property from the flash messages and you must rely on the inputErrors property instead to read input validation errors. Also, for Inertia applications, we no longer flash input data

Bug Fixes

  • pin swc as it is broken (abe3770)

Features

  • do not flash input data for inertia requests (91b60ee), closes #89

BREAKING CHANGES

  • Remove deprecated errors property from the flash message
    and instead rely on inputErrors property

Full Changelog: v7.5.1...v8.0.0-next.0

Update dependencies

16 Jan 06:30
Compare
Choose a tag to compare

7.5.1 (2025-01-16)

Full Changelog: v7.5.0...v7.5.1

Add DynamoDB store for storing sessions

26 Sep 03:22
Compare
Choose a tag to compare

Features

  • Add DynamoDB store (ad09572)
  • Add DynamoDBStoreConfig (2e60786)
  • allow passing dynamoDB client instance to the config (8e8bc0e)

What's Changed

  • feat: Add DynamoDB as a Bundled Store for Sessions by @7nohe in #87

New Contributors

  • @7nohe made their first contribution in #87

Full Changelog: v7.4.2...v7.5.0

Update dependencies

22 Jun 05:35
Compare
Choose a tag to compare
  • chore: update dependencies a0fc0b5

Full Changelog: v7.4.1...v7.4.2

Fix maxAge issue with the file driver

05 Jun 05:25
Compare
Choose a tag to compare
  • style: format source code b4304c6
  • fix: parse session age as seconds inside file store 76818f9
  • chore: update dependencies edd54c5

Full Changelog: v7.4.0...v7.4.1

Make session class macroable and update main exports

15 Apr 05:43
Compare
Choose a tag to compare
  • fix: call super b743db5
  • feat: make session class macroable 1d85cee
  • feat: export ValuesStore, Session and ReadOnlyValuesStore classes 51d5e22
  • chore: update peer dependencies fd7987f
  • chore: update dependencies fb6289f
  • feat: export ValuesStore, Session and ReadOnlyValuesStore classes 10a04b6

What's Changed

  • feat: export ValuesStore, Session and ReadOnlyValuesStore classes by @Bricklou in #85

New Contributors

Full Changelog: v7.3.0...v7.4.0

Display validation error summary in flash messages errorsBag

19 Mar 19:34
Compare
Choose a tag to compare

After this release, the session package will add the validation errors summary inside the errorsBag property of flash message. Therefore using the @errors tag will display a global error message for validation errors too.

Commits

  • feat: flash validation errors summary to errorsBag badda3f

Full Changelog: v7.0.0...v7.3.0

Add @errors tag

19 Mar 18:48
Compare
Choose a tag to compare

The @errors edge tag can be used to grab all errors from the flash messages errorsBag . You can use it as follows.

@errors()
  @each(error in $messages)
     {{ error }}
  @end
@end

Commits

Full Changelog: v7.0.0...v7.2.0

Make session.config property public

23 Jan 11:55
Compare
Choose a tag to compare

Since the config/session.ts file exports a config provider, there is no way to get configuration raw configuration from it. Instead, you can use the ctx.session.config to get a hold of the raw configuration.

Commits

  • refactor: make session.config property public 4395100

v7.1.0...v7.1.1

Full Changelog: v7.1.0...v7.1.1

Do not flash password fields when using flashValidationErrors

22 Jan 13:43
Compare
Choose a tag to compare

The session.flashValidationErrors will not flash _method, _csrf, password, password_confirmation fields.

Commits

  • refactor: update flashExcept list to exlcude password fields 9e1d030
  • chore: update dependencies 4809acb

Full Changelog: v7.0.0...v7.1.0