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

Update dependency jss-preset-default to v10 #197

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Sep 22, 2019

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
jss-preset-default (source) 4.5.0 -> 10.10.0 age adoption passing confidence

Release Notes

cssinjs/jss (jss-preset-default)

v10.10.0

Compare Source

Improvements

v10.9.2

Compare Source

Bug fixes
  • [react-jss] Fix import useInsertionEffect 1627

v10.9.1

Compare Source

Bug fixes
  • [jss] Update stylesheet if !important flag is set before and after the update 1612

v10.9.0

Compare Source

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

v10.8.2

Compare Source

Bug fixes
  • Reverting 1563 because of regression 1565

v10.8.1

Compare Source

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

v10.8.0

Compare Source

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

v10.7.1

Compare Source

Bug fixes
  • [jss] Fixes regression from previous release where useStyles() without arguments would throw an error

v10.7.0

Compare Source

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

v10.6.0

Compare Source

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}) => ({
    /* ... */
  })
})

v10.5.1

Compare Source

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

v10.5.0

Compare Source

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

v10.4.0

Compare Source

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

v10.3.0

Compare Source

Improvements
  • [jss, react-jss][ts] ts fixes, allow autocomplete for CSS rules 1352

v10.2.0

Compare Source

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

v10.1.1

Compare Source

Bug fixes
  • [jss, react-jss] revert getDynamicStyles migration introduced in 10.1.0

v10.1.0

Compare Source

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)

v10.0.4

Compare Source

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][ts] Add TS type definitions (1247)
  • [react-jss] Accept options.generateId in useStyles() and withStyles() as an option (1263)

v10.0.3

Compare Source

Improvements
  • [jss] Improve JssStyle definition (1218)
  • [react-jss] Improve createUseStyles definition (1218)
Bug fixes
  • [jss] Fix create definitions to allow minify: boolean (1218)
  • [jss][ts] Fix Name Typescript constraint (1218)

v10.0.2

Compare Source

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

v10.0.1

Compare Source

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

Compare Source

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][ts] Added TS type definitions to this repository.

For more details please read the rest of the changelog.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch 3 times, most recently from 80308dd to 3ccfe29 Compare January 1, 2020 21:54
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from 3ccfe29 to 017f5d5 Compare February 8, 2020 15:56
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from 017f5d5 to 6fa2696 Compare May 2, 2020 18:58
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from 6fa2696 to b02d03c Compare July 1, 2020 11:46
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from b02d03c to 365a6c1 Compare August 25, 2020 01:54
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from 365a6c1 to 63ae863 Compare November 28, 2020 11:52
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from 63ae863 to 34cf062 Compare January 24, 2021 17:52
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from 34cf062 to 8bd0b23 Compare April 26, 2021 13:48
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from 8bd0b23 to d8e0d59 Compare October 20, 2021 05:54
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from d8e0d59 to f9af440 Compare March 7, 2022 16:08
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from f9af440 to d4508d0 Compare September 25, 2022 15:36
@renovate renovate bot force-pushed the renovate/jss-preset-default-10.x branch from d4508d0 to cf0e6e3 Compare March 16, 2023 17:55
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.

0 participants