All Versions
Latest Version
Avg Release Cycle
39 days
Latest Release
429 days ago

Changelog History
Page 2

  • v0.15 Changes

    April 25, 2020


    0๏ธโƒฃ yew now uses web-sys by default. If your project uses web-sys, you can now drop the "web_sys" feature from your yew dependency. โšก๏ธ Don't worry stdweb users, we have created a new alias crate for y'all called yew-stdweb. In order to use it, update your Cargo.toml yew dependency to the following:

    yew = { version = "0.15", package = "yew-stdweb" }

    Dev Survey Results

    Thank you to everyone that took the time to fill out the Yew Dev Survey! ๐Ÿ™‡โ€โ™‚๏ธ

    Results have been posted here:

    ๐Ÿ†• New Chatroom

    ๐Ÿšš We moved from Gitter to Discord! Join us:

    ๐Ÿ”„ Changelog

    • โšก๏ธ Features

      • Add support for single use callbacks (useful for TimeoutService). [[@lukerandall], #1125]
      • Updated scheduler to eagerly destroy components to avoid unnecessary renders. [[@jstarry], #1072]
      • Add support key attribute to improve rendering performance. [[@mrh0057], #1076]
    • ๐Ÿ›  #### ๐Ÿ›  Fixes

      • Split class names on whitespace when passed within tuple or Vec. [[@bryanjswift], #1084]
    • ๐Ÿšจ Breaking changes

      • The components module has been moved out yew and into yew-components. [[@jstarry], #1132]
      • Replaced mounted component lifecycle method with rendered which is called after each render. [[@jstarry], #1072]
      • Components must now implement the change method (forgetting this was a very common issue). [[@jstarry], #1071]
      • Yew now builds with web-sys by default. [[@jstarry], #1092]
  • v0.14.3 Changes

    April 04, 2020

    ๐Ÿ›  Fixes

    • โœ‚ Remove html! component validation to allow generic components. [@mankinskin, #1065]
    • ๐Ÿ‘Œ Improve Debug formatting for VTag and VText. [@dancespiele, #1059]
    • 0๏ธโƒฃ Implement Default for Callback. [@TheNeikos, #1043]
  • v0.14.2 Changes

    March 23, 2020

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fix issue where components were rendered out of order. [@mrh0057 & @jstarry, #1051]
    • Reset Select component correctly in Firefox / Edge. [@kuy, #987]
  • v0.14.1 Changes

    March 14, 2020

    ๐Ÿ›  Fixes

    • Connected message was only called for first bridge creation. [@nicklaswj, #1029]
  • v0.14 Changes

    March 14, 2020

    ๐Ÿš€ Happy ๐Ÿฅง (PI) Day! This release brings a number of bug fixes for web-sys apps and ergonomic improvements to the API. Huge thanks to the community for diving into the migration from stdweb to web-sys so quickly and uncovering these issues!

    ๐Ÿ”„ Changelog

    • โšก๏ธ Features

      • Implemented Clone for WebSocketStatus. [[@kellytk], #1023]
      • Improved ergonomics for message APIs by accepting Into<Msg>. [[@captain-yossarian], #999]
      • html! improved compiler messages and flexible syntax for with props. [[@captain-yossarian], #960]
    • ๐Ÿ›  #### ๐Ÿ›  Fixes

      • Fixed panic in stdweb ResizeService event handling. [[@nicklaswj], #1014]
      • Removed build check for OS compatibility. [[@jstarry], #1019]
      • Fixed interval and timer usage in web-sys workers by updating gloo. [[@jstarry], #1018]
      • Send Connected message for Public agents. [[@TheNeikos], #1007]
      • Fixed web-sys Public / Private agent initialization. [[@jstarry], #1006]
      • Fixed websocket 'text' message handling for web-sys agents. [[@jstarry], #1005]
    • ๐Ÿšจ Breaking changes

      • FetchError::FetchFailed enum variant now wraps a String to hold the failure reason. [[@jstarry], #1025]
      • Message APIs now accept Into<Msg>, so calling msg.into() will cause compile errors. [[@captain-yossarian], #999]
  • v0.13.2 Changes

    March 05, 2020
    • #### ๐Ÿ›  Fixes

    ๐Ÿ›  Fix clippy warning when building with web_sys feature. [@jstarry, #1001]

  • v0.13.1 Changes

    March 04, 2020

    ๐Ÿ›  Fixes

    ๐Ÿ›  Fix for web-sys version 0.3.36. [@detegr, #997]

  • v0.13 Changes

    March 01, 2020

    ๐ŸŒ web-sys support has arrived! [@daxpedda] spear-headed the effort and courageously integrated web-sys while maintaining support for stdweb through no small amount of cfg macro usage. We chose to continue support for apps built with stdweb because the dev experience is still quite a bit better (Unfortunately cargo-web is incompatible with web-sys). However, the Yew team recognizes that the future of cargo-web of stdweb are uncertain. For this reason, we recommend devs start making the switch over to web-sys and wasm-bindgen. We will likely invest in improving the dev experience with these tools so that switching over is eventually a no-brainer. Please reach out with ideas and feedback for this migration through Github issues and in our Gitter chatroom!

    After upgrading to v0.13, devs will now have to opt in to either stdweb or web-sys by using either the "web_sys" or "std_web" on the yew crate in their Cargo.toml.

  • v0.12.1 Changes

    April 26, 2020
    • ๐Ÿ›  #### ๐Ÿ›  Fixes
      • Fix infinite rerender bug in 'Router' component. (Thanks @dancespiele)
  • v0.12 Changes

    February 16, 2020
    • โšก๏ธ Features

      • Improved ergonomics for html! { for .. }. [[@jstarry], #875]
      • Added #[props(default = "fn_path")] for specifying a default property value. [[@AlephAlpha], #881]
      • Exposed the macros for creating format types. [[@ctm], #883]
      • Added support for binary-only and text-only formats in WebSocketService. [[@ctm], #851]
      • Implemented PartialEq for ChildrenRenderer to allow children comparison. [[@jstarry], #916]
      • Reduced restrictions on ComponentLink methods to improve Future support. [[@jplatte], #931]
      • Added referrer, referrer_policy and integrity to FetchOptions. [[@leo-lb], #931]
    • ๐Ÿ›  #### ๐Ÿ›  Fixes

      • Fixed touch event listeners. [[@AlephAlpha], #872]
      • Fixed bad behavior when setting a ref on a Component. [[@jstarry], #913]
      • Fixed ResizeTask cancellation. [[@jstarry], #915]
    • ๐Ÿšจ Breaking changes

      • Switched from using failure to anyhow and thiserror for Yew errors. [[@daxpedda], #863]
      • Removed cancel method from Task trait in favor of relying on Drop. [[@kakoc], #899]
      • Renamed NodeRef.try_into to NodeRef.cast to avoid trait conflicts. [[@jstarry], #917]