Skip to content

Commit 54f607b

Browse files
feat(v5): Update to import pf v5 alphas and release a v5 alpha (#32)
* feat(v5): Update to import pf v5 alphas and release a v5 alpha * chore(CI): Support v5 releasing
1 parent bcdeec6 commit 54f607b

File tree

16 files changed

+1181
-2665
lines changed

16 files changed

+1181
-2665
lines changed

.github/workflows/check-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request:
44
branches:
55
- main
6+
- v4
67
jobs:
78
call-build-lint-test-workflow:
89
uses: ./.github/workflows/build-lint-test.yml

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- v4
67
jobs:
78
call-build-lint-test-workflow:
89
uses: ./.github/workflows/build-lint-test.yml

jest.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ module.exports = {
1010
transform: {
1111
'^.+\\.[jt]sx?$': 'babel-jest'
1212
},
13-
transformIgnorePatterns: ['node_modules/(?!@novnc)'],
13+
transformIgnorePatterns: ['node_modules/(?!@novnc|@patternfly)'],
1414
setupFilesAfterEnv: ['<rootDir>/testSetup.ts'],
1515
moduleNameMapper: {
1616
'\\.(css|less)$': '<rootDir>/styleMock.js'
1717
},
18-
testEnvironment: 'jsdom'
18+
testEnvironment: 'jsdom',
19+
dryRun: true
1920
};

packages/module/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patternfly/react-console",
3-
"version": "4.93.38",
3+
"version": "5.0.0-alpha.0",
44
"description": "This package provides VncConsole, SerialConsole and DesktopViewer React components to be used alongside patternfly-react to access virtual machine or server consoles.",
55
"main": "dist/esm/index.js",
66
"module": "dist/esm/index.js",
@@ -29,12 +29,13 @@
2929
},
3030
"homepage": "https://github.com/patternfly/react-console/#readme",
3131
"publishConfig": {
32-
"access": "public"
32+
"access": "public",
33+
"tag": "alpha"
3334
},
3435
"dependencies": {
3536
"@novnc/novnc": "^1.3.0",
36-
"@patternfly/react-core": "^4.276.6",
37-
"@patternfly/react-styles": "^4.92.6",
37+
"@patternfly/react-core": "^5.0.0-alpha.50",
38+
"@patternfly/react-styles": "^5.0.0-alpha.5",
3839
"@spice-project/spice-html5": "^0.2.1",
3940
"file-saver": "^1.3.8",
4041
"xterm": "^4.8.1",
@@ -45,10 +46,10 @@
4546
"react-dom": "^16.8 || ^17 || ^18"
4647
},
4748
"devDependencies": {
48-
"@patternfly/documentation-framework": "^1.8.1",
49-
"@patternfly/patternfly": "^4.224.2",
50-
"@patternfly/react-table": "^4.112.39",
51-
"@patternfly/react-code-editor": "^4.82.113",
49+
"@patternfly/documentation-framework": "^2.0.0-alpha.12",
50+
"@patternfly/patternfly": "^5.0.0-alpha.37",
51+
"@patternfly/react-table": "^5.0.0-alpha.51",
52+
"@patternfly/react-code-editor": "^5.0.0-alpha.51",
5253
"rimraf": "^2.6.2",
5354
"@patternfly/patternfly-a11y": "^4.3.1",
5455
"serve": "^14.1.2"

packages/module/patternfly-docs/generated/extensions/react-console/react.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const pageData = {
1414
"section": "extensions",
1515
"subsection": "",
1616
"source": "react",
17-
"tabName": null,
1817
"slug": "/extensions/react-console/react",
1918
"sourceLink": "https://github.com/patternfly/react-console",
2019
"relPath": "packages/module/patternfly-docs/content/extensions/react-console/examples/ReactConsole.md",

packages/module/patternfly-docs/generated/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
section: "extensions",
88
subsection: "",
99
source: "react",
10-
tabName: null,
1110
Component: () => import(/* webpackChunkName: "extensions/react-console/react/index" */ './extensions/react-console/react')
1211
}
1312
};

packages/module/release.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
module.exports = {
3-
branches: [{ name: 'main', channel: 'prerelease' }],
3+
branches: [
4+
{ name: 'v4', channel: 'prerelease' },
5+
{ name: 'main', channel: 'alpha', prerelease: 'alpha' }
6+
],
47
analyzeCommits: {
58
preset: 'angular'
69
},
@@ -10,5 +13,6 @@ module.exports = {
1013
'@semantic-release/github',
1114
'@semantic-release/npm'
1215
],
13-
tagFormat: 'v${version}'
16+
tagFormat: 'v${version}',
17+
dryRun: true
1418
};

packages/module/src/components/AccessConsoles/AccessConsoles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const AccessConsoles: React.FunctionComponent<AccessConsolesProps> = ({
6969
}
7070
});
7171

72-
const onToggle = (isOpen: boolean) => {
72+
const onToggle = (_event: any, isOpen: boolean) => {
7373
setIsOpen(isOpen);
7474
};
7575

packages/module/src/components/AccessConsoles/__snapshots__/AccessConsoles.test.tsx.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,22 @@ exports[`AccessConsoles with preselected SerialConsole 1`] = `
129129
<div
130130
class="pf-c-empty-state__icon"
131131
>
132-
<span
132+
<svg
133+
aria-hidden="false"
133134
aria-label="Contents"
134135
aria-valuetext="Loading..."
135136
class="pf-c-spinner pf-m-xl"
136137
role="progressbar"
138+
viewBox="0 0 100 100"
137139
>
138-
<span
139-
class="pf-c-spinner__clipper"
140-
/>
141-
<span
142-
class="pf-c-spinner__lead-ball"
140+
<circle
141+
class="pf-c-spinner__path"
142+
cx="50"
143+
cy="50"
144+
fill="none"
145+
r="45"
143146
/>
144-
<span
145-
class="pf-c-spinner__tail-ball"
146-
/>
147-
</span>
147+
</svg>
148148
</div>
149149
<div
150150
class="pf-c-empty-state__body"

packages/module/src/components/SerialConsole/SerialConsole.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const SerialConsoleBase: React.FunctionComponent<SerialConsoleProps> = ({
117117
default:
118118
terminal = (
119119
<EmptyState>
120-
<EmptyStateIcon variant="container" component={Spinner} />
120+
<EmptyStateIcon icon={Spinner} />
121121
<EmptyStateBody>{textLoading}</EmptyStateBody>
122122
</EmptyState>
123123
);

0 commit comments

Comments
 (0)