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 styled-components from 5.0.0 to 5.0.1 #13

Merged
merged 2 commits into from
Mar 9, 2020

Conversation

snyk-bot
Copy link
Contributor

@snyk-bot snyk-bot commented Mar 8, 2020

Snyk has created this PR to upgrade styled-components from 5.0.0 to 5.0.1.

ℹ️ 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 2 versions ahead of your current version.
  • The recommended version was released a month ago, on 2020-02-04.
Release notes
Package name: styled-components
  • 5.0.1 - 2020-02-04
    • Added useTheme hook to named exports for react native (#2982)

    • Performance enhancements

      • Refactored hashing function that is a bit faster in benchmarks (#2983)
      • Fixed a bitwise math issue that was causing SSR performance degradations due to how we allocate typed arrays under the hood (#2996)
    • Added some helpful new dev-time warnings for antipatterns

      • Recommending against usage of css @import inside createGlobalStyle and what to do instead (#2997)
      • Catching and warning against dynamic creation of styled-components inside other component render paths (#2998)
  • 5.0.1-revisedssr - 2020-02-13
  • 5.0.0 - 2020-01-13

    It's finally here!!! 🚀See the migrating to v5 FAQ page for easy upgrade instructions!

    Read the v5 release announcement!

    TL;DR:

    • 19% smaller bundle size
    • 18% faster client-side mounting
    • 17% faster updating of dynamic styles
    • 45% faster server-side rendering
    • RTL support

    ...and much more all, with no breaking changes!

    NOTE: At this time we recommend not using @import inside of createGlobalStyle. We're working on better behavior for this functionality but it just doesn't really work at the moment and it's better if you just embed these imports in your HTML index file, etc.

    Changes

    • StyleSheetManager enhancements

      • you can now supply stylis plugins like stylis-plugin-rtl; <StyleSheetManager stylisPlugins={[]}>...</StyleSheetManager>
      • disableVendorPrefixes removes autoprefixing if you don't need legacy browser support; <StyleSheetManager disableVendorPrefixes>...</StyleSheetManager>
      • disableCSSOMInjection forces using the slower injection mode if other integrations in your runtime environment can't parse CSSOM-injected styles; <StyleSheetManager disableCSSOMInjection>...</StyleSheetManager>
    • Removed the "subfunction" attrs syntax that was deprecated in v4

      styled.div.attrs({ role: p => p.onClick ? 'button' : '' })`
        color: red;
      `

      becomes

      styled.div.attrs(p => ({ role: p.onClick ? 'button' : '' }))`
        color: red;
      `
    • Update css-to-react-native to v3.0.0 (#2811); the one breaking change noted is that unitless line height is no longer allowed when setting font properties

    • disallow /ad/i in generated class names (#2837); this change primarily helps to avoid some overly aggressive ad blockers that will mangle generated classnames containing the substring "ad"

    • if you use styled-components from CDN, in v5 the "react-is" dependency was added (make sure you add this to your project)

from styled-components GitHub release notes

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

@Zodiase Zodiase merged commit 82aa6ee into master Mar 9, 2020
@Zodiase Zodiase deleted the snyk-upgrade-9143ba789ed58759fe6d0e08e6cf649d branch March 9, 2020 20:25
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