Skip to content

Commit e665efb

Browse files
committed
upgrade node pnpm react biome versions
1 parent f4fa981 commit e665efb

File tree

15 files changed

+2796
-6285
lines changed

15 files changed

+2796
-6285
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ runs:
1515
name: Install pnpm
1616
id: pnpm-install
1717
with:
18-
version: 9
18+
version: 10
1919
run_install: ${{ inputs.run_install }}
2020

2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: 20
23+
node-version: 22
2424
registry-url: https://npm.pkg.github.com
2525
scope: '@hivemq'
2626
cache: 'pnpm'

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v22

.storybook/hiveMQTheme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { create } from "@storybook/theming/create";
1+
import { create } from "storybook/theming/create";
22

33
export default create({
44
base: "dark",

.storybook/main.ts

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,22 @@ import type { StorybookConfig } from "@storybook/react-vite";
22

33
const config: StorybookConfig = {
44
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5+
56
addons: [
67
"@storybook/addon-a11y",
78
"@storybook/addon-links",
8-
"@storybook/addon-essentials",
99
"@storybook/addon-onboarding",
10-
"@storybook/addon-interactions",
11-
{
12-
name: "@storybook/addon-styling",
13-
options: {
14-
// Check out https://github.com/storybookjs/addon-styling/blob/main/docs/api.md
15-
// For more details on this addon's options.
16-
postCss: {
17-
implementation: require.resolve("postcss"),
18-
},
19-
},
20-
},
10+
'@storybook/addon-themes',
11+
"@storybook/addon-docs"
2112
],
22-
features: {
23-
storyStoreV7: true,
24-
},
13+
14+
// features: {
15+
// storyStoreV7: true,
16+
// },
17+
2518
framework: {
2619
name: "@storybook/react-vite",
2720
options: {},
28-
},
29-
docs: {
30-
autodocs: "tag",
31-
},
21+
}
3222
};
3323
export default config;

.storybook/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/manager-api';
1+
import { addons } from 'storybook/manager-api';
22
import hiveMQTheme from './hiveMQTheme';
33

44
addons.setConfig({

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ChakraProvider } from '@chakra-ui/react'
2-
import type { Preview } from '@storybook/react'
2+
import type { Preview } from '@storybook/react-vite'
33
import './styles.css'
44
import type { PropsWithChildren } from 'react'
55
import { system as theme } from './theme'

biome.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
33
"files": {
4-
"ignore": ["**/__generated__/*"]
4+
"includes": [
5+
"**",
6+
"!**/__generated__/**/*",
7+
"!**/theme/dist"
8+
]
59
},
610
"linter": {
711
"enabled": true,
812
"rules": {
913
"style": {
1014
"useBlockStatements": "error",
11-
"useShorthandArrayType": "error",
12-
"noShoutyConstants": "warn"
15+
"noShoutyConstants": "warn",
16+
"useConsistentArrayType": {
17+
"level": "error",
18+
"options": {
19+
"syntax": "shorthand"
20+
}
21+
}
1322
}
1423
}
1524
},

package.json

Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hivemq/ui-library",
3-
"version": "2.0.0-rc.6",
3+
"version": "2.0.0-rc.7",
44
"type": "module",
55
"main": "./dist/index.es.js",
66
"types": "./dist/index.d.ts",
@@ -9,10 +9,12 @@
99
"module": "./dist/index.es.js"
1010
},
1111
"license": "Apache-2.0",
12-
"files": ["dist"],
12+
"files": [
13+
"dist"
14+
],
1315
"engines": {
14-
"node": "20",
15-
"pnpm": "9"
16+
"node": "22",
17+
"pnpm": "10"
1618
},
1719
"scripts": {
1820
"build": "pnpm build:types && pnpm build:lib",
@@ -37,48 +39,42 @@
3739
"storybook:build": "BUILD_ENV='storybook' storybook build"
3840
},
3941
"devDependencies": {
40-
"@biomejs/biome": "^2.2.4",
41-
"@chakra-ui/cli": "^3.26.0",
42-
"@chakra-ui/react": "^3.26.0",
42+
"@biomejs/biome": "^2.2.6",
43+
"@chakra-ui/cli": "^3.27.1",
44+
"@chakra-ui/react": "^3.27.1",
4345
"@emotion/react": "^11.14.0",
44-
"@fontsource/raleway": "^5.2.6",
45-
"@fontsource/roboto": "^5.2.6",
46-
"@hivemq/ui-theme": "1.0.0-rc.4",
46+
"@fontsource/raleway": "^5.2.8",
47+
"@fontsource/roboto": "^5.2.8",
48+
"@hivemq/ui-theme": "1.0.0-rc.5",
4749
"@radix-ui/react-slot": "^1.2.3",
48-
"@storybook/addon-a11y": "^8.6.14",
49-
"@storybook/addon-essentials": "^8.6.14",
50-
"@storybook/addon-interactions": "^8.6.14",
51-
"@storybook/addon-links": "^8.6.14",
52-
"@storybook/addon-onboarding": "^8.6.14",
53-
"@storybook/addon-styling": "^1.3.7",
54-
"@storybook/blocks": "^8.6.14",
55-
"@storybook/manager-api": "^8.6.14",
56-
"@storybook/react": "^8.6.14",
57-
"@storybook/react-vite": "^8.6.14",
58-
"@storybook/testing-library": "^0.2.2",
59-
"@storybook/theming": "^8.6.14",
60-
"@types/node": "^24.3.1",
61-
"@types/react": "^18.3.16",
62-
"@types/react-dom": "^18.3.5",
63-
"@vitejs/plugin-react": "^5.0.2",
50+
"@storybook/addon-a11y": "^9.1.12",
51+
"@storybook/addon-docs": "^9.1.12",
52+
"@storybook/addon-links": "^9.1.12",
53+
"@storybook/addon-onboarding": "^9.1.12",
54+
"@storybook/addon-themes": "^9.1.12",
55+
"@storybook/react-vite": "^9.1.12",
56+
"@types/node": "^24.8.1",
57+
"@types/react": "^19.2.2",
58+
"@types/react-dom": "^19.2.2",
59+
"@vitejs/plugin-react": "^5.0.4",
6460
"@vitest/coverage-v8": "^3.2.4",
6561
"autoprefixer": "^10.4.21",
66-
"lucide-react": "^0.544.0",
62+
"lucide-react": "^0.546.0",
6763
"postcss": "^8.5.6",
68-
"react": "^18.3.1",
69-
"react-dom": "^18.3.1",
70-
"storybook": "^8.6.14",
71-
"tailwindcss": "^4.1.13",
72-
"typescript": "^5.9.2",
73-
"vite": "^6.2.2",
74-
"vite-plugin-static-copy": "^2.3.0",
64+
"react": "^19.2.0",
65+
"react-dom": "^19.2.0",
66+
"storybook": "^9.1.12",
67+
"tailwindcss": "^4.1.14",
68+
"typescript": "^5.9.3",
69+
"vite": "^7.1.10",
7570
"vite-plugin-dts": "^4.5.4",
71+
"vite-plugin-static-copy": "^3.1.4",
7672
"vitest": "^3.2.4"
7773
},
7874
"peerDependencies": {
79-
"@chakra-ui/react": "^3.14.2",
75+
"@chakra-ui/react": "^3.27.1",
8076
"@emotion/react": "^11.14.0",
81-
"react": ">=18.3.1",
82-
"react-dom": ">=18.3.1"
77+
"react": ">=19.2.0",
78+
"react-dom": ">=19.2.0"
8379
}
8480
}

0 commit comments

Comments
 (0)