Update dependency babel-plugin-styled-components to v2#39
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
93d31f7 to
bea43c7
Compare
bea43c7 to
9a8ab12
Compare
9a8ab12 to
93bba92
Compare
93bba92 to
c186c81
Compare
c186c81 to
0422a1d
Compare
447c41d to
05a5e8c
Compare
05a5e8c to
57440cb
Compare
57440cb to
8668b8d
Compare
8668b8d to
21c9ee0
Compare
21c9ee0 to
b157517
Compare
b157517 to
152a98d
Compare
b152333 to
f0451e5
Compare
f0451e5 to
4f3938c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
^1.10.7→^2.0.0Release Notes
styled-components/babel-plugin-styled-components (babel-plugin-styled-components)
v2.3.0Compare Source
Minor Changes
0c5f21d: Add acssPropImportPathoption to control which package the css-prop transform auto-importsstyledfrom when the file has no existing styled import. Defaults to'styled-components'(existing behavior). React Native targets can set it to'styled-components/native'so the auto-injected import resolves to the right runtime.0c5f21d: Detect styled declarations that go through a local alias of the import, including the TypeScript theme-typing patternconst styled = baseStyled as ThemedStyledInterface<MyTheme>. After type-stripping Babel sees a plainconst styled = baseStyled, and the detector now follows single-identifier alias chains sostyled.divresolves back to the original import.Patch Changes
0c5f21d: Fix invalid output when acss={{ ... }}object key matches a local binding name (e.g.({ position }) => <div css={{ position: 'absolute' }} />). The reducer no longer mis-treats non-computed property names as scope references, so plain keys stay literal while only computed[expr]keys are extracted as prop interpolations.0c5f21d: Recognize TypeScript's__importDefaultinterop helper alongside Babel's_interopRequireDefault. Files compiled throughtsc/ts-jest(which emitvar sc_1 = __importDefault(require('styled-components'))) now flow into the same detection path as Babel-compiled output, so styled declarations downstream pick updisplayNameandcomponentIdas expected.v2.2.0Compare Source
Minor Changes
a40e3f7: Refresh the toolchain and fix a handful of css-prop transform bugs that had crept in under recent Babel versions.styledand also uses one or morecss={…}props, every styled component now keeps its display name and stable component id. Previously the cache that tracks the local default import could be overwritten on each css-prop usage, which silently dropped the display name and id for the surroundingstyled.divdeclarations.css={{ [foo]: bar }}with a non-primitive value no longer fails Babel's validator. Computed keys are preserved through the css-prop object rewrite.ReferenceError.lodashdependency. The plugin now ships with@babel/coreas a declared peer.v2.1.4Compare Source
Full Changelog: styled-components/babel-plugin-styled-components@v2.1.3...v2.1.4
v2.1.3Compare Source
What's Changed
911fc09)New Contributors
Full Changelog: styled-components/babel-plugin-styled-components@v2.1.1...v2.1.3
v2.1.2Compare Source
v2.1.1Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/babel-plugin-styled-components@v2.0.7...v2.1.1
v2.1.0Compare Source
v2.0.7Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/babel-plugin-styled-components@v2.0.6...v2.0.7
v2.0.6Compare Source
Revert change from 2.0.5 that lead to a major build performance regression.
Full Changelog: styled-components/babel-plugin-styled-components@v2.0.5...v2.0.6
v2.0.5Compare Source
One more change related to babel macro; eliminates an extra injected import in some cases
Full Changelog: styled-components/babel-plugin-styled-components@v2.0.4...v2.0.5
v2.0.4Compare Source
fix compat with styled-components babel macro
Full Changelog: styled-components/babel-plugin-styled-components@v2.0.3...v2.0.4
v2.0.3Compare Source
What's Changed
Full Changelog: styled-components/babel-plugin-styled-components@v2.0.2...v2.0.3
v2.0.2Compare Source
What's Changed
New Contributors
Full Changelog: styled-components/babel-plugin-styled-components@v2.0.1...v2.0.2
v2.0.1Compare Source
What's Changed
Full Changelog: styled-components/babel-plugin-styled-components@v2.0.0...v2.0.1
v2.0.0Compare Source
What's Changed
Full Changelog: styled-components/babel-plugin-styled-components@v1.13.3...v2.0.0
v1.13.3Compare Source
v1.13.2Compare Source
0c16c1b)import * as styled from 'styled-components') properly #340v1.13.1Compare Source
Fix one edge case with object key interpolation from v1.13.0
v1.13.0Compare Source
teach the plugin how to handle variable interpolation in object keys, e.g.
plugin now emits transient props when replacing
cssprop 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
v1.12.1Compare Source
Resolve operability issue with rollup (see #327), thanks @ktranada
Update dependencies
v1.12.0Compare Source
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
v1.11.1Compare Source
Revert #283, it caused a major build performance regression
v1.11.0Compare Source
Thank you to all our contributors!
Configuration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.