yew-v0.19.3
版本发布时间: 2021-12-12 04:18:23
yewstack/yew最新发布版本:yew-v0.21.0(2023-09-29 19:14:55)
Changelog
-
🛠 Fixes
- Attempt to fix recursion on display. [@mibes, #2149]
- Fix default passive option. [@mc1098, #2111]
- Fix trybuild. [@mc1098, #2103]
- Fix event handler during capture phase. [@mc1098, #2062]
- Fix
VTag
reuse to reset ancestorNodeRef
. [@mc1098, #2030] - Fix IntoEventCallback over IntoPropValue. [@mc1098, #2025]
- Remove underscore prefix on fn parameters. [@mc1098, #2010]
- Fix rust-analyzer #[derive(Properties)] warnings. [@KarlitosVII, #2007]
- Fix clippy lints from 1.54.0. [@Xavientois, #1976]
- Fix scheduler main queue delay (#1953). [@intendednull, #1954]
- Fix case warning on derived properties. [@nitnelave, #1929]
- yew-macro: fix inability to set the autoplay atribute. [@bakape, #1866]
- Fix duplicate
with props
error messages.. [@teymour-aldridge, #1730] - Remove extra braces in html_nested macro. [@Madoshakalaka, #2169]
- Remove unused punct field from props. [@Xavientois, #1969]
-
⚡️ Features
- Check event bubbling cancellation at each step of propagation. [@rjmac, #2191]
- Add possibility to cancel bubbling. [@voidpumpkin, #2172]
- Add the ability to add child nodes conditionally in
html!
. [@cecton, #1609] - Add basic lints to the HTML macro.. [@teymour-aldridge, #1748]
- Refactor use ref hooks. [@mc1098, #2093]
- Implementation of portals. [@WorldSEnder, #2147]
- Allow Classes properties to be created from string literals. [@jplatte, #2141]
- Use functions from
gloo_utils
instead of re-implementing them. [@hamza1311, #2124] - Reliable
use_reducer
dispatch anduse_state
setter. [@futursolo, #2126] - Add custom type for attribute values. [@hamza1311, #1994]
- Remove trailing semicolon in macro used in expression position. [@vrmiguel, #2127]
- Add set_if_neq for UseStateHandle. [@voidpumpkin, #2109]
- Add safe first_node fn. [@mc1098, #2094]
- impl PartialEq for
UseStateHandle
andUseReducerHandle
. [@hamza1311, #2092] - Remove
web_sys
re-export. [@mc1098, #2084] - Use into_prop_value to convert str prop to Option<String>. [@Xavientois, #2080]
- Component lifecycle scheduler optimizations. [@bakape, #2065]
- Update dependencies. [@mc1098, #2064]
- Add support for missing boolean attributes. [@mc1098, #2051]
- Add fully qualified primitives in proc macro. [@mc1098, #2037]
- Remove 'static lifetime from hook init function. [@mc1098, #2039]
- Add "struct update" syntax to pass props to component (
..props
instead ofwith props
). [@Xavientois, #2024] - Add
no_implicit_prelude
to proc macro tests. [@mc1098, #2033] - Dev/listener multiplexer. [@bakape, #1542]
- Remove ShouldRender type alias. [@mc1098, #2011]
- Components v2 (2). [@hamza1311, #1961]
- Remove InputData & ChangeData. [@mc1098, #2000]
- Support const generics in
#[derive(Properties)]
. [@maciejhirsz, #1978] - Add shorthand syntax for props. [@Xavientois, #1970]
- Static attribute lists. [@bakape, #1962]
- yew/vlist: optimize diffing and patching. [@bakape, #1555]
- Add requirement for braces around most props. [@Xavientois, #1939]
- Optimize VTag construction, memory footprint and patching. [@bakape, #1947]
- Refactor and cleanup codebase. [@hamza1311, #1842]
- Helper to build changelog. [@cecton, #1845]
- Implicit optional attributes. [@siku2, #1637]
- yew: reduce scheduler call indirection. [@bakape, #1903]
- Change match statement to if. [@Xavientois, #1884]
- Optimize vtag construction. [@bakape, #1867]
- Apply Clippy lints.. [@teymour-aldridge, #1863]
- Change the app struct to be a real handle to an Yew app instance and make it possible to destroy a running app. [@nicklaswj, #1825]
- Bring context to standard components. [@Diggsey, #1835]
- Upgraded Hook API (2). [@hamza1311, #1780]
- Store hook state in a mutable scoped-TLS. [@Diggsey, #1831]
- Remove unnecessary allocation from
AnyScope
. [@Diggsey, #1830] - Added missing licenses to Cargo.toml files and updated to use SPDX syntax. [@jbg, #1822]
- Update Rust version for macro tests to 1.51 & enable const generics tests. [@hamza1311, #1801]
- Allow the use of Rust keywords for element names. [@siku2, #1772]
- Refactor html tag peeking. [@lukechu10, #1738]
- Generic functional components. [@lukechu10, #1756]
- Add support for the unit struct in Properties derive. [@Xavientois, #1752]
- Rip out stdweb. [@philip-peterson, #1697]