State-Driven Styling in JavaScript
createRenderer
configuration (#906)jsdom
and node
when using Jest (#903)renderStatic
now supports a second arguments with props to enable theme-aware static rendering (https://github.com/robinweser/fela/pull/894)useFela
now also returns a static
function that can be used to render static styles, theme is passed by default (https://github.com/robinweser/fela/pull/894)createRoot
(https://github.com/robinweser/fela/pull/898)Note: Due to a hotfix (accidental extra
theme
attribute passed to elements), this refers to version 12.0.1 instead.
This major release incorporates several performance improvements together with a new plugin concept called context-free plugins. Rehydration has also been improved to cover for a more wide-range of selectors and edge cases. Check the announcement post and the migration guide.
Apart from these changes, a couple of fixes and improvements have been added in this release:
:hover
styles inside a @media (hover: hover)
renderToNodeList
in react-fela (#869)Children.only
restriction on RendererProvider for react-fela (#856)optimizeCaching
enabled (#849)