Skip to content

chore(deps): bump babel-plugin-styled-components to 2.3.0#103

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/babel-plugin-styled-components-2.x
Open

chore(deps): bump babel-plugin-styled-components to 2.3.0#103
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/babel-plugin-styled-components-2.x

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Nov 21, 2021

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
babel-plugin-styled-components (source) 1.13.32.3.0 age adoption passing confidence

Release Notes

styled-components/babel-plugin-styled-components (babel-plugin-styled-components)

v2.3.0

Compare Source

Minor Changes
  • 0c5f21d: Add a cssPropImportPath option to control which package the css-prop transform auto-imports styled from 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 pattern const styled = baseStyled as ThemedStyledInterface<MyTheme>. After type-stripping Babel sees a plain const styled = baseStyled, and the detector now follows single-identifier alias chains so styled.div resolves back to the original import.
Patch Changes
  • 0c5f21d: Fix invalid output when a css={{ ... }} 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 __importDefault interop helper alongside Babel's _interopRequireDefault. Files compiled through tsc / ts-jest (which emit var sc_1 = __importDefault(require('styled-components'))) now flow into the same detection path as Babel-compiled output, so styled declarations downstream pick up displayName and componentId as expected.

v2.2.0

Compare Source

Minor Changes
  • a40e3f7: Refresh the toolchain and fix a handful of css-prop transform bugs that had crept in under recent Babel versions.
    • When a file already imports styled and also uses one or more css={…} 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 surrounding styled.div declarations.
    • css={{ [foo]: bar }} with a non-primitive value no longer fails Babel's validator. Computed keys are preserved through the css-prop object rewrite.
    • Friendlier error messages when the css-prop transform encounters a JSX name shape it can't infer, instead of a confusing internal ReferenceError.
    • Long-running watch processes (Next dev, webpack-dev-server, jest watch) no longer leak import-detection state between files.
    • Removed the runtime lodash dependency. The plugin now ships with @babel/core as a declared peer.
    • Dev tooling moved to pnpm and changesets. Plugin behavior is unchanged.

v2.1.4

Compare Source

Full Changelog: styled-components/babel-plugin-styled-components@v2.1.3...v2.1.4

v2.1.3

Compare Source

What's Changed

New Contributors

Full Changelog: styled-components/babel-plugin-styled-components@v2.1.1...v2.1.3

v2.1.2

Compare Source

v2.1.1

Compare Source

What's Changed

New Contributors

Full Changelog: styled-components/babel-plugin-styled-components@v2.0.7...v2.1.1

v2.1.0

Compare Source

v2.0.7

Compare Source

What's Changed

New Contributors

Full Changelog: styled-components/babel-plugin-styled-components@v2.0.6...v2.0.7

v2.0.6

Compare 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.5

Compare 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.4

Compare Source

fix compat with styled-components babel macro

Full Changelog: styled-components/babel-plugin-styled-components@v2.0.3...v2.0.4

v2.0.3

Compare Source

What's Changed

Full Changelog: styled-components/babel-plugin-styled-components@v2.0.2...v2.0.3

v2.0.2

Compare Source

What's Changed

New Contributors

Full Changelog: styled-components/babel-plugin-styled-components@v2.0.1...v2.0.2

v2.0.1

Compare Source

What's Changed

Full Changelog: styled-components/babel-plugin-styled-components@v2.0.0...v2.0.1

v2.0.0

Compare Source

What's Changed

Full Changelog: styled-components/babel-plugin-styled-components@v1.13.3...v2.0.0


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.0.0 chore(deps): bump babel-plugin-styled-components to 2.0.1 Nov 22, 2021
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from e066c29 to 88de2f5 Compare November 22, 2021 05:48
@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.0.1 chore(deps): bump babel-plugin-styled-components to 2.0.2 Nov 28, 2021
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 88de2f5 to 4125cd0 Compare November 28, 2021 04:32
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 4125cd0 to 30caf22 Compare March 7, 2022 09:54
@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.0.2 chore(deps): bump babel-plugin-styled-components to 2.0.6 Mar 7, 2022
@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.0.6 chore(deps): bump babel-plugin-styled-components to 2.0.7 Apr 24, 2022
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 30caf22 to cdfb7d6 Compare April 24, 2022 23:43
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from cdfb7d6 to 5a62ade Compare November 20, 2022 13:10
@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.0.7 chore(deps): bump babel-plugin-styled-components to 2.1.1 Apr 17, 2023
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 5a62ade to b832760 Compare April 17, 2023 13:16
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from b832760 to b240c65 Compare May 31, 2023 06:00
@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.1.1 chore(deps): bump babel-plugin-styled-components to 2.1.3 May 31, 2023
@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.1.3 chore(deps): bump babel-plugin-styled-components to 2.1.4 Jun 23, 2023
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from b240c65 to d9f2044 Compare June 23, 2023 22:19
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch 2 times, most recently from ec892e5 to 040b70f Compare August 13, 2025 17:37
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 040b70f to ba278fb Compare August 19, 2025 12:42
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from ba278fb to 263036f Compare September 25, 2025 19:43
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 263036f to 8dbd53a Compare November 11, 2025 01:33
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 8dbd53a to 45005f4 Compare January 19, 2026 14:43
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 45005f4 to c794b01 Compare February 2, 2026 18:43
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from c794b01 to 1b753b5 Compare February 12, 2026 16:32
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 1b753b5 to 5f9bb95 Compare April 1, 2026 18:07
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from 5f9bb95 to 0472b6f Compare May 12, 2026 17:44
@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.1.4 chore(deps): bump babel-plugin-styled-components to 2.2.0 May 21, 2026
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch 2 times, most recently from c4f0717 to f4473ad Compare May 21, 2026 05:46
@renovate renovate Bot changed the title chore(deps): bump babel-plugin-styled-components to 2.2.0 chore(deps): bump babel-plugin-styled-components to 2.3.0 May 21, 2026
@renovate renovate Bot force-pushed the renovate/babel-plugin-styled-components-2.x branch from f4473ad to 3374bf5 Compare May 28, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants