Skip to content

Commit ca03cd2

Browse files
committed
⬆️ Bump deps
1 parent c9231ac commit ca03cd2

File tree

8 files changed

+1685
-1521
lines changed

8 files changed

+1685
-1521
lines changed

package.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,21 @@
9292
"@babel/register": "^7.0.0",
9393
"auto-changelog": "^1.8.0",
9494
"ava": "^1.0.0-beta.8",
95-
"babel-eslint": "^9.0.0",
95+
"babel-eslint": "^10.0.1",
9696
"babel-plugin-emotion": "^9.2.10",
9797
"cross-env": "5.2.0",
9898
"docz": "^0.11.2",
9999
"eslint": "^5.6.0",
100100
"eslint-config-standard": "^12.0.0",
101101
"eslint-config-standard-react": "^7.0.2",
102102
"eslint-plugin-import": "^2.14.0",
103-
"eslint-plugin-node": "^7.0.1",
103+
"eslint-plugin-node": "^8.0.0",
104104
"eslint-plugin-promise": "^4.0.1",
105105
"eslint-plugin-react": "^7.11.1",
106106
"eslint-plugin-standard": "^4.0.0",
107107
"gh-pages": "^2.0.0",
108-
"husky": "^0.14.3",
109-
"lint-staged": "^7.3.0",
108+
"husky": "^1.1.3",
109+
"lint-staged": "^8.0.4",
110110
"np": "3.0.4",
111111
"npm-run-all": "^4.1.3",
112112
"prop-types": "^15.6.2",
@@ -117,10 +117,11 @@
117117
"rimraf": "^2.6.2"
118118
},
119119
"dependencies": {
120-
"@babel/runtime": "^7.0.0",
121-
"emotion": "^9.2.10",
122-
"emotion-theming": "^9.2.9",
123-
"pss": "^2.3.1",
124-
"react-emotion": "^9.2.10"
120+
"@babel/runtime": "7",
121+
"@exah/utils": "^1.5",
122+
"emotion": "^9.2",
123+
"emotion-theming": "^9.2",
124+
"pss": "^2.3",
125+
"react-emotion": "^9.2"
125126
}
126127
}

src/feed/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React, { Component } from 'react'
22
import { withTheme } from 'emotion-theming'
3-
import { compose } from '../utils'
3+
import { compose } from '@exah/utils'
44
import { withCurrentMedia } from '../current-media-provider'
55
import { Grid, GridItem, GridContent } from '../grid'
66

77
const groupChildren = (children = [], length = 3) => {
8-
const placeholder = Array.from({ length }).fill(true).map(() => [])
8+
const placeholder = [ ...Array(length) ].map(() => [])
99
return children.reduce((groups, value, index) => {
1010
const key = Math.floor(index % length)
1111

src/grid/styles.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { themePath, getSpace, sizeProp, createPropStyles, fallbackTo } from 'pss'
1+
import { themePath, getSpace, sizeProp, createPropStyles } from 'pss'
2+
import { fallbackTo } from '@exah/utils'
23

34
const gridItem = createPropStyles({
45
size: [

src/theme-defaults-provider/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ThemeProvider, withTheme } from 'emotion-theming'
2-
import { compose, withProps } from '../utils'
2+
import { compose } from '@exah/utils'
3+
import { withProps } from '../utils'
34

45
const ThemeDefaultsProvider = compose(
56
withTheme,

src/utils.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import React from 'react'
2-
3-
const isFn = (val) => typeof val === 'function'
4-
5-
const identity = (val) => val
6-
7-
const compose = (...fns) =>
8-
fns.reduce((a, b) => (...args) => a(b(...args)), identity)
2+
import { isFn } from '@exah/utils'
93

104
const mapProps = (fn) => (Comp) => (props) => (
115
<Comp {...fn(props)} />
@@ -22,8 +16,6 @@ const withProps = (data) => mapProps((props) => ({
2216
}))
2317

2418
export {
25-
identity,
26-
compose,
2719
mapProps,
2820
defaultProps,
2921
withProps

test/snapshots/index.js.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Generated by [AVA](https://ava.li).
99
> Snapshot 1
1010
1111
<div
12-
className="css-wm4twf e1b964d50"
12+
className="css-0 e1b964d50"
1313
>
1414
Box
1515
</div>
@@ -19,20 +19,20 @@ Generated by [AVA](https://ava.li).
1919
> Snapshot 1
2020
2121
<div
22-
className="css-dirrgd e11fm24e0"
22+
className="css-k008qs e11fm24e0"
2323
>
2424
<div
2525
className="css-0 e11fm24e1"
2626
>
2727
Item
2828
</div>
2929
<div
30-
className="css-a9n7s9 e11fm24e1"
30+
className="css-0 e11fm24e1"
3131
>
3232
Item
3333
</div>
3434
<div
35-
className="css-6voltb e11fm24e1"
35+
className="css-0 e11fm24e1"
3636
>
3737
Item
3838
</div>
@@ -421,7 +421,7 @@ Generated by [AVA](https://ava.li).
421421
> Snapshot 1
422422
423423
<div
424-
className="css-114u1sp e11fm24e0"
424+
className="css-k008qs e11fm24e0"
425425
>
426426
<header
427427
className="css-0 e11fm24e1"

test/snapshots/index.js.snap

-39 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)