Releases: vercel/styled-jsx
v2.1.0
Features
- Introduce a plugin system to preprocess styles 🎉 #291
Plugins are regular JavaScript modules that export a simple function with the following signature:
(css: string, options: Object) => string
They accept a CSS string in input, optionally modify it and finally return it.
Plugins make it possible to use popular preprocessors like SASS, Less, Stylus, PostCSS or apply custom transformations to the styles at compile time.
Details and usage can be found in the CSS Preprocessing via Plugins section of README.md
Patches
- Switch to
stylis-rule-sheet
to split CSS rules into array of rules foroptimizeForSpeed
#313. This also fixes #305 - huge thank you to @thysultan for his help!
v2.0.2
2.0.1
We are excited to release the v2 🎉
Features
- Dynamic styles support
- Switch from data attributes to className
- Add
optimizeForSpeed
mode for fast styles injection when in production
Breaking changes
- External styles rework - now external styles must be tagged with
css
Details at #288 and the README.
v2.0.1-beta.5
Minor Changes
- Fix insertRule fails when the css is a String object: #299
Credits
Huge thanks to @giuseppeg for his help!
2.0.1-beta.4
Minor Changes
- Fix invalid rules break stylesheet/registry: #296
Credits
Huge thanks to @giuseppeg for their help!
v2.0.1-beta.3
Patches
- Fix animation names not being scoped in optimizeForSpeed mode (#294)
v2.0.1-beta.2
We are excited to release the first beta of v2 🎉
Features
- Dynamic styles support
- Switch from data attributes to className
- Add
optimizeForSpeed
mode for fast styles injection when in production
Breaking changes
- External styles rework - now external styles must be tagged with
css
Details at #288 and the README.
Patches
The following patch applies to previous 2.x versions as well.
- Fix hashes should match when using a single tag (#292) (@giuseppeg)
2.0.0-beta.2
Please use v2.0.1-beta.2 instead
2.0.0-beta.1
Please use v2.0.1-beta.2 instead
2.0.0-beta1
Please use 2.0.1-beta.2 instead