Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit c596c06

Browse files
author
Justin Slattery
committed
Update deps and make data proptype check for iterable
1 parent 056839f commit c596c06

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tabletable",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "A simple and extremely flexible table component written in React.",
55
"main": "dist/entry.js",
66
"scripts": {
@@ -51,20 +51,20 @@
5151
]
5252
},
5353
"devDependencies": {
54-
"babel-cli": "^6.7.5",
54+
"babel-cli": "^6.14.0",
5555
"babel-plugin-transform-decorators-legacy": "^1.3.4",
56-
"babel-preset-es2015": "^6.6.0",
57-
"babel-preset-react": "^6.5.0",
58-
"babelify": "^7.2.0",
59-
"browserify": "^13.0.0",
60-
"react-dom": "^15.0.1",
56+
"babel-preset-es2015": "^6.14.0",
57+
"babel-preset-react": "^6.11.1",
58+
"babelify": "^7.3.0",
59+
"browserify": "^13.1.0",
6160
"watchify": "^3.7.0"
6261
},
6362
"dependencies": {
6463
"autobind-decorator": "^1.3.3",
65-
"classnames": "^2.2.3",
66-
"immutable": "^3.7.6",
67-
"react": "^15.0.1",
68-
"react-addons-shallow-compare": "^15.0.1"
64+
"classnames": "^2.2.5",
65+
"immutable": "^3.8.1",
66+
"react": "^15.3.1",
67+
"react-addons-shallow-compare": "^15.3.1",
68+
"react-dom": "^15.3.1"
6969
}
7070
}

src/Container.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,14 @@ TabletableContainer.defaultProps = {
181181
};
182182

183183
TabletableContainer.propTypes = {
184-
data: React.PropTypes.instanceOf(Immutable.Seq).isRequired,
184+
data: (props, propName, componentName) => {
185+
if (!Immutable.Iterable.isIterable(props[propName])) {
186+
return new Error(
187+
'Invalid prop `' + propName + '` supplied to' +
188+
' `' + componentName + '`. Expected Immutable iterable.'
189+
);
190+
}
191+
},
185192
columns: React.PropTypes.object.isRequired,
186193
rowsPerPage: React.PropTypes.number.isRequired,
187194
pagerSize: React.PropTypes.number.isRequired,

0 commit comments

Comments
 (0)