Skip to content

Releases: vercel/styled-jsx

v2.1.0

15 Oct 16:17
Compare
Choose a tag to compare

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 for optimizeForSpeed #313. This also fixes #305 - huge thank you to @thysultan for his help!

v2.0.2

10 Oct 20:14
Compare
Choose a tag to compare

Patches

  • Fix buggy tagged template literals detection transpiled unrelated non-css strings #304

2.0.1

09 Oct 16:20
Compare
Choose a tag to compare

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

08 Oct 06:58
Compare
Choose a tag to compare
v2.0.1-beta.5 Pre-release
Pre-release

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

07 Oct 21:19
Compare
Choose a tag to compare
2.0.1-beta.4 Pre-release
Pre-release

Minor Changes

  • Fix invalid rules break stylesheet/registry: #296

Credits

Huge thanks to @giuseppeg for their help!

v2.0.1-beta.3

06 Oct 18:57
Compare
Choose a tag to compare
v2.0.1-beta.3 Pre-release
Pre-release

Patches

  • Fix animation names not being scoped in optimizeForSpeed mode (#294)

v2.0.1-beta.2

05 Oct 06:43
Compare
Choose a tag to compare
v2.0.1-beta.2 Pre-release
Pre-release

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.

2.0.0-beta.2

04 Oct 13:36
Compare
Choose a tag to compare
2.0.0-beta.2 Pre-release
Pre-release

Please use v2.0.1-beta.2 instead

2.0.0-beta.1

30 Sep 06:45
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

Please use v2.0.1-beta.2 instead

2.0.0-beta1

29 Sep 16:39
Compare
Choose a tag to compare
2.0.0-beta1 Pre-release
Pre-release

Please use 2.0.1-beta.2 instead