✨ 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, #3508, #3431] [@Siyuan Yan, #3892] - Preserve camelCase for known SVG elements. [@Siyuan Yan, #3875]
- Add
inertto the boolean attributes list. [@Tomoaki Kawada, #3678] - Namespace support for
VRaw. [@Finn Bear, #3640] to_callbackmethods and From impls to convert reducer dispatchers and state setters to callbacks. [@Tim Kurdov, #3519]- Allows converting
ChildrenRenderer<VNode>andVChildto VList. [@Muhammad Hamza, #3444] - Add
CallbackRefthat takes ref in argument instead of value. [@Cecile Tonglet, #3419] - Allow import of layout_test into 3rd party crates. [@rollo-b2c2, #3463]
- Add WASI support for server-side rendering. [@langyo, #3534]
- Make
UseFutureHandleClone. [@Adam Steinberg, #3529] - Allow
Selfin prop fields. [@Tim Kurdov, #3569] - Allow boolean in
html!. [@Tim Kurdov, #3441]
🛠 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]
- Fixed inconsistent clone() requirement when passing Classes to HTML elements vs. components. [@Siddhant Shekhar, #3931]
- Fix svg animation always starting immediately. [@Siyuan Yan, #3892]
- Better diagnostics for byte literals in
html!. [@Tim Kurdov, #3441] - Concise diagnostics for missing props. [@Siyuan Yan, #3873]
- Use the namespace when xmlns attributes are specified. [@JasonCG, #3629]
- Fix generic type missing erros in hooks. [@Michael Meyer, #3633]
- Better duplicate key diagnostics. [@WorldSEnder, #3785]
- Fix autocompletion in html macro for rust-analyzer. [@Moritz Hedtke, #3829]
#[hook]:clippy::multiple_bound_locationslint no longer triggered. [@Tim Kurdov, #3803]
⚙️ 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]
- Fix website search. [@Muhammad Hamza, #3522]
- Addition and improvements to example crates. [@Oliver Bilbie, #3587] [@Astariul, #3631] [@Yann Dirson, #3570] [@Cecile Tonglet, #3505] [@Kaede Hoshikawa, #3436]
- Wording and typo fixes. [@Waldir Pimenta, #3754] [@Jupp56, #3429] [@Flavio Moreira, #3418] [@ronanM, #3413] [@Waldir Pimenta, #3754] [@Damien Lachaume, #3790] [@Edwin Amsler, #3788] [@Tushar GH, #3585] [@zhengwu, #3574] [@Raahim Fareed, #3539] [@gcmutator, #3628] [@Raphael Martin Schindler, #3605] [@Jonathan Picques, #3448] [@Ikko Eltociear Ashimine, #3432] [@Daniel Sousa, #3425]
✨ 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]