Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.84 KB

CHANGES.md

File metadata and controls

48 lines (32 loc) · 1.84 KB

sessions Changelog

Notable changes between releases.

Latest

v0.4.1

  • Update Go module dependency and configure changelog generator

v0.4.0

  • 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

  • Change DefaultCookieConfig to use SameSiteLaxMode (#22)

v0.3.0

  • 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)

v0.2.1

  • Update minimum Go version from v1.17 to v1.18 (#15)

v0.2.0

  • Fix go.mod to include gorilla/securecookie (#7)

v0.1.0

  • Initial release
  • Require Go v1.11+