Skip to content

Releases: dghubble/sessions

v0.4.1

26 Feb 01:51
v0.4.1
Compare
Choose a tag to compare

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

Full Changelog: v0.4.0...v0.4.1

v0.4.0

07 Jan 22:19
v0.4.0
Compare
Choose a tag to compare
  • Allow Session to store values with specified type (V) (i.e. generics) (#21)
    • Session state is now a map[string]V instead of a map[string]any
    • Update Set, Get, and GetOk methods to use generic type V
    • Change Session to Session[V any] to specify the type of value stored in the Session
    • See updated usage docs for examples
  • Change Store to Store[V any] to specify the type of value stored in sessions
  • Change NewCookieStore to NewCookieStore[V any] to specify the type of value stored in sessions

v0.3.1

07 Jan 22:14
v0.3.1
Compare
Choose a tag to compare
  • Change DefaultCookieConfig to use SameSiteLaxMode (#22)

v0.3.0

31 Dec 18:53
v0.3.0
Compare
Choose a tag to compare
  • Change CookieStore and its fields to be non-exported (#19)
    • Change NewCookieStore to require a *CookieConfig and return a Store
    • Rename Config struct to CookieConfig
    • Add DefaultCookieConfig and DebugCookieConfig convenience variables
  • Change the Session field Values to be non-exported (#18)
    • Add Session Set method to set a key/value pair
    • Add Session Get method to get a value for a given key
    • Add Session GetOk to get a value for a given key and whether the key exists in the map
  • Remove cookie Config field from Session (#17)
  • Add examples and project logo to README

v0.2.1

07 Dec 17:05
v0.2.1
Compare
Choose a tag to compare
  • Update minimum Go version from v1.17 to v1.18 (#15)

v0.2.0

02 Oct 18:53
v0.2.0
Compare
Choose a tag to compare
  • Fix go.mod to include gorilla/securecookie (#7)

v0.1.0

08 Jul 01:20
v0.1.0
Compare
Choose a tag to compare
  • Initial release
  • Require Go v1.11+