Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 7dbf19a

Browse files
React 16.13 (#766)
1 parent b35a560 commit 7dbf19a

13 files changed

+33
-41
lines changed

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [Unreleased]
6+
### Changed
7+
- [#766](https://github.com/plotly/dash-core-components/pull/766) Update from React 16.8.6 to 16.13.0
8+
9+
510
## [1.8.1] -2020-02-27
611
### Added
712
- [#760](https://github.com/plotly/dash-core-components/pull/760) Added R examples to package help

Diff for: package-lock.json

+12-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"jest": "^24.5.0",
8181
"npm-run-all": "^4.1.5",
8282
"prettier": "^1.14.2",
83-
"react": "^16.8.6",
84-
"react-dom": "^16.8.6",
83+
"react": "16.13.0",
84+
"react-dom": "16.13.0",
8585
"react-jsx-parser": "^1.21.0",
8686
"react-resize-detector": "^4.2.1",
8787
"style-loader": "^0.23.1",

Diff for: src/components/Graph.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class PlotlyGraph extends Component {
4242
});
4343
}
4444

45-
componentWillReceiveProps(nextProps) {
45+
UNSAFE_componentWillReceiveProps(nextProps) {
4646
let extendData = this.state.extendData.slice(0);
4747

4848
if (this.props.figure !== nextProps.figure) {

Diff for: src/components/Input.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class Input extends PureComponent {
3030
this.setPropValue = this.setPropValue.bind(this);
3131
}
3232

33-
componentWillReceiveProps(nextProps) {
33+
UNSAFE_componentWillReceiveProps(nextProps) {
3434
const {value} = this.input.current;
3535
const valueAsNumber = convert(value);
3636
this.setInputValue(
@@ -51,7 +51,7 @@ export default class Input extends PureComponent {
5151
);
5252
}
5353

54-
componentWillMount() {
54+
UNSAFE_componentWillMount() {
5555
if (this.props.type !== 'number') {
5656
this.setState({value: this.props.value});
5757
}

Diff for: src/components/Interval.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class Interval extends Component {
6262
this.handleTimer(this.props);
6363
}
6464

65-
componentWillReceiveProps(nextProps) {
65+
UNSAFE_componentWillReceiveProps(nextProps) {
6666
if (nextProps.interval !== this.props.interval) {
6767
this.resetTimer(nextProps);
6868
} else {

Diff for: src/components/Location.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default class Location extends Component {
106106
this.updateLocation(this.props);
107107
}
108108

109-
componentWillReceiveProps(nextProps) {
109+
UNSAFE_componentWillReceiveProps(nextProps) {
110110
this.updateLocation(nextProps);
111111
}
112112

Diff for: src/components/Store.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default class Store extends React.Component {
143143
}
144144
}
145145

146-
componentWillMount() {
146+
UNSAFE_componentWillMount() {
147147
const {setProps, id, data, storage_type} = this.props;
148148
if (storage_type !== 'memory') {
149149
window.addEventListener('storage', this.onStorageChange);

Diff for: src/fragments/DatePickerRange.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export default class DatePickerRange extends Component {
3535
}
3636
}
3737

38-
componentWillReceiveProps(newProps) {
38+
UNSAFE_componentWillReceiveProps(newProps) {
3939
this.propsToState(newProps);
4040
}
4141

42-
componentWillMount() {
42+
UNSAFE_componentWillMount() {
4343
this.propsToState(this.props, true);
4444
}
4545

Diff for: src/fragments/Dropdown.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class Dropdown extends Component {
3232
};
3333
}
3434

35-
componentWillReceiveProps(newProps) {
35+
UNSAFE_componentWillReceiveProps(newProps) {
3636
if (newProps.options !== this.props.options) {
3737
this.setState({
3838
filterOptions: createFilterOptions({

Diff for: src/fragments/Graph.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class PlotlyGraph extends Component {
370370
);
371371
}
372372

373-
componentWillReceiveProps(nextProps) {
373+
UNSAFE_componentWillReceiveProps(nextProps) {
374374
const idChanged = this.props.id !== nextProps.id;
375375
if (idChanged) {
376376
/*

Diff for: src/fragments/RangeSlider.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class RangeSlider extends Component {
2626
}
2727
}
2828

29-
componentWillReceiveProps(newProps) {
29+
UNSAFE_componentWillReceiveProps(newProps) {
3030
if (newProps.tooltip !== this.props.tooltip) {
3131
this.DashSlider = newProps.tooltip
3232
? createSliderWithTooltip(Range)
@@ -35,7 +35,7 @@ export default class RangeSlider extends Component {
3535
this.propsToState(newProps);
3636
}
3737

38-
componentWillMount() {
38+
UNSAFE_componentWillMount() {
3939
this.propsToState(this.props);
4040
}
4141

Diff for: src/fragments/Slider.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class Slider extends Component {
2929
}
3030
}
3131

32-
componentWillReceiveProps(newProps) {
32+
UNSAFE_componentWillReceiveProps(newProps) {
3333
if (newProps.tooltip !== this.props.tooltip) {
3434
this.DashSlider = newProps.tooltip
3535
? createSliderWithTooltip(ReactSlider)
@@ -38,7 +38,7 @@ export default class Slider extends Component {
3838
this.propsToState(newProps);
3939
}
4040

41-
componentWillMount() {
41+
UNSAFE_componentWillMount() {
4242
this.propsToState(this.props);
4343
}
4444

0 commit comments

Comments
 (0)