Skip to content

Releases: adonisjs/session

Simplify config stub

02 Aug 07:04
Compare
Choose a tag to compare
Simplify config stub Pre-release
Pre-release
  • test: add tests for the drivers collection class 1f508f1
  • chore: update dependencies e59facd
  • refactor: simplify config stub 98ad122

Full Changelog: v7.0.0-3...v7.0.0-4

Preparing for v6

01 Aug 05:56
Compare
Choose a tag to compare
Preparing for v6 Pre-release
Pre-release

Breaking changes

There are breaking changes in this release.

  • The code for sharing flash messages with the view has been removed temporarily. It will be added back
  • The code for extending the Japa API client has been removed. It will be added inside the @japa/plugin-adonisjs package.

Commits

  • ci: skip redis tests on windows machine 737052c
  • ci: rename test.yml to checks.yml 1c88b37
  • refactor: log when registering driver e063ef4
  • refactor: make session middleware singleton 70c27ef
  • feat: handle validation errors 4138936
  • docs: update README 7d0b480
  • refactor: add debug logs 16e54f9
  • refactor: cleaning things 29f0a02
  • feat: abstract errors to their own file e25c907
  • feat: add drivers collection 4dd39be
  • refactor: finalize define_config implementation 26065d1
  • refactor: finalize all drivers 6b9a553
  • test: improve store tests coverage 475f16a
  • fix: pass instance of date to utimes method 8e5caeb
  • test: remove flaky assertion 5b4186f
  • ci: only run file driver tests 3332c23
  • ci: run tests on windows a51eb2c
  • refactor: migrate file driver 5e3d415
  • refactor: cleanup cookie driver 8cd3c69

Full Changelog: v7.0.0-2...v7.0.0-3

Improve boot time

25 Jul 07:30
Compare
Choose a tag to compare
Improve boot time Pre-release
Pre-release
  • chore: add japa/api-client as peer dependency f127f43
  • refactor: remove fs-extra and use node:fs directly 97a5fc3
  • refactor: extend japa api client in test env only 7b339e8
  • refactor: use container binding for creating middleware baab1f9

v7.0.0-1...v7.0.0-2

Update dependencies

21 Jul 22:55
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • chore: include @adonisjs/view typings 5b05907
  • chore: update dependencies c400668
  • chore: update dependencies 74e1277
  • chore: update readme ffff24c

v7.0.0-0...v7.0.0-1

Pre-release for v6

21 Jul 12:41
Compare
Choose a tag to compare
Pre-release for v6 Pre-release
Pre-release

Breaking changes

  • Package is now ESM only
  • We used to use Server hooks to initiate and terminate sessions. It was invisible to the end user. Now you'll need to include a middleware in your kernel.ts file :
     import server from '@adonisjs/core/services/server'
     
     server.use([
       // ...
       () => import('@adonisjs/session/session_middleware'),
     ])
    Indirectly, this will also allow more flexibility on the routes on which you wish to activate sessions. ( Related : adonisjs/rfcs#29 )
  • The function for defining config is now called defineConfig
  • Types are now available from ./types export

Other changes

  • Empty sessions are now deleted to optimise storage space. See #78

Commits

  • chore: add engines.node 327488b
  • chore: add c8 as dev dep 92dfe44
  • fix: add this annotation on ApiClient macros ff23cde
  • chore: fix file casing issues 682fb09
  • ci: upgrade node.js versions to test 819993b
  • refactor: upgrade japa/api-client to latest 6f78a3e
  • ci: add lint and typecheck jobs 925652b
  • fix: configure.ts env typo 40f744f
  • feat: delete sessions with empty content d398014
  • chore: add redis insight in docker compose for easier testing 3ae1a43
  • chore: add session_middleware export 4342843
  • chore: export bindings types from root 24ff390
  • chore: update package exports map 1744f89
  • feat: add configure command 0456b38
  • chore: add adonisjs/redis as optional peer dep 32adf4a
  • refactor: prepare for v6 cfdf1b4
  • chore: add japa/api-client 9d12d07
  • chore: add docker-compose for testing d4a00b1
  • chore: update dependencies (#76) 3debf0d

v6.4.0...v7.0.0-0

Add dumpSession to test response class and introduce sessionConfig method

19 May 12:32
Compare
Choose a tag to compare
  • chore: update dependencies 07ad674
  • feat: add dumpSession method 7289496
  • feat: add sessionConfig helper method 70cbca0

Full Changelog: v6.3.0...v6.4.0

Regenerate session id when regenerate method is called

18 May 09:25
Compare
Choose a tag to compare

This allows getting access to the session.sessionId as soon as regenerate method is called. Earlier, it was lazily computed.

Commits

  • refactor: regenerate session id as soon as regenerate method is called cb21abf
  • chore: update dependencies 295f028

Full Changelog: v6.2.3...v6.3.0

Fix for session client to read session data even when server regenerates it

11 May 10:49
Compare
Choose a tag to compare
  • fix: use response cookies to read the session id 38ccee9
  • chore: update dependencies 0667e77

Full Changelog: v6.2.2...v6.2.3

Refactor api client hooks priority

11 Apr 03:37
Compare
Choose a tag to compare
  • refactor: use request level hooks to commit session data 61a48da
  • chore: update dependencies 1e5a874

v6.2.1...v6.2.2

Remove with keyword from withSession and withFlashMessages

08 Apr 06:39
Compare
Choose a tag to compare
  • chore: update dependencies d8f05cc
  • refactor: rename withSession and withFlashMessages and remove "with" keyword 5918ea9

v6.2.0...v6.2.1