Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

Latest commit

 

History

History
95 lines (75 loc) · 5.24 KB

CHANGELOG.md

File metadata and controls

95 lines (75 loc) · 5.24 KB

Changelog

0.12.0 (TBD)

  • ⚡️ Features

    • x
  • 🛠 Fixes

    • x
  • 🚨 Breaking changes

    • x

0.11.0 2020-3-14

  • 🛠 Fixes

    • Fixed docs.rs document generation [254] (Thanks @jetli)
    • Fixed clippy for web_sys target [249] (Thanks @jetli)

0.10.0 2020-3-2

  • 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)

0.9.0 2020-2-25

  • ⚡️ Features

    • Improved error handling in macro. [233] @jplatte
  • 🛠 Fixes

    • Fix RouterAnchor href [228] @jetli
    • Undo non-passive state for prevent_default [240] @jetli

0.8.1 (2020-1-10)

  • 🛠 Fixes

    • Fixed a dependency issue with wasm-bindgen that would cause builds to fail when building for the wasm32-unknown-unknown target.

0.8.0 (2020-1-9)

  • ⚡️ Features

    • 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]
  • 🚨 Breaking changes

    • If you were using default-features = false, you will have to now specify features = ["service"] to get the same behavior as before. [199]
    • RouterAnchor and RouterButton now have props that take a route: SW where SW: Switch prop instead of a link: String and they now have a mandatory type parameter that specifies this SW. [207]
    • Route's state field now holds a T instead of an Option<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]
  • Inconsequential

    • Change state related type parameters from T to STATE. [208]

0.7.0 (2019-11-11)

  • ⚡️ Features

    • Redirects that happen in the Router component actually change the url in the browser [171]
    • Allow parsing (almost) any character after a # is encountered in matcher strings. This enables this library to be used as a fragment router. [150]
  • 🛠 Fixes

    • Allow ! to appear after {...} in matcher strings. [148]
    • Matcher strings can now start with &. [168]
  • 🚨 Breaking changes

    • Upgrade to Yew 0.10.0
    • Switch components now need to implement Clone in order to be used with the Router [171]

0.6.1 (2019-11-1)

  • ⚡️ Features

    • 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.

0.6.0 (2019-10-24)

  • ⚡️ Features

    • Switch trait and Proc Macro enables extracting data from route strings.
    • Router component added.
    • RouterLink and RouterButton helper components added.
  • 🚨 Breaking changes

    • Nearly everything. Most items were renamed.
    • Upgrade to Yew 0.9.0