Skip to content

Commit

Permalink
Upgrade to Yew 0.21 (#62)
Browse files Browse the repository at this point in the history
* Upgrade to Yew 0.21

* Bump a few depencies
  • Loading branch information
abusch authored Oct 10, 2023
1 parent b6a0a47 commit f2283a5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 17 deletions.
7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[workspace]
members = [
"crates/*",
"examples/*",
]

resolver = "2"
members = ["crates/*", "examples/*"]
5 changes: 2 additions & 3 deletions crates/yewdux-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ categories = ["wasm", "web-programming", "rust-patterns"]
proc-macro = true

[dependencies]
darling = "0.13.3"
darling = "0.20"
proc-macro-error = "1.0.4"
proc-macro2 = "1.0.36"
quote = "1.0.14"
syn = "1.0.84"

syn = "2"
2 changes: 1 addition & 1 deletion examples/async_reducer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ edition = "2018"
yew = { git = "https://github.com/yewstack/yew.git", features = ["csr"] }
yewdux = { path = "../../crates/yewdux" }
serde = "1.0"
gloo-net = "0.2.4"
gloo-net = "0.4"
web-sys = "0.3"
2 changes: 1 addition & 1 deletion examples/input/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn InputDatetime() -> Html {

html! {
<>
<p>{store.datetime.unwrap_or_default()}</p>
<p>{store.datetime.unwrap_or_default().to_rfc2822()}</p>
<input type="datetime-local" {oninput} />
</>
}
Expand Down
2 changes: 1 addition & 1 deletion examples/selector/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn App() -> Html {

html! {
<>
<p>{ count }</p>
<p>{ *count }</p>
<button {onclick}>{"+1"}</button>
</>
}
Expand Down
8 changes: 3 additions & 5 deletions examples/todomvc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ edition = "2018"

[dependencies]
serde = "1"
strum = "0.24"
strum_macros = "0.24"
strum = "0.25"
strum_macros = "0.25"
yew = { git = "https://github.com/yewstack/yew.git", features = ["csr"] }
yewdux = { path = "../../crates/yewdux" }

[dependencies.web-sys]
version = "0.3"
features = [
"HtmlInputElement",
]
features = ["HtmlInputElement"]
2 changes: 1 addition & 1 deletion examples/todomvc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn SelectFilter(&SelectFilterProps { active, target }: &SelectFilterProps) -> Ht
html! {
<li>
<a class={cls} href={target.as_href()} {onclick}>
{ target }
{ target.to_string() }
</a>
</li>
}
Expand Down

0 comments on commit f2283a5

Please sign in to comment.