Releases: adonisjs/session
Releases · adonisjs/session
Simplify config stub
- 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
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
Update dependencies
Pre-release for v6
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 :Indirectly, this will also allow more flexibility on the routes on which you wish to activate sessions. ( Related : adonisjs/rfcs#29 )import server from '@adonisjs/core/services/server' server.use([ // ... () => import('@adonisjs/session/session_middleware'), ])
- 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
Add dumpSession to test response class and introduce sessionConfig method
- 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
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
Full Changelog: v6.2.2...v6.2.3