Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update styled-components to the latest version 🚀 #369

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Oct 15, 2018

The dependency styled-components was updated from 3.4.10 to 4.0.0.

This version 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.


Find out more about this release.

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request Oct 17, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Oct 17, 2018

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Oct 18, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Oct 18, 2018

Update to this version instead 🚀

Release Notes for v4.0.2
  • Handle an edge case where an at-rule was being supplied to the self-reference stylis plugin at an incorrect context setting, by @probablyup (see #2114)

greenkeeper bot added a commit that referenced this pull request Oct 30, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Oct 30, 2018

Update to this version instead 🚀

Release Notes for v4.0.3
  • Interpolating a styled component into a string now returns the static component selector (emotion cross-compat)

    import styled from 'styled-components';
    

    const Comp = styled.div</span></span> <span class="pl-s"> color: red;</span> <span class="pl-s"><span class="pl-pds">;

    </span><span class="pl-s1"><span class="pl-pse">${</span>Comp<span class="pl-pse">}</span></span><span class="pl-pds">; // .sc-hash

  • Add suppressClassNameWarning prop to disable warning when wrapping a React component with styled() and the className isn't used, by @Fer0x (see #2156)

  • Expose ThemeContext to enable static contextType support for React 16.6, by @imbhargav5 (see #2152)

  • Filter out invalid HTML attributes from attrs, by @Fer0x (see #2133)

  • Add warning if an attrs prop is a function that returns an element, by @timswalling (see #2162)

greenkeeper bot added a commit that referenced this pull request Nov 12, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 12, 2018

Update to this version instead 🚀

Release Notes for v4.1.0
  • Performance optimization for fully static (no function interpolation) styled-components by avoiding using ThemeConsumer since it isn't necessary, by @mxstbr (see #2166)

  • Allow disabling "speedy" mode via global SC_DISABLE_SPEEDY variable, by @devrelm (see #2185)

    To make use of this, you can either set SC_DISABLE_SPEEDY in your app's entry file or use something like webpack.DefinePlugin to do it at build time:

    webpack.DefinePlugin({
      SC_DISABLE_SPEEDY: true,
    });
  • Attrs can now be passed a function (see #2200); thanks @oliverlaz for providing an early PoC PR for this!

    e.g.:

    styled.div.attrs(props => ({ 'aria-title': props.title }))``;
  • Fix the warnTooManyClasses dev helper not being totally dead code eliminated in production (see #2200)

  • Deprecate functions as object keys for object-form attrs (see #2200)

    e.g.:

    styled.div.attrs({ 'aria-title': props => props.title })``; // bad
    styled.div.attrs(props => ({ 'aria-title': props.title }))``; // good

    Support for this will be removed in styled-components v5. The primary impetus behind this change is to eliminate confusion around basic functions vs styled-components vs React components provided as values in the object-form attrs constructor, each of which has different handling behaviors. The single outer function to receive the props and then return a props object is conceptually simpler.

  • The standalone CDN build is now UMD-compliant and can be used with RequireJS, etc.

  • Add pixels to unitless numbers when object interpolation is used, by @Fer0x (see #2173)

  • Trying to interpolate a non-styled component into CSS is now a hard error, rather than a warning (see #2173)

greenkeeper bot added a commit that referenced this pull request Nov 12, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 12, 2018

Update to this version instead 🚀

Release Notes for v4.1.1
  • Put back the try/catch guard around a part of the flattener that sometimes receives undetectable SFCs (fixes an errant hard error in an edge case)

greenkeeper bot added a commit that referenced this pull request Nov 28, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 28, 2018

Update to this version instead 🚀

Release Notes for v4.1.2
  • Fix function-form attrs to receive the full execution context (including theme) (see #2210)

  • Adjust innerRef deprecation warning to not be fired if wrapping a custom component, since that underlying component may not be on forwardRef yet and actually using the prop (see #2211)

  • Expose the ThemeConsumer and ThemeContext exports for the native and primitives entries (see #2217)

  • Remove createGlobalStyle multimount warning; Concurrent and Strict modes intentionally render the same component multiple times, which causes this warning to be triggered always even when usage is correct in the application (see #2216)

  • Folded components are now targettable via component selector as in v3 if you used the old .extend API (see #2239)

  • Don't treat uppercased strings as tag-like components and don't filter out props from them (see #2225)

greenkeeper bot added a commit that referenced this pull request Dec 17, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 17, 2018

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Mar 23, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Mar 23, 2019

Update to this version instead 🚀

Commits

The new version differs by 31 commits ahead by 31, behind by 3.

  • df2c947 Publish
  • ad5185c v4.2.0
  • 80ca302 try to handle React's streaming renderer yielding at inopportune times (#2413)
  • cc0f5d2 expose StyleSheetContext and StyleSheetConsumer (#2456)
  • e6f1b85 #2080 forgot to replace \n to '' in className (#2333) (#2338)
  • 822d9c9 Filter suppressClassNameWarning to not to pass down to wrapped components (#2365)
  • c22b95f Reduce GC pressure by avoiding to create new object types (#2428)
  • 563941e #2080 forgot to replace \n to '' in className (#2333)
  • 0ed5eb6 Add svg marker tag to domElements.js (#2389)
  • 78e412d Some small linting fixes (#2395)
  • ab57327 Secure code of conduct links (#2445)
  • fd50880 Merge pull request #2443 from styled-components/revert-2430-refactor/clean-up
  • a1bda36 Revert "Delete unused src folder. (#2430)"
  • 9d06594 Delete unused src folder. (#2430)
  • c1cd458 Merge pull request #2437 from hiroppy/feature/fix-typo

There are 31 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request May 30, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 30, 2019

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jun 5, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 5, 2019

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jun 6, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 6, 2019

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jun 20, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 20, 2019

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Sep 23, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Sep 23, 2019

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Oct 30, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Oct 30, 2019

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Feb 4, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 4, 2020

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Apr 7, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Apr 7, 2020

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request May 25, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 25, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


Update to this version instead 🚀

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