Skip to content

Releases: cssinjs/jss

v10.1.0

15 Mar 19:08
@kof kof
Compare
Choose a tag to compare

Bug fixes

  • [jss] Fix multiple .addRule calls with font-face (1280)
  • [jss] Allow a Comment node as insertion point (1284)

Improvements

  • [jss-plugin-rule-value-function] Add warning when using a function value inside a function rule (1285)
  • [react-jss] Typescript support for createUseStyles theme (1294)
  • [jss, react-jss] - getDynamicStyles utility function was originally exposed from jss package, but I don't think it was used externally, so I moved it to react-jss package and made it internal. If you have been using it as public API let me know, we will have to revert the change.
  • [examples] Migrate examples to monorepo (1306)

Features

  • [jss-plugin-default-unit] Allow options to pass function transforms in (1292)

v10.0.4

28 Jan 10:34
@kof kof
Compare
Choose a tag to compare

Bug fixes

  • [react-jss] Add type alias for WithStyles (1254)
  • [react-jss] Fix ts typings for hook, created common interface for options (1266)
  • [react-jss] Revert strict style types for ts, since it's a breaking change and needs much more work done upfront (1270)

Improvements

  • [css-jss] Add TypeScript type definitions (1247)
  • [react-jss] Accept options.generateId in useStyles() and withStyles() as an option (1263)

v10.0.3

01 Jan 21:53
@kof kof
Compare
Choose a tag to compare

Improvements

  • [jss] Improve JssStyle definition (1218)
  • [react-jss] Improve createUseStyles definition (1218)

Bug fixes

  • [jss] Fix create definitions to allow minify: boolean (1218)
  • [jss] Fix Name Typescript constraint (1218)

v10.0.2

30 Dec 11:58
@kof kof
Compare
Choose a tag to compare

10.0.2 (2019-12-30)

Bug fixes

  • [jss] Fix breaking change that was introduced in 10.0.1 (1252)

v10.0.1

28 Dec 02:48
@kof kof
Compare
Choose a tag to compare

Bug fixes

  • [jss-plugin-vendor-prefixer] Upgrade css-vendor package to v2.0.7 (1208)
  • [jss] Fix sheet.addRule() support for duplicate rule names (1242)
  • [react-jss] Fix function values support inside of nested media queries when component is a list item (1242)

v10.0.0

22 Sep 19:14
@kof kof
Compare
Choose a tag to compare

Summary

A higher level overview of v10 release.

  • [react-jss] A new hooks-based API has been released and became the new default way to use JSS with React.
  • [jss] Keyframe IDs are now scoped by default.
  • [jss] Function values, function rules and observables apply plugins by default now, which means they can support all kinds of syntaxes: e.g. fallbacks, media queries, nesting, global styles.
  • [jss] Houdini Typed CSSOM Values are supported now.
  • [all] Each package supports ESM modules import, also possible directly from https://unpkg.com/.
  • [all] Added TypeScript type definitions to this repository.

For more details please read the rest of the changelog and migration guide

Breaking Changes

  • [jss] SheetsRegistry.toString(options) will now return all sheets by default, no matter detached or attached. You can specify which one you want by using the option registry.toString({attached: true}) (1140)
  • [jss] Add option for opt-in minification of class names. (#1075)
  • [jss] Observables, function values and rules are now standalone packages, not part of the core. They are still part of the default preset though.
  • [jss] Function values, rules and observables apply plugins by default now, which means they can support all plugin defined syntaxes, but they are also slower by default. To speed them up use sheet.update(data, {process: false}) for fn values/rules and jss.use(pluginObservable({process: false})) when setting up observables plugin. (#682)
  • [jss] Rule @Keyframes has now scoped name by default, which means that you can access it using $ref from the same sheet and generate global one as before using @global rule (#346).
  • [jss] Add scoped keyframes support (#346)
  • [react-jss] Move JssContext to new React Context, deprecate the sheetOptions prop on the JssProvider and support a media prop (#924)
  • [react-jss] Remove inject option (#934)
  • [react-jss] Extend classes instead of overwriting theme (#946)
  • [react-jss] Add forwardRef support (#943)
  • [react-jss] Upgrade to theming version 3 (#942)
  • [jss|react-jss] Options createGenerateClassName and generateClassName are renamed to createGenerateId and generateId because the same function is now used to scope @Keyframes rules.
  • [react-jss] Drop support for older React versions, require v16.3 or higher (#868, #851)

v10.0.0-alpha.27

22 Sep 18:59
@kof kof
Compare
Choose a tag to compare
v10.0.0-alpha.27 Pre-release
Pre-release

Bug fixes

  • [react-jss] Add fallback for Number.MIN_SAFE_INTEGER, because not supported by IE <= 11 (1197)
  • [jss-plugin-vendor-prefixer] Fix fallbacks syntax support regression (1198)

v10.0.0-alpha.26

22 Sep 13:39
@kof kof
Compare
Choose a tag to compare
v10.0.0-alpha.26 Pre-release
Pre-release

Bug fixes

  • [jss] Fix dynamic rule updating after sheet re-attach in IE (1194)
  • [ci] Fix browsers.json, bump suported ios Safari to 10.3.

v10.0.0-alpha.25

16 Sep 10:38
@kof kof
Compare
Choose a tag to compare
v10.0.0-alpha.25 Pre-release
Pre-release

Bug fixes

  • [jss] Fix dynamic rule updating after sheet re-attach (1190)

Improvements

  • [jss-plugin-nested] Better warning text (1170)

v10.0.0-alpha.24

13 Aug 19:44
@kof kof
Compare
Choose a tag to compare
v10.0.0-alpha.24 Pre-release
Pre-release

Bug fixes

  • [react-jss] Fix nested dynamic rule updating (1144)
  • [jss] Support falsy value from fn rule (1164)

Improvements

  • [react-jss] Improve TypeScript definitions and add missing definition for createUseStyles (1155)
  • [jss-plugin-default-unit] Consistent usage of the CSS browser API (1168)