{"action":"created","issue":{"url":"https://api.github.com/repos/hawkrives/gobbldygook/issues/2180","repository_url":"https://api.github.com/repos/hawkrives/gobbldygook","labels_url":"https://api.github.com/repos/hawkrives/gobbldygook/issues/2180/labels{/name}","comments_url":"https://api.github.com/repos/hawkrives/gobbldygook/issues/2180/comments","events_url":"https://api.github.com/repos/hawkrives/gobbldygook/issues/2180/events","html_url":"https://github.com/hawkrives/gobbldygook/pull/2180","id":302361995,"number":2180,"title":"Update styled-components to the latest version 🚀","user":{"login":"greenkeeper[bot]","id":23040076,"avatar_url":"https://avatars3.githubusercontent.com/in/505?v=4","gravatar_id":"","url":"https://api.github.com/users/greenkeeper%5Bbot%5D","html_url":"https://github.com/apps/greenkeeper","followers_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/followers","following_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/repos","events_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[{"id":427859149,"url":"https://api.github.com/repos/hawkrives/gobbldygook/labels/greenkeeper","name":"greenkeeper","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-05T16:14:24Z","updated_at":"2018-03-07T13:49:03Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/hawkrives/gobbldygook/pulls/2180","html_url":"https://github.com/hawkrives/gobbldygook/pull/2180","diff_url":"https://github.com/hawkrives/gobbldygook/pull/2180.diff","patch_url":"https://github.com/hawkrives/gobbldygook/pull/2180.patch"},"body":"\n☝️ Greenkeeper’s [updated Terms of Service](https://mailchi.mp/ebfddc9880a9/were-updating-our-terms-of-service) will come into effect on April 6th, 2018.\n\n## Version **3.2.0** of [styled-components](https://github.com/styled-components/styled-components) was just published.\n\n<table>\n  <tr>\n    <th align=left>\n      Dependency\n    </td>\n    <td>\n      styled-components\n    </td>\n  </tr>\n  <tr>\n    <th align=left>\n      Current Version\n    </td>\n    <td>\n      3.1.6\n    </td>\n  </tr>\n  <tr>\n    <th align=left>\n      Type\n    </td>\n    <td>\n      dependency\n    </td>\n  </tr>\n</table>\n\nThe version **3.2.0** is **not covered** by your **current version range**.\n\nIf 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.\n\nIt might be worth looking into these changes and trying to get this project onto the latest version of styled-components.\n\nIf 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.\n\n\n---\n\n\n<details>\n<summary>Release Notes</summary>\n<strong>v3.2.0</strong>\n\n<p>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!</p>\n<h2>Deprecations</h2>\n<h3>Stream reconciliation function <code>consolidateStreamedStyles</code></h3>\n<p>If you’ve recently migrated to streamed server-side-rendered styles, then you will be familiar with our <code>consolidateStreamedStyles</code> function, which was an “extended rehydration” that moved all streamed styled-components style tags when called.</p>\n<p>Due to our refactor of our StyleSheet behaviour (see below), our new rehydration implementation now takes care of this for you automatically.</p>\n<p>This function will now output a deprecation warning when it’s being used and effectively does nothing at all. (Take a look at its <a href=\"https://urls.greenkeeper.io/styled-components/styled-components/blob/172a9e5291697ab5a1846372ab02776d9847d89e/src/utils/consolidateStreamedStyles.js#L3-L7\">source</a> for more information)</p>\n<h2>Refactors</h2>\n<h3>Rewrite and refactor <code>StyleSheet</code> and <code>ServerStyleSheet</code></h3>\n<p>We now handle the style rules around a “style tag” based approach, which also means that our <code>BrowserStyleSheet</code> 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.</p>\n<p>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. <strong>This is not a breaking change,</strong> but produces the same behaviour and specificity as it did before. (<strong>Change</strong>)</p>\n<p>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. (<strong>Change</strong>)</p>\n<p>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. (<strong>Change</strong>)</p>\n<h3>Misc.</h3>\n<ul>\n<li>Replace murmurhash implementation and avoid destructuring tag function arguments (see <a href=\"https://urls.greenkeeper.io/styled-components/styled-components/pull/1516\">#1516</a>)</li>\n</ul>\n<h2>Added</h2>\n<h3>StyleSheetManager target prop</h3>\n<p>You can now pass an element to a <code>StyleSheetManager</code> and all the components in its context below in the tree will add their styles to new tags in the specified target.</p>\n<p>While this is <strong>not guaranteed to work with SSR yet</strong>, it can help you to easily add runtime-styles to a different part of the DOM. For example the shadow DOM.</p>\n<h3>Multiple instance of styled-components warning</h3>\n<p>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.</p>\n<p>Please note that this warning <strong>won’t</strong> show up, when older version of styled-components are present, as they don’t contain the code necessary to be detected.</p>\n<h3><code>StyleSheet.remove</code> API (Internal)</h3>\n<p>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.</p>\n<h3>Misc.</h3>\n<ul>\n<li>Add <code>controlsList</code> to validAttr list (see <a href=\"https://urls.greenkeeper.io/styled-components/styled-components/pull/1537\">#1537</a>)</li>\n<li>Add <code>foreignObject</code> svg element (see <a href=\"https://urls.greenkeeper.io/styled-components/styled-components/pull/1544\">#1544</a>)</li>\n</ul>\n<h2>Fixes</h2>\n<h3>Enable semicolon autocompletion in styles</h3>\n<p>We accidentally disabled semicolon autocompletion in stylis, which accidentally introduced an unnoticed breaking change in a past version a while back.</p>\n<p>Semicolon autocompletion is now enabled and back again. Thanks to <a href=\"https://urls.greenkeeper.io/Blasz\">@Blasz</a> for reporting this mistake!</p>\n<h3>Nested media queries in <code>insertRule</code> aka production mode</h3>\n<p>Our version of stylis-rule-sheet was updated which fixes nested media queries which can now be used as is expected in production. (see <a href=\"https://urls.greenkeeper.io/styled-components/styled-components/pull/1529\">#1529</a> and <a href=\"https://urls.greenkeeper.io/styled-components/styled-components/pull/1528\">#1528</a>)</p>\n<h3>Misc.</h3>\n<ul>\n<li>Remove <code>type=\"text/css\"</code>-attribute from style tag to remove warnings from w3c validator (see <a href=\"https://urls.greenkeeper.io/styled-components/styled-components/pull/1551\">#1551</a>)</li>\n</ul>\n<h2>Thanks</h2>\n<p>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!</p>\n<ul>\n<li><a href=\"https://urls.greenkeeper.io/mdugue\">@mdugue</a></li>\n<li><a href=\"https://urls.greenkeeper.io/jdrouet\">@jdrouet</a></li>\n<li><a href=\"https://urls.greenkeeper.io/marhalpert\">@marhalpert</a></li>\n<li><a href=\"https://urls.greenkeeper.io/pziemkowski\">@pziemkowski</a></li>\n<li><a href=\"https://urls.greenkeeper.io/gribnoysup\">@gribnoysup</a></li>\n<li><a href=\"https://urls.greenkeeper.io/marionebl\">@marionebl</a></li>\n<li><a href=\"https://urls.greenkeeper.io/bteng22\">@bteng22</a></li>\n<li><a href=\"https://urls.greenkeeper.io/paul-veevers\">@paul-veevers</a></li>\n</ul>\n<p><em>(In no particular order)</em></p>\n</details>\n\n\n<details>\n  <summary>FAQ and help</summary>\n\n  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).\n</details>\n\n\n---\n\n\nYour [Greenkeeper](https://greenkeeper.io) bot :palm_tree:\n\n"},"comment":{"url":"https://api.github.com/repos/hawkrives/gobbldygook/issues/comments/371143336","html_url":"https://github.com/hawkrives/gobbldygook/pull/2180#issuecomment-371143336","issue_url":"https://api.github.com/repos/hawkrives/gobbldygook/issues/2180","id":371143336,"user":{"login":"greenkeeper[bot]","id":23040076,"avatar_url":"https://avatars3.githubusercontent.com/in/505?v=4","gravatar_id":"","url":"https://api.github.com/users/greenkeeper%5Bbot%5D","html_url":"https://github.com/apps/greenkeeper","followers_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/followers","following_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/repos","events_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/greenkeeper%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-03-07T13:49:03Z","updated_at":"2018-03-07T13:49:03Z","author_association":"NONE","body":"## Version **3.2.1** just got published. \n[Update to this version instead 🚀](https://github.com/hawkrives/gobbldygook/compare/greenkeeper%2Fstyled-components-3.2.1?expand=1) \n\n<details>\n<summary>Release Notes</summary>\n<strong>v3.2.1</strong>\n\n<h2>Fixes</h2>\n<h3>Incorrect SSR React Element output</h3>\n<p>We accidentally removed <code>dangerouslySetInnerHtml</code> in our SSR output with just some children string. This would cause some characters to be encoded.</p>\n<p>We have corrected this mistake and more unit tests are now in place to prevent this from happening again. Thanks to <a href=\"https://urls.greenkeeper.io/misund\">@misund</a> for reporting this mistake!</p>\n<h3>Support out-of-order injection for <code>@import</code> at-rules</h3>\n<p><code>@import</code> rules must appear at the top of style sheets (i.e tags).</p>\n<p>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 <code>@import</code> rules appear at the top, often this would mean that a lone <code>injectGlobal</code> would get away with <code>@import</code> rules.</p>\n<p>This wasn't sufficient as using <code>@import</code> in a component (obviously unsupported and not recommended) or in another consecutive <code>injectGlobal</code> would cause this logic to break, since <code>@import</code> wouldn't appear at the top of the stylesheet anymore.</p>\n<p>This oversight was made worse by the fact that we stopped sharding local and global style tags. This would mean that <code>@import</code> could now show up fairly late in a stylesheet, instead of at its top.</p>\n<p>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 <code>@import</code> rules separately. So when you use <code>injectGlobal</code> and pass it an <code>@import</code> rule, it will now be stripped out of the rest of your CSS, and put into a completely isolated style tag.</p>\n</details>\n"}}
{"actor":{"display_login":"greenkeeper"}}