Skip to content

Releases: futursolo/stylist-rs

Release 0.13.0

06 Oct 14:05
74e0fd0
Compare
Choose a tag to compare

Breaking Changes

  • Increase MSRV to 1.66.0.
  • Yew version is bumped to v0.21.

Other Changes

  • Update syn to v2.

Release 0.12.1

25 Jun 15:48
24f2166
Compare
Choose a tag to compare

Other Changes:

Release 0.12.0

20 Jan 12:17
24091af
Compare
Choose a tag to compare

Other Changes:

  • Added Server-side Rendering Support.
  • Fixed a reference cycle between Style and StyleManager.
  • Added StyleManager::new() to create a style manager with default configuration.

Release 0.11.0

26 Nov 06:59
a3c7cf9
Compare
Choose a tag to compare

Breaking Changes:

  • Yew version is bumped to v0.20.
  • Remove YieldStyle. This API can be easily reproduced in user code, if need be,
    but often leads to clumsy code in struct components. Use alternative API and prefer
    function_component + use_style!/styled_component.
  • StyleSource does not take a lifetime argument
  • Feature parser: StyleSource now eagerly parses its input.
  • Feature parser: The conversion from str have been changed to TryFrom
    instead of From. If you're using yew, the IntoPropValue<StyleSource>
    impls still exist, but now panic early during conversion.
  • Feature parser: This feature is now disabled by default. Use the css!, other
    macros and interpolation syntax to write styles, if you don't need to parse css at
    runtime.

Other Changes:

  • The Style::new_* API is more open for accepted types of the Css parameter.
  • The name of styled components now defaults to the name of the function, like in
    function_component.

Release 0.10.1

12 Jun 15:05
Compare
Choose a tag to compare

Other Changes:

  • Added an impl of IntoPropValue<Classes> for Style and StyleSource when
    the yew_integration feature is active.

Release 0.10.0

12 Dec 00:42
Compare
Choose a tag to compare

Breaking Changes:

  • Yew version is bumped to 0.19.

Other Changes:

  • Added an API to style Yew Function Component.
  • random features is now provided with fastrand.
  • Added Yew hooks for Media Query.
  • Fixed a bug where URL might not be parsed properly.

Release 0.9.2

15 Sep 13:39
Compare
Choose a tag to compare

Other Changes:

  • Fixed a misconfiguration causing documentation failing to build on docs.rs.

Release 0.9.1

15 Sep 12:43
Compare
Choose a tag to compare

Other Changes:

  • Removed an unused import.

Release 0.9.0

15 Sep 12:17
Compare
Choose a tag to compare

Breaking Changes:

  • Style and GlobalStyle no longer implements FromStr.
  • Style and GlobalStyle now takes any type that implements
    Into<StyleSource> as a source for a stylesheet.
  • style_str method in YieldStyle renamed to style_from
    and returns a StyleSource<'static>.
  • Accepted at-rules are limited to @keyframes, @supports and
    @media.

Other Changes:

  • Added a Procedural Macro API that parses the Stylesheet at the compile
    time. (Thanks to @WorldSEnder for contributing the inline syntax.)
  • Parser will now check stylesheets more strictly.
  • Parsed results are now cached.
  • Updated nom to v7.
  • Runtime parser is now optional (disabling parser will make the bundle
    ~70K smaller).
  • Fixed comment handling.
  • Panic-based behaviour now displays the error with {}(std::fmt::Display)
    in browser developer console.
  • @supports and @media can now appear in a Block.

Release 0.8.0

20 Aug 12:28
Compare
Choose a tag to compare

Breaking Changes:

  • Style::new() and Style::create() now takes a new trait IntoSheet for
    Stylesheet which is implemented by default for both
    stylist::ast::Sheet and everything that implements AsRef<str>.
  • Feature yew has been renamed back to yew_integration.
  • Selectors list now gets a class name added for each selector.
  • Style is now !Send and !Sync.
  • Stylist now treats pseudo class selectors (e.g.::hover) like emotion
    and styled-components.

Other Changes:

  • Added a GlobalStyle struct to register global styles.
  • Added a <Global /> Component for global styling for yew applications.
  • Supported @supports CSS at-rule.
  • Added an alternative counter-based class name on the style when
    feature random is disabled.
  • Added a StyleManager type to manage the behaviour of styles.
  • Moved AST and Parser logic to a new crate stylist_core.
  • AST has been exposed under stylist::ast.
  • Improved performance for looking up cached styles.
  • Improved Examples.
  • Documentation now shows feature flags.