Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

Commit

Permalink
V0.8.1 (#223)
Browse files Browse the repository at this point in the history
* Fix wasm-pack build issue

* update changelog

* cargo.toml version changes

* fix dependencies causing odd compile bug

* fix minimal dependency
  • Loading branch information
hgzimmerman authored Jan 10, 2020
1 parent 4b9133d commit f7dad13
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ END TEMPLATE-->
- Sample
- #### 🚨 Breaking changes
- Sample


## **0.8.1** *(2020-1-10)*

- #### 🛠 Fixes
- Fixed a dependency issue with `wasm-bindgen` that would cause builds to fail when building for the `wasm32-unknown-unknown` target.

## **0.8.0** *(2020-1-9)*
- #### ⚡️ Features
Expand Down
17 changes: 11 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yew-router"
version = "0.9.0"
version = "0.8.1"
authors = ["Henry Zimmerman <[email protected]>", "Sascha Grunert <[email protected]>"]
edition = "2018"
license = "MIT/Apache-2.0"
Expand Down Expand Up @@ -28,16 +28,21 @@ service = ["stdweb", "yew"] # The RouteService
[dependencies]
log = "0.4.8"
serde = {version = "1.0.103", features = ["derive"]}
#yew = {version = "0.11.0", optional = true}
yew = {git = "https://github.com/yewstack/yew", branch = "master", optional = true}
yew = {version = "0.11.0", optional = true}
#yew = {git = "https://github.com/yewstack/yew", branch = "master", optional = true}
stdweb = {version = "0.4.20", optional = true}

yew-router-route-parser = {path = "crates/yew_router_route_parser", version = "0.9.0"}
yew-router-macro = {path = "crates/yew_router_macro", version = "0.9.0"}
yew-router-route-parser = {path = "crates/yew_router_route_parser", version = "0.8.0"}
yew-router-macro = {path = "crates/yew_router_macro", version = "0.8.0"}
nom = "5.0.1"
uuid = "0.8.1"
serde_json = "1.0.44"

# Compat with building yew with wasm-pack support.
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dependencies]
wasm-bindgen = "0.2.58"

[dev-dependencies]
static_assertions = "1.1.0"


[workspace]
Expand Down
6 changes: 3 additions & 3 deletions crates/yew_router_macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yew-router-macro"
version = "0.9.0"
version = "0.8.0"
authors = ["Henry Zimmerman <[email protected]>"]
edition = "2018"
license = "MIT/Apache-2.0"
Expand All @@ -14,8 +14,8 @@ proc-macro = true
[dependencies]
syn = "1.0.2"
quote = "1.0.1"
yew-router-route-parser = {path = "../yew_router_route_parser", version = "0.9.0"}
yew-router-route-parser = {path = "../yew_router_route_parser", version = "0.8.0"}
proc-macro2 = "1.0.1"

[dev-dependencies]
yew-router = {path = "../..", version = "0.9.0"}
yew-router = {path = "../..", version = "0.8.1"}
2 changes: 1 addition & 1 deletion crates/yew_router_route_parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yew-router-route-parser"
version = "0.9.0"
version = "0.8.0"
authors = ["Henry Zimmerman <[email protected]>"]
edition = "2018"
license = "MIT/Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/guide/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
#yew = "0.11.0"
yew = {git = "https://github.com/yewstack/yew", branch = "master"}
yew = "0.11.0"
#yew = {git = "https://github.com/yewstack/yew", branch = "master"}
yew-router = {path = "../../"}
#web_logger = "0.2"
log = "0.4.8"
Expand Down
4 changes: 2 additions & 2 deletions examples/minimal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
#yew = "0.11.0"
yew = {git = "https://github.com/yewstack/yew", branch = "master"}
yew = "0.11.0"
#yew = {git = "https://github.com/yewstack/yew", branch = "master"}
yew-router = {path = "../../", default-features=false, features = ["service"]}
web_logger = "0.1"
log = "0.4.8"
Expand Down
4 changes: 2 additions & 2 deletions examples/router_component/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ authors = ["Henry Zimmerman <[email protected]>"]
edition="2018"

[dependencies]
#yew = "0.11.0"
yew = {git = "https://github.com/yewstack/yew", branch = "master"}
yew = "0.11.0"
#yew = {git = "https://github.com/yewstack/yew", branch = "master"}
yew-router = {path = "../../"}
web_logger = "0.2"
log = "0.4.8"
Expand Down
28 changes: 28 additions & 0 deletions src/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,31 @@ pub enum Msg {
/// Tell the router to navigate the application to the Component's pre-defined route.
Clicked,
}


#[cfg(test)]
mod test {
use super::*;

#[test]
fn button_usize_is_component() {
static_assertions::assert_impl_one!(RouterButton<usize>: yew::Component);
}

#[test]
fn anchor_usize_is_component() {
static_assertions::assert_impl_one!(RouterAnchor<usize>: yew::Component);
}

#[test]
fn button_string_is_component() {
static_assertions::assert_impl_one!(RouterButton<String>: yew::Component);
}

#[test]
fn anchor_string_is_component() {
static_assertions::assert_impl_one!(RouterAnchor<String>: yew::Component);
}


}

0 comments on commit f7dad13

Please sign in to comment.