Repository navigation
Releases: bentranter/sessions
Release list
v1.4.0
v1.3.0
Updates the cookie serializer to use the CBOR codec for encoding the cookie data, as well as adds an option to skip TemplMiddleware for certain paths.
In testing, the CBOR encoding is 3.5x faster than encoding/gob. It also doesn't require the struct data to be registered for encoding, which is an additional UX improvement over gob.
v1.2.0
Adds a package level FlashesCtx method to better support working with templ. Rather than having to somehow make an instance of a Session available to the package where your templ components are, you can call sessions.FlashesCtx within a templ component to access the flash messages.
v1.1.0
Adds two new methods, sessions.TemplMiddlewareand sessions.FlashesCtx which allows the library to more easily be used with templ. More docs and helper methods to come.
v1.0.0
Releases version v1.0.0. This is the session package extracted from another library, seatbelt, renamed for convenience and with all unnecessary dependencies removed.