Skip to content

Releases: vercel/styled-jsx

0.2.2

21 Dec 03:06
Compare
Choose a tag to compare

Patch

0.2.1

19 Dec 18:19
Compare
Choose a tag to compare

Patch

Add missing server export [@nkzawa]

0.2.0

19 Dec 18:13
Compare
Choose a tag to compare

Features

New APIs for server rendering styles that prevent duplication on the client when hydrating:

  • Adds styled-jsx/server
    • flush() (default) returns an array of React.Element for each <style>
    • flushToHTML returns an HTML string
  • Fixes #22, PR #46 [@rauchg]

0.1.3

19 Dec 15:59
Compare
Choose a tag to compare

Patches

Fix multiple occurrences of components per file (#12, PR #45) [@giuseppeg]

0.1.2

19 Dec 14:55
Compare
Choose a tag to compare

Patches

Fix multiple style occurrences by introducing styleId into <_JSXStyle> (PR #44) [@nkzawa]

0.1.1

18 Dec 23:48
Compare
Choose a tag to compare

Minor Changes

  • Make data-jsx use number literals instead of string literals for better memory / diff performance [@rauchg]

Patches

  • It's now possible to combine a global and scoped style in the same component (#41) [@rauchg]

    export default () => (
      <div>
        <p>hi</p>
        <style jsx global>{`
          body {
            background: red
          }
        `}</style>
        <style jsx>{`p { color: red; }`}</style>
      </div>
    )

0.1.0

12 Dec 11:06
Compare
Choose a tag to compare

Minor Changes

Patches

  • Add NPM version badge [@thisguychris]
  • Add support for whitespace inside <style> (#24) [@rauchg]
  • Fix tests [@rauchg]
  • Improve README [@leo, @rauchg ]

0.0.7

07 Dec 09:27
@leo leo
0ebfc50
Compare
Choose a tag to compare

Patches

  • Fixed a typo in the files property within package.json: #23

0.0.6

07 Dec 09:21
@leo leo
79619fd
Compare
Choose a tag to compare

Patches

  • Creation of <style> tag now works properly: #20
  • Applying styles was fixed: #19
  • Make sure that the whole API gets uploaded to npm: #17
  • Fixed code transpilation: d5d823e

0.0.5

07 Dec 08:16
@leo leo
Compare
Choose a tag to compare

Patches