Skip to content

Commit 5d371c9

Browse files
committed
updated examples
1 parent 13a2db8 commit 5d371c9

File tree

6 files changed

+24
-16
lines changed

6 files changed

+24
-16
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.15.0] - 2025-06-12
4+
5+
### Breaking Change 🛠️
6+
7+
- Updated to Leptos 0.8
8+
39
## [0.14.0-beta3] - 2025-03-17
410

511
### Fix 🐛
@@ -251,4 +257,4 @@ Please check the docs and examples.
251257
- New class provider `BootstrapClassesPreset`
252258
- New example `bootstrap`
253259
- Added `thead` and `tbody` with customizable renderers
254-
- Added `getter` and `FieldGetter<T>` with new example
260+
- Added `getter` and `FieldGetter<T>` with new example

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "leptos-struct-table"
3-
version = "0.15.0-beta1"
3+
version = "0.15.0"
44
edition = "2021"
55
authors = ["Marc-Stefan Cassola"]
66
categories = ["gui", "web-programming", "wasm"]
@@ -13,8 +13,8 @@ repository = "https://github.com/Synphonyte/leptos-struct-table"
1313

1414
[dependencies]
1515
leptos = { version = "0.8.0" }
16-
leptos-struct-table-macro = { version = "0.13.0-beta2" }
17-
leptos-use = { version = "0.16.0-beta" }
16+
leptos-struct-table-macro = { version = "0.13.0" }
17+
leptos-use = { version = "0.16.0" }
1818
rust_decimal = { version = "1.35", optional = true }
1919
chrono = { version = "0.4", optional = true }
2020
send_wrapper = "0.6"

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ fn Demo() -> impl IntoView {
6262
| 0.3 | 0.4 |
6363
| 0.4, 0.5, 0.6 | 0.5 |
6464
| 0.7 – 0.12 | 0.6 |
65-
| 0.14.0-beta2 | 0.7 |
65+
| 0.14.0-beta | 0.7 |
66+
| 0.15 | 0.8 |
67+
6668

6769
## Server-Side Rendering
6870

examples/i18n/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
leptos = { version = "0.8.7", features = ["csr"] }
7+
leptos = { version = "0.8", features = ["csr"] }
88
leptos-struct-table = { path = "../..", features = [
99
"chrono",
1010
"uuid",
1111
"time",
1212
"i18n",
1313
] }
14-
leptos_i18n = { version = "0.5", features = ["csr"] }
14+
leptos_i18n = { version = "0.6.0-rc", features = ["csr"] }
1515
chrono = { version = "0.4", features = [] }
1616
console_error_panic_hook = "0.1"
1717
time = { version = "0.3" }

examples/serverfn_sqlx/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ edition = "2021"
77
crate-type = ["cdylib", "rlib"]
88

99
[dependencies]
10-
axum = { version = "0.7", optional = true }
10+
axum = { version = "0.8", optional = true }
1111
console_error_panic_hook = "0.1"
1212
http = "1"
1313
leptos = { version = "0.8" }
1414
leptos-struct-table = { path = "../.." }
15-
leptos-use = { version = "0.15" }
16-
leptos_axum = { version = "0.7", optional = true }
17-
leptos_meta = { version = "0.7" }
18-
leptos_router = { version = "0.7" }
15+
leptos-use = { version = "0.16" }
16+
leptos_axum = { version = "0.8", optional = true }
17+
leptos_meta = { version = "0.8" }
18+
leptos_router = { version = "0.8" }
1919
serde = { version = "1.0.197", features = ["derive"] }
2020
sqlx = { version = "0.8", optional = true, features = [
2121
"sqlite",

examples/serverfn_sqlx/src/data_provider.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct CustomerQuery {
3131
}
3232

3333
#[server]
34-
pub async fn list_customers(query: CustomerQuery) -> Result<Vec<Customer>, ServerFnError<String>> {
34+
pub async fn list_customers(query: CustomerQuery) -> Result<Vec<Customer>, ServerFnError> {
3535
use crate::database::get_db;
3636

3737
let CustomerQuery { sort, range, name } = query;
@@ -60,17 +60,17 @@ pub async fn list_customers(query: CustomerQuery) -> Result<Vec<Customer>, Serve
6060
.build_query_as::<Customer>()
6161
.fetch_all(get_db())
6262
.await
63-
.map_err(|e| ServerFnError::WrappedServerError(format!("{e:?}")))
63+
.map_err(|e| ServerFnError::new(format!("{e:?}")))
6464
}
6565

6666
#[server]
67-
pub async fn customer_count() -> Result<usize, ServerFnError<String>> {
67+
pub async fn customer_count() -> Result<usize, ServerFnError> {
6868
use crate::database::get_db;
6969

7070
let count: i64 = sqlx::query("SELECT COUNT(*) FROM customers")
7171
.fetch_one(get_db())
7272
.await
73-
.map_err(|err| ServerFnError::WrappedServerError(format!("{err:?}")))?
73+
.map_err(|err| ServerFnError::new(format!("{err:?}")))?
7474
.get(0);
7575

7676
Ok(count as usize)

0 commit comments

Comments
 (0)