Skip to content

Commit 004d03f

Browse files
authored
Merge pull request #292 from styled-components/update-deps
Update deps
2 parents 992706c + 27c1841 commit 004d03f

File tree

9 files changed

+1709
-1578
lines changed

9 files changed

+1709
-1578
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ branches:
55
node_js:
66
- 10
77
- 12
8+
- 14

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"babel-core": "7.0.0-bridge.0",
2323
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
2424
"babel-test": "^0.2.1",
25-
"jest": "^25.1.0",
25+
"jest": "^26.1.0",
2626
"jest-file-snapshot": "^0.3.6",
27-
"prettier": "^1.18.2",
27+
"prettier": "^2.0.5",
2828
"rimraf": "^3.0.0",
2929
"styled-components": "^5.0.0"
3030
},

test/fixtures/annotate-create-global-style-with-pure-comments/output.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { createGlobalStyle } from 'styled-components';
2-
const GlobalStyle =
3-
/*#__PURE__*/
4-
createGlobalStyle`
2+
const GlobalStyle = /*#__PURE__*/createGlobalStyle`
53
body {
64
color: red;
75
}
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import styled, { css } from 'styled-components';
2-
const partial =
3-
/*#__PURE__*/
4-
css(["color:red;"]);
5-
const Component =
6-
/*#__PURE__*/
7-
styled.div.withConfig({
2+
const partial = /*#__PURE__*/css(["color:red;"]);
3+
const Component = /*#__PURE__*/styled.div.withConfig({
84
displayName: "code__Component",
95
componentId: "sc-4wpzk3-0"
106
})(["", ";background:blue;"], partial);
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
import { keyframes } from 'styled-components';
2-
const Animation =
3-
/*#__PURE__*/
4-
keyframes(["0%{opacity:0;}100%{opacity:1;}"]);
2+
const Animation = /*#__PURE__*/keyframes(["0%{opacity:0;}100%{opacity:1;}"]);

test/fixtures/annotate-styled-calls-with-pure-comments/output.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import styled from 'styled-components';
2-
const Test =
3-
/*#__PURE__*/
4-
styled.div.withConfig({
2+
const Test = /*#__PURE__*/styled.div.withConfig({
53
displayName: "code__Test",
64
componentId: "u20i28-0"
75
})(["width:100%;"]);
8-
const Test2 =
9-
/*#__PURE__*/
10-
styled('div').withConfig({
6+
const Test2 = /*#__PURE__*/styled('div').withConfig({
117
displayName: "code__Test2",
128
componentId: "u20i28-1"
139
})([""]);
@@ -29,23 +25,17 @@ Component = styled.div.withConfig({
2925
displayName: "code__Component",
3026
componentId: "u20i28-5"
3127
})([""]);
32-
const WrappedComponent =
33-
/*#__PURE__*/
34-
styled(Inner).withConfig({
28+
const WrappedComponent = /*#__PURE__*/styled(Inner).withConfig({
3529
displayName: "code__WrappedComponent",
3630
componentId: "u20i28-6"
3731
})([""]);
38-
const StyledObjectForm =
39-
/*#__PURE__*/
40-
styled.div.withConfig({
32+
const StyledObjectForm = /*#__PURE__*/styled.div.withConfig({
4133
displayName: "code__StyledObjectForm",
4234
componentId: "u20i28-7"
4335
})({
4436
color: red
4537
});
46-
const StyledFunctionForm =
47-
/*#__PURE__*/
48-
styled.div.withConfig({
38+
const StyledFunctionForm = /*#__PURE__*/styled.div.withConfig({
4939
displayName: "code__StyledFunctionForm",
5040
componentId: "u20i28-8"
5141
})(p => ({
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
import { withTheme } from 'styled-components';
2-
const ThemedComponent =
3-
/*#__PURE__*/
4-
withTheme(() => null);
2+
const ThemedComponent = /*#__PURE__*/withTheme(() => null);

test/fixtures/transpile-css-prop-all-options-on/output.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ var _StyledP13 = (0, _styledComponents["default"])("p").withConfig({
247247
displayName: "code___StyledP13",
248248
componentId: "sc-7evkve-20"
249249
})(function (p) {
250-
return _objectSpread({}, _objectSpread({
250+
return _objectSpread(_objectSpread({}, _objectSpread({
251251
'::before': {
252252
content: p._css8
253253
},
@@ -261,7 +261,7 @@ var _StyledP13 = (0, _styledComponents["default"])("p").withConfig({
261261
'::after': {
262262
content: p._css11
263263
}
264-
}), {
264+
})), {}, {
265265
background: p._css12,
266266
textAlign: 'left',
267267
'::before': {

0 commit comments

Comments
 (0)