Skip to content

Commit 8f35693

Browse files
chore(deps): upgrade squonk API clients, NodeJS and React
Client generator improved and this uses the new clients BREAKING CHANGE: Node v22 now minimum, pnpm v10 required Upgrade react to fix CVE-2025-55182
1 parent 0b6dec5 commit 8f35693

8 files changed

Lines changed: 646 additions & 534 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"image": "mcr.microsoft.com/devcontainers/javascript-node:3-20",
77
"features": {
88
"ghcr.io/devcontainers/features/node:1": {
9-
"version": "20.18.2",
9+
"version": "22.21.1",
1010
"nodeGypDependencies": true,
11-
"pnpmVersion": "10.9.0"
11+
"pnpmVersion": "10.24.0"
1212
}
1313
},
1414
// Use 'forwardPorts' to make a list of ports inside the container available locally.

.github/workflows/lint.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
uses: actions/checkout@v4
3030
- uses: pnpm/action-setup@v4.1.0
3131
with:
32-
version: 10.9.0
32+
version: 10.24.0
3333
run_install: false
3434
- name: Setup Node
3535
uses: actions/setup-node@v4
3636
with:
37-
node-version: 20
37+
node-version: 22
3838
cache: 'pnpm'
3939
- name: Install dependencies
4040
run: pnpm install
@@ -48,12 +48,12 @@ jobs:
4848
uses: actions/checkout@v4
4949
- uses: pnpm/action-setup@v4.1.0
5050
with:
51-
version: 10.9.0
51+
version: 10.24.0
5252
run_install: false
5353
- name: Setup Node
5454
uses: actions/setup-node@v4
5555
with:
56-
node-version: 20
56+
node-version: 22
5757
cache: 'pnpm'
5858
- name: Install dependencies
5959
run: pnpm install --frozen-lockfile

.github/workflows/nextjs_bundle_analysis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020

2121
- uses: pnpm/action-setup@v4.1.0
2222
with:
23-
version: 10.9.0
23+
version: 10.24.0
2424
run_install: false
2525
- name: Setup Node
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: 20
28+
node-version: 22
2929
cache: 'pnpm'
3030
- name: Install dependencies
3131
run: pnpm install

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949
uses: actions/checkout@v4
5050
- uses: pnpm/action-setup@v4.1.0
5151
with:
52-
version: 10.9.0
52+
version: 10.24.0
5353
run_install: false
5454
- name: Setup Node
5555
uses: actions/setup-node@v4
5656
with:
57-
node-version: 20
57+
node-version: 22
5858
cache: 'pnpm'
5959
- name: Install dependencies
6060
run: pnpm install
@@ -123,12 +123,12 @@ jobs:
123123
uses: actions/checkout@v4
124124
- uses: pnpm/action-setup@v4.1.0
125125
with:
126-
version: 10.9.0
126+
version: 10.24.0
127127
run_install: false
128128
- name: Setup Node
129129
uses: actions/setup-node@v4
130130
with:
131-
node-version: 20
131+
node-version: 22
132132
cache: 'pnpm'
133133
- name: Install dependencies
134134
run: pnpm install

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WORKDIR /app
88
COPY package.json pnpm-lock.yaml ./
99
COPY patches ./patches/
1010

11-
RUN npm i -g pnpm@10.9.0
11+
RUN npm i -g pnpm@10.24.0
1212
RUN pnpm fetch --prod
1313
RUN pnpm approve-builds
1414
# RUN pnpm fetch
@@ -33,7 +33,7 @@ ENV GIT_SHA=${GIT_SHA:-""}
3333
ARG BASE_PATH
3434
ENV BASE_PATH=${BASE_PATH}
3535

36-
# RUN npm i -g pnpm@10.9.0
36+
# RUN npm i -g pnpm@10.24.0
3737
RUN echo "GIT_SHA=${GIT_SHA}" && npm run build
3838

3939
# If using npm comment out above and use below instead

next.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ let nextConfig: NextConfig = {
4040
// Enable production source maps for Sentry error reporting
4141
productionBrowserSourceMaps: true,
4242
// Allow mdx content and mdx files as pages
43-
webpack(config, options) {
44-
if (options.isServer) {
45-
config.externals = ["@tanstack/react-query", ...config.externals];
46-
}
43+
webpack(config, _options) {
4744
if (MONOREPO_MODE) {
4845
const packages = ["react", "@mui/material", "@tanstack/react-query"];
4946
packages.forEach(

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"url": "https://github.com/InformaticsMatters/squonk2-data-manager-ui"
1010
},
1111
"engines": {
12-
"node": ">=20",
13-
"pnpm": ">=8"
12+
"node": ">=22",
13+
"pnpm": ">=10"
1414
},
1515
"scripts": {
1616
"prepare": "husky",
@@ -46,14 +46,14 @@
4646
"@mui/lab": "6.0.1-beta.34",
4747
"@mui/material": "6.4.11",
4848
"@mui/material-nextjs": "6.4.3",
49-
"@next/mdx": "15.3.2",
49+
"@next/mdx": "15.5.7",
5050
"@rjsf/core": "5.24.12",
5151
"@rjsf/mui": "5.24.12",
5252
"@rjsf/utils": "5.24.12",
5353
"@rjsf/validator-ajv8": "5.24.12",
5454
"@sentry/nextjs": "8.55.0",
55-
"@squonk/account-server-client": "4.4.0-4-4.2174353771",
56-
"@squonk/data-manager-client": "5.0.0-5-0.2173783690",
55+
"@squonk/account-server-client": "4.4.0-4-4.2199390673",
56+
"@squonk/data-manager-client": "5.0.0-5-0.2199565672",
5757
"@squonk/mui-theme": "5.0.0",
5858
"@squonk/sdf-parser": "1.3.1",
5959
"@tanstack/match-sorter-utils": "8.19.4",
@@ -62,7 +62,7 @@
6262
"@tanstack/react-query-devtools": "5.83.0",
6363
"@tanstack/react-table": "8.21.3",
6464
"@types/lodash-es": "4.17.12",
65-
"@types/node": "22.9.0",
65+
"@types/node": "22.19.1",
6666
"@types/plotly.js-basic-dist": "1.54.4",
6767
"@types/prismjs": "1.26.5",
6868
"@types/react": "19.1.8",
@@ -82,15 +82,15 @@
8282
"lodash-es": "4.17.21",
8383
"material-ui-popup-state": "5.3.6",
8484
"nanoid": "5.1.5",
85-
"next": "15.3.2",
85+
"next": "15.5.7",
8686
"next-http-proxy-middleware": "1.2.7",
8787
"nextjs-routes": "2.2.5",
8888
"node-fetch": "3.3.2",
8989
"notistack": "3.0.2",
9090
"plotly.js-basic-dist": "2.35.3",
9191
"prismjs": "1.30.0",
92-
"react": "19.1.0",
93-
"react-dom": "19.1.0",
92+
"react": "19.2.1",
93+
"react-dom": "19.2.1",
9494
"react-dropzone": "14.3.8",
9595
"react-plotly.js": "2.6.0",
9696
"react-use-websocket": "4.13.0",

0 commit comments

Comments
 (0)