diff --git a/examples/router/src/pages/post.rs b/examples/router/src/pages/post.rs index 2253e97e476..1c692ce2b41 100644 --- a/examples/router/src/pages/post.rs +++ b/examples/router/src/pages/post.rs @@ -1,5 +1,6 @@ use crate::{content, generator::Generated, Route}; use content::PostPart; +use std::borrow::Cow; use yew::prelude::*; use yew_router::prelude::*; @@ -46,7 +47,7 @@ impl Component for Post { html! { <>
- +

@@ -77,7 +78,7 @@ impl Post {

- +

@@ -97,7 +98,7 @@ impl Post { fn render_section_hero(&self, section: &content::Section) -> Html { html! {
- +

{ §ion.title }

diff --git a/packages/yew-router-macro/Cargo.toml b/packages/yew-router-macro/Cargo.toml index 25c6406a2e7..de52519ff42 100644 --- a/packages/yew-router-macro/Cargo.toml +++ b/packages/yew-router-macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yew-router-macro" -version = "0.14.0" +version = "0.15.0" authors = ["Hamza "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/packages/yew-router/Cargo.toml b/packages/yew-router/Cargo.toml index 24a0d228211..de68622d5b2 100644 --- a/packages/yew-router/Cargo.toml +++ b/packages/yew-router/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yew-router" -version = "0.14.0" +version = "0.15.0" authors = ["Hamza "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/packages/yew-router/tests/router.rs b/packages/yew-router/tests/router.rs index 07eb8843d28..67a78dab815 100644 --- a/packages/yew-router/tests/router.rs +++ b/packages/yew-router/tests/router.rs @@ -61,7 +61,7 @@ fn component() -> Html { {"click me"} }, - Routes::No { id } => html! { }, + Routes::No { id } => html! { }, Routes::NotFound => html! {
{"404"}
}, } }); diff --git a/packages/yew/Cargo.toml b/packages/yew/Cargo.toml index 496888c90dd..93653de7904 100644 --- a/packages/yew/Cargo.toml +++ b/packages/yew/Cargo.toml @@ -30,7 +30,7 @@ slab = "0.4" thiserror = "1" wasm-bindgen = "0.2.74" wasm-bindgen-futures = "0.4" -yew-macro = { version = "0.17.0", path = "../yew-macro" } +yew-macro = { version = "^0.18.0", path = "../yew-macro" } # optional encodings bincode = { version = "1", optional = true } @@ -38,9 +38,6 @@ rmp-serde = { version = "0.15.0", optional = true } serde_cbor = { version = "0.11.1", optional = true } serde_yaml = { version = "0.8.4", optional = true } toml = { version = "0.5", optional = true } -wasm-bindgen = { version = "0.2.60", optional = true } -wasm-bindgen-futures = { version = "0.4", optional = true } -yew-macro = { version = "^0.18.0", path = "../yew-macro" } [dependencies.web-sys] version = "0.3"