mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
updated to leptos 0.6.0-beta
This commit is contained in:
parent
67fa44a5ac
commit
4598c27e29
4 changed files with 10 additions and 7 deletions
|
@ -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_device_pixel_ratio` (thanks to @mondeja)
|
||||||
- `use_element_bounding`
|
- `use_element_bounding`
|
||||||
|
|
||||||
|
### Breaking Changes 🛠
|
||||||
|
|
||||||
|
- The `leptos` version is now 0.6
|
||||||
|
|
||||||
### Fixes 🍕
|
### Fixes 🍕
|
||||||
|
|
||||||
- Fixed `use_geolocation` SSR compile issue
|
- Fixed `use_geolocation` SSR compile issue
|
||||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -21,22 +21,22 @@ default-struct-builder = "0.5"
|
||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
gloo-timers = { version = "0.3.0", features = ["futures"] }
|
gloo-timers = { version = "0.3.0", features = ["futures"] }
|
||||||
gloo-utils = { version = "0.2.0" }
|
gloo-utils = { version = "0.2.0" }
|
||||||
http = { version = "0.2", optional = true }
|
http = { version = "1", optional = true }
|
||||||
js-sys = "0.3"
|
js-sys = "0.3"
|
||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
leptos = "0.5"
|
leptos = "0.6.0-beta"
|
||||||
leptos_axum = { version = "0.5", optional = true }
|
leptos_axum = { version = "0.6.0-beta", optional = true }
|
||||||
num = { version = "0.4", optional = true }
|
num = { version = "0.4", optional = true }
|
||||||
paste = "1"
|
paste = "1"
|
||||||
prost = { version = "0.12", optional = true }
|
prost = { version = "0.12", optional = true }
|
||||||
serde = { version = "1", optional = true }
|
serde = { version = "1", optional = true }
|
||||||
serde_json = { version = "1", optional = true }
|
serde_json = { version = "1", optional = true }
|
||||||
thiserror = "1.0"
|
thiserror = "1"
|
||||||
wasm-bindgen = "0.2.88"
|
wasm-bindgen = "0.2.88"
|
||||||
wasm-bindgen-futures = "0.4"
|
wasm-bindgen-futures = "0.4"
|
||||||
|
|
||||||
[dependencies.web-sys]
|
[dependencies.web-sys]
|
||||||
version = "0.3.65"
|
version = "0.3.67"
|
||||||
features = [
|
features = [
|
||||||
"AddEventListenerOptions",
|
"AddEventListenerOptions",
|
||||||
"BinaryType",
|
"BinaryType",
|
||||||
|
|
|
@ -79,7 +79,6 @@ pub use use_active_element::*;
|
||||||
pub use use_breakpoints::*;
|
pub use use_breakpoints::*;
|
||||||
pub use use_color_mode::*;
|
pub use use_color_mode::*;
|
||||||
pub use use_cookie::*;
|
pub use use_cookie::*;
|
||||||
pub use use_cookie::*;
|
|
||||||
pub use use_css_var::*;
|
pub use use_css_var::*;
|
||||||
pub use use_cycle_list::*;
|
pub use use_cycle_list::*;
|
||||||
pub use use_debounce_fn::*;
|
pub use use_debounce_fn::*;
|
||||||
|
|
|
@ -53,7 +53,7 @@ pub fn use_cookie(cookie_name: &str) -> Option<Cookie<'static>> {
|
||||||
}
|
}
|
||||||
#[cfg(feature = "axum")]
|
#[cfg(feature = "axum")]
|
||||||
{
|
{
|
||||||
headers = expect_context::<leptos_axum::RequestParts>().headers;
|
headers = expect_context::<http::request::Parts>().headers;
|
||||||
}
|
}
|
||||||
cookies = headers
|
cookies = headers
|
||||||
.get(http::header::COOKIE)
|
.get(http::header::COOKIE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue