1+ import iconArrowDown from '@ui5/webcomponents-icons/dist/slim-arrow-down.js' ;
2+ import iconArrowRight from '@ui5/webcomponents-icons/dist/slim-arrow-right.js' ;
13import { Button , MessageStrip } from '@ui5/webcomponents-react' ;
24import { ThemingParameters } from '@ui5/webcomponents-react-base' ;
35import { Fragment , useState } from 'react' ;
46import versionInfo from '../../config/version-info.json' ;
5- import iconArrowRight from '@ui5/webcomponents-icons/dist/slim-arrow-right.js' ;
6- import iconArrowDown from '@ui5/webcomponents-icons/dist/slim-arrow-down.js' ;
77
88const allWCRVersions : string [ ] = Object . values ( versionInfo ) ;
99
@@ -12,11 +12,17 @@ export function VersionTable() {
1212 return (
1313 < >
1414 < MessageStrip hideCloseButton >
15- In order to allow patching releases of UI5 Web Components by yourself, < code > @ui5/webcomponents</ code > and
16-
17- < code > @ui5/webcomponents-fiori</ code > are peer dependencies of < code > @ui5/webcomponents-react</ code > . The
18- following table gives an overview of the required peer dependencies per version:
15+ Starting with version < code > 2.4.0</ code > of < code > @ui5/webcomponents-react</ code > , all packages now align their{ ' ' }
16+ < b > minor</ b > version with < code > @ui5/webcomponents</ code > !
1917 </ MessageStrip >
18+ < p >
19+ < b >
20+ In order to allow patching releases of UI5 Web Components by yourself, < code > @ui5/webcomponents</ code > and
21+
22+ < code > @ui5/webcomponents-fiori</ code > are peer dependencies of < code > @ui5/webcomponents-react</ code > . The
23+ following table gives an overview of the required peer dependencies per version:
24+ </ b >
25+ </ p >
2026 < table >
2127 < thead >
2228 < tr >
@@ -29,8 +35,7 @@ export function VersionTable() {
2935 </ tr >
3036 </ thead >
3137 < tbody >
32- { Object . entries ( versionInfo ) . map ( ( [ wcVersion , wcrVersion ] , index , arr ) => {
33- const lastEntry = index + 1 === arr . length ;
38+ { Object . entries ( versionInfo ) . map ( ( [ wcVersion , wcrVersion ] : [ string , string ] ) => {
3439 if ( wcrVersion . startsWith ( '0' ) ) {
3540 return null ;
3641 }
@@ -42,7 +47,7 @@ export function VersionTable() {
4247 const lastV1 = currentMajor === 1 && currentMinor === 27 ;
4348 const wcrVersions = [ lastV1 ? wcrVersion : `~${ wcrVersion } ` ] ;
4449 if ( nextVersion ) {
45- let minor = parseInt ( nextVersion . split ( '.' ) [ 1 ] ) ;
50+ const minor = parseInt ( nextVersion . split ( '.' ) [ 1 ] ) ;
4651 for ( let i = currentMinor + 1 ; i < minor ; i ++ ) {
4752 wcrVersions . push ( `~${ currentMajor } .${ i } .0` ) ;
4853 }
@@ -99,10 +104,7 @@ export function VersionTable() {
99104 ) }
100105 { currentMajor === 2 && (
101106 < tr >
102- < td >
103- { lastEntry ? '>= ' : '' }
104- { wcrVersions . join ( ', ' ) }
105- </ td >
107+ < td > { wcrVersions . join ( ', ' ) } </ td >
106108 < td > ~{ wcVersion } </ td >
107109 </ tr >
108110 ) }
0 commit comments