-
- x
-
- x
-
- x
- Bumped version of Yew from v0.12.0 to v0.13.0
- This brings support for web_sys, which necessitates specifying either "web_sys" or "std_web" as a feature. (Thanks @tarkah)
-
- Improved error handling in macro. [233] @jplatte
-
- Fixed a dependency issue with
wasm-bindgen
that would cause builds to fail when building for thewasm32-unknown-unknown
target.
- Fixed a dependency issue with
-
- Use a default type parameter of
()
to specify state-related type parameters instead of the old macro-based solution. [157] - Remove need for
JsSerializable
bound on the state parameter used for storing extra data in the history API.[185] - RouterLink and RouterButton now support having children Html. This deprecates the
text
prop. [192] - Fragment routing is now easily implementable by using an adapter because parser rules for the routing syntax were relaxed. [195] [211]
- Support using this library only with the Switch derive, allowing it to run in non-web contexts. [199]
- Use a default type parameter of
-
- If you were using
default-features = false
, you will have to now specifyfeatures = ["service"]
to get the same behavior as before. [199] RouterAnchor
andRouterButton
now have props that take aroute: SW where SW: Switch
prop instead of alink: String
and they now have a mandatory type parameter that specifies thisSW
. [207]Route
's state field now holds aT
instead of anOption<T>
. [205]- Using default type parameters to specify the state typ instead of the macro that generated a module (
unit_state
) means that any imports from that module should now be replaced with the path that the type normally has in the project. [157]
- If you were using
-
- Change state related type parameters from
T
toSTATE
. [208]
- Change state related type parameters from
-
- Upgrade to Yew 0.10.0
- Switch components now need to implement
Clone
in order to be used with theRouter
[171]
-
- Bring back
{}
,{*}
, and{<number>}
capture syntax for tuple structs/enum variants. If your variant or struct doesn't have named fields, you don't need to supply names in the matcher string [116] - Allow ! special character in more places.
- Greatly improve the quality of matcher string parsing errors. [171]
- Add
impl<SW: Switch, T> From<SW> for Route<T>
. Now Routes can be created from Switches easily. - Allow escaping {, }, and ! special characters by using
{{
,}}
, and!!
respectively. - Provide a correct error message when attempting to derive
Switch
for a Unit struct/variant with a capture group.
- Bring back
-
Switch
trait and Proc Macro enables extracting data from route strings.Router
component added.RouterLink
andRouterButton
helper components added.
-
- Nearly everything. Most items were renamed.
- Upgrade to Yew 0.9.0