@@ -17,9 +17,8 @@ const deprecated = [
1717 const hasLabelFontSize = deprecateTypographyFontSize . isEligible ( 'label%s' ) ( attributes )
1818 const hasMessageFontSize = deprecateTypographyFontSize . isEligible ( 'message%s' ) ( attributes )
1919 const hasNumberBlockHeight = deprecateBlockHeight . isEligible ( attributes )
20- const isNotV4 = attributes . version < 2 || typeof attributes . version === 'undefined'
2120
22- return hasDigitFontSize || hasLabelFontSize || hasMessageFontSize || hasNumberBlockHeight || isNotV4
21+ return hasDigitFontSize || hasLabelFontSize || hasMessageFontSize || hasNumberBlockHeight
2322 } ,
2423 migrate : attributes => {
2524 let newAttributes = { ...attributes }
@@ -46,9 +45,8 @@ const deprecated = [
4645 isEligible : attributes => {
4746 const hasBlockShadow = deprecateBlockShadowColor . isEligible ( attributes )
4847 const hasContainerShadow = deprecateContainerShadowColor . isEligible ( attributes )
49- const isNotV4 = attributes . version < 2 || typeof attributes . version === 'undefined'
5048
51- return hasBlockShadow || hasContainerShadow || isNotV4
49+ return hasBlockShadow || hasContainerShadow
5250 } ,
5351 migrate : attributes => {
5452 let newAttributes = { ...attributes }
@@ -71,12 +69,11 @@ const deprecated = [
7169 isEligible : attributes => {
7270 const hasContainerOpacity = deprecateContainerBackgroundColorOpacity . isEligible ( attributes )
7371 const hasBlockOpacity = deprecateBlockBackgroundColorOpacity . isEligible ( attributes )
74- const isNotV4 = attributes . version < 2 || typeof attributes . version === 'undefined'
7572 const hasDigitGradient = deprecateTypographyGradientColor . isEligible ( 'digit%s' ) ( attributes )
7673 const hasLabelGradient = deprecateTypographyGradientColor . isEligible ( 'label%s' ) ( attributes )
7774 const hasMessageGradient = deprecateTypographyGradientColor . isEligible ( 'message%s' ) ( attributes )
7875
79- return hasContainerOpacity || hasBlockOpacity || isNotV4 || hasDigitGradient || hasLabelGradient || hasMessageGradient
76+ return hasContainerOpacity || hasBlockOpacity || hasDigitGradient || hasLabelGradient || hasMessageGradient
8077 } ,
8178 migrate : attributes => {
8279 let newAttributes = { ...attributes }
@@ -97,11 +94,6 @@ const deprecated = [
9794 // layout & containers work.
9895 attributes : attributes ( '3.7.9' ) ,
9996 save : withVersion ( '3.7.9' ) ( Save ) ,
100- isEligible : attributes => {
101- const isNotV4 = attributes . version < 2 || typeof attributes . version === 'undefined'
102-
103- return isNotV4
104- } ,
10597 migrate : attributes => {
10698 let newAttributes = { ...attributes }
10799
0 commit comments