Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade react-jss from 10.3.0 to 10.6.0 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade react-jss from 10.3.0 to 10.6.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 4 versions ahead of your current version.
  • The recommended version was released a month ago, on 2021-03-14.
Release notes
Package name: react-jss
  • 10.6.0 - 2021-03-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}) => ({
        /* ... */
      })
    })
  • 10.5.1 - 2021-01-23

    Bug fixes

    • [jss-plugin-default-unit] Fix crash in Chrome 88 when NaN is used by the user 1446
    • [jss] Fix TS 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
  • 10.5.0 - 2020-11-15

    Bug fixes

    • [jss] Restore TypeScript 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] aAdd gap unit 1403
    • [jss-plugin-default-unit] Add default units to logical properties 1415
    • [jss] Improve deleteRule() performance 1424
  • 10.4.0 - 2020-08-14

    Bug fixes

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

    Improvements

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

    Improvements

    • [jss, react-jss] TS fixes, allow autocomplete for CSS rules 1352
from react-jss GitHub release notes
Commit messages
Package name: react-jss

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant