release 0.12.0

This commit is contained in:
Maccesch 2024-08-14 03:43:00 +01:00
parent 30e6c9351b
commit 8324c70742
5 changed files with 15 additions and 12 deletions

View file

@ -3,7 +3,9 @@
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).
## [Unreleased] - ## [0.12.0] - 2024-08-14
> Make sure you also update `cargo-leptos` to the latest version if you use that.
### Breaking Changes 🛠 ### 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_clipboard` doesn't need the unstable flags anymore.
- `use_locale` now uses `unic_langid::LanguageIdentifier` and proper locale matching (thanks to @mondeja). - `use_locale` now uses `unic_langid::LanguageIdentifier` and proper locale matching (thanks to @mondeja).
- Removed `UseMouseEventExtractorDefault` and reworked `UseMouseCoordType` (thanks to @carloskiki) - 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 🍕 ### Fixes 🍕

View file

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

View file

@ -87,9 +87,9 @@ This will create the function file in the src directory, scaffold an example dir
## Leptos compatibility ## Leptos compatibility
| Crate version | Compatible Leptos version | | Crate version | Compatible Leptos version |
|---------------|---------------------------| |------------------|---------------------------|
| <= 0.3 | 0.3 | | <= 0.3 | 0.3 |
| 0.4, 0.5, 0.6 | 0.4 | | 0.4, 0.5, 0.6 | 0.4 |
| 0.7, 0.8, 0.9 | 0.5 | | 0.7, 0.8, 0.9 | 0.5 |
| 0.10, 0.11 | 0.6 | | 0.10, 0.11, 0.12 | 0.6 |

View file

@ -4,8 +4,8 @@ use crate::core::{ElementMaybeSignal, MaybeRwSignal};
use crate::storage::{use_storage_with_options, UseStorageOptions}; use crate::storage::{use_storage_with_options, UseStorageOptions};
use crate::utils::get_header; use crate::utils::get_header;
use crate::{ use crate::{
sync_signal_with_options, use_cookie, use_preferred_dark_with_options, sync_signal_with_options, use_cookie, use_preferred_dark_with_options, SyncSignalOptions,
SyncSignalOptions, UsePreferredDarkOptions, UsePreferredDarkOptions,
}; };
use codee::string::FromToStringCodec; use codee::string::FromToStringCodec;
use default_struct_builder::DefaultBuilder; use default_struct_builder::DefaultBuilder;

View file

@ -19,7 +19,7 @@ macro_rules! get_header {
); );
return None; return None;
} }
#[cfg(feature = "actix")] #[cfg(feature = "actix")]
#[allow(unused_imports)] #[allow(unused_imports)]
use http0_2::{HeaderName, header::*}; use http0_2::{HeaderName, header::*};