Skip to content

docs: update version table & outline force publish #6590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .storybook/components/VersionTable.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import iconArrowDown from '@ui5/webcomponents-icons/dist/slim-arrow-down.js';
import iconArrowRight from '@ui5/webcomponents-icons/dist/slim-arrow-right.js';
import { Button, MessageStrip } from '@ui5/webcomponents-react';
import { ThemingParameters } from '@ui5/webcomponents-react-base';
import { Fragment, useState } from 'react';
import versionInfo from '../../config/version-info.json';
import iconArrowRight from '@ui5/webcomponents-icons/dist/slim-arrow-right.js';
import iconArrowDown from '@ui5/webcomponents-icons/dist/slim-arrow-down.js';

const allWCRVersions: string[] = Object.values(versionInfo);

Expand All @@ -12,11 +12,17 @@ export function VersionTable() {
return (
<>
<MessageStrip hideCloseButton>
In order to allow patching releases of UI5 Web Components by yourself, <code>@ui5/webcomponents</code> and
&nbsp;
<code>@ui5/webcomponents-fiori</code> are peer dependencies of <code>@ui5/webcomponents-react</code>. The
following table gives an overview of the required peer dependencies per version:
Starting with version <code>2.4.0</code> of <code>@ui5/webcomponents-react</code>, all packages now align their{' '}
<b>minor</b> version with <code>@ui5/webcomponents</code>!
</MessageStrip>
<p>
<b>
In order to allow patching releases of UI5 Web Components by yourself, <code>@ui5/webcomponents</code> and
&nbsp;
<code>@ui5/webcomponents-fiori</code> are peer dependencies of <code>@ui5/webcomponents-react</code>. The
following table gives an overview of the required peer dependencies per version:
</b>
</p>
<table>
<thead>
<tr>
Expand All @@ -29,8 +35,7 @@ export function VersionTable() {
</tr>
</thead>
<tbody>
{Object.entries(versionInfo).map(([wcVersion, wcrVersion], index, arr) => {
const lastEntry = index + 1 === arr.length;
{Object.entries(versionInfo).map(([wcVersion, wcrVersion]: [string, string]) => {
if (wcrVersion.startsWith('0')) {
return null;
}
Expand All @@ -42,7 +47,7 @@ export function VersionTable() {
const lastV1 = currentMajor === 1 && currentMinor === 27;
const wcrVersions = [lastV1 ? wcrVersion : `~${wcrVersion}`];
if (nextVersion) {
let minor = parseInt(nextVersion.split('.')[1]);
const minor = parseInt(nextVersion.split('.')[1]);
for (let i = currentMinor + 1; i < minor; i++) {
wcrVersions.push(`~${currentMajor}.${i}.0`);
}
Expand Down Expand Up @@ -99,10 +104,7 @@ export function VersionTable() {
)}
{currentMajor === 2 && (
<tr>
<td>
{lastEntry ? '>= ' : ''}
{wcrVersions.join(', ')}
</td>
<td>{wcrVersions.join(', ')}</td>
<td>~{wcVersion}</td>
</tr>
)}
Expand Down
3 changes: 2 additions & 1 deletion config/version-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
"1.24.0": "1.27.0",
"2.1.2": "2.0.0",
"2.2.0": "2.1.0",
"2.3.0": "2.2.0"
"2.3.0": "2.2.0",
"2.4.0": "2.4.0"
}
Loading