[Snyk] Upgrade babel-plugin-styled-components from 1.10.7 to 1.13.3 #288
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
SNYK-JS-BABELTRAVERSE-5962462
Release notes
Package name: babel-plugin-styled-components
import * as styled from 'styled-components'
) properly #340Teach the plugin how to handle namespace import syntax properly, fixes #315 e.g.
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.
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
Resolve operability issue with rollup (see #327), thanks @ ktranada
Update dependencies
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
Revert #283, it caused a major build performance regression
Thank you to all our contributors!
Important
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: