Skip to content

Commit 43d58f9

Browse files
author
Clauderic Demers
committed
Use ‘prop-types’ package for compatibility with React ^15.5
1 parent 56546ba commit 43d58f9

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"test:watch": "jest --watch",
2020
"test:ci": "jest && codecov"
2121
},
22-
"dependencies": {},
22+
"dependencies": {
23+
"prop-types": "^15.5.7"
24+
},
2325
"peerDependencies": {
2426
"react": "15.x || 16.x"
2527
},

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {PureComponent, PropTypes} from 'react';
1+
import React, {PureComponent} from 'react';
2+
import PropTypes from 'prop-types';
23
import SizeAndPositionManager from './SizeAndPositionManager';
34
import {
45
ALIGN_CENTER,

yarn.lock

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ fb-watchman@^2.0.0:
26392639
dependencies:
26402640
bser "^2.0.0"
26412641

2642-
fbjs@^0.8.1, fbjs@^0.8.4:
2642+
fbjs@^0.8.1, fbjs@^0.8.4, fbjs@^0.8.9:
26432643
version "0.8.9"
26442644
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.9.tgz#180247fbd347dcc9004517b904f865400a0c8f14"
26452645
dependencies:
@@ -5267,6 +5267,12 @@ [email protected], promise@^7.1.1:
52675267
dependencies:
52685268
asap "~2.0.3"
52695269

5270+
prop-types@^15.5.7:
5271+
version "15.5.7"
5272+
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.7.tgz#231c4f29cdd82e355011d4889386ca9059544dd1"
5273+
dependencies:
5274+
fbjs "^0.8.9"
5275+
52705276
proxy-addr@~1.1.2:
52715277
version "1.1.3"
52725278
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.3.tgz#dc97502f5722e888467b3fa2297a7b1ff47df074"

0 commit comments

Comments
 (0)