Skip to content

Commit 3504270

Browse files
author
Dimitri Kopriwa
committed
fix(dependencies): upgrade react to v16.9.0
1 parent 1e80755 commit 3504270

File tree

6 files changed

+14
-17
lines changed

6 files changed

+14
-17
lines changed

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,12 @@
2121

2222
## Table of Contents
2323

24-
- [Become a contributor](#become-a-contributor)
2524
- [Documentation](#documentation)
2625
- [Contributing](#contributing)
2726
- [License MIT](#license-mit)
2827

2928
---
3029

31-
## Become a contributor
32-
33-
We are missing contributors to keep up to date the project with the latest react upgrade.
34-
35-
This is why we have recently locked the react compatible version between `>=16.0.0 <=16.8.6`.
36-
37-
If you wish to join the core team and help to follow react upgrades, please contact `[email protected]`.
38-
3930
## Documentation
4031

4132
Read [v4 documentation](https://bootstrap-styled.github.io/v4).

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@
191191
"tether-fix": "^1.4.0-fix-es"
192192
},
193193
"peerDependencies": {
194-
"react": "^16.9.0",
195-
"react-dom": "^16.9.0",
194+
"react": "^16.0.0",
195+
"react-dom": "^16.0.0",
196196
"styled-components": "^4.0.0"
197197
},
198198
"publishConfig": {

src/Alert/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ class AlertUnstyled extends React.Component { // eslint-disable-line react/prefe
139139
exited: false,
140140
};
141141

142-
componentWillMount() {
142+
/* eslint-disable-next-line camelcase */
143+
UNSAFE_componentWillMount() {
143144
this.initializeIsOpen(this.props);
144145
if (this.props.uncontrolled) {
145146
if (this.state.uncontrolledOpen) {
@@ -160,7 +161,8 @@ class AlertUnstyled extends React.Component { // eslint-disable-line react/prefe
160161
}
161162

162163
/* eslint-enable no-console */
163-
componentWillReceiveProps(nextProps) {
164+
/* eslint-disable-next-line camelcase */
165+
UNSAFE_componentWillReceiveProps(nextProps) {
164166
if (nextProps.isOpen) {
165167
this.setState({ exited: false });
166168
}

src/Collapse/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ class Collapse extends Component {
6868
height: null,
6969
};
7070

71-
componentWillMount() {
71+
/* eslint-disable-next-line camelcase */
72+
UNSAFE_componentWillMount() {
7273
this.updateVisibility({ collapse: this.props.isOpen ? SHOWN : HIDDEN });
7374
this.updateTransition({ delay: this.props.delay, theme: this.props.theme });
7475
}
7576

76-
componentWillReceiveProps(nextProps) {
77+
/* eslint-disable-next-line camelcase */
78+
UNSAFE_componentWillReceiveProps(nextProps) {
7779
const willOpen = nextProps.isOpen;
7880
const { collapse } = this.state;
7981

src/Modal/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ class ModalUnstyled extends React.Component {
214214
this._isMounted = true;
215215
}
216216

217-
componentWillReceiveProps(nextProps) {
217+
/* eslint-disable-next-line camelcase */
218+
UNSAFE_componentWillReceiveProps(nextProps) {
218219
if (nextProps.isOpen && !this.props.isOpen) {
219220
this.setState({ isOpen: nextProps.isOpen });
220221
}

src/Select/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class SelectUnstyled extends React.Component { // eslint-disable-line react/pref
2222
}
2323

2424
// Android browser fix: https://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#android-stock-browser
25-
componentWillMount() {
25+
/* eslint-disable-next-line camelcase */
26+
UNSAFE_componentWillMount() {
2627
if (typeof window !== 'undefined') {
2728
const nua = navigator.userAgent;
2829
const isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1);

0 commit comments

Comments
 (0)