Closed greenkeeper[bot] closed 6 years ago
Update to this version instead 🚀
The new version differs by 42 commits.
61d11e6
v2.3.1
3035d38
Update CHANGELOG
a6b0f64
Merge pull request #1365 from probablyup/es-slimming
b7b7ebd
Merge pull request #1369 from BasThomas/typo-and-styling-fixes
26f0dc0
Fix some typos and improve styling in docs
c8621e5
Merge pull request #1363 from iRoachie/patch-1
a2a52a5
one more dev error
42a81dd
add a changelog entry
ca8c634
lower bundle size threshold
32eb121
remove dev errors from production build
132bc00
remove a dev warning from production build
5905e70
replace valid attrs with an optimized regex
e5c2c6a
omit some development errors from production build
6343f88
use a simpler isFunction check
f69eff3
omit warnTooManyClasses in production
There are 42 commits in total.
See the full diff
Update to this version instead 🚀
The new version differs by 11 commits.
d2d6be5
v2.3.3
910a051
Update CHANGELOG
aee7847
Merge pull request #1377 from probablyup/es-slimming-2
51b95f5
fix the regex and add a note on how to regenerate it
7b2a8f6
revert "Revert "replace valid attrs with an optimized regex""
f3d39ed
Merge pull request #1374 from Caryyon/syntax-readme
609da3c
removed Code Completions and alternative installation
ea8b755
removed syntax-highlighting from REAMD.md
3a409ad
Merge pull request #1371 from styled-components/fix-attr-filtering
d53d599
Update changelog
9807f62
Merge pull request #1370 from styled-components/2.3.1
See the full diff
Update to this version instead 🚀
The new version differs by 6 commits.
6adbb71
v2.4.0
4045187
Update CHANGELOG
a81042f
Merge pull request #1381 from probablyup/es-remove-numbering
ff804ee
add changelog entry
b2483b0
use a simpler hashing strategy when possible
2dc4d4c
Merge pull request #1378 from styled-components/2.3.3
See the full diff
Update to this version instead 🚀
The new version differs by 6 commits.
5651781
v3.1.1
e5e2329
Update CHANGELOG
f01bb08
Merge pull request #1453 from styled-components/3.1.0
89984f1
Merge pull request #1455 from vvasilev-/fix-react-native-dist-bundle
a1e695a
Fix name of dist bundle for React Native
5f6bc1a
Update CHANGELOG
See the full diff
Update to this version instead 🚀
The new version differs by 9 commits.
e5c4056
v3.1.3
36af87e
UPdate CHANGELOG
0286ca2
Merge pull request #1457 from styled-components/3.1.1
07b4867
Merge branch 'master' into 3.1.1
03cbfef
Merge pull request #1460 from evan-scott-zocdoc/disable-speedy-test
d980a70
changelog entry
c2dabda
disable speedy for non-production
0edca9d
Merge pull request #1452 from manpenaloza/better-sandbox-stylings
8744a14
refactor sandbox example buttons to especially improve mobile appearance
See the full diff
Update to this version instead 🚀
This is a small minor release that introduces a couple of minor changes, but also a complete rewrite of our StyleSheet implementation. Not only is it smaller, but it also lowers the barrier to entry for new contributors (like yourself, dear reader, hopefully!) to read and understand it, and eventually contribute great new features!
consolidateStreamedStyles
If you’ve recently migrated to streamed server-side-rendered styles, then you will be familiar with our consolidateStreamedStyles
function, which was an “extended rehydration” that moved all streamed styled-components style tags when called.
Due to our refactor of our StyleSheet behaviour (see below), our new rehydration implementation now takes care of this for you automatically.
This function will now output a deprecation warning when it’s being used and effectively does nothing at all. (Take a look at its source for more information)
StyleSheet
and ServerStyleSheet
We now handle the style rules around a “style tag” based approach, which also means that our BrowserStyleSheet
is a thing of the past. Depending on the environment, we will now switch between server, browser, and insertRule style tags, which all abstract their internal behaviour.
The concept of “local” vs “global” styles has been removed, in anticipation of some upcoming, future APIs, and our rehydration has been rewritten as well. You will see only a single style tag after rehydration, and now splits between style tags when injecting global styles as well. This is not a breaking change, but produces the same behaviour and specificity as it did before. (Change)
You will also notice a couple of improved and more detailed error messages—if you ever run into them that is—which will help you to understand some things that might go wrong more easily. (Change)
Style tags will now also be injected consecutively in the DOM. This means that styled-components won’t append them to the target, but will append them to its last style tag, if a first one was already injected. This should help you to predict the order of injection, when dealing with external CSS. (Change)
You can now pass an element to a StyleSheetManager
and all the components in its context below in the tree will add their styles to new tags in the specified target.
While this is not guaranteed to work with SSR yet, it can help you to easily add runtime-styles to a different part of the DOM. For example the shadow DOM.
Starting from this version, style-components will log a warning when multiple instances of it are being bundled and run on the same page. Due to our rehydration this can lead to errors, where one instance of styled-components will interfere with the other. This is why we have decided to add a small warning notifying you of this, since we don’t see the practice of adding multiple styled-components instances to a single page as a best practice.
Please note that this warning won’t show up, when older version of styled-components are present, as they don’t contain the code necessary to be detected.
StyleSheet.remove
API (Internal)This is an internal API that allows us to remove rules and components from our StyleSheets, which will come in handy for some new APIs for global styles quite soon.
We accidentally disabled semicolon autocompletion in stylis, which accidentally introduced an unnoticed breaking change in a past version a while back.
Semicolon autocompletion is now enabled and back again. Thanks to @Blasz for reporting this mistake!
insertRule
aka production modeOur version of stylis-rule-sheet was updated which fixes nested media queries which can now be used as is expected in production. (see #1529 and #1528)
type="text/css"
-attribute from style tag to remove warnings from w3c validator (see #1551)Thanks to the numerous contributors and maintainers who have worked towards this release. We're sorry if some names are missing, so thanks additionally goes out to everyone who’s worked hard to get v3 out!
(In no particular order)
Update to this version instead 🚀
We accidentally removed dangerouslySetInnerHtml
in our SSR output with just some children string. This would cause some characters to be encoded.
We have corrected this mistake and more unit tests are now in place to prevent this from happening again. Thanks to @misund for reporting this mistake!
@import
at-rules@import
rules must appear at the top of style sheets (i.e tags).
In older versions we used to shard our style tags into local and global ones. Because any CSS that is being passed to us is also reordered, so that @import
rules appear at the top, often this would mean that a lone injectGlobal
would get away with @import
rules.
This wasn't sufficient as using @import
in a component (obviously unsupported and not recommended) or in another consecutive injectGlobal
would cause this logic to break, since @import
wouldn't appear at the top of the stylesheet anymore.
This oversight was made worse by the fact that we stopped sharding local and global style tags. This would mean that @import
could now show up fairly late in a stylesheet, instead of at its top.
In this version we introduce a patch that creates an additional style tag at the top of all other ones that we create, when necessary, which is going to accept all @import
rules separately. So when you use injectGlobal
and pass it an @import
rule, it will now be stripped out of the rest of your CSS, and put into a completely isolated style tag.
Update to this version instead 🚀
This release simply frees up some memory by removing cloned StyleSheet
s when they're not needed anymore.
Version 2.3.0 of styled-components was just published.
The version 2.3.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of styled-components.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Commits
The new version differs by 36 commits.
8526f7a
v2.3.0
8719686
Update CHANGELOG
90fd3fb
Merge pull request #1313 from evan-scott-zocdoc/es-fix-escaping
9b5b5ad
Merge branch 'master' into es-fix-escaping
661854d
Merge branch 'master' into es-fix-escaping
35047d0
Merge pull request #1205 from MatthieuLemoine/withtheme-fix
d5a0ad4
Adjust bundlesize
e6036ea
Merge branch 'master' into withtheme-fix
672282b
Merge branch 'master' into withtheme-fix
607f7f1
Merge pull request #1123 from nbostrom/style-objects-typescript
bb922e9
Merge branch 'master' into style-objects-typescript
702d3a0
Merge pull request #1257 from gribnoysup/issues/1238
8a5dc07
Merge remote-tracking branch 'upstream/master' into issues/1238
beea2b4
Merge pull request #1342 from styled-components/philpl-patch-1
159ba4b
Update ISSUE_TEMPLATE.md
There are 36 commits in total.
See the full diff
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper bot :palm_tree: