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 babel-plugin-styled-components from 1.10.7 to 1.13.3 #307

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

Conversation

tiff-es
Copy link
Owner

@tiff-es tiff-es commented Aug 23, 2024

snyk-top-banner

Snyk has created this PR to upgrade babel-plugin-styled-components from 1.10.7 to 1.13.3.

ℹ️ 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 15 versions ahead of your current version.

  • The recommended version was released on 3 years ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
critical severity Incomplete List of Disallowed Inputs
SNYK-JS-BABELTRAVERSE-5962462
786 Proof of Concept
Release notes
Package name: babel-plugin-styled-components
  • 1.13.3 - 2021-10-18
    • when there are multiple assignments prefer the outer name (#355) thanks @ rockwotj
    • minor dependency updates
  • 1.13.2 - 2021-07-08
    • added some conditional guards to code paths that lead to errors for some consumers (0c16c1b)
    • dependency updates
    • teach babel plugin about certain spread application scenarios with "css" prop #339
    • handle namespace import (import * as styled from 'styled-components') properly #340
  • 1.13.2-test.1 - 2021-07-06

    Teach the plugin how to handle namespace import syntax properly, fixes #315 e.g.

    import * as styled from 'styled-components'

    const css = styled.css</span> <span class="pl-s"> background: black;</span> <span class="pl-s">

    const GlobalStyle = styled.createGlobalStyle</span> <span class="pl-s"> html {</span> <span class="pl-s"> background: black;</span> <span class="pl-s"> }</span> <span class="pl-s">

    const Test = styled.default.div</span> <span class="pl-s"> color: red;</span> <span class="pl-s">

    const before = styled.default.div</span> <span class="pl-s"> color: blue;</span> <span class="pl-s">

    styled.default.div``

    export default styled.default.button``




  • 1.13.2-test.0 - 2021-07-06

    Fix #337 #332 (spread application involving local variable inside of css prop resulting in build error)




  • 1.13.1 - 2021-06-29

    Fix one edge case with object key interpolation from v1.13.0




  • 1.13.0 - 2021-06-29

    • teach the plugin how to handle variable interpolation in object keys, e.g.

      css={{
        [theme.breakpoint.sm]: {
          color: 'red'
        } 
      }}
    • plugin now emits transient props when replacing css prop calls (cuts down on garbage in the DOM for s-c 5.1+)

    • merge withConfig arguments to allow for shouldForwardProp, thanks @ ithinkdancan #323

    • move injected components to end of file scope, thanks @ sfishel18

    • Ensure sc- prefix is always added #313, thanks @ chalbert

  • 1.13.0-test.3 - 2021-06-29
  • 1.13.0-test.2 - 2021-06-29
  • 1.13.0-test.1 - 2021-06-29
  • 1.13.0-test - 2021-06-29
  • 1.12.1 - 2021-06-29
    • Resolve operability issue with rollup (see #327), thanks @ ktranada

    • Update dependencies

  • 1.12.0 - 2020-11-20
    • Add topLevelImportPaths option (#288)

      This functionality allows the composer to specify alternate import locations for the "styled" constructor, for instance if you are using a third party library that wraps styled-components and does additional processing. See this test for how to use it.

    • preserve structure of JSX member expressions in generated ast nodes; this makes sure that other babel transformations that rename variables will be able to process the ast nodes created by this plugin. fixes #240

  • 1.11.1 - 2020-07-30

    Revert #283, it caused a major build performance regression

  • 1.11.0 - 2020-07-29

    Thank you to all our contributors!

    • ensure a cache miss (#283)
    • add namespace option. (#281)
    • update dependencies (#292)
    • Support Spread Element (#286)
  • 1.11.0-0 - 2019-06-15
  • 1.10.7 - 2020-01-25
from babel-plugin-styled-components GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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:

Snyk has created this PR to upgrade babel-plugin-styled-components from 1.10.7 to 1.13.3.

See this package in npm:
babel-plugin-styled-components

See this project in Snyk:
https://app.snyk.io/org/boostinwrx/project/938a7c82-b6f6-453e-9277-6ddf683231bc?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants