updated to leptos 0.6.0-beta

This commit is contained in:
Maccesch 2024-01-23 15:55:12 +00:00
parent 67fa44a5ac
commit 4598c27e29
4 changed files with 10 additions and 7 deletions

View file

@ -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

View file

@ -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",

View file

@ -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::*;

View file

@ -53,7 +53,7 @@ pub fn use_cookie(cookie_name: &str) -> Option<Cookie<'static>> {
}
#[cfg(feature = "axum")]
{
headers = expect_context::<leptos_axum::RequestParts>().headers;
headers = expect_context::<http::request::Parts>().headers;
}
cookies = headers
.get(http::header::COOKIE)