Changelog History
Page 1
-
v0.19.0 Changes
November 26, 2021๐ 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. [@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]
-
v0.18.0 Changes
May 15, 2021๐ Changelog
๐ #### ๐ Fixes
โก๏ธ Features
- Implicit optional attributes. [@siku2, #1637]
- Added callback_future_once in yewtil.(#1712). [@fraillt, #1696]
- Added relevant examples section to the docs. [@oOBoomberOo, #1695]
- Added missing KeyboardService re-export. [@SOF3, #1694]
- Rename internal Agent structs to match Component. [@jstarry, #1688]
- Add discussion link to issue selector. [@jstarry, #1674]
- Update link to Material Design Components. [@TapioT, #1662]
- Extract Classes to a separate macro. [@cecton, #1601]
- Improve the "keyed_list" example. [@titaneric, #1650]
- Add documentation for component children. [@K4rakara, #1616]
- Add a macro for building properties outside of html!. [@siku2, #1599]
-
v0.17.4 Changes
October 18, 2020 -
v0.17.3 Changes
August 16, 2020๐ Changelog
๐ฑ โก๏ธ Features
- Added
prompt
function toDialogService
. [@teymour-aldridge, #1350] - Implement
From<&[T]>
whereT: AsRef<str>
forClasses
. [@alexschrod, #1448] - Added
batch_callback_once
toComponentLink
. [@ctron, #1463]
- Added
๐ Fixes
-
v0.17.2 Changes
July 04, 2020๐ Changelog
-
v0.17.1 Changes
July 01, 2020 -
v0.17.0 Changes
June 29, 2020๐ Changelog
๐ฑ โก๏ธ Features
๐ Allow agents to send input messages to themselves. [@mkawalec, #1278]
๐ Rendering performance has been improved by ~20%. [@jstarry, #1296, #1309]
html!
: Elements can be specified with dynamic tag names. [@siku2, #1266]In order to specify a dynamic tag name, wrap an expression with
@{..}
:let tag\_name = "input";html! { \<@{tag\_name} value="Hello" /\> }
HTML button element
type
can now be specified ("submit"
,"reset"
, or"button"
). [@captain-yossarian, #1033]All global event listeners can be used as listeners (
onerror
,onloadend
, and many more). [@siku2, #1244]PartialEq
is now implemented forVChild
when properties also implementPartialEq
. [@kellpossible, #1242]Agent callbacks now accept
Into<Message>
to improve ergonomics. [@totorigolo, #1215]Agents can now send messages to themselves. [@totorigolo, #1215]
๐ Fixes
Bincode dependency version has been loosened
1.2.1
->1
. [@jstarry, #1349]๐ Keyed list ordering algorithm has been fixed. [@totorigolo and @jstarry, #1231]
html!
:key
andref
are no longer ignored for components with no properties. [@jstarry, #1338]html!
: List rendering behavior is consistent no matter which syntax is chosen. [@siku2, #1275]html! { for node_list }
is now equivalent tohtml! { node_list }
whennode_list
is aVec<VNode>
.0๏ธโฃ
KeyboardService
events can now have default behavior prevented. [@ghpu, #1286]Yew will check the current DOM
input
value before comparing with the desired value. [@ShadoySV, #1268]html!
: Void elements (<br/>
,<input />
) are no longer allowed to have children. [@kaoet, #1217]Local agents no longer require
Input
andOutput
to implementSerializable
. [@mkawalec, #1195]๐ฑ ๐จ Breaking changes
โก๏ธ Renders are now done lazily and will not be executed until all updates have been processed. [@jstarry, #1309]
๐
ConsoleService
,DialogService
,IntervalService
,RenderService
,TimeoutService
, andWebSocketService
methods are now static. [@teymour-aldridge, #1313]html!
:Children
no longer implementsRenderable
. [@siku2, #1275]๐ฏ Replace instances of
self.props.children.render()
withself.props.children.clone()
.0๏ธโฃ Yew no longer stops propagation of events by default. [@jstarry, #1256]
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.๐ The
onsubmit
listener now usesFocusEvent
insteadEvent
when usingweb-sys
. [@siku2, #1244]๐ The
onmousewheel
andontouchenter
listeners have been removed. [@siku2, #1244]The
ondoubleclick
listener is now namedondblclick
. [@siku2, #1244]FetchService
methods are now static. [@teymour-aldridge, #1235]Instead of
FetchService::new().fetch(..)
you should now useFetchService::fetch(..)
The
send_message_batch
method has been removed fromAgentLink
. [@totorigolo, #1215]๐ Minimum supported rust version has been bumped from
1.40.0
to1.42.0
. [@mkawalec, #1195]Every agent
Reach
type is now generic. [@mkawalec, #1195]In order to fix your app, simply append
<Self>
to the reach:Reach = Context
->Reach = Context<Self>
โ Removed
Global
agent because it was never implemented. [@jstarry, #1202]โฌ๏ธ Reduced visibility of internal agent types that were not intended to be public. [@jstarry, #1202]
-
v0.16.2 Changes
May 14, 2020 -
v0.16.1 Changes
May 14, 2020 -
v0.16 Changes
May 09, 2020๐ Changelog
โก๏ธ Features
- Added optional
id
,class
, andplaceholder
properties to theSelect
component. [[@Stigjb], #1187] - Re-export
web-sys
from Yew. This allows projects to useweb-sys
without adding it to theirCargo.toml
. [[@D4nte], #1176] - Added support for
Option
wrapped class names. [[@liquidblock], #1085]
The following code is now supported:
let color: &Option<String> = &self.color; html! { <div class=("btn", color)></div> }
- Added
get_parent
andget_component
methods toComponentLink
to allow access to parent component state. [[@jstarry], #1151]
- Added optional
๐ #### ๐ Fixes
๐จ Breaking changes
- Bumped minimum supported Rust version (MSRV) to 1.40.0. [[@jstarry], #1152]