@@ -709,9 +709,9 @@ describe('ReactComponentLifeCycle', () => {
709
709
) ;
710
710
} ) . toLowPriorityWarnDev (
711
711
[
712
- 'componentWillMount is deprecated ' ,
713
- 'componentWillReceiveProps is deprecated ' ,
714
- 'componentWillUpdate is deprecated ' ,
712
+ 'componentWillMount has been renamed ' ,
713
+ 'componentWillReceiveProps has been renamed ' ,
714
+ 'componentWillUpdate has been renamed ' ,
715
715
] ,
716
716
{ withoutStack : true } ,
717
717
) ;
@@ -748,9 +748,9 @@ describe('ReactComponentLifeCycle', () => {
748
748
) ;
749
749
} ) . toLowPriorityWarnDev (
750
750
[
751
- 'componentWillMount is deprecated ' ,
752
- 'componentWillReceiveProps is deprecated ' ,
753
- 'componentWillUpdate is deprecated ' ,
751
+ 'componentWillMount has been renamed ' ,
752
+ 'componentWillReceiveProps has been renamed ' ,
753
+ 'componentWillUpdate has been renamed ' ,
754
754
] ,
755
755
{ withoutStack : true } ,
756
756
) ;
@@ -815,7 +815,10 @@ describe('ReactComponentLifeCycle', () => {
815
815
{ withoutStack : true } ,
816
816
) ;
817
817
} ) . toLowPriorityWarnDev (
818
- [ 'componentWillMount is deprecated' , 'componentWillUpdate is deprecated' ] ,
818
+ [
819
+ 'componentWillMount has been renamed' ,
820
+ 'componentWillUpdate has been renamed' ,
821
+ ] ,
819
822
{ withoutStack : true } ,
820
823
) ;
821
824
@@ -863,7 +866,7 @@ describe('ReactComponentLifeCycle', () => {
863
866
'https://fb.me/react-async-component-lifecycle-hooks' ,
864
867
{ withoutStack : true } ,
865
868
) ;
866
- } ) . toLowPriorityWarnDev ( [ 'componentWillMount is deprecated ' ] , {
869
+ } ) . toLowPriorityWarnDev ( [ 'componentWillMount has been renamed ' ] , {
867
870
withoutStack : true ,
868
871
} ) ;
869
872
@@ -887,7 +890,7 @@ describe('ReactComponentLifeCycle', () => {
887
890
'https://fb.me/react-async-component-lifecycle-hooks' ,
888
891
{ withoutStack : true } ,
889
892
) ;
890
- } ) . toLowPriorityWarnDev ( [ 'componentWillReceiveProps is deprecated ' ] , {
893
+ } ) . toLowPriorityWarnDev ( [ 'componentWillReceiveProps has been renamed ' ] , {
891
894
withoutStack : true ,
892
895
} ) ;
893
896
} ) ;
@@ -921,7 +924,10 @@ describe('ReactComponentLifeCycle', () => {
921
924
{ withoutStack : true } ,
922
925
) ;
923
926
} ) . toLowPriorityWarnDev (
924
- [ 'componentWillMount is deprecated' , 'componentWillUpdate is deprecated' ] ,
927
+ [
928
+ 'componentWillMount has been renamed' ,
929
+ 'componentWillUpdate has been renamed' ,
930
+ ] ,
925
931
{ withoutStack : true } ,
926
932
) ;
927
933
@@ -967,7 +973,7 @@ describe('ReactComponentLifeCycle', () => {
967
973
'https://fb.me/react-async-component-lifecycle-hooks' ,
968
974
{ withoutStack : true } ,
969
975
) ;
970
- } ) . toLowPriorityWarnDev ( [ 'componentWillMount is deprecated ' ] , {
976
+ } ) . toLowPriorityWarnDev ( [ 'componentWillMount has been renamed ' ] , {
971
977
withoutStack : true ,
972
978
} ) ;
973
979
@@ -990,7 +996,7 @@ describe('ReactComponentLifeCycle', () => {
990
996
'https://fb.me/react-async-component-lifecycle-hooks' ,
991
997
{ withoutStack : true } ,
992
998
) ;
993
- } ) . toLowPriorityWarnDev ( [ 'componentWillReceiveProps is deprecated ' ] , {
999
+ } ) . toLowPriorityWarnDev ( [ 'componentWillReceiveProps has been renamed ' ] , {
994
1000
withoutStack : true ,
995
1001
} ) ;
996
1002
} ) ;
@@ -1130,9 +1136,9 @@ describe('ReactComponentLifeCycle', () => {
1130
1136
ReactDOM . render ( < MyComponent foo = "bar" /> , div ) ,
1131
1137
) . toLowPriorityWarnDev (
1132
1138
[
1133
- 'componentWillMount is deprecated ' ,
1134
- 'componentWillReceiveProps is deprecated ' ,
1135
- 'componentWillUpdate is deprecated ' ,
1139
+ 'componentWillMount has been renamed ' ,
1140
+ 'componentWillReceiveProps has been renamed ' ,
1141
+ 'componentWillUpdate has been renamed ' ,
1136
1142
] ,
1137
1143
{ withoutStack : true } ,
1138
1144
) ;
@@ -1403,17 +1409,9 @@ describe('ReactComponentLifeCycle', () => {
1403
1409
ReactDOM . render ( < MyComponent x = { 1 } /> , container ) ,
1404
1410
) . toLowPriorityWarnDev (
1405
1411
[
1406
- 'componentWillMount is deprecated and will be removed in the next major version. ' +
1407
- 'Use componentDidMount instead. As a temporary workaround, ' +
1408
- 'you can rename to UNSAFE_componentWillMount.' +
1409
- '\n\nPlease update the following components: MyComponent' ,
1410
- 'componentWillReceiveProps is deprecated and will be removed in the next major version. ' +
1411
- 'Use static getDerivedStateFromProps instead.' +
1412
- '\n\nPlease update the following components: MyComponent' ,
1413
- 'componentWillUpdate is deprecated and will be removed in the next major version. ' +
1414
- 'Use componentDidUpdate instead. As a temporary workaround, ' +
1415
- 'you can rename to UNSAFE_componentWillUpdate.' +
1416
- '\n\nPlease update the following components: MyComponent' ,
1412
+ 'componentWillMount has been renamed' ,
1413
+ 'componentWillReceiveProps has been renamed' ,
1414
+ 'componentWillUpdate has been renamed' ,
1417
1415
] ,
1418
1416
{ withoutStack : true } ,
1419
1417
) ;
0 commit comments