Skip to content

Commit 13a6612

Browse files
committed
remove react-lifecycles-compat
1 parent 5e57f49 commit 13a6612

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ History
22

33
---
44

5+
## 3.2.0
6+
7+
- Remove `react-lifecycles-compat`.
8+
59
## 3.0.0
610

711
- Remove `drawerStyle`.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"@types/raf": "^3.4.0",
5151
"@types/react": "^16.9.5",
5252
"@types/react-dom": "^16.9.1",
53-
"@types/react-lifecycles-compat": "^3.0.1",
5453
"@types/warning": "^3.0.0",
5554
"@umijs/fabric": "^2.0.0",
5655
"enzyme": "^3.10.0",
@@ -61,7 +60,6 @@
6160
"jsonp": "^0.2.0",
6261
"less": "^3.10.3",
6362
"np": "^6.0.0",
64-
"pre-commit": "^1.2.2",
6563
"querystring": "^0.2.0",
6664
"rc-test": "^6.0.1",
6765
"react": "^16.10.2",
@@ -71,7 +69,6 @@
7169
},
7270
"dependencies": {
7371
"classnames": "^2.2.6",
74-
"rc-util": "^4.16.1",
75-
"react-lifecycles-compat": "^3.0.4"
72+
"rc-util": "^4.16.1"
7673
}
7774
}

src/DrawerChild.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import classnames from 'classnames';
22
import getScrollBarSize from 'rc-util/lib/getScrollBarSize';
33
import KeyCode from 'rc-util/lib/KeyCode';
44
import * as React from 'react';
5-
import { polyfill } from 'react-lifecycles-compat';
65

76
import { IDrawerChildProps } from './IDrawerPropTypes';
87

@@ -592,4 +591,4 @@ class DrawerChild extends React.Component<IDrawerChildProps, IState> {
592591
}
593592
}
594593

595-
export default polyfill(DrawerChild);
594+
export default DrawerChild;

src/DrawerWrapper.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Portal from 'rc-util/lib/PortalWrapper';
22
import * as React from 'react';
3-
import { polyfill } from 'react-lifecycles-compat';
43

54
import Child from './DrawerChild';
65
import { IDrawerProps, IDrawerChildProps } from './IDrawerPropTypes';
@@ -146,4 +145,4 @@ class DrawerWrapper extends React.Component<IDrawerProps, IState> {
146145
}
147146
}
148147

149-
export default polyfill(DrawerWrapper);
148+
export default DrawerWrapper;

0 commit comments

Comments
 (0)