0.16.0
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!
- Support for descendent/sibling selectors by @nmn in #1178
- Support
defineConstsvar() overrides by @mellyeliu in #1219 - Support
defineConstsin dynamic styles by @mellyeliu in #1209 - Webpack example by @RavenColEvol in #1228
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-stylescheck 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
positionTrysupport for valid-styles by @abhakat in #1214 - Allow local resolved constants in valid-styles number checks by @mellyeliu in #1216
- Create new
.transformedfile 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
- @jcperez-ch made their first contribution in #1233
- @BeiyanYunyi made their first contribution in #1206
- @abhakat made their first contribution in #1214
- @dwei-figma made their first contribution in #1215
Full Changelog: 0.15.0...0.16.0