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

v0.8.0

Compare
Choose a tag to compare
@hgzimmerman hgzimmerman released this 09 Jan 23:35
· 20 commits to master since this release
fbf88e3

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]