New
yew v0.22.0, yew-router v0.19.0, yew-agent v0.4.0
✨ yew 0.22.0
🚨 Breaking changes
- MSRV raised to 1.84.0. [@Siyuan Yan, #3900]
- Allow setting JsValue as properties. [@Elina, #3458]
- Remove deprecated
class=(...)syntax. [@Tim Kurdov, #3497] - Remove ToHtml trait. [@Elina, #3453]
- Make
<textarea>a void element (no children allowed anymore). [@Tim Kurdov, #3465]
⚡️ Features
- Add for-loops to
html!macro. [@Tim Kurdov, #3498] - Rename
#[function_component]to#[component]. [@Tim Kurdov, #3885] - Add
serdefeature to yew. [@Tim Kurdov, #3880] - Add
use_refhook. [@Alex Parrill, #3548] - Better ImplicitClone ergonomics. Fewer ampersands and stars needed in the
html!macro. [@Cecile Tonglet, , ] [, ]
🛠 Fixes
- Fix panic when hydrating components with unstable render order. [@WorldSEnder, #3914]
- Fix hydration panic on camelCased elements. [@Siyuan Yan, #3876]
- Fix autocompletion in html macro for rust-analyzer. [@Moritz Hedtke, #3829]
- Fix empty lists hydration failure when they were placed next to suspensions and other components. [@WorldSEnder, #3630]
- Silenced non-normalised element name warnings for SVG elements. [@Tim Kurdov, #3769]
⚙️ Improvements
- Avoid unnecessary scheduling. [@WorldSEnder, #3935]
- Remove the dependency on
boolinator. [@Tim Kurdov, #3420] - Avoid string copy for Key: From implementation. [@flumm, #3858]
- Switch to tokise from tokio [@Elina, #3776]
- use_future_with: simplify code a bit by using read-only use_memo rather than use_state. [@Léo Gaspard, #3610]
📝 Documentation
- website: modernise the Yew usage in the tutorial. [@Tim Kurdov, #3882]
- website: make tutorial testable. [@Tim Kurdov, #3879]
- fix the docs of use_prepared_state. [@Tim Kurdov, #3881]
- Update tutorial placeholder image generator. [@Nashwan Azhari, #3830]
- Refactor(NavbarItem): improve readability and maintainability. [@Brilliantkid, #3763]
✨ yew-router 0.19.0
⚡️ Features
- Introduce
FromQueryandIntoQuerytraits. [@Robert Schütte, #3565] - Dynamic basename support. [@Finn Bear, #3725]
🚨 Breaking changes
- MSRV raised to 1.84.0. [@Siyuan Yan, #3900]
✨ yew-agent 0.4.0
🛠 Fixes
- Fix calls of the disconnected method of on every render. [@Shihpin Tseng, #3435]
⚡️ Features
- Support module type web worker. [@Luca Cappelletti, #3859]
🚨 Breaking changes
- MSRV raised to 1.84.0. [@Siyuan Yan, #3900]