Skip to content

Commit 99cf8f2

Browse files
authored
Update styled-components to 3.1.0 (codesandbox#483)
* Update styled-components to 3.1.0 * Upgrade packages depending on styled-components
1 parent 1bc7b17 commit 99cf8f2

File tree

3 files changed

+44
-26
lines changed

3 files changed

+44
-26
lines changed

packages/app/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"babel-plugin-detective": "^2.0.0",
9999
"babel-plugin-dynamic-import-node": "^1.0.2",
100100
"babel-plugin-jsx-pragmatic": "^1.0.2",
101+
"babel-plugin-styled-components": "^1.5.0",
101102
"babel-plugin-syntax-jsx": "^6.18.0",
102103
"babel-plugin-system-import": "^1.1.5",
103104
"babel-plugin-system-import-transformer": "3.1.0",
@@ -130,6 +131,7 @@
130131
"hash-sum": "^1.0.2",
131132
"humps": "CompuIves/humps",
132133
"image-extensions": "^1.1.0",
134+
"jest-styled-components": "^4.11.0-1",
133135
"jszip": "^3.1.3",
134136
"localforage": "^1.5.5",
135137
"lodash": "^4.17.2",
@@ -172,7 +174,7 @@
172174
"script-ext-html-webpack-plugin": "^1.8.8",
173175
"shelljs": "^0.7.8",
174176
"store": "^2.0.12",
175-
"styled-components": "^2.3.2",
177+
"styled-components": "^3.1.4",
176178
"svg-react-loader": "^0.4.4",
177179
"tern": "^0.21.0",
178180
"vue": "^2.5.2",

packages/homepage/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"gatsby-plugin-react-helmet": "^1.0.8",
1414
"gatsby-plugin-sharp": "^1.6.23",
1515
"gatsby-plugin-sitemap": "^1.2.7",
16-
"gatsby-plugin-styled-components": "^1.0.5",
16+
"gatsby-plugin-styled-components": "^2.0.5",
1717
"gatsby-react-router-scroll": "^1.0.3",
1818
"gatsby-remark-autolink-headers": "^1.4.10",
1919
"gatsby-remark-images": "^1.5.34",
@@ -23,7 +23,7 @@
2323
"gsap": "^1.20.3",
2424
"react-media": "^1.6.1",
2525
"react-transition-group": "^2.2.1",
26-
"styled-components": "^2.2.4",
26+
"styled-components": "^3.1.4",
2727
"three": "^0.87.1"
2828
},
2929
"keywords": [

yarn.lock

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
# yarn lockfile v1
33

44

5+
"@babel/helper-annotate-as-pure@^7.0.0-beta.37":
6+
version "7.0.0-beta.38"
7+
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-beta.38.tgz#888cf28a1b9094d670dbdb1be1ec550b40c2dd9c"
8+
dependencies:
9+
"@babel/types" "7.0.0-beta.38"
10+
11+
12+
version "7.0.0-beta.38"
13+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.38.tgz#2ce2443f7dc6ad535a67db4940cbd34e64035a6f"
14+
dependencies:
15+
esutils "^2.0.2"
16+
lodash "^4.2.0"
17+
to-fast-properties "^2.0.0"
18+
519
"@emmetio/abbreviation@^0.6.0", "@emmetio/abbreviation@^0.6.1":
620
version "0.6.3"
721
resolved "https://registry.yarnpkg.com/@emmetio/abbreviation/-/abbreviation-0.6.3.tgz#a0b957b018e12612b2ddf7f277855d570a4d2a10"
@@ -1220,12 +1234,13 @@ babel-plugin-preval@^1.6.2:
12201234
babylon "^6.18.0"
12211235
require-from-string "^2.0.1"
12221236

1223-
babel-plugin-styled-components@^1.3.0:
1224-
version "1.3.0"
1225-
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.3.0.tgz#9e4d9f718b2975dadbfab0bc1c6793d93c751404"
1237+
babel-plugin-styled-components@^1.5.0:
1238+
version "1.5.0"
1239+
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.5.0.tgz#4549f28a19fb05170aa9ee429b4de0eac2d2401d"
12261240
dependencies:
1241+
"@babel/helper-annotate-as-pure" "^7.0.0-beta.37"
12271242
babel-types "^6.26.0"
1228-
stylis "3.x"
1243+
stylis "^3.0.0"
12291244

12301245
babel-plugin-syntax-async-functions@^6.8.0:
12311246
version "6.13.0"
@@ -5790,6 +5805,12 @@ gatsby-plugin-styled-components@^1.0.5:
57905805
babel-runtime "^6.26.0"
57915806
styled-components "^2.0.0"
57925807

5808+
gatsby-plugin-styled-components@^2.0.5:
5809+
version "2.0.5"
5810+
resolved "https://registry.yarnpkg.com/gatsby-plugin-styled-components/-/gatsby-plugin-styled-components-2.0.5.tgz#3d881748eb5c3666cc82783de39a912a9f31e640"
5811+
dependencies:
5812+
babel-runtime "^6.26.0"
5813+
57935814
gatsby-react-router-scroll@^1.0.3, gatsby-react-router-scroll@^1.0.5:
57945815
version "1.0.5"
57955816
resolved "https://registry.yarnpkg.com/gatsby-react-router-scroll/-/gatsby-react-router-scroll-1.0.5.tgz#377b03e0320866f40b6c2234d38b19d1b035c353"
@@ -8202,9 +8223,9 @@ jest-snapshot@^21.2.1:
82028223
natural-compare "^1.4.0"
82038224
pretty-format "^21.2.1"
82048225

8205-
jest-styled-components@^4.9.0:
8206-
version "4.9.0"
8207-
resolved "https://registry.yarnpkg.com/jest-styled-components/-/jest-styled-components-4.9.0.tgz#459ccb37d0f5720007c8dba358bfff93c8cf4aed"
8226+
jest-styled-components@^4.11.0-1:
8227+
version "4.11.0-1"
8228+
resolved "https://registry.yarnpkg.com/jest-styled-components/-/jest-styled-components-4.11.0-1.tgz#a1d5653df0d8d579c67f90d0fb68f2f450f12234"
82088229
dependencies:
82098230
css "^2.2.1"
82108231

@@ -14126,37 +14147,32 @@ styled-components@^2.0.0:
1412614147
stylis "3.x"
1412714148
supports-color "^3.2.3"
1412814149

14129-
styled-components@^2.2.4:
14130-
version "2.2.4"
14131-
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-2.2.4.tgz#dd87fd3dafd359e7a0d570aec1bd07d691c0b5a2"
14150+
styled-components@^3.1.4:
14151+
version "3.1.4"
14152+
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.1.4.tgz#1bdc1409c9bacafee3510c573d23b73039b0d875"
1413214153
dependencies:
1413314154
buffer "^5.0.3"
1413414155
css-to-react-native "^2.0.3"
1413514156
fbjs "^0.8.9"
1413614157
hoist-non-react-statics "^1.2.0"
14137-
is-function "^1.0.1"
1413814158
is-plain-object "^2.0.1"
1413914159
prop-types "^15.5.4"
1414014160
stylis "^3.4.0"
14161+
stylis-rule-sheet "^0.0.7"
1414114162
supports-color "^3.2.3"
1414214163

14143-
styled-components@^2.3.2:
14144-
version "2.3.2"
14145-
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-2.3.2.tgz#323d86cc9ac89f3fd233a2dfa0849da236f143e3"
14146-
dependencies:
14147-
buffer "^5.0.3"
14148-
css-to-react-native "^2.0.3"
14149-
fbjs "^0.8.9"
14150-
hoist-non-react-statics "^1.2.0"
14151-
is-plain-object "^2.0.1"
14152-
prop-types "^15.5.4"
14153-
stylis "^3.4.0"
14154-
supports-color "^3.2.3"
14164+
stylis-rule-sheet@^0.0.7:
14165+
version "0.0.7"
14166+
resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.7.tgz#5c51dc879141a61821c2094ba91d2cbcf2469c6c"
1415514167

1415614168
1415714169
version "3.4.3"
1415814170
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.4.3.tgz#875bd0db3db37bb6de08f89275fc38ee2e32ee75"
1415914171

14172+
stylis@^3.0.0:
14173+
version "3.4.8"
14174+
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.4.8.tgz#94380babbcd4c75726215794ca985b38ec96d1a3"
14175+
1416014176
stylis@^3.4.0:
1416114177
version "3.4.5"
1416214178
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.4.5.tgz#d7b9595fc18e7b9c8775eca8270a9a1d3e59806e"

0 commit comments

Comments
 (0)