From 8324c70742c206698104f6642062fd14dd073d4d Mon Sep 17 00:00:00 2001 From: Maccesch Date: Wed, 14 Aug 2024 03:43:00 +0100 Subject: [PATCH] release 0.12.0 --- CHANGELOG.md | 7 +++++-- Cargo.toml | 2 +- README.md | 12 ++++++------ src/use_color_mode.rs | 4 ++-- src/utils/header_macro.rs | 2 +- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dee1f5..1586aed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,9 @@ 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). -## [Unreleased] - +## [0.12.0] - 2024-08-14 + +> Make sure you also update `cargo-leptos` to the latest version if you use that. ### Breaking Changes 🛠 @@ -11,7 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `use_clipboard` doesn't need the unstable flags anymore. - `use_locale` now uses `unic_langid::LanguageIdentifier` and proper locale matching (thanks to @mondeja). - Removed `UseMouseEventExtractorDefault` and reworked `UseMouseCoordType` (thanks to @carloskiki) -- `use_preferred_dark` and `use_color_mode` now try to read the `Sec-CH-Prefers-Color-Scheme` header in SSR. +- `use_preferred_dark` and `use_color_mode` now try to read the `Sec-CH-Prefers-Color-Scheme` header in SSR. This brings + the necessity to enable an additional feature for them (`axum` / `actix` / `spin`). ### Fixes 🍕 diff --git a/Cargo.toml b/Cargo.toml index 2fd0ca0..9ec4f61 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leptos-use" -version = "0.11.5" +version = "0.12.0" edition = "2021" authors = ["Marc-Stefan Cassola"] categories = ["gui", "web-programming"] diff --git a/README.md b/README.md index eb58418..933f07f 100644 --- a/README.md +++ b/README.md @@ -87,9 +87,9 @@ This will create the function file in the src directory, scaffold an example dir ## Leptos compatibility -| Crate version | Compatible Leptos version | -|---------------|---------------------------| -| <= 0.3 | 0.3 | -| 0.4, 0.5, 0.6 | 0.4 | -| 0.7, 0.8, 0.9 | 0.5 | -| 0.10, 0.11 | 0.6 | +| Crate version | Compatible Leptos version | +|------------------|---------------------------| +| <= 0.3 | 0.3 | +| 0.4, 0.5, 0.6 | 0.4 | +| 0.7, 0.8, 0.9 | 0.5 | +| 0.10, 0.11, 0.12 | 0.6 | diff --git a/src/use_color_mode.rs b/src/use_color_mode.rs index 99a688e..9f3719e 100644 --- a/src/use_color_mode.rs +++ b/src/use_color_mode.rs @@ -4,8 +4,8 @@ use crate::core::{ElementMaybeSignal, MaybeRwSignal}; use crate::storage::{use_storage_with_options, UseStorageOptions}; use crate::utils::get_header; use crate::{ - sync_signal_with_options, use_cookie, use_preferred_dark_with_options, - SyncSignalOptions, UsePreferredDarkOptions, + sync_signal_with_options, use_cookie, use_preferred_dark_with_options, SyncSignalOptions, + UsePreferredDarkOptions, }; use codee::string::FromToStringCodec; use default_struct_builder::DefaultBuilder; diff --git a/src/utils/header_macro.rs b/src/utils/header_macro.rs index 59dab10..4f6f087 100644 --- a/src/utils/header_macro.rs +++ b/src/utils/header_macro.rs @@ -19,7 +19,7 @@ macro_rules! get_header { ); return None; } - + #[cfg(feature = "actix")] #[allow(unused_imports)] use http0_2::{HeaderName, header::*};