styled-components v5.2.0 Release Notes

Release Date: 2020-09-04 // over 3 years ago
    • ๐Ÿ’… Make sure StyleSheetManager renders all styles in iframe / child windows (see #3159) thanks @eramdam!

    • ๐Ÿ’… Rework how components self-reference in extension scenarios (see #3236); should fix a bunch of subtle bugs around patterns like & + &

    • ๐Ÿ›  Fix keyframes not receiving a modified stylis instance when using something like stylis-plugin-rtl (see #3239)

    • ๐ŸŽ Big performance gain for components using style objects (see #3239)

    • We no longer emit dynamic classNames for empty rulesets, so some className churn may occur in snapshots

    • โš™ Preallocate global style placement to ensure cGS is consistently inserted at the top of the stylesheet; note that this is done in runtime order so, if you have multiple cGS that have overlapping styles, ensure they're defined in code in the sequence you would want them injected (see #3239)

    • โž• Add "engines" to package.json (currently set to Node 10, the oldest supported LTS distribution) (see #3201) thanks @MichaelDeBoey!

    • ๐Ÿ‘ Allow DISABLE_SPEEDY to be set to false to enable speedy mode in non-production environments (see #3289) thanks @FastFedora!

    • ๐Ÿ’… Enable new style rules can be inserted in the middle of existing sheet when rendering on client after rehydrate. GroupIDAllocator is now changed to find nextFreeGroup by checking reverseRegister, instead of setting it to the end of existing groups. (see #3233) thanks @mu29!