Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss - npm Package Versions

13
19

10.7.1

Diff

Changelog

Source

10.7.1 (2021-6-28)

Bug fixes

  • [jss] Fixes regression from previous release where useStyles() without arguments would throw an error
kof
published 10.7.0 •

Changelog

Source

10.7.0 (2021-6-27)

Improvements

  • [jss][ts] Improved style type 1521
  • [react-jss] Refactored JssProvider to function component 1513
  • [react-jss] Refactored WithStyles to function component 1508
kof
published 10.6.0 •

Changelog

Source

10.6.0 (2021-3-14)

Improvements

  • [*] Define specific polyfills for specific packages that will be required and define a policy for adding polyfills. Makes sure we will notice if a polyfill is needed in a supported browser by failing the CI. 1456
  • [jss] Use globalThis to support secure version of JavaScript called SES 1449
  • [jss][ts] Styles now supports ClassNames, Props/Data, and Theme as type parameters (eg. Styles<Names, Data, Theme>). 1460
  • [react-jss][ts] withStyles and createUseStyles now support ClassNames, Props, and Theme as type parameters (eg. createUseStyles<Names, Props, Theme>). 1460
  • [react-jss][ts] useStyles finally expects the correct argument type: a Props object with an optional Theme property (both determined from createUseStyles). 1460
  • [react-jss][ts] Support global TS theme definition 1453
  • [react-jss][ts] Allow partial classes prop in withStyles() 1428

Breaking Changes

  • [react-jss][ts] Theme is no longer the first generic type parameter for createUseStyles. 1460
    • There are two main ways to tell TS your Theme's type without reaching over the other type parameters:

Using the function argument.

const useStyles = createUseStyles(theme: Theme => ({
  ruleName: { /* ... */ };
}))

Using the object argument with a function. (You will only need to specify the Theme type once.)

const useStyles = createUseStyles({
  ruleName: ({theme}: {theme: Theme}) => ({
    /* ... */
  })
})
kof
published 10.5.1 •

Changelog

Source

10.5.1 (2021-1-23)

Bug fixes

  • [jss-plugin-default-unit] Fix crash in Chrome 88 when NaN is used by the user 1446
  • [jss][ts] Fix intellisense suggestions 1423

Improvements

  • [jss-plugin-default-unit] Add px as default unit for text-decoration-thickness 1438
  • [jss-plugin-default-unit] Add px as default unit for row-gap 1436
  • [*] Allow project to be in a directory that contains spaces 1433
kof
published 10.5.0 •

Changelog

Source

10.5.0 (2020-11-15)

Bug fixes

  • [jss][ts] Restore support for Observable styles 1402
  • [jss-plugin-default-unit] Fix missing default unit for 0ms and 0% 1413

Improvements

  • [*] Improve docs 1384, 1387, 1391,
  • [*] Remove test files from the package 1406
  • [*] Upgrade rollup 1426
  • [*] Upgrade flow to 0.138.0 1425
  • [jss-plugin-default-unit] Add gap unit 1403
  • [jss-plugin-default-unit] Add default units to logical properties 1415
  • [jss] Improve deleteRule() performance 1424
kof
published 10.4.0 •

Changelog

Source

10.4.0 (2020-8-14)

Bug fixes

  • [jss-plugin-extend] Fix can not extend rule name is array 1357
  • [*] Fix yarn build for windows 1376

Improvements

  • [jss][ts] Bump csstype to 3.0.2 1379
  • [react-jss][ts] TS support for innerRef prop 1355
  • [react-jss][ts] TS fix theme types 1349
  • [react-jss][ts] Add properly react default props types calculation 1353
  • [react-jss] Upgrade Theming to 3.3.0 1382
  • [*] Upgrade flowtype to 0.131.0 1382
kof
published 10.3.0 •

Changelog

Source

10.3.0 (2020-6-10)

Improvements

  • [jss, react-jss][ts] ts fixes, allow autocomplete for CSS rules 1352
kof
published 10.2.0 •

Changelog

Source

10.2.0 (2020-6-3)

Improvements

  • [react-jss][ts] ts fixes 1310
  • [jss][ts] ts fixes 1318
  • [examples] Convert plugin examples to codesandbox 1316

Bug fixes

  • [jss-plugin-rule-value-function] Fixed missing dependency to tiny-warning 1315
  • [jss-plugin-vendor-prefixer] Correct prefixing of writing-mode property 1326
kof
published 10.1.1 •

Changelog

Source

10.1.1 (2020-3-15)

Bug fixes

  • [jss, react-jss] revert getDynamicStyles migration introduced in 10.1.0
kof
published 10.1.0 •

Changelog

Source

10.1.0 (2020-3-15)

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][ts] 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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc