diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f7b994..bdef9fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `use_device_pixel_ratio` (thanks to @mondeja) - `use_element_bounding` +### Breaking Changes 🛠 + +- The `leptos` version is now 0.6 + ### Fixes 🍕 - Fixed `use_geolocation` SSR compile issue diff --git a/Cargo.toml b/Cargo.toml index 28a902a..45b3bda 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,22 +21,22 @@ default-struct-builder = "0.5" futures-util = "0.3" gloo-timers = { version = "0.3.0", features = ["futures"] } gloo-utils = { version = "0.2.0" } -http = { version = "0.2", optional = true } +http = { version = "1", optional = true } js-sys = "0.3" lazy_static = "1" -leptos = "0.5" -leptos_axum = { version = "0.5", optional = true } +leptos = "0.6.0-beta" +leptos_axum = { version = "0.6.0-beta", optional = true } num = { version = "0.4", optional = true } paste = "1" prost = { version = "0.12", optional = true } serde = { version = "1", optional = true } serde_json = { version = "1", optional = true } -thiserror = "1.0" +thiserror = "1" wasm-bindgen = "0.2.88" wasm-bindgen-futures = "0.4" [dependencies.web-sys] -version = "0.3.65" +version = "0.3.67" features = [ "AddEventListenerOptions", "BinaryType", diff --git a/src/lib.rs b/src/lib.rs index d5f73a9..f075f84 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -79,7 +79,6 @@ pub use use_active_element::*; pub use use_breakpoints::*; pub use use_color_mode::*; pub use use_cookie::*; -pub use use_cookie::*; pub use use_css_var::*; pub use use_cycle_list::*; pub use use_debounce_fn::*; diff --git a/src/use_cookie.rs b/src/use_cookie.rs index d85470c..e810a57 100644 --- a/src/use_cookie.rs +++ b/src/use_cookie.rs @@ -53,7 +53,7 @@ pub fn use_cookie(cookie_name: &str) -> Option> { } #[cfg(feature = "axum")] { - headers = expect_context::().headers; + headers = expect_context::().headers; } cookies = headers .get(http::header::COOKIE)