Skip to content

Commit bbbfe2e

Browse files
authored
docs: update version table & outline force publish (#6590)
1 parent ddf3ac9 commit bbbfe2e

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.storybook/components/VersionTable.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import iconArrowDown from '@ui5/webcomponents-icons/dist/slim-arrow-down.js';
2+
import iconArrowRight from '@ui5/webcomponents-icons/dist/slim-arrow-right.js';
13
import { Button, MessageStrip } from '@ui5/webcomponents-react';
24
import { ThemingParameters } from '@ui5/webcomponents-react-base';
35
import { Fragment, useState } from 'react';
46
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';
77

88
const 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-
&nbsp;
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+
&nbsp;
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
)}

config/version-info.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@
4545
"1.24.0": "1.27.0",
4646
"2.1.2": "2.0.0",
4747
"2.2.0": "2.1.0",
48-
"2.3.0": "2.2.0"
48+
"2.3.0": "2.2.0",
49+
"2.4.0": "2.4.0"
4950
}

0 commit comments

Comments
 (0)