From ae60e38db3ccd76619a53ab6480a0ada985f3a92 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Fri, 19 Apr 2024 14:54:37 +0100 Subject: [PATCH] release 0.10.8 --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- src/use_cookie.rs | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1dfddd..eec10d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.10.8] - 2024-04-19 + +### Change 🔥 + +- `use_cookie` now supports Spin out of the box (thanks to @javierEd). + ## [0.10.7] - 2024-04-10 ### New Function 🚀 diff --git a/Cargo.toml b/Cargo.toml index 7389559..fc4bb90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leptos-use" -version = "0.10.7" +version = "0.10.8" edition = "2021" authors = ["Marc-Stefan Cassola"] categories = ["gui", "web-programming"] diff --git a/src/use_cookie.rs b/src/use_cookie.rs index dff82ac..bb6cbe1 100644 --- a/src/use_cookie.rs +++ b/src/use_cookie.rs @@ -88,7 +88,7 @@ use std::rc::Rc; /// The returned `WriteSignal` will not affect the cookie headers on the server. /// /// > If you're using `axum` you have to enable the `"axum"` feature in your Cargo.toml. -/// > In case it's `actix-web` enable the feature `"actix"`. +/// > In case it's `actix-web` enable the feature `"actix"`, for `spin` enable `"spin"`. /// /// ### Bring your own header /// @@ -455,11 +455,11 @@ pub struct UseCookieOptions { readonly: bool, /// Getter function to return the string value of the cookie header. - /// When you use one of the features "axum" or "actix" there's a valid default implementation provided. + /// When you use one of the features `"axum"`, `"actix"` or `"spin"` there's a valid default implementation provided. ssr_cookies_header_getter: Rc Option>, /// Function to add a set cookie header to the response on the server. - /// When you use one of the features "axum" or "actix" there's a valid default implementation provided. + /// When you use one of the features `"axum"`, `"actix"` or `"spin"` there's a valid default implementation provided. ssr_set_cookie: Rc, /// Callback for encoding/decoding errors. Defaults to logging the error to the console.