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 6.0.0-rc.1 to 6.0.2 #4

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

Conversation

mihrpsah
Copy link
Collaborator

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


Snyk has created this PR to upgrade styled-components from 6.0.0-rc.1 to 6.0.2.

ℹ️ 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 9 versions ahead of your current version.
  • The recommended version was released 22 days ago, on 2023-07-03.
Release notes
Package name: styled-components
  • 6.0.2 - 2023-07-03

    What's Changed

    • fix: StyleSheetManager must accept undefined props by @ gineika in #4069
    • fix: replace slow Omit type by @ gineika in #4068
    • drop displayName in production to save bytes, it's already present in the static className if you're using the babel plugin or equivalent
    • refactor use of flatMap and at with ES5-compliant variants

    New Contributors

    Full Changelog: v6.0.1...v6.0.2

  • 6.0.1 - 2023-06-28

    Fixed an issue where a dev-time warning was being triggered too eagerly.

    Full Changelog: v6.0.0...v6.0.1

  • 6.0.0 - 2023-06-28
    yarn add styled-components
    

    Changed in this version

    • fix(types): prevent prop bleed on styling properties (fixes #4053, c0f8015)
    • feat(types): ship csstype via "CSS" namespace (e6c4f0a)
    • chore: bump stylis to 4.3 (fixes #4007, fa58875)
    • reduced some sources of unnecessary branching logic

    Breaking changes in v6

    Migration guide → https://styled-components.com/docs/faqs#what-do-i-need-to-do-to-migrate-to-v6

    • now using stylis v4 (if using stylis-plugin-rtl you'll need to upgrade to the newer version)
    • styled-components now provides its own types; if you installed @ types/styled-components in the past, you'll want to remove it
    • dropped $as and $forwardedAs props (use as or forwardedAs)
    • dropped automatic prop filtering; use transient props ($ prefix) for stuff you don't want to be passed to child component / HTML
    • StyleSheetManager
      • replaced disableVendorPrefixes with enableVendorPrefixes prop
      • dropped automatic vendor prefixing; if you need to support older browsers, you can re-enable it easily with the above prop
        <StyleSheetManager enableVendorPrefixes>
          {/* your React tree and ThemeProvider goes here */}
        </StyleSheetManager>
    • dropped deprecated withComponent API (87f511a); use "as" prop instead
    • node >= 14 needed

    Full Changelog: v5.3.7...v6.0.0

  • 6.0.0-rc.2-4007 - 2023-05-26
  • 6.0.0-rc.6 - 2023-06-23
    yarn add styled-components
    

    Changed in this version

    • fix: stylis types are now included as a direct dependency #4051 (235a62b)
    • refactor: simplify code related to style tag injection #4040 (c3939a4)
    • chore: don't warn if shouldForwardProp is in use and the prop is forwarded (00ab9c4)

    Breaking changes in v6

    Migration guide → https://styled-components.com/docs/faqs#what-do-i-need-to-do-to-migrate-to-v6

    • now using stylis v4 (if using stylis-plugin-rtl you'll need to upgrade to the newer version)
    • styled-components now provides its own types; if you installed @ types/styled-components in the past, you'll want to remove it
    • dropped $as and $forwardedAs props (use as or forwardedAs)
    • dropped automatic prop filtering; use transient props ($ prefix) for stuff you don't want to be passed to child component / HTML
    • StyleSheetManager
      • replaced disableVendorPrefixes with enableVendorPrefixes prop
      • dropped automatic vendor prefixing; if you need to support older browsers, you can re-enable it easily with the above prop
        <StyleSheetManager enableVendorPrefixes>
          {/* your React tree and ThemeProvider goes here */}
        </StyleSheetManager>
    • dropped deprecated withComponent API (87f511a); use "as" prop instead
    • node >= 14 needed

    Full Changelog: https://github.com/styled-components/styled-components/compare/v6.0.0-rc.5..v6.0.0-rc.6

  • 6.0.0-rc.5 - 2023-06-22
    yarn add styled-components
    

    Changed in this version

    • Compatibility with frozen Object prototype, part 2 by @ jportner in #4042
    • ensure useTheme hook returns theme object by @ nksfrank in #4033
    • revert rc.3 type changes, investigate alternate fixes by @ probablyup in #4037
    • finalize rc.4 inclusions by @ probablyup in #4047
    • object styles now have strong typing
    • add dev-time warning if enableVendorPrefixes needs to be enabled based on prop usage

    New Contributors

    Breaking changes in v6

    Migration guide → https://styled-components.com/docs/faqs#what-do-i-need-to-do-to-migrate-to-v6

    • now using stylis v4 (if using stylis-plugin-rtl you'll need to upgrade to the newer version)
    • styled-components now provides its own types; if you installed @ types/styled-components in the past, you'll want to remove it
    • dropped $as and $forwardedAs props (use as or forwardedAs)
    • dropped automatic prop filtering; use transient props ($ prefix) for stuff you don't want to be passed to child component / HTML
    • StyleSheetManager
      • replaced disableVendorPrefixes with enableVendorPrefixes prop
      • dropped automatic vendor prefixing; if you need to support older browsers, you can re-enable it easily with the above prop
        <StyleSheetManager enableVendorPrefixes>
          {/* your React tree and ThemeProvider goes here */}
        </StyleSheetManager>
    • dropped deprecated withComponent API (87f511a); use "as" prop instead
    • node >= 14 needed

    Full Changelog: https://github.com/styled-components/styled-components/compare/v6.0.0-rc.3..v6.0.0-rc.5

  • 6.0.0-rc.4 - 2023-06-22

    v6.0.0-rc.4

  • 6.0.0-rc.3 - 2023-06-04

    Full Changelog: v6.0.0-rc.2...v6.0.0-rc.3

  • 6.0.0-rc.2 - 2023-05-24
    Read more
  • 6.0.0-rc.1 - 2023-05-06
    yarn add styled-components
    

    Changed in this version

    • bump stylis to 4.2.0 to enable @ layer rule support

    Upcoming

    • v6 migration documentation

    Breaking changes in v6

    • now using stylis v4 (if using stylis-plugin-rtl you'll need to upgrade to the newer version)
    • styled-components now provides its own types; if you installed @ types/styled-components in the past, you'll want to remove it
    • dropped $as and $forwardedAs props (use as or forwardedAs)
    • dropped automatic prop filtering; use transient props ($ prefix) for stuff you don't want to be passed to child component / HTML
    • StyleSheetManager
      • replaced disableVendorPrefixes with enableVendorPrefixes prop
      • dropped automatic vendor prefixing; if you need to support older browsers, you can re-enable it easily with the above prop
        <StyleSheetManager enableVendorPrefixes>
          {/* your React tree and ThemeProvider goes here */}
        </StyleSheetManager>
    • dropped deprecated withComponent API (87f511a); use "as" prop instead
    • node >= 14 needed

    Full Changelog: v6.0.0-rc.0...v6.0.0-rc.1

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

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