This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
Update styled-components in / from 2.3.0 to 2.4.0 #37
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.
Dependencies.io has updated
styled-components
(a npm dependency in/
) from "2.3.0" to "2.4.0".2.4.0
More stable class names
babel-plugin-styled-components@1.4.0
styled-components@2.4.0
These tandem releases introduce a stabler algorithm for determining the unique hash of each component, which should lead to more consistent class names across environments. (both across
dev
/test
/prod
and acrossclient
/server
when using SSR)Big thanks to probablyup, ref styled-components/styled-components#1381 and styled-components/babel-plugin-styled-components#112
2.3.3
2.3.2
Hotfix release, fixes an issue with v2.3.1 where attributes wouldn't be filtered correctly.
2.3.1
Badge
There's now an official styled-components badge, thanks to iRoachie (see #1363)! Throw that on all the projects you have that use styled-components:
Changes
Smaller bundle size
probablyup spent some time removing our warning messages in production mode, reducing the library size by about half a kB min+gzip! (see #1365)
Fix unminified UMD bundle
It turns out our unminified UMD build contained some
process.env
declarations, which broke when used via a<script>
tag in your HTML. This is now fixed, thanks to maciej-ka! (see #1355)Prettier
Our entire repo is now using Prettier, making it easy to stay consistent with our code style, thanks to existentialism! (see #593)
Update contribution and community guidelines
We spent some time updating our contribution and community guidelines to encourage shallow contributions to ensure the longevity of this project and to remove the core team as bottlenecks from development. The TL;DR is this:
See our contributing.md for more information on Why and How we do this, and expect a blogpost about it in the near future too. Thanks to orta, alloy and ashfurrow for encouraging and helping us to explore this way of managing open source.