|
1 | 1 | # Changelog
|
2 | 2 |
|
| 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 | + |
3 | 66 | ## ✨ **0.16.2** *(2020-05-14)*
|
4 | 67 |
|
5 | 68 | #### Changelog
|
@@ -875,10 +938,12 @@ This release introduces the concept of an `Agent`. Agents are separate activitie
|
875 | 938 | [@lukerandall]: https://github.com/lukerandall
|
876 | 939 | [@mankinskin]: https://github.com/mankinskin
|
877 | 940 | [@mdtusz]: https://github.com/mdtusz
|
| 941 | +[@mkawalec]: https://github.com/mkawalec |
878 | 942 | [@mrh0057]: https://github.com/mrh0057
|
879 | 943 | [@nicklaswj]: https://github.com/nicklaswj
|
880 | 944 | [@philip-peterson]: https://github.com/philip-peterson
|
881 | 945 | [@serzhiio]: https://github.com/serzhiio
|
| 946 | +[@siku2]: https://github.com/siku2 |
882 | 947 | [@Stigjb]: https://github.com/Stigjb
|
883 | 948 | [@stkevintan]: https://github.com/stkevintan
|
884 | 949 | [@TheNeikos]: https://github.com/TheNeikos
|
|
0 commit comments