yew v0.16 Release Notes

Release Date: 2020-05-09 // almost 4 years ago
  • ๐Ÿ”„ Changelog

    • โšก๏ธ Features

      • Added optional id, class, and placeholder properties to the Select component. [[@Stigjb], #1187]
      • Re-export web-sys from Yew. This allows projects to use web-sys without adding it to their Cargo.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 and get_component methods to ComponentLink to allow access to parent component state. [[@jstarry], #1151]
    • ๐Ÿ›  #### ๐Ÿ›  Fixes

      • Fixed bug that caused html class attributes to be set to an empty string. [[@liquidblock], #1085]
      • Fixed Private worker lifecycle event sending. [[@joaquindk], #1146]
    • ๐Ÿšจ Breaking changes

      • Bumped minimum supported Rust version (MSRV) to 1.40.0. [[@jstarry], #1152]