1
+ import iconArrowDown from '@ui5/webcomponents-icons/dist/slim-arrow-down.js' ;
2
+ import iconArrowRight from '@ui5/webcomponents-icons/dist/slim-arrow-right.js' ;
1
3
import { Button , MessageStrip } from '@ui5/webcomponents-react' ;
2
4
import { ThemingParameters } from '@ui5/webcomponents-react-base' ;
3
5
import { Fragment , useState } from 'react' ;
4
6
import 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' ;
7
7
8
8
const allWCRVersions : string [ ] = Object . values ( versionInfo ) ;
9
9
@@ -12,11 +12,17 @@ export function VersionTable() {
12
12
return (
13
13
< >
14
14
< 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 > !
19
17
</ 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 >
20
26
< table >
21
27
< thead >
22
28
< tr >
@@ -29,8 +35,7 @@ export function VersionTable() {
29
35
</ tr >
30
36
</ thead >
31
37
< 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 ] ) => {
34
39
if ( wcrVersion . startsWith ( '0' ) ) {
35
40
return null ;
36
41
}
@@ -42,7 +47,7 @@ export function VersionTable() {
42
47
const lastV1 = currentMajor === 1 && currentMinor === 27 ;
43
48
const wcrVersions = [ lastV1 ? wcrVersion : `~${ wcrVersion } ` ] ;
44
49
if ( nextVersion ) {
45
- let minor = parseInt ( nextVersion . split ( '.' ) [ 1 ] ) ;
50
+ const minor = parseInt ( nextVersion . split ( '.' ) [ 1 ] ) ;
46
51
for ( let i = currentMinor + 1 ; i < minor ; i ++ ) {
47
52
wcrVersions . push ( `~${ currentMajor } .${ i } .0` ) ;
48
53
}
@@ -99,10 +104,7 @@ export function VersionTable() {
99
104
) }
100
105
{ currentMajor === 2 && (
101
106
< tr >
102
- < td >
103
- { lastEntry ? '>= ' : '' }
104
- { wcrVersions . join ( ', ' ) }
105
- </ td >
107
+ < td > { wcrVersions . join ( ', ' ) } </ td >
106
108
< td > ~{ wcVersion } </ td >
107
109
</ tr >
108
110
) }
0 commit comments