react-tabulator
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -1,2 +0,2 @@ | ||
## [0.5.5] - 2018-10-14 | ||
## [0.5.6] - 2018-10-14 | ||
@@ -6,2 +6,3 @@ ### Added | ||
- `src/css` - css files for themes. | ||
- `use-react-15` branch for React 15.x | ||
### Changed | ||
@@ -8,0 +9,0 @@ - use getDerivedStateFromProps so we can set grid data from state. (updated Examples) |
@@ -68,3 +68,3 @@ "use strict"; | ||
// await table.setData(data); | ||
console.log('- componentDidMount'); | ||
// console.log('- componentDidMount'); | ||
if (data && data.length > 0) { | ||
@@ -77,4 +77,6 @@ this.setState({ data: data }); | ||
}; | ||
// React 16.5.x - "getDerivedStateFromProps" replaces both "componentWillMount" & "componentWillReceiveProps" | ||
// This function will be ignored when running with React 15.6.x | ||
default_1.getDerivedStateFromProps = function (props, state) { | ||
console.log('- getDerivedStateFromProps', props, state); | ||
// console.log('- getDerivedStateFromProps', props, state); | ||
var noData = !props.data || props.data.length === 0; | ||
@@ -94,2 +96,9 @@ if (!state && noData) { | ||
}; | ||
// this is for React 15.x only, will not be triggered with React 16.5.x | ||
// componentWillReceiveProps(props: IProps) { | ||
// console.log('- componentWillReceiveProps'); | ||
// if (props.data.length > 0) { | ||
// this.setState({ data: props.data }); | ||
// } | ||
// } | ||
// componentDidUpdate(prevProps, prevState) | ||
@@ -96,0 +105,0 @@ default_1.prototype.componentDidUpdate = function () { |
{ | ||
"name": "react-tabulator", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "React Tabulator component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
496277
6177
0