Skip to content

Releases: imbolc/tower-cookies

Axum-0.7, Cookie-0.18

27 Nov 16:55
Compare
Choose a tag to compare

What's Changed

  • Bump axum-core to 0.4, http to 1.0 by @cole-h in #30

New Contributors

Full Changelog: v0.9.0...v0.10.0

Update to cookie 0.17

12 Feb 12:09
Compare
Choose a tag to compare

Breaking change because cookie is part of the public API.

What's Changed

Full Changelog: v0.8.1...v0.9.0

`cookie` crate re-export

23 Jan 10:45
Compare
Choose a tag to compare

What's Changed

  • Github actions by @imbolc in #21
  • Change private jar docs to reflect that they are also signed by @sweepline in #22
  • feat: add cookie re-export by @alexschrod in #24

New Contributors

  • @sweepline made their first contribution in #22
  • @alexschrod made their first contribution in #24

Full Changelog: v0.8.0...v0.8.1

Updated for Axum 0.6

25 Nov 16:11
9cafa61
Compare
Choose a tag to compare

Static lifetimes in signed / private cookies

09 Jun 18:38
Compare
Choose a tag to compare

Before this commit, the Key that's passed to Cookies::signed() or Cookies::private() is forced to have a static lifetime, because the returned Cookie gets self's lifetime as its lifetime parameter. Now the Cookie gets static lifetime instead.

This makes it possible e.g. to store Key in an axum Extension layer instead of a global Cell.

Thank you @akheron πŸ™

Updated for Axum 0.5

01 Apr 08:43
Compare
Choose a tag to compare

Http2 compatibility

23 Feb 11:30
Compare
Choose a tag to compare

Added support for HTTP2 multiple Cookie headers: https://www.rfc-editor.org/rfc/rfc7540#section-8.1.2.5

Thank you @charlesdaniel πŸ™

Upgrade dependencies to their latest versions

07 Feb 06:57
Compare
Choose a tag to compare

The following deps were upgraded:

  • cookie: updated to 0.16. it is important to note that this is a breaking
    change because the MSRV is 1.53. This is also an important update since it
    bumps the transitive dependency time to 0.3 which includes a multitude of
    fixes and improvements
  • parking_lot: updated to 0.12. This is also a breaking change that increases
    the MSRV to 1.49

Thank you @ohsayan πŸ™

Private cookies

03 Jan 05:26
Compare
Choose a tag to compare
async fn handler(cookies: Cookies) -> String {
    cookies.private(&my_key).get("my_cookie").unwrap().value.into()
}

Thank you @zvkemp πŸ™

Update to axum-core 0.1

03 Dec 05:47
Compare
Choose a tag to compare

This changes tower-cookies to have a public dependency on axum-core
instead of axum.

axum-core is designed to be a small crate that only contains the
FromRequest and IntoResponse traits. Because of the smaller API its
less likely to receive breaking changes. Therefore its recommended for
library to depend on that instead of axum.

Note this is a breaking change since axum 0.3 doesn't know about
axum-core.

Thank you @davidpdrsn πŸ™