Skip to content

Commit 254781b

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 4770a35 + acd48a7 commit 254781b

7 files changed

+20
-29
lines changed

.babelrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"plugins": ["transform-react-jsx"],
3-
"presets": ["es2015", "stage-0"]
2+
"presets": ["es2015-loose", "stage-0", "react"]
43
}

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-devtools-log-monitor",
3-
"version": "1.0.0-beta-3",
3+
"version": "1.0.1",
44
"description": "The default tree view monitor for Redux DevTools",
55
"main": "lib/index.js",
66
"scripts": {
@@ -31,16 +31,16 @@
3131
},
3232
"homepage": "https://github.com/gaearon/redux-devtools-log-monitor",
3333
"devDependencies": {
34-
"babel-cli": "^6.1.2",
35-
"babel-core": "^6.1.2",
36-
"babel-eslint": "^4.1.4",
37-
"babel-loader": "^6.0.1",
38-
"babel-plugin-transform-react-jsx": "^6.0.18",
39-
"babel-preset-es2015": "^6.1.2",
40-
"babel-preset-stage-0": "^6.1.2",
34+
"babel-cli": "^6.3.15",
35+
"babel-core": "^6.1.20",
36+
"babel-eslint": "^5.0.0-beta4",
37+
"babel-loader": "^6.2.0",
38+
"babel-preset-es2015-loose": "^6.1.3",
39+
"babel-preset-react": "^6.3.13",
40+
"babel-preset-stage-0": "^6.3.13",
4141
"eslint": "^0.23",
4242
"eslint-config-airbnb": "0.0.6",
43-
"eslint-plugin-react": "^2.3.0",
43+
"eslint-plugin-react": "^3.6.3",
4444
"expect": "^1.6.0",
4545
"mocha": "^2.2.5",
4646
"mocha-jsdom": "^1.0.0",
@@ -49,7 +49,7 @@
4949
},
5050
"peerDependencies": {
5151
"react": "^0.14.0",
52-
"redux-devtools": "^3.0.0-beta-3"
52+
"redux-devtools": "^3.0.0"
5353
},
5454
"dependencies": {
5555
"react-json-tree": "^0.3.0",

src/LogMonitor.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ const styles = {
3939
}
4040
};
4141

42-
class LogMonitor extends Component {
43-
static reducer = reducer;
42+
export default class LogMonitor extends Component {
43+
static update = reducer;
4444

4545
static propTypes = {
4646
dispatch: PropTypes.func,
@@ -234,5 +234,3 @@ class LogMonitor extends Component {
234234
);
235235
}
236236
}
237-
238-
export default LogMonitor;

src/LogMonitorButton.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const styles = {
2020
}
2121
};
2222

23-
class LogMonitorButton extends React.Component {
23+
export default class LogMonitorButton extends React.Component {
2424
shouldComponentUpdate = shouldPureComponentUpdate;
2525

2626
constructor(props) {
@@ -94,5 +94,3 @@ class LogMonitorButton extends React.Component {
9494
);
9595
}
9696
}
97-
98-
export default LogMonitorButton;

src/LogMonitorEntry.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const styles = {
1313
}
1414
};
1515

16-
class LogMonitorEntry extends Component {
16+
export default class LogMonitorEntry extends Component {
1717
static propTypes = {
1818
state: PropTypes.object.isRequired,
1919
action: PropTypes.object.isRequired,
@@ -95,5 +95,3 @@ class LogMonitorEntry extends Component {
9595
);
9696
}
9797
}
98-
99-
export default LogMonitorEntry;

src/LogMonitorEntryAction.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { Component } from 'react';
22
import JSONTree from 'react-json-tree';
33

44
const styles = {
@@ -13,7 +13,7 @@ const styles = {
1313
}
1414
};
1515

16-
class LogMonitorAction extends React.Component {
16+
export default class LogMonitorAction extends Component {
1717
renderPayload(payload) {
1818
return (
1919
<div style={{
@@ -42,5 +42,3 @@ class LogMonitorAction extends React.Component {
4242
);
4343
}
4444
}
45-
46-
export default LogMonitorAction;

src/reducers.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { UPDATE_SCROLL_TOP } from './actions';
22

3-
function initialScrollTop(state = 0, action, props) {
3+
function initialScrollTop(props, state = 0, action) {
44
if (!props.preserveScrollTop) {
55
return 0;
66
}
@@ -10,8 +10,8 @@ function initialScrollTop(state = 0, action, props) {
1010
state;
1111
}
1212

13-
export default function reducer(state = {}, action, props) {
13+
export default function reducer(props, state = {}, action) {
1414
return {
15-
initialScrollTop: initialScrollTop(state.initialScrollTop, action, props)
15+
initialScrollTop: initialScrollTop(props, state.initialScrollTop, action)
1616
};
1717
}

0 commit comments

Comments
 (0)