v2.9.0
- Added support for the
Partitionedattribute on the session cookie. - Fixes applied for a race condition in various store background cleanup routines.
- Various documentation improvements.
- @earthboundkid made their first contribution in https://github.com/alexedwards/scs/pull/230
- @rmmh made their first contribution in https://github.com/alexedwards/scs/pull/213
- @pete-woods made their first contribution in https://github.com/alexedwards/scs/pull/207
- @canidam made their first contribution in https://github.com/alexedwards/scs/pull/202
Full Changelog: https://github.com/alexedwards/scs/compare/v2.8.0...v2.9.0
v2.8.0
This release includes:
- A new
SessionManager.HashTokenInStoreoption, which hashes the session token with SHA256 before passing it to the store. Thanks to @bramvbilsen for this. - Support for
HijackerandFlusherinterfaces for Go 1.20+ (fixes issues #188, #196, #186) - Documentation improvements thanks to @Daniel-Sogbey.
v2.7.0
- Added
SetDeadline()method. Thanks @lwj5 and @fnoopv.
v2.6.0
- The
LoadAndSave()method has been rewritten, so that it no longer buffers responses (which should improve performance) and is now compatible withhttp.ResponseController.
v2.5.0
Version 2.5.0 of SCS includes:
- Support for iteration over all sessions via the
Iterate()method. - New
Token(),Deadline(),GetInt32(),GetInt64()andRememberMe()methods. - Session stores which require a
context.Contextare now supported. - New store implementations for Firestore, MSSQL, GORM and MongoDB.
Thanks to everyone who contributed to this release, especially:
- @gandaldf for updating all the session stores to support iteration, adding the MSSQL and BuntDB stores, and the many improvements to the documentation and stores.
- @jum for implementing the Firestore store, and the discussion around supporting
context.Contextin session stores. - @joesonw for the PR to support
context.Contextin session stores. - @cgossain for adding the MongoDB store.
- @lafriks for adding the GORM store.
v2.4.0
- Fix data race in generateContextKey
- Improve test structure and add mockstore package