Skip to content

Releases: bentranter/sessions

v1.4.0

Choose a tag to compare

@bentranter bentranter released this 04 Apr 20:54
61028a2
  • Adds an option to allow session cookies to be set without Secure so that sessions can be used on HTTP localhost in Safari.

v1.3.0

Choose a tag to compare

@bentranter bentranter released this 07 Aug 23:21
35420dd

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

Choose a tag to compare

@bentranter bentranter released this 27 Apr 18:15
797b580

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

Choose a tag to compare

@bentranter bentranter released this 16 Jan 00:21
c55e67b

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

Choose a tag to compare

@bentranter bentranter released this 13 Jan 21:38
5855cc3

Releases version v1.0.0. This is the session package extracted from another library, seatbelt, renamed for convenience and with all unnecessary dependencies removed.