Skip to content

Commit f221178

Browse files
committed
Update dependencies for compliance with React 15.5.0.
1 parent cbca3bb commit f221178

File tree

3 files changed

+41
-34
lines changed

3 files changed

+41
-34
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### v2.2.1 (29 April 2017)
2+
3+
* [UPGRADE] Use `prop-types` instead of `React.PropTypes` for React `15.5.0`.
4+
* [UPGRADE] Use `react-transition-group/CSSTransitionGroup` instead of `react-addons...` (thanks @ali) (#45)
5+
16
### v2.2.0 (27 February 2017)
27

38
* [FEATURE] Remove element at once when transitionLeave is false. (thanks @wifilinker) (#34)

package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,62 +14,63 @@
1414
"prepublish": "npm run build"
1515
},
1616
"dependencies": {
17+
"prop-types": "^15.5.6",
1718
"react-transition-group": "^1.1.1"
1819
},
1920
"peerDependencies": {
2021
"react": "^15.0.0",
2122
"react-dom": "^15.0.0"
2223
},
2324
"devDependencies": {
24-
"babel-cli": "^6.16.0",
25+
"babel-cli": "^6.24.1",
2526
"babel-eslint": "^6.1.0",
2627
"babel-plugin-add-module-exports": "^0.2.1",
2728
"babel-plugin-check-es2015-constants": "^6.8.0",
2829
"babel-plugin-syntax-trailing-function-commas": "^6.13.0",
29-
"babel-plugin-transform-class-properties": "^6.16.0",
30+
"babel-plugin-transform-class-properties": "^6.24.1",
3031
"babel-plugin-transform-decorators-legacy": "^1.3.4",
3132
"babel-plugin-transform-es2015-arrow-functions": "^6.8.0",
3233
"babel-plugin-transform-es2015-block-scoped-functions": "^6.8.0",
33-
"babel-plugin-transform-es2015-block-scoping": "^6.15.0",
34-
"babel-plugin-transform-es2015-classes": "^6.14.0",
35-
"babel-plugin-transform-es2015-computed-properties": "^6.8.0",
34+
"babel-plugin-transform-es2015-block-scoping": "^6.24.1",
35+
"babel-plugin-transform-es2015-classes": "^6.24.1",
36+
"babel-plugin-transform-es2015-computed-properties": "^6.24.1",
3637
"babel-plugin-transform-es2015-destructuring": "^6.16.0",
37-
"babel-plugin-transform-es2015-duplicate-keys": "^6.8.0",
38+
"babel-plugin-transform-es2015-duplicate-keys": "^6.24.1",
3839
"babel-plugin-transform-es2015-for-of": "^6.8.0",
39-
"babel-plugin-transform-es2015-function-name": "^6.9.0",
40+
"babel-plugin-transform-es2015-function-name": "^6.24.1",
4041
"babel-plugin-transform-es2015-literals": "^6.8.0",
41-
"babel-plugin-transform-es2015-modules-commonjs": "^6.16.0",
42-
"babel-plugin-transform-es2015-object-super": "^6.8.0",
43-
"babel-plugin-transform-es2015-parameters": "^6.17.0",
44-
"babel-plugin-transform-es2015-shorthand-properties": "^6.8.0",
42+
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
43+
"babel-plugin-transform-es2015-object-super": "^6.24.1",
44+
"babel-plugin-transform-es2015-parameters": "^6.24.1",
45+
"babel-plugin-transform-es2015-shorthand-properties": "^6.24.1",
4546
"babel-plugin-transform-es2015-spread": "^6.8.0",
46-
"babel-plugin-transform-es2015-sticky-regex": "^6.8.0",
47+
"babel-plugin-transform-es2015-sticky-regex": "^6.24.1",
4748
"babel-plugin-transform-es2015-template-literals": "^6.8.0",
4849
"babel-plugin-transform-es2015-typeof-symbol": "^6.8.0",
49-
"babel-plugin-transform-es2015-unicode-regex": "^6.11.0",
50+
"babel-plugin-transform-es2015-unicode-regex": "^6.24.1",
5051
"babel-plugin-transform-object-rest-spread": "^6.16.0",
5152
"babel-plugin-transform-object-set-prototype-of-to-assign": "^6.8.0",
5253
"babel-plugin-transform-proto-to-assign": "^6.9.0",
5354
"babel-plugin-transform-react-constant-elements": "^6.9.1",
5455
"babel-plugin-transform-react-display-name": "^6.8.0",
5556
"babel-plugin-transform-react-inline-elements": "^6.8.0",
56-
"babel-plugin-transform-react-jsx": "^6.8.0",
57+
"babel-plugin-transform-react-jsx": "^6.24.1",
5758
"babel-plugin-transform-react-pure-class-to-function": "^1.0.1",
5859
"babel-plugin-transform-react-remove-prop-types": "^0.2.9",
5960
"babel-polyfill": "^6.16.0",
6061
"babelify": "^7.3.0",
6162
"browser-sync": "^2.17.2",
6263
"browserify": "^13.1.0",
6364
"del": "^2.2.2",
64-
"eslint": "^3.7.1",
65+
"eslint": "^3.19.0",
6566
"eslint-plugin-react": "^5.2.2",
6667
"gulp": "^3.9.1",
6768
"gulp-eslint": "^3.0.1",
6869
"gulp-flatten": "^0.2.0",
6970
"gulp-notify": "^2.2.0",
7071
"lodash.assign": "^4.2.0",
7172
"react": "^15.3.2",
72-
"react-bootstrap": "^0.30.5",
73+
"react-bootstrap": "^0.31.0",
7374
"react-dom": "^15.3.2",
7475
"rimraf": "^2.5.4",
7576
"vinyl-buffer": "^1.0.0",

src/ReactCSSTransitionReplace.jsx

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import React from 'react'
88
import ReactDOM from 'react-dom'
9+
import PropTypes from 'prop-types'
910

1011
import ReactCSSTransitionGroupChild from 'react-transition-group/CSSTransitionGroupChild'
1112

@@ -42,29 +43,29 @@ export default class ReactCSSTransitionReplace extends React.Component {
4243
static displayName = 'ReactCSSTransitionReplace'
4344

4445
static propTypes = {
45-
transitionName: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.shape({
46-
enter: React.PropTypes.string,
47-
leave: React.PropTypes.string,
48-
active: React.PropTypes.string,
49-
height: React.PropTypes.string,
50-
}), React.PropTypes.shape({
51-
enter: React.PropTypes.string,
52-
enterActive: React.PropTypes.string,
53-
leave: React.PropTypes.string,
54-
leaveActive: React.PropTypes.string,
55-
appear: React.PropTypes.string,
56-
appearActive: React.PropTypes.string,
57-
height: React.PropTypes.string,
46+
transitionName: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
47+
enter: PropTypes.string,
48+
leave: PropTypes.string,
49+
active: PropTypes.string,
50+
height: PropTypes.string,
51+
}), PropTypes.shape({
52+
enter: PropTypes.string,
53+
enterActive: PropTypes.string,
54+
leave: PropTypes.string,
55+
leaveActive: PropTypes.string,
56+
appear: PropTypes.string,
57+
appearActive: PropTypes.string,
58+
height: PropTypes.string,
5859
})]).isRequired,
5960

60-
transitionAppear: React.PropTypes.bool,
61-
transitionEnter: React.PropTypes.bool,
62-
transitionLeave: React.PropTypes.bool,
61+
transitionAppear: PropTypes.bool,
62+
transitionEnter: PropTypes.bool,
63+
transitionLeave: PropTypes.bool,
6364
transitionAppearTimeout: createTransitionTimeoutPropValidator('Appear'),
6465
transitionEnterTimeout: createTransitionTimeoutPropValidator('Enter'),
6566
transitionLeaveTimeout: createTransitionTimeoutPropValidator('Leave'),
66-
overflowHidden: React.PropTypes.bool,
67-
changeWidth: React.PropTypes.bool,
67+
overflowHidden: PropTypes.bool,
68+
changeWidth: PropTypes.bool,
6869
}
6970

7071
static defaultProps = {

0 commit comments

Comments
 (0)