Skip to content

Commit b4e8f62

Browse files
committed
updated to leptos-use 0.17
1 parent b32089b commit b4e8f62

4 files changed

Lines changed: 36 additions & 30 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## [0.16.0] - 2025-12-18
4+
5+
### Breaking Changes 🛠️
6+
7+
- Updated dependencies `leptos-use` to version 0.17
8+
9+
### Special thanks to our sponsor
10+
- @benwis
11+
312
## [0.15.0] - 2025-06-12
413

514
### Breaking Change 🛠️

Cargo.toml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[package]
22
name = "leptos-struct-table"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
edition = "2024"
5-
authors = ["Marc-Stefan Cassola"]
65
categories = ["gui", "web-programming", "wasm"]
76
description = "Generate a complete batteries included leptos data table component from a struct definition."
87
exclude = ["examples/", "tests/"]
@@ -11,23 +10,25 @@ license = "MIT OR Apache-2.0"
1110
readme = "README.md"
1211
repository = "https://github.com/Synphonyte/leptos-struct-table"
1312

13+
[package.metadata."docs.rs"]
14+
all-features = true
15+
1416
[dependencies]
1517
leptos = { version = "0.8" }
1618
leptos-struct-table-macro = { version = "0.13.0" }
17-
leptos-use = { version = "0.16", default-features = false, features = [
18-
"element",
19-
"use_debounce_fn",
20-
"use_element_size",
21-
"use_scroll",
19+
leptos-use = { version = "0.17", default-features = false, features = [
20+
"element",
21+
"use_debounce_fn",
22+
"use_element_size",
23+
"use_scroll",
2224
], path = "../leptos-use" }
23-
rust_decimal = { version = "1.35", optional = true }
25+
rust_decimal = { version = "1", optional = true }
2426
chrono = { version = "0.4", optional = true }
2527
send_wrapper = "0.6"
2628
serde = "1"
2729
time = { version = "0.3", optional = true, features = ["formatting"] }
2830
uuid = { version = "1", optional = true, features = [] }
29-
thiserror = "1"
30-
web-sys = { version = "0.3.67", features = ["DomRect", "Element"] }
31+
web-sys = { version = "0.3", features = ["DomRect", "Element"] }
3132
wasm-bindgen = "0.2"
3233

3334
[features]
@@ -36,6 +37,3 @@ uuid = ["dep:uuid"]
3637
rust_decimal = ["dep:rust_decimal"]
3738
time = ["dep:time"]
3839
i18n = ["leptos-struct-table-macro/i18n"]
39-
40-
[package.metadata."docs.rs"]
41-
all-features = true

examples/serverfn_sqlx/Cargo.toml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ leptos_meta = { version = "0.8" }
1818
leptos_router = { version = "0.8" }
1919
serde = { version = "1.0.197", features = ["derive"] }
2020
sqlx = { version = "0.8", optional = true, features = [
21-
"sqlite",
22-
"runtime-tokio-rustls",
21+
"sqlite",
22+
"runtime-tokio-rustls",
2323
] }
24-
thiserror = "2"
2524
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
2625
tower = { version = "0.4", optional = true }
2726
tower-http = { version = "0.5", features = ["fs"], optional = true }
@@ -31,17 +30,17 @@ wasm-bindgen = "0.2.99"
3130
[features]
3231
hydrate = ["leptos/hydrate"]
3332
ssr = [
34-
"dep:axum",
35-
"dep:tokio",
36-
"dep:tower",
37-
"dep:tower-http",
38-
"dep:leptos_axum",
39-
"dep:sqlx",
40-
"leptos/ssr",
41-
"leptos_meta/ssr",
42-
"leptos_router/ssr",
43-
"leptos-use/ssr",
44-
"dep:tracing",
33+
"dep:axum",
34+
"dep:tokio",
35+
"dep:tower",
36+
"dep:tower-http",
37+
"dep:leptos_axum",
38+
"dep:sqlx",
39+
"leptos/ssr",
40+
"leptos_meta/ssr",
41+
"leptos_router/ssr",
42+
"leptos-use/ssr",
43+
"dep:tracing",
4544
]
4645

4746
# Defines a size-optimized profile for the WASM bundle in release mode

src/components/table_content.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use leptos::tachys::view::any_view::AnyView;
1818
use leptos::task::spawn_local;
1919
use leptos_use::core::IntoElementMaybeSignal;
2020
use leptos_use::{
21-
use_debounce_fn, use_element_size_with_options, use_scroll_with_options, UseElementSizeOptions,
22-
UseElementSizeReturn, UseScrollOptions, UseScrollReturn,
21+
UseElementSizeOptions, UseElementSizeReturn, UseScrollOptions, UseScrollReturn,
22+
use_debounce_fn, use_element_size_with_options, use_scroll_with_options,
2323
};
2424
use std::cell::RefCell;
2525
use std::collections::{HashSet, VecDeque};
@@ -191,7 +191,7 @@ where
191191
Err: Debug + 'static,
192192
ClsP: TableClassesProvider + Send + Sync + Copy + 'static,
193193
ScrollEl: IntoElementMaybeSignal<web_sys::Element, ScrollM> + 'static,
194-
ScrollM: ?Sized + 'static,
194+
ScrollM: 'static,
195195
{
196196
let on_change = StoredValue::new(on_change);
197197
let rows = Rc::new(RefCell::new(rows));

0 commit comments

Comments
 (0)