Skip to content

[Snyk] Upgrade jss from 10.6.0 to 10.9.0 #5

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

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

Conversation

javascript-benchmark
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade jss from 10.6.0 to 10.9.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 6 versions ahead of your current version.
  • The recommended version was released 7 months ago, on 2021-12-08.
Release notes
Package name: jss
  • 10.9.0 - 2021-12-08

    Bug fixes

    • [jss, jss-plugin-global, jss-plugin-nested, jss-plugin-rule-value-function] Fixes a memory leak with nested function rules 1574

    Improvements

    • Keep classes ref when sheet and dynamicRules have not any change 1573
  • 10.8.2 - 2021-10-25

    Bug fixes

    • Reverting 1563 because of regression 1565
  • 10.8.1 - 2021-10-16

    Bug fixes

    • [jss, jss-plugin-global, jss-plugin-nested, jss-plugin-rule-value-function] Fixes a memory leak with nested function rules 1563
  • 10.8.0 - 2021-09-18

    Improvements

    • [jss] New option to remove whitespaces. Useful for SSR 1549

    • [all] Flow types are now moved from .js files to .flow type defs 1509

    • [all] Upgrade typescript to 4.4.2 1550

  • 10.7.1 - 2021-06-28

    Bug fixes

    • [jss] Fixes regression from previous release where useStyles() without arguments would throw an error
  • 10.7.0 - 2021-06-27

    Improvements

    • [jss][ts] Improved style type 1521
    • [react-jss] Refactored JssProvider to function component 1513
    • [react-jss] Refactored WithStyles to function component 1508
  • 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}) => ({
        /* ... */
      })
    })
from jss GitHub release notes
Commit messages
Package name: jss
  • 359b559 v10.9.0
  • 60407d3 yarn format
  • 09dc8ce changelog
  • c0e70ab changelog
  • 7edc76c remove tests with incompatible dependency
  • 49e82ac v10.8.3
  • 95c40f3 run prettier v2
  • 61d5427 upgrade prettier
  • 1ed5bc8 remove CSSOM based test in plugin-rule-vaue-function
  • 2e22fe0 run prettier
  • 22c6efd fix type mismatch
  • e74e3ac backward compatibility tests
  • 8062a7f fix backward compatibility problem in nested rule
  • d466610 Update test description
  • 364aaaa modify test in react-jss
  • 3c1dc5f add test for replaceRule in sheet with many rules
  • ba5ed47 fix unintended replace in DOM
  • be3bdd0 change arrowParens in .prettierrc
  • 9754443 Revert "Revert 87952b48 because of #1565"
  • fc379ea Keep classes ref when sheet and dynamicRules have not any change (#1573)
  • 9fba2bf docs(react-jss): fix a mistake about use wrong class name (#1576)
  • 746fdc7 fix: add missing index property (#1575)
  • 02cb79b Add an empty object to prevent unnecessary re-render (#1568)
  • 6399dc5 add test for accidental replace in v10.8.1 (#1571)

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

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

2 participants