Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-tabulator

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tabulator - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

3

CHANGELOG.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc