stylelint-custom-processor-loader
stylelint-custom-processor-loader copied to clipboard
Update styled-components to the latest version π
Version 3.3.0 of styled-components was just published.
| Dependency |
styled-components
|
|---|---|
| Current Version | 3.2.6 |
| Type | devDependency |
The version 3.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.
Release Notes
v3.3.0The team is very excited to release v3.3.0, containing a number of important bugfixes and quality of life improvements to the library! This will probably be the last big release before v4.0 (roadmap) this summer.
Thank you so much to all the people who contributed. styled-components is nothing without its community
-
Fix off-by-one error in insertRuleHelpers.js, by @migueloller (see #1749)
-
Add first-class support for objects, by @mxstbr (see #1732)
const Component = styled.div({ color: 'blue' })
-
Fix typo in console warning about multiple instances, by @LucianBuzzo (see #1730)
-
Make the multiple instance warning criteria a little more strict to avoid badgering people running unit tests, by @probablup (see #1693)
-
Fix
React.createRef()values forinnerRefbeing ignored in React Native, by @simonbuchan (see #1718) -
Hoist non-react static properties on wrapped classes, by @probablyup (see #1750)
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 :palm_tree:
Version 3.3.2 just got published.
Update to this version instead π
Release Notes
v3.3.2Lots of
-
Allow non-plain objects as
ThemeProviderthemes, by @phyllisstein (see #1780) -
[internal] Upgrade flow-bin to latest, by @halvves (see #1748)
-
[internal] Update various CI bits, by @probablyup (see #1769)
-
Reimplement SSR stream handling as a transform stream rather than a second-order readable stream, by @probablyup (see #1768)
-
Allow React Component as attr, by @valerybugakov (see #1751)
-
Added pointer events to valid attributes check, by @plankguy (see #1790)
Note: v3.3.1 was skipped due to a bad deploy.
Version 3.3.3 just got published.
Update to this version instead π
Release Notes
v3.3.3-
Fixed a regression when extending a
styled(StyledComponent)introduced in 3.3.0, by @probablyup (see #1819) -
Adjust how displayName is generated when not using Babel to properly preserve a displayName passed via
withConfig, by @probablyup (see #1755) -
[TS] Fix props being removed when indexed types are passed to WithOptionalTheme, by @devrelm (see #1806)
-
[TS] Allow TypeScript 2.9.1 to accept tagged template type argument, by @Igorbek (see #1798)
-
Add ref documentation for React.createRef(), by @julmot (see #1792)
Version 3.4.1 just got published.
Update to this version instead π
Release Notes
v3.4.1-
Fixed a bug in typings where
isStyledComponentwas defined using an undefined variable, by @MayhemYDG (see #1876) -
Add error system, by @probablyup (see #1881)
-
Fix "stream" module not being properly eliminated by rollup, by @probablyup
Version 3.4.2 just got published.
Version 3.4.5 just got published.
Update to this version instead π
Release Notes
v3.4.5- Tone down the dev warnings for deprecated APIs (they were
console.error, nowconsole.warn), by @probablyup
Version 3.4.6 just got published.
Update to this version instead π
Release Notes
v3.4.6Fixed an issue when streaming with very large amounts of output where sometimes styles might not make it to the client, by @probablyup (see #1997)
- The
devDependencystyled-components was updated from3.2.6to3.4.7.
Update to this version instead π
Release Notes for v3.4.7
-
Add warning for the upcoming removal of the
injectGlobalAPI in v4.0, by @rainboxx (see #1867) -
Backport from v4: Beef up the error message that sometimes occurs when multiple versions of styled components are used together and the StyleSheet instance can't be found, by @probablyup (see #2012)
- The
devDependencystyled-components was updated from3.2.6to3.4.8.
Update to this version instead π
Release Notes for v3.4.8
Fix the injectGlobal deprecation message being improperly guarded for production
- The
devDependencystyled-components was updated from3.2.6to3.4.9.
Update to this version instead π
Release Notes for v3.4.9
Remove the injectGlobal warning; it's not actionable since the replacement API is in v4 only, so why say anything?
- The
devDependencystyled-components was updated from3.2.6to3.4.10.
- The
devDependencystyled-components was updated from3.2.6to4.0.0.
- The
devDependencystyled-components was updated from3.2.6to4.0.1.
- The
devDependencystyled-components was updated from3.2.6to4.0.2.
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)
- The
devDependencystyled-components was updated from3.2.6to4.0.3.
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
suppressClassNameWarningprop to disable warning when wrapping a React component withstyled()and theclassNameisn'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
attrsprop is a function that returns an element, by @timswalling (see #2162)
- The
devDependencystyled-components was updated from3.2.6to4.1.0.
Update to this version instead π
Release Notes for v4.1.0
-
Performance optimization for fully static (no function interpolation) styled-components by avoiding using
ThemeConsumersince it isn't necessary, by @mxstbr (see #2166) -
Allow disabling "speedy" mode via global
SC_DISABLE_SPEEDYvariable, by @devrelm (see #2185)To make use of this, you can either set
SC_DISABLE_SPEEDYin your app's entry file or use something likewebpack.DefinePluginto 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
warnTooManyClassesdev 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)
- The
devDependencystyled-components was updated from3.2.6to4.1.1.
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)
- The
devDependencystyled-components was updated from3.2.6to4.1.2.
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
innerRefdeprecation 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
ThemeConsumerandThemeContextexports for the native and primitives entries (see #2217) -
Remove
createGlobalStylemultimount 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
.extendAPI (see #2239) -
Don't treat uppercased strings as tag-like components and don't filter out props from them (see #2225)
- The
devDependencystyled-components was updated from3.2.6to4.1.3.
- The
devDependencystyled-components was updated from3.2.6to4.2.0.
Update to this version instead π
Commits
The new version differs by 31 commits ahead by 31, behind by 3.
df2c947Publishad5185cv4.2.080ca302try to handle React's streaming renderer yielding at inopportune times (#2413)cc0f5d2expose StyleSheetContext and StyleSheetConsumer (#2456)e6f1b85#2080 forgot to replace \n to '' in className (#2333) (#2338)822d9c9Filter suppressClassNameWarning to not to pass down to wrapped components (#2365)c22b95fReduce GC pressure by avoiding to create new object types (#2428)563941e#2080 forgot to replace \n to '' in className (#2333)0ed5eb6Add svg marker tag to domElements.js (#2389)78e412dSome small linting fixes (#2395)ab57327Secure code of conduct links (#2445)fd50880Merge pull request #2443 from styled-components/revert-2430-refactor/clean-upa1bda36Revert "Delete unused src folder. (#2430)"9d06594Delete unused src folder. (#2430)c1cd458Merge pull request #2437 from hiroppy/feature/fix-typo
There are 31 commits in total.
See the full diff
- The
devDependencystyled-components was updated from3.2.6to4.2.1.
- The
devDependencystyled-components was updated from3.2.6to4.3.0.
- The
devDependencystyled-components was updated from3.2.6to4.3.1.
- The
devDependencystyled-components was updated from3.2.6to4.3.2.
- The
devDependencystyled-components was updated from3.2.6to4.4.0.
- The
devDependencystyled-components was updated from3.2.6to4.4.1.
- The
devDependencystyled-components was updated from3.2.6to5.0.1.
- The
devDependencystyled-components was updated from3.2.6to5.1.0.
π¨ 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
- The
devDependencystyled-components was updated from3.2.6to5.1.1.