Skip to content

0.16.0

Choose a tag to compare

@mellyeliu mellyeliu released this 26 Sep 20:46
· 188 commits to main since this release

This release adds support for a long-requested feature—descendant and sibling selectors! We've also expanded defineConsts capabilities, improved our lint rules, added a webpack example, and made some performance optimizations. See the full release notes here!

New Features!

Fixes

  • Avoid mutating rules in processStylexRules by @henryqdineen in #1202
  • Add option to allow raw CSS variable overrides in valid-styles by @dwei-figma in #1229
  • Remove valid-styles check for non-objects in favor of flow by @jcperez-ch in #1233
  • Allow one inner level when outer/top layer is pseudo-element by @dwrth in #1239
  • Allow '0' values for length properties by @mellyeliu in #1211
  • Optimize precomputed props call in JSX by @necolas in #1194
  • Add positionTry support for valid-styles by @abhakat in #1214
  • Allow local resolved constants in valid-styles number checks by @mellyeliu in #1216
  • Create new .transformed file extension for pre-resolved variables and constants by @mellyeliu in #1208
  • Reduce chances of dynamic variable name collisions by @necolas in #1183
  • Handle all unit values in media query transformer by @mellyeliu in #1192
  • Fix classname construction for dynamic contextual styles by @mellyeliu in #1193
  • Hoist stylex.create definitions and nested objects within functions by @nmn in #1137

New Contributors

Full Changelog: 0.15.0...0.16.0