Skip to content

Commit 8e7be0e

Browse files
authored
dev: Node 22 LTS (#3507)
1 parent b4e0043 commit 8e7be0e

File tree

7 files changed

+21
-12
lines changed

7 files changed

+21
-12
lines changed

.nvmrc

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

.storybook/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import '../src/globals.css'
33

4-
const Layout = ({ children }) => {
4+
const Layout: React.FC<React.PropsWithChildren> = ({ children }) => {
55
return <div className="text-sm text-ds-primary-base">{children}</div>
66
}
77

.storybook/preview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export const parameters = {
1111

1212
const queryClient = new QueryClient()
1313

14-
const localStorageResetDecorator = (Story) => {
14+
const localStorageResetDecorator = (Story: React.FC) => {
1515
window.localStorage.clear()
1616
return <Story />
1717
}
1818

1919
export const decorators = [
2020
localStorageResetDecorator,
21-
(Story) => (
21+
(Story: React.FC) => (
2222
<QueryClientProvider client={queryClient}>
2323
<Layout>
2424
<Story />

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN gpg --verify linux/codecov.SHA256SUM.sig linux/codecov.SHA256SUM
3535

3636
COPY docker/index.html /tmp/uploader
3737

38-
FROM node:20-alpine3.17 as build
38+
FROM node:22-alpine3.20 as build
3939
ARG REACT_APP_ENV_ARG
4040
ARG REACT_APP_CODECOV_VERSION
4141
ENV REACT_APP_ENV=$REACT_APP_ENV_ARG

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"@types/eslint-plugin-jsx-a11y": "^6.9.0",
121121
"@types/js-cookie": "3.0.6",
122122
"@types/lodash": "4.17.6",
123-
"@types/node": "^20.5.7",
123+
"@types/node": "^22.9.0",
124124
"@types/prismjs": "^1.26.4",
125125
"@types/prop-types": "15.7.12",
126126
"@types/qs": "6.9.15",
@@ -170,13 +170,13 @@
170170
"vitest": "^2.1.3"
171171
},
172172
"engines": {
173-
"node": ">=20.10.0"
173+
"node": ">=22.11.0"
174174
},
175175
"msw": {
176176
"workerDirectory": "public"
177177
},
178178
"volta": {
179-
"node": "20.15.1",
179+
"node": "22.11.0",
180180
"yarn": "4.5.0"
181181
},
182182
"resolutions": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"types": ["./src/types"]
3434
}
3535
},
36-
"include": ["src"],
36+
"include": ["src", ".storybook/**/*"],
3737
"exclude": ["node_modules", "dist", "public"]
3838
}

yarn.lock

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6609,7 +6609,7 @@ __metadata:
66096609
languageName: node
66106610
linkType: hard
66116611

6612-
"@types/node@npm:*, @types/node@npm:^20.5.7":
6612+
"@types/node@npm:*":
66136613
version: 20.14.10
66146614
resolution: "@types/node@npm:20.14.10"
66156615
dependencies:
@@ -6645,6 +6645,15 @@ __metadata:
66456645
languageName: node
66466646
linkType: hard
66476647

6648+
"@types/node@npm:^22.9.0":
6649+
version: 22.9.0
6650+
resolution: "@types/node@npm:22.9.0"
6651+
dependencies:
6652+
undici-types: "npm:~6.19.8"
6653+
checksum: 10c0/3f46cbe0a49bab4ba30494025e4c8a6e699b98ac922857aa1f0209ce11a1313ee46e6808b8f13fe5b8b960a9d7796b77c8d542ad4e9810e85ef897d5593b5d51
6654+
languageName: node
6655+
linkType: hard
6656+
66486657
"@types/parse-json@npm:^4.0.0":
66496658
version: 4.0.2
66506659
resolution: "@types/parse-json@npm:4.0.2"
@@ -10361,7 +10370,7 @@ __metadata:
1036110370
"@types/eslint-plugin-jsx-a11y": "npm:^6.9.0"
1036210371
"@types/js-cookie": "npm:3.0.6"
1036310372
"@types/lodash": "npm:4.17.6"
10364-
"@types/node": "npm:^20.5.7"
10373+
"@types/node": "npm:^22.9.0"
1036510374
"@types/prismjs": "npm:^1.26.4"
1036610375
"@types/prop-types": "npm:15.7.12"
1036710376
"@types/qs": "npm:6.9.15"
@@ -16342,7 +16351,7 @@ __metadata:
1634216351
languageName: node
1634316352
linkType: hard
1634416353

16345-
"undici-types@npm:~6.19.2":
16354+
"undici-types@npm:~6.19.2, undici-types@npm:~6.19.8":
1634616355
version: 6.19.8
1634716356
resolution: "undici-types@npm:6.19.8"
1634816357
checksum: 10c0/078afa5990fba110f6824823ace86073b4638f1d5112ee26e790155f481f2a868cc3e0615505b6f4282bdf74a3d8caad715fd809e870c2bb0704e3ea6082f344

0 commit comments

Comments
 (0)