Skip to content

Commit 844aa4b

Browse files
authored
Prep 0.17 release (#1355)
1 parent dcdcfe7 commit 844aa4b

File tree

10 files changed

+76
-11
lines changed

10 files changed

+76
-11
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Environment:**
27-
- Yew version: [e.g. v0.16.2, `master`]
27+
- Yew version: [e.g. v0.17, `master`]
2828
- Rust version: [e.g. 1.43.0, `nightly`]
2929
- Target, if relevant: [e.g. `wasm32-unknown-emscripten`]
3030
- Build tool, if relevant: [e.g. `wasm-pack`, `cargo-web`]

.github/ISSUE_TEMPLATE/bug_report_router.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Environment:**
27-
- Yew version: [e.g. v0.16.2, `master`]
27+
- Yew version: [e.g. v0.17, `master`]
2828
- Yew Router version: [e.g. v0.13]
2929
- Rust version: [e.g. 1.43.0, `nightly`]
3030
- Target, if relevant: [e.g. `wasm32-unknown-emscripten`]

CHANGELOG.md

+65
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
11
# Changelog
22

3+
## **0.17.0** *(2020-06-29)*
4+
5+
#### Changelog
6+
7+
- #### ⚡️ Features
8+
9+
- Allow agents to send input messages to themselves. [[@mkawalec], [#1278](https://github.com/yewstack/yew/pull/1278)]
10+
- Rendering performance has been improved by [~20%](http://static.yew.rs/v0.17-benchmarks.png). [[@jstarry], [#1296](https://github.com/yewstack/yew/pull/1296), [#1309](https://github.com/yewstack/yew/pull/1309)]
11+
- `html!`: Elements can be specified with dynamic tag names. [[@siku2], [#1266](https://github.com/yewstack/yew/pull/1266)]
12+
13+
In order to specify a dynamic tag name, wrap an expression with `@{..}`:
14+
15+
```rust
16+
let tag_name = "input";
17+
html! { <@{tag_name} value="Hello" /> }
18+
```
19+
- HTML button element `type` can now be specified (`"submit"`, `"reset"`, or `"button"`). [[@captain-yossarian], [#1033](https://github.com/yewstack/yew/pull/1033)]
20+
- All global event listeners can be used as listeners (`onerror`, `onloadend`, and many more). [[@siku2], [#1244](https://github.com/yewstack/yew/pull/1242)]
21+
- `PartialEq` is now implemented for `VChild` when properties also implement `PartialEq`. [[@kellpossible], [#1242](https://github.com/yewstack/yew/pull/1242)]
22+
- Agent callbacks now accept `Into<Message>` to improve ergonomics. [[@totorigolo], [#1215](https://github.com/yewstack/yew/pull/1215)]
23+
- Agents can now send messages to themselves. [[@totorigolo], [#1215](https://github.com/yewstack/yew/pull/1215)]
24+
25+
- #### 🛠 Fixes
26+
27+
- Bincode dependency version has been loosened `1.2.1` -> `1`. [[@jstarry], [#1349](https://github.com/yewstack/yew/pull/1349)]
28+
- Keyed list ordering algorithm has been fixed. [[@totorigolo] and [@jstarry], [#1231](https://github.com/yewstack/yew/pull/1231)]
29+
- `html!`: `key` and `ref` are no longer ignored for components with no properties. [[@jstarry], [#1338](https://github.com/yewstack/yew/pull/1338)]
30+
- `html!`: List rendering behavior is consistent no matter which syntax is chosen. [[@siku2], [#1275](https://github.com/yewstack/yew/pull/1275)]
31+
32+
`html! { for node_list }` is now equivalent to `html! { node_list }` when `node_list` is a `Vec<VNode>`.
33+
34+
- `KeyboardService` events can now have default behavior prevented. [[@ghpu], [#1286](https://github.com/yewstack/yew/pull/1286)]
35+
- Yew will check the current DOM `input` value before comparing with the desired value. [[@ShadoySV], [#1268](https://github.com/yewstack/yew/pull/1268)]
36+
- `html!`: Void elements (`<br/>`, `<input />`) are no longer allowed to have children. [[@kaoet], [#1217](https://github.com/yewstack/yew/pull/1217)]
37+
- Local agents no longer require `Input` and `Output` to implement `Serializable`. [[@mkawalec], [#1195](https://github.com/yewstack/yew/pull/1195)]
38+
39+
- #### 🚨 Breaking changes
40+
41+
- `ConsoleService`, `DialogService`, `IntervalService`, `RenderService`, `TimeoutService`, and `WebSocketService` methods are now static. [[@teymour-aldridge], [#1313](https://github.com/yewstack/yew/pull/1313)]
42+
- `html!`: `Children` no longer implements `Renderable`. [[@siku2], [#1275](https://github.com/yewstack/yew/pull/1275)]
43+
44+
Replace instances of `self.props.children.render()` with `self.props.children.clone()`.
45+
46+
- Yew no longer stops propagation of events by default. [[@jstarry], [#1256](https://github.com/yewstack/yew/pull/1256)]
47+
48+
Event propagation is usually stopped when you have event listeners attached to nested elements and do not want the event to bubble up from where it was first captured. If your app has this behavior, you can stop propagation by calling `stop_propagation()` on the desired event.
49+
50+
- The `onmousewheel` and `ontouchenter` listeners have been removed. [[@siku2], [#1244](https://github.com/yewstack/yew/pull/1244)]
51+
- The `ondoubleclick` listener is now named `ondblclick`. [[@siku2], [#1244](https://github.com/yewstack/yew/pull/1244)]
52+
- `FetchService` methods are now static. [[@teymour-aldridge], [#1235](https://github.com/yewstack/yew/pull/1235)]
53+
54+
Instead of `FetchService::new().fetch(..)` you should now use `FetchService::fetch(..)`
55+
56+
- The `send_message_batch` method has been removed from `AgentLink`. [[@totorigolo], [#1215](https://github.com/yewstack/yew/pull/1215)]
57+
- Minimum supported rust version has been bumped from `1.40.0` to `1.42.0`. [[@mkawalec], [#1195](https://github.com/yewstack/yew/pull/1195)]
58+
- Every agent `Reach` type is now generic. [[@mkawalec], [#1195](https://github.com/yewstack/yew/pull/1195)]
59+
60+
In order to fix your app, simply append `<Self>` to the reach:
61+
62+
`Reach = Context` -> `Reach = Context<Self>`
63+
- Removed `Global` agent because it was never implemented. [[@jstarry], [#1202](https://github.com/yewstack/yew/pull/1202)]
64+
- Reduced visibility of internal agent types that were not intended to be public. [[@jstarry], [#1202](https://github.com/yewstack/yew/pull/1202)]
65+
366
## ✨ **0.16.2** *(2020-05-14)*
467

568
#### Changelog
@@ -875,10 +938,12 @@ This release introduces the concept of an `Agent`. Agents are separate activitie
875938
[@lukerandall]: https://github.com/lukerandall
876939
[@mankinskin]: https://github.com/mankinskin
877940
[@mdtusz]: https://github.com/mdtusz
941+
[@mkawalec]: https://github.com/mkawalec
878942
[@mrh0057]: https://github.com/mrh0057
879943
[@nicklaswj]: https://github.com/nicklaswj
880944
[@philip-peterson]: https://github.com/philip-peterson
881945
[@serzhiio]: https://github.com/serzhiio
946+
[@siku2]: https://github.com/siku2
882947
[@Stigjb]: https://github.com/Stigjb
883948
[@stkevintan]: https://github.com/stkevintan
884949
[@TheNeikos]: https://github.com/TheNeikos

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<h4>
1919
<a href="https://yew.rs/docs">Documentation</a>
2020
<span> | </span>
21-
<a href="https://github.com/yewstack/yew/tree/v0.16.0/examples">Examples</a>
21+
<a href="https://github.com/yewstack/yew/tree/v0.17/examples">Examples</a>
2222
<span> | </span>
2323
<a href="https://github.com/yewstack/yew/blob/master/CHANGELOG.md">Changelog</a>
2424
<span> | </span>

yew-components/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ travis-ci = { repository = "yewstack/yew" }
1919
[dependencies]
2020
wasm-bindgen = "0.2.60"
2121
web-sys = "0.3"
22-
yew = { version = "0.16", path = "../yew" }
22+
yew = { version = "0.17", path = "../yew" }

yew-macro/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yew-macro"
3-
version = "0.16.1"
3+
version = "0.17.0"
44
edition = "2018"
55
authors = ["Justin Starry <[email protected]>"]
66
repository = "https://github.com/yewstack/yew"

yew-router/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ web_sys = [
3131
]
3232

3333
[dependencies]
34-
yew = { version = "0.16.0", path = "../yew", features = ["services", "agent"], default-features= false, optional = true }
34+
yew = { version = "0.17.0", path = "../yew", features = ["services", "agent"], default-features= false, optional = true }
3535
yew-router-macro = { version = "0.13.0", path = "../yew-router-macro" }
3636
yew-router-route-parser = { version = "0.13.0", path = "../yew-router-route-parser" }
3737

yew-router/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can use the released version by adding these to your dependencies.
5454
```toml
5555
[dependencies]
5656
yew-router = "0.13.0"
57-
yew = "0.16.2"
57+
yew = "0.17.0"
5858
```
5959

6060
You can use the in-development version in your project by adding it to your dependencies like so:

yew-stdweb/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yew-stdweb"
3-
version = "0.16.2"
3+
version = "0.17.0"
44
edition = "2018"
55
authors = [
66
"Denis Kolodin <[email protected]>",
@@ -45,7 +45,7 @@ thiserror = "1"
4545
toml = { version = "0.5", optional = true }
4646
wasm-bindgen = { version = "0.2.60", optional = true }
4747
wasm-bindgen-futures = { version = "0.4", optional = true }
48-
yew-macro = { version = "0.16.1", path = "../yew-macro", features = ["std_web"] }
48+
yew-macro = { version = "0.17.0", path = "../yew-macro", features = ["std_web"] }
4949

5050
# Changes here must be reflected in `build.rs`
5151
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dependencies]

yew/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yew"
3-
version = "0.16.2"
3+
version = "0.17.0"
44
edition = "2018"
55
authors = [
66
"Denis Kolodin <[email protected]>",
@@ -44,7 +44,7 @@ thiserror = "1"
4444
toml = { version = "0.5", optional = true }
4545
wasm-bindgen = { version = "0.2.60", optional = true }
4646
wasm-bindgen-futures = { version = "0.4", optional = true }
47-
yew-macro = { version = "0.16.1", path = "../yew-macro" }
47+
yew-macro = { version = "0.17.0", path = "../yew-macro" }
4848

4949
[dependencies.web-sys]
5050
version = "0.3"

0 commit comments

Comments
 (0)