release 0.10.8

This commit is contained in:
Maccesch 2024-04-19 14:54:37 +01:00
parent 9507c6a6d6
commit ae60e38db3
3 changed files with 10 additions and 4 deletions

View file

@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 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). 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 ## [0.10.7] - 2024-04-10
### New Function 🚀 ### New Function 🚀

View file

@ -1,6 +1,6 @@
[package] [package]
name = "leptos-use" name = "leptos-use"
version = "0.10.7" version = "0.10.8"
edition = "2021" edition = "2021"
authors = ["Marc-Stefan Cassola"] authors = ["Marc-Stefan Cassola"]
categories = ["gui", "web-programming"] categories = ["gui", "web-programming"]

View file

@ -88,7 +88,7 @@ use std::rc::Rc;
/// The returned `WriteSignal` will not affect the cookie headers on the server. /// 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. /// > 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 /// ### Bring your own header
/// ///
@ -455,11 +455,11 @@ pub struct UseCookieOptions<T, Err> {
readonly: bool, readonly: bool,
/// Getter function to return the string value of the cookie header. /// 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<dyn Fn() -> Option<String>>, ssr_cookies_header_getter: Rc<dyn Fn() -> Option<String>>,
/// Function to add a set cookie header to the response on the server. /// 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<dyn Fn(&Cookie)>, ssr_set_cookie: Rc<dyn Fn(&Cookie)>,
/// Callback for encoding/decoding errors. Defaults to logging the error to the console. /// Callback for encoding/decoding errors. Defaults to logging the error to the console.