Repository navigation
Releases
Releases · dghubble/sessions
v0.4.1
What's New
- Update Go module dependencies and add configure changelog generator
Contributions
- Use a centrally managed GitHub Workflow for go tests by @dghubble in #25
- Allow Go test Workflow to run on PRs by @dghubble in #27
- Tag v0.4.1 release and configure changelog generator by @dghubble in #29
Dependencies
- Bump github.com/gorilla/securecookie from 1.1.1 to 1.1.2 by @dependabot in #28
New Contributors
- @dependabot made their first contribution in #28
Full Changelog: v0.4.0...v0.4.1
v0.4.0
- Allow
Sessionto store values with specified type (V) (i.e. generics) (#21)Sessionstate is now amap[string]Vinstead of amap[string]any- Update
Set,Get, andGetOkmethods to use generic typeV - Change
SessiontoSession[V any]to specify the type of value stored in the Session - See updated usage docs for examples
- Change
StoretoStore[V any]to specify the type of value stored in sessions - Change
NewCookieStoretoNewCookieStore[V any]to specify the type of value stored in sessions
v0.3.1
v0.3.0
- Change
CookieStoreand its fields to be non-exported (#19)- Change
NewCookieStoreto require a*CookieConfigand return aStore - Rename
Configstruct toCookieConfig - Add
DefaultCookieConfigandDebugCookieConfigconvenience variables
- Change
- Change the
SessionfieldValuesto be non-exported (#18)- Add
SessionSetmethod to set a key/value pair - Add
SessionGetmethod to get a value for a given key - Add
SessionGetOkto get a value for a given key and whether the key exists in the map
- Add
- Remove cookie
Configfield fromSession(#17) - Add examples and project logo to README