Skip to content

Commit d0add03

Browse files
Version Packages (#419)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a40e3f7 commit d0add03

3 files changed

Lines changed: 14 additions & 13 deletions

File tree

.changeset/modernize-dependencies.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# babel-plugin-styled-components
2+
3+
## 2.2.0
4+
5+
### Minor Changes
6+
7+
- a40e3f7: Refresh the toolchain and fix a handful of css-prop transform bugs that had crept in under recent Babel versions.
8+
- 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.
9+
- `css={{ [foo]: bar }}` with a non-primitive value no longer fails Babel's validator. Computed keys are preserved through the css-prop object rewrite.
10+
- Friendlier error messages when the css-prop transform encounters a JSX name shape it can't infer, instead of a confusing internal `ReferenceError`.
11+
- Long-running watch processes (Next dev, webpack-dev-server, jest watch) no longer leak import-detection state between files.
12+
- Removed the runtime `lodash` dependency. The plugin now ships with `@babel/core` as a declared peer.
13+
- Dev tooling moved to pnpm and changesets. Plugin behavior is unchanged.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.1.4",
2+
"version": "2.2.0",
33
"name": "babel-plugin-styled-components",
44
"description": "Improve the debugging experience and add server-side rendering support to styled-components",
55
"repository": "styled-components/babel-plugin-styled-components",

0 commit comments

Comments
 (0)