v0.7.0
版本发布时间: 2023-10-04 23:23:27
AscendingCreations/AxumSession最新发布版本:v0.14.0(2024-04-13 03:01:13)
Changed
- Reduced amount of internal clones to half and other Optimizations.
- Cleaned up way Data gets destroyed or deleted.
- (Breaking)
SessionStore::clear
is async now due to filter needing to be arc/rwlocked. - (Breaking) Renamed
storable_cookie_name
tostorable_name
changingwith_storable_cookie_name
towith_storable_name
. - (Breaking) Renamed
cookie_name
tosession_name
changingwith_cookie_name
towith_session_name
. - (Breaking) Renamed
key_cookie_name
tokey_name
changingwith_key_cookie_name
towith_key_name
. - (Breaking)
get_session_id
is now not async.
Fixed
- Removal cookies should now contain a SameSite::None to avoid browser warnings.
- key-store not removing keys due to having it require if the database should auto clean or not.
- Session key store not getting updated correctly due to filter not updating across threads as it should be Arc.
- Dead Locking during an await within database saves. thanks to KrisCarr for finding it!
Added
-
get_store
andget_mut_store
to Session. - Rest Mode. Pulls Data from Request Headers and places Data back into Response Headers. No cookies are used.
-
get_session_name
,get_key_name
andget_storable_name
to SessionConfig. -
clear_check_on_load
to config. This will allow you to bypass the Clear check before the Request. - is_parallel Requests counter to prevent unloading of data till all requests have finished.
Full Changelog: https://github.com/AscendingCreations/AxumSession/compare/v0.6.0...v0.7.0