Skip to content

Commit 49cc79d

Browse files
React 16.13 (#92)
1 parent 249f124 commit 49cc79d

13 files changed

+91
-66
lines changed

.circleci/config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
command: |
2828
python -m venv venv
2929
. venv/bin/activate
30-
pip install --upgrade pip
31-
pip install dash[dev]>=1.6.1
30+
git clone --depth 1 https://github.com/plotly/dash.git dash-main
31+
cd dash-main && pip install -e .[dev,testing]
32+
cd dash-renderer && npm run build && pip install -e . && cd ../..
3233
npm run build
3334
3435
- run:

CHANGELOG.md

+31-28
Original file line numberDiff line numberDiff line change
@@ -6,111 +6,114 @@ The format is based on [Keep a
66
Changelog](http://keepachangelog.com/en/1.0.0/) and this project
77
adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
88

9+
## [Unreleased]
10+
- [#92](https://github.com/plotly/dash-daq/pull/92) Update from React 16.8.6 to 16.13.0
11+
912
## [0.4.0] - 2020-03-04
1013
### Added
11-
* [#80](https://github.com/plotly/dash-daq/pull/80) Added `theme` prop to `GraduatedBar` component.
14+
- [#80](https://github.com/plotly/dash-daq/pull/80) Added `theme` prop to `GraduatedBar` component.
1215

1316
### Changed
14-
* [#91](https://github.com/plotly/dash-daq/pull/91) Renamed async modules with hyphen `-` instead of tilde `~`
15-
* [#80](https://github.com/plotly/dash-daq/pull/80) Changed class names for components according to BEM conventions.
17+
- [#91](https://github.com/plotly/dash-daq/pull/91) Renamed async modules with hyphen `-` instead of tilde `~`
18+
- [#80](https://github.com/plotly/dash-daq/pull/80) Changed class names for components according to BEM conventions.
1619

1720
### Fixed
18-
* [#80](https://github.com/plotly/dash-daq/pull/80) Fixed color problems for dark-theme buttons and inputs.
21+
- [#80](https://github.com/plotly/dash-daq/pull/80) Fixed color problems for dark-theme buttons and inputs.
1922

2023
## [0.3.3] - 2020-01-23
2124
### Changed
22-
* [#82](https://github.com/plotly/dash-daq/pull/82) Updated `rc-slider` package and `daq.Slider` styling.
25+
- [#82](https://github.com/plotly/dash-daq/pull/82) Updated `rc-slider` package and `daq.Slider` styling.
2326

2427
## [0.3.2] - 2020-01-22
2528
### Fixed
26-
* [#84](https://github.com/plotly/dash-daq/pull/84) Fixed JS map not being included in the `js_dist` for the Python package.
29+
- [#84](https://github.com/plotly/dash-daq/pull/84) Fixed JS map not being included in the `js_dist` for the Python package.
2730

2831
## [0.3.1] - 2019-11-14
2932
### Fixed
30-
* [#73](https://github.com/plotly/dash-daq/pull/73) Fix IE11 compatibility issues and ES5 compatibility and validation
33+
- [#73](https://github.com/plotly/dash-daq/pull/73) Fix IE11 compatibility issues and ES5 compatibility and validation
3134

3235
## [0.3.0] - 2019-11-05
3336
### Added
34-
* [#70](https://github.com/plotly/dash-daq/pull/70) Async ColorPicker and Slider components
37+
- [#70](https://github.com/plotly/dash-daq/pull/70) Async ColorPicker and Slider components
3538

3639
## [0.2.2] - 2019-10-04
3740

3841
### Fixed
39-
* Fixed ThemeProvider warning by updating `styled-components` to `v4.4.0`.
42+
- Fixed ThemeProvider warning by updating `styled-components` to `v4.4.0`.
4043

4144
## [0.2.1] - 2019-09-24
4245

4346
### Fixed
44-
* Fixed "Cannot read property 'subscribe' of undefined" JavaScript
47+
- Fixed "Cannot read property 'subscribe' of undefined" JavaScript
4548
error.
4649

4750
## [0.2.0] - 2019-09-24
4851

4952
### Added
50-
* Added `height` and `width` parameters to `daq.Tank` and
53+
- Added `height` and `width` parameters to `daq.Tank` and
5154
`daq.Thermometer`.
5255

5356
## [0.1.7] - 2019-07-24
5457

5558
### Changed
56-
* Updated library to React 16 for compatibility with `dash-1.0.0`.
59+
- Updated library to React 16 for compatibility with `dash-1.0.0`.
5760

5861
## [0.1.6] - 2019-07-16
5962

6063
### Added
61-
* Added ability for LEDDisplay to handle negative numbers.
64+
- Added ability for LEDDisplay to handle negative numbers.
6265

6366
## [0.1.5] - 2019-05-09
6467

6568
### Fixed
66-
* Fixed missing locationSlider entry in Slider.propTypes.
69+
- Fixed missing locationSlider entry in Slider.propTypes.
6770

6871
### Added
6972

70-
* Updated package.json with additional metadata for R package
73+
- Updated package.json with additional metadata for R package
7174
building.
72-
* Added JavaScript bundle and source map to dash_daq subfolder.
73-
* Initial commit of dashDaq R package.
75+
- Added JavaScript bundle and source map to dash_daq subfolder.
76+
- Initial commit of dashDaq R package.
7477

7578
## [0.1.4] - 2019-02-18
7679

7780
### Fixed
78-
* Fixed init file to include the correct bundle location.
79-
* Fixed NPM package to include bundle, and updated Python package
81+
- Fixed init file to include the correct bundle location.
82+
- Fixed NPM package to include bundle, and updated Python package
8083
version accordingly.
8184

8285
## [0.1.2] - 2019-02-15
8386

8487
### Fixed
85-
* Fixed version to correspond to the correct/published npm version.
88+
- Fixed version to correspond to the correct/published npm version.
8689

8790
## [0.1.1] - 2019-02-14
8891

8992
### Fixed
90-
* Fixed version to correspond to the correct/published npm version.
93+
- Fixed version to correspond to the correct/published npm version.
9194

9295
## [0.1.0] - 2019-01-28
9396

9497
### Fixed
95-
* Fixed incompatibility issue with Dash `0.36.0`.
98+
- Fixed incompatibility issue with Dash `0.36.0`.
9699

97100
### Removed
98-
* Removed unused headers in CHANGELOG.
99-
* Removed all mentioned of `fireEvent` and anything else that used
101+
- Removed unused headers in CHANGELOG.
102+
- Removed all mentioned of `fireEvent` and anything else that used
100103
Dash events (which have been removed). The `n_clicks` and `value`
101104
props should be used instead to determine when something has been
102105
updated.
103106

104107
## [0.0.2] - 2018-06-04
105108

106109
### Fixed
107-
* Error on Windows when generating tarball. Fixed dependency problems
110+
- Error on Windows when generating tarball. Fixed dependency problems
108111
with import dash_daq.
109112

110113
## [0.0.1] - 2018-05-28
111114

112115
### Fixed
113116

114-
* Display error on ColorPicker Light component fixed
115-
* Gauge component error with default values fixed
116-
* Knob component error with JavaScript split method fixed
117+
- Display error on ColorPicker Light component fixed
118+
- Gauge component error with default values fixed
119+
- Knob component error with JavaScript split method fixed

dash_daq/async-colorpicker.js

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

dash_daq/async-colorpicker.js.map

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

dash_daq/async-slider.js

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

dash_daq/dash_daq.min.js

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

dash_daq/dash_daq.min.js.map

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

dash_daq/package-info.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"prop-types": "^15.5.9",
5252
"ramda": "^0.25.0",
5353
"rc-slider": "^9.1.0",
54-
"react": "^16.8.6",
55-
"react-color": "^2.14.1",
56-
"react-dom": "^16.8.6",
54+
"react": "16.13.0",
55+
"react-color": "^2.18.0",
56+
"react-dom": "16.13.0",
5757
"react-numeric-input": "^2.2.3",
5858
"styled-components": "^4.4.0",
5959
"tinygradient": "^0.4.0",

package-lock.json

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

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"copy-lib": "copyfiles -u 1 lib/* dash_daq",
2222
"dash-demo": "python demo.py",
2323
"install-local": "pip install -e .",
24-
"lint": "eslint --fix --ignore-path .eslintignore .",
24+
"lint": "eslint --fix --ignore-path .eslintignore src/",
2525
"start": "npm run build:dev",
2626
"build:js": "webpack --mode production",
2727
"build:js-dev": "webpack --mode development",
@@ -32,7 +32,7 @@
3232
"postbuild": "es-check es5 dash_daq/*.js",
3333
"build:dev": "npm run build:js-dev && npm run build:py",
3434
"build-tarball": "npm run build && python setup.py sdist",
35-
"test": "jest",
35+
"test": "jest src/components/__tests__",
3636
"test:frontend-cov": "jest --coverage --silent",
3737
"test:watch": "jest --watch",
3838
"uninstall-local": "pip uninstall dash_daq -y",
@@ -51,9 +51,9 @@
5151
"prop-types": "^15.5.9",
5252
"ramda": "^0.25.0",
5353
"rc-slider": "^9.1.0",
54-
"react": "^16.8.6",
55-
"react-color": "^2.14.1",
56-
"react-dom": "^16.8.6",
54+
"react": "16.13.0",
55+
"react-color": "^2.18.0",
56+
"react-dom": "16.13.0",
5757
"react-numeric-input": "^2.2.3",
5858
"styled-components": "^4.4.0",
5959
"tinygradient": "^0.4.0",

src/components/NumericInput.react.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
33
import { withTheme } from 'styled-components';
4-
import { default as Input } from 'react-numeric-input';
54

65
import LabelContainer from '../styled/shared/LabelContainer.styled';
76

87
import { light, colors } from '../styled/constants';
9-
108
import { getClassName, getFilteredProps } from '../helpers/classNameGenerator';
9+
import Input from './../helpers/NumericInput';
1110

1211
/**
1312
* A numeric input component that can be

src/components/PrecisionInput.react.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
33
import { withTheme } from 'styled-components';
4-
import { default as Input } from 'react-numeric-input';
54

65
import { Container, Digit, ExponentialDigit } from '../styled/PrecisionInput.styled';
76
import LabelContainer from '../styled/shared/LabelContainer.styled';
87

98
import { light, colors } from '../styled/constants';
10-
119
import { getClassName, getFilteredProps } from '../helpers/classNameGenerator';
10+
import Input from './../helpers/NumericInput';
1211

1312
const defaultRootStyles = {
1413
display: 'flex',

src/helpers/NumericInput.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { default as Input } from 'react-numeric-input';
2+
3+
Input.prototype.UNSAFE_componentWillMount = Input.prototype.componentWillMount;
4+
Input.prototype.UNSAFE_componentWillReceiveProps = Input.prototype.componentWillReceiveProps;
5+
Input.prototype.UNSAFE_componentWillUpdate = Input.prototype.componentWillUpdate;
6+
7+
delete Input.prototype.componentWillMount;
8+
delete Input.prototype.componentWillReceiveProps;
9+
delete Input.prototype.componentWillUpdate;
10+
11+
export default Input;

0 commit comments

Comments
 (0)