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

React 16.13 #766

Merged
merged 15 commits into from
Mar 10, 2020
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
command: |
. venv/bin/activate && mkdir packages
# build main dash
git clone --depth 1 https://github.com/plotly/dash.git dash-main
git clone --depth 1 -b react-16.13 https://github.com/plotly/dash.git dash-main
cd dash-main && pip install -e .[dev] --progress-bar off && python setup.py sdist && mv dist/* ../packages/
cd dash-renderer && npm run build
python setup.py sdist && mv dist/* ../../packages/ && cd ../..
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Changed
- [#766](https://github.com/plotly/dash-core-components/pull/766) Update from React 16.8.6 to 16.13.0


## [1.8.1] -2020-02-27
### Added
- [#760](https://github.com/plotly/dash-core-components/pull/760) Added R examples to package help
Expand Down
37 changes: 12 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"jest": "^24.5.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.14.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react": "16.13.0",
"react-dom": "16.13.0",
"react-jsx-parser": "^1.21.0",
"react-resize-detector": "^4.2.1",
"style-loader": "^0.23.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Graph.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PlotlyGraph extends Component {
});
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
let extendData = this.state.extendData.slice(0);

if (this.props.figure !== nextProps.figure) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Input.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class Input extends PureComponent {
this.setPropValue = this.setPropValue.bind(this);
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const {value} = this.input.current;
const valueAsNumber = convert(value);
this.setInputValue(
Expand All @@ -51,7 +51,7 @@ export default class Input extends PureComponent {
);
}

componentWillMount() {
UNSAFE_componentWillMount() {
if (this.props.type !== 'number') {
this.setState({value: this.props.value});
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Interval.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class Interval extends Component {
this.handleTimer(this.props);
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.interval !== this.props.interval) {
this.resetTimer(nextProps);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Location.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default class Location extends Component {
this.updateLocation(this.props);
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
this.updateLocation(nextProps);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Store.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default class Store extends React.Component {
}
}

componentWillMount() {
UNSAFE_componentWillMount() {
const {setProps, id, data, storage_type} = this.props;
if (storage_type !== 'memory') {
window.addEventListener('storage', this.onStorageChange);
Expand Down
4 changes: 2 additions & 2 deletions src/fragments/DatePickerRange.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export default class DatePickerRange extends Component {
}
}

componentWillReceiveProps(newProps) {
UNSAFE_componentWillReceiveProps(newProps) {
this.propsToState(newProps);
}

componentWillMount() {
UNSAFE_componentWillMount() {
this.propsToState(this.props, true);
}

Expand Down
2 changes: 1 addition & 1 deletion src/fragments/Dropdown.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class Dropdown extends Component {
};
}

componentWillReceiveProps(newProps) {
UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.options !== this.props.options) {
this.setState({
filterOptions: createFilterOptions({
Expand Down
2 changes: 1 addition & 1 deletion src/fragments/Graph.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ class PlotlyGraph extends Component {
);
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const idChanged = this.props.id !== nextProps.id;
if (idChanged) {
/*
Expand Down
4 changes: 2 additions & 2 deletions src/fragments/RangeSlider.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class RangeSlider extends Component {
}
}

componentWillReceiveProps(newProps) {
UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.tooltip !== this.props.tooltip) {
this.DashSlider = newProps.tooltip
? createSliderWithTooltip(Range)
Expand All @@ -35,7 +35,7 @@ export default class RangeSlider extends Component {
this.propsToState(newProps);
}

componentWillMount() {
UNSAFE_componentWillMount() {
this.propsToState(this.props);
}

Expand Down
4 changes: 2 additions & 2 deletions src/fragments/Slider.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class Slider extends Component {
}
}

componentWillReceiveProps(newProps) {
UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.tooltip !== this.props.tooltip) {
this.DashSlider = newProps.tooltip
? createSliderWithTooltip(ReactSlider)
Expand All @@ -38,7 +38,7 @@ export default class Slider extends Component {
this.propsToState(newProps);
}

componentWillMount() {
UNSAFE_componentWillMount() {
this.propsToState(this.props);
}

Expand Down