chore: update @types/node and fix vite warning (#14403)

This commit is contained in:
Kayla Washburn-Love
2024-08-22 16:44:14 -06:00
committed by GitHub
parent b0084e2229
commit 5710a98714
6 changed files with 190 additions and 190 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
},
"devDependencies": {
"@types/lodash": "4.14.196",
"@types/node": "18.19.0",
"@types/node": "20.14.8",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"eslint": "8.57.0",
+5 -5
View File
@@ -55,8 +55,8 @@ importers:
specifier: 4.14.196
version: 4.14.196
'@types/node':
specifier: 18.19.0
version: 18.19.0
specifier: 20.14.8
version: 20.14.8
'@types/react':
specifier: 18.3.3
version: 18.3.3
@@ -789,8 +789,8 @@ packages:
'@types/ms@0.7.34':
resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}
'@types/node@18.19.0':
resolution: {integrity: sha512-667KNhaD7U29mT5wf+TZUnrzPrlL2GNQ5N0BMjO2oNULhBxX0/FKCkm6JMu0Jh7Z+1LwUlR21ekd7KhIboNFNw==}
'@types/node@20.14.8':
resolution: {integrity: sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==}
'@types/parse-json@4.0.0':
resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==}
@@ -3551,7 +3551,7 @@ snapshots:
'@types/ms@0.7.34': {}
'@types/node@18.19.0':
'@types/node@20.14.8':
dependencies:
undici-types: 5.26.5
+1 -1
View File
@@ -127,7 +127,7 @@
"@types/file-saver": "2.0.7",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.6",
"@types/node": "18.19.0",
"@types/node": "20.14.8",
"@types/react": "18.2.6",
"@types/react-color": "3.0.6",
"@types/react-date-range": "1.4.4",
+86 -86
View File
@@ -231,7 +231,7 @@ importers:
version: 8.1.11(@types/react-dom@18.2.4)(@types/react@18.2.6)(prettier@3.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@storybook/addon-interactions':
specifier: 8.1.11
version: 8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))
version: 8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))
'@storybook/addon-links':
specifier: 8.1.11
version: 8.1.11(react@18.3.1)
@@ -249,10 +249,10 @@ importers:
version: 8.1.11(prettier@3.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.4)
'@storybook/react-vite':
specifier: 8.1.11
version: 8.1.11(prettier@3.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.20.0)(typescript@5.5.4)(vite@5.4.1(@types/node@18.19.0))
version: 8.1.11(prettier@3.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.20.0)(typescript@5.5.4)(vite@5.4.1(@types/node@20.14.8))
'@storybook/test':
specifier: 8.1.11
version: 8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))
version: 8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))
'@swc/core':
specifier: 1.3.38
version: 1.3.38
@@ -261,7 +261,7 @@ importers:
version: 0.2.24(@swc/core@1.3.38)
'@testing-library/jest-dom':
specifier: 6.4.6
version: 6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))
version: 6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))
'@testing-library/react':
specifier: 14.1.0
version: 14.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -290,8 +290,8 @@ importers:
specifier: 4.17.6
version: 4.17.6
'@types/node':
specifier: 18.19.0
version: 18.19.0
specifier: 20.14.8
version: 20.14.8
'@types/react':
specifier: 18.2.6
version: 18.2.6
@@ -327,7 +327,7 @@ importers:
version: 9.0.2
'@vitejs/plugin-react':
specifier: 4.3.1
version: 4.3.1(vite@5.4.1(@types/node@18.19.0))
version: 4.3.1(vite@5.4.1(@types/node@20.14.8))
chromatic:
specifier: 11.3.0
version: 11.3.0
@@ -339,7 +339,7 @@ importers:
version: 4.19.2
jest:
specifier: 29.7.0
version: 29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
version: 29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
jest-canvas-mock:
specifier: 2.5.2
version: 2.5.2
@@ -381,7 +381,7 @@ importers:
version: 0.6.0(react-dom@18.3.1(react@18.3.1))
ts-node:
specifier: 10.9.1
version: 10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)
version: 10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)
ts-proto:
specifier: 1.164.0
version: 1.164.0
@@ -393,10 +393,10 @@ importers:
version: 5.5.4
vite:
specifier: 5.4.1
version: 5.4.1(@types/node@18.19.0)
version: 5.4.1(@types/node@20.14.8)
vite-plugin-checker:
specifier: 0.7.2
version: 0.7.2(@biomejs/biome@1.8.3)(eslint@8.52.0)(optionator@0.9.3)(typescript@5.5.4)(vite@5.4.1(@types/node@18.19.0))
version: 0.7.2(@biomejs/biome@1.8.3)(eslint@8.52.0)(optionator@0.9.3)(typescript@5.5.4)(vite@5.4.1(@types/node@20.14.8))
vite-plugin-turbosnap:
specifier: 1.0.3
version: 1.0.3
@@ -2965,8 +2965,8 @@ packages:
'@types/node@18.19.0':
resolution: {integrity: sha512-667KNhaD7U29mT5wf+TZUnrzPrlL2GNQ5N0BMjO2oNULhBxX0/FKCkm6JMu0Jh7Z+1LwUlR21ekd7KhIboNFNw==}
'@types/node@20.14.15':
resolution: {integrity: sha512-Fz1xDMCF/B00/tYSVMlmK7hVeLh7jE5f3B7X1/hmV0MJBwE27KlS7EvD/Yp+z1lm8mVhwV5w+n8jOZG8AfTlKw==}
'@types/node@20.14.8':
resolution: {integrity: sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==}
'@types/normalize-package-data@2.4.3':
resolution: {integrity: sha512-ehPtgRgaULsFG8x0NeYJvmyH1hmlfsNLujHe9dQEia/7MAJYdzMSi19JtchUHjmBA6XC/75dK55mzZH+RyieSg==}
@@ -8510,7 +8510,7 @@ snapshots:
dependencies:
'@inquirer/type': 1.2.0
'@types/mute-stream': 0.0.4
'@types/node': 20.14.15
'@types/node': 20.14.8
'@types/wrap-ansi': 3.0.0
ansi-escapes: 4.3.2
chalk: 4.1.2
@@ -8549,27 +8549,27 @@ snapshots:
'@jest/console@29.7.0':
dependencies:
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
chalk: 4.1.2
jest-message-util: 29.7.0
jest-util: 29.7.0
slash: 3.0.0
'@jest/core@29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))':
'@jest/core@29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))':
dependencies:
'@jest/console': 29.7.0
'@jest/reporters': 29.7.0
'@jest/test-result': 29.7.0
'@jest/transform': 29.7.0
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
ansi-escapes: 4.3.2
chalk: 4.1.2
ci-info: 3.9.0
exit: 0.1.2
graceful-fs: 4.2.11
jest-changed-files: 29.7.0
jest-config: 29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
jest-config: 29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
jest-haste-map: 29.7.0
jest-message-util: 29.7.0
jest-regex-util: 29.6.3
@@ -8598,14 +8598,14 @@ snapshots:
dependencies:
'@jest/fake-timers': 29.6.2
'@jest/types': 29.6.1
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-mock: 29.6.2
'@jest/environment@29.7.0':
dependencies:
'@jest/fake-timers': 29.7.0
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-mock: 29.7.0
'@jest/expect-utils@29.7.0':
@@ -8623,7 +8623,7 @@ snapshots:
dependencies:
'@jest/types': 29.6.1
'@sinonjs/fake-timers': 10.3.0
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-message-util: 29.6.2
jest-mock: 29.6.2
jest-util: 29.6.2
@@ -8632,7 +8632,7 @@ snapshots:
dependencies:
'@jest/types': 29.6.3
'@sinonjs/fake-timers': 10.3.0
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-message-util: 29.7.0
jest-mock: 29.7.0
jest-util: 29.7.0
@@ -8654,7 +8654,7 @@ snapshots:
'@jest/transform': 29.7.0
'@jest/types': 29.6.3
'@jridgewell/trace-mapping': 0.3.25
'@types/node': 18.19.0
'@types/node': 20.14.8
chalk: 4.1.2
collect-v8-coverage: 1.0.2
exit: 0.1.2
@@ -8723,7 +8723,7 @@ snapshots:
dependencies:
'@types/istanbul-lib-coverage': 2.0.6
'@types/istanbul-reports': 3.0.4
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/yargs': 16.0.9
chalk: 4.1.2
@@ -8732,7 +8732,7 @@ snapshots:
'@jest/schemas': 29.6.3
'@types/istanbul-lib-coverage': 2.0.5
'@types/istanbul-reports': 3.0.3
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/yargs': 17.0.29
chalk: 4.1.2
@@ -8741,17 +8741,17 @@ snapshots:
'@jest/schemas': 29.6.3
'@types/istanbul-lib-coverage': 2.0.6
'@types/istanbul-reports': 3.0.4
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/yargs': 17.0.33
chalk: 4.1.2
'@joshwooding/vite-plugin-react-docgen-typescript@0.3.1(typescript@5.5.4)(vite@5.4.1(@types/node@18.19.0))':
'@joshwooding/vite-plugin-react-docgen-typescript@0.3.1(typescript@5.5.4)(vite@5.4.1(@types/node@20.14.8))':
dependencies:
glob: 7.2.3
glob-promise: 4.2.2(glob@7.2.3)
magic-string: 0.27.0
react-docgen-typescript: 2.2.2(typescript@5.5.4)
vite: 5.4.1(@types/node@18.19.0)
vite: 5.4.1(@types/node@20.14.8)
optionalDependencies:
typescript: 5.5.4
@@ -9328,11 +9328,11 @@ snapshots:
dependencies:
'@storybook/global': 5.0.0
'@storybook/addon-interactions@8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))':
'@storybook/addon-interactions@8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))':
dependencies:
'@storybook/global': 5.0.0
'@storybook/instrumenter': 8.1.11
'@storybook/test': 8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))
'@storybook/test': 8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))
'@storybook/types': 8.1.11
polished: 4.2.2
ts-dedent: 2.2.0
@@ -9474,7 +9474,7 @@ snapshots:
- prettier
- supports-color
'@storybook/builder-vite@8.1.11(prettier@3.3.3)(typescript@5.5.4)(vite@5.4.1(@types/node@18.19.0))':
'@storybook/builder-vite@8.1.11(prettier@3.3.3)(typescript@5.5.4)(vite@5.4.1(@types/node@20.14.8))':
dependencies:
'@storybook/channels': 8.1.11
'@storybook/client-logger': 8.1.11
@@ -9493,7 +9493,7 @@ snapshots:
fs-extra: 11.2.0
magic-string: 0.30.5
ts-dedent: 2.2.0
vite: 5.4.1(@types/node@18.19.0)
vite: 5.4.1(@types/node@20.14.8)
optionalDependencies:
typescript: 5.5.4
transitivePeerDependencies:
@@ -9823,11 +9823,11 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1(react@18.3.1)
'@storybook/react-vite@8.1.11(prettier@3.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.20.0)(typescript@5.5.4)(vite@5.4.1(@types/node@18.19.0))':
'@storybook/react-vite@8.1.11(prettier@3.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.20.0)(typescript@5.5.4)(vite@5.4.1(@types/node@20.14.8))':
dependencies:
'@joshwooding/vite-plugin-react-docgen-typescript': 0.3.1(typescript@5.5.4)(vite@5.4.1(@types/node@18.19.0))
'@joshwooding/vite-plugin-react-docgen-typescript': 0.3.1(typescript@5.5.4)(vite@5.4.1(@types/node@20.14.8))
'@rollup/pluginutils': 5.0.5(rollup@4.20.0)
'@storybook/builder-vite': 8.1.11(prettier@3.3.3)(typescript@5.5.4)(vite@5.4.1(@types/node@18.19.0))
'@storybook/builder-vite': 8.1.11(prettier@3.3.3)(typescript@5.5.4)(vite@5.4.1(@types/node@20.14.8))
'@storybook/node-logger': 8.1.11
'@storybook/react': 8.1.11(prettier@3.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.4)
'@storybook/types': 8.1.11
@@ -9838,7 +9838,7 @@ snapshots:
react-dom: 18.3.1(react@18.3.1)
resolve: 1.22.8
tsconfig-paths: 4.2.0
vite: 5.4.1(@types/node@18.19.0)
vite: 5.4.1(@types/node@20.14.8)
transitivePeerDependencies:
- '@preact/preset-vite'
- encoding
@@ -9916,14 +9916,14 @@ snapshots:
- prettier
- supports-color
'@storybook/test@8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))':
'@storybook/test@8.1.11(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))':
dependencies:
'@storybook/client-logger': 8.1.11
'@storybook/core-events': 8.1.11
'@storybook/instrumenter': 8.1.11
'@storybook/preview-api': 8.1.11
'@testing-library/dom': 10.1.0
'@testing-library/jest-dom': 6.4.5(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))
'@testing-library/jest-dom': 6.4.5(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))
'@testing-library/user-event': 14.5.2(@testing-library/dom@10.1.0)
'@vitest/expect': 1.6.0
'@vitest/spy': 1.6.0
@@ -10054,7 +10054,7 @@ snapshots:
lz-string: 1.5.0
pretty-format: 27.5.1
'@testing-library/jest-dom@6.4.5(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))':
'@testing-library/jest-dom@6.4.5(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))':
dependencies:
'@adobe/css-tools': 4.3.2
'@babel/runtime': 7.25.4
@@ -10067,9 +10067,9 @@ snapshots:
optionalDependencies:
'@jest/globals': 29.7.0
'@types/jest': 29.5.12
jest: 29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
jest: 29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
'@testing-library/jest-dom@6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)))':
'@testing-library/jest-dom@6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)))':
dependencies:
'@adobe/css-tools': 4.4.0
'@babel/runtime': 7.24.7
@@ -10082,7 +10082,7 @@ snapshots:
optionalDependencies:
'@jest/globals': 29.7.0
'@types/jest': 29.5.12
jest: 29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
jest: 29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
'@testing-library/react-hooks@8.0.1(@types/react@18.2.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)':
dependencies:
@@ -10156,7 +10156,7 @@ snapshots:
'@types/body-parser@1.19.2':
dependencies:
'@types/connect': 3.4.35
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/chroma-js@2.4.0': {}
@@ -10168,13 +10168,13 @@ snapshots:
'@types/connect@3.4.35':
dependencies:
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/cookie@0.6.0': {}
'@types/cross-spawn@6.0.4':
dependencies:
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/debug@4.1.12':
dependencies:
@@ -10202,7 +10202,7 @@ snapshots:
'@types/express-serve-static-core@4.17.35':
dependencies:
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/qs': 6.9.7
'@types/range-parser': 1.2.4
'@types/send': 0.17.1
@@ -10221,11 +10221,11 @@ snapshots:
'@types/glob@7.2.0':
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/graceful-fs@4.1.9':
dependencies:
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/hast@2.3.8':
dependencies:
@@ -10271,7 +10271,7 @@ snapshots:
'@types/jsdom@20.0.1':
dependencies:
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/tough-cookie': 4.0.2
parse5: 7.1.2
@@ -10293,13 +10293,13 @@ snapshots:
'@types/mute-stream@0.0.4':
dependencies:
'@types/node': 20.14.15
'@types/node': 20.14.8
'@types/node@18.19.0':
dependencies:
undici-types: 5.26.5
'@types/node@20.14.15':
'@types/node@20.14.8':
dependencies:
undici-types: 5.26.5
@@ -10368,13 +10368,13 @@ snapshots:
'@types/send@0.17.1':
dependencies:
'@types/mime': 1.3.2
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/serve-static@1.15.2':
dependencies:
'@types/http-errors': 2.0.1
'@types/mime': 3.0.1
'@types/node': 18.19.0
'@types/node': 20.14.8
'@types/ssh2@1.15.0':
dependencies:
@@ -10420,14 +10420,14 @@ snapshots:
'@ungap/structured-clone@1.2.0': {}
'@vitejs/plugin-react@4.3.1(vite@5.4.1(@types/node@18.19.0))':
'@vitejs/plugin-react@4.3.1(vite@5.4.1(@types/node@20.14.8))':
dependencies:
'@babel/core': 7.24.7
'@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.7)
'@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.7)
'@types/babel__core': 7.20.5
react-refresh: 0.14.2
vite: 5.4.1(@types/node@18.19.0)
vite: 5.4.1(@types/node@20.14.8)
transitivePeerDependencies:
- supports-color
@@ -11065,13 +11065,13 @@ snapshots:
nan: 2.20.0
optional: true
create-jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)):
create-jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)):
dependencies:
'@jest/types': 29.6.3
chalk: 4.1.2
exit: 0.1.2
graceful-fs: 4.2.11
jest-config: 29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
jest-config: 29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
jest-util: 29.7.0
prompts: 2.4.2
transitivePeerDependencies:
@@ -12253,7 +12253,7 @@ snapshots:
'@jest/expect': 29.7.0
'@jest/test-result': 29.7.0
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
chalk: 4.1.2
co: 4.6.0
dedent: 1.5.3(babel-plugin-macros@3.1.0)
@@ -12273,16 +12273,16 @@ snapshots:
- babel-plugin-macros
- supports-color
jest-cli@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)):
jest-cli@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)):
dependencies:
'@jest/core': 29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
'@jest/core': 29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
'@jest/test-result': 29.7.0
'@jest/types': 29.6.3
chalk: 4.1.2
create-jest: 29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
create-jest: 29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
exit: 0.1.2
import-local: 3.2.0
jest-config: 29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
jest-config: 29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
jest-util: 29.7.0
jest-validate: 29.7.0
yargs: 17.7.2
@@ -12292,7 +12292,7 @@ snapshots:
- supports-color
- ts-node
jest-config@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)):
jest-config@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)):
dependencies:
'@babel/core': 7.25.2
'@jest/test-sequencer': 29.7.0
@@ -12317,8 +12317,8 @@ snapshots:
slash: 3.0.0
strip-json-comments: 3.1.1
optionalDependencies:
'@types/node': 18.19.0
ts-node: 10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)
'@types/node': 20.14.8
ts-node: 10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)
transitivePeerDependencies:
- babel-plugin-macros
- supports-color
@@ -12355,7 +12355,7 @@ snapshots:
'@jest/fake-timers': 29.6.2
'@jest/types': 29.6.1
'@types/jsdom': 20.0.1
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-mock: 29.6.2
jest-util: 29.6.2
jsdom: 20.0.3(canvas@3.0.0-rc2)
@@ -12371,7 +12371,7 @@ snapshots:
'@jest/environment': 29.7.0
'@jest/fake-timers': 29.7.0
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-mock: 29.7.0
jest-util: 29.7.0
@@ -12383,7 +12383,7 @@ snapshots:
dependencies:
'@jest/types': 29.6.3
'@types/graceful-fs': 4.1.9
'@types/node': 18.19.0
'@types/node': 20.14.8
anymatch: 3.1.3
fb-watchman: 2.0.2
graceful-fs: 4.2.11
@@ -12439,13 +12439,13 @@ snapshots:
jest-mock@29.6.2:
dependencies:
'@jest/types': 29.6.1
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-util: 29.6.2
jest-mock@29.7.0:
dependencies:
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-util: 29.7.0
jest-pnp-resolver@1.2.3(jest-resolve@29.7.0):
@@ -12480,7 +12480,7 @@ snapshots:
'@jest/test-result': 29.7.0
'@jest/transform': 29.7.0
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
chalk: 4.1.2
emittery: 0.13.1
graceful-fs: 4.2.11
@@ -12508,7 +12508,7 @@ snapshots:
'@jest/test-result': 29.7.0
'@jest/transform': 29.7.0
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
chalk: 4.1.2
cjs-module-lexer: 1.3.1
collect-v8-coverage: 1.0.2
@@ -12554,7 +12554,7 @@ snapshots:
jest-util@29.6.2:
dependencies:
'@jest/types': 29.6.1
'@types/node': 18.19.0
'@types/node': 20.14.8
chalk: 4.1.2
ci-info: 3.9.0
graceful-fs: 4.2.11
@@ -12563,7 +12563,7 @@ snapshots:
jest-util@29.7.0:
dependencies:
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
chalk: 4.1.2
ci-info: 3.9.0
graceful-fs: 4.2.11
@@ -12582,7 +12582,7 @@ snapshots:
dependencies:
'@jest/test-result': 29.7.0
'@jest/types': 29.6.3
'@types/node': 18.19.0
'@types/node': 20.14.8
ansi-escapes: 4.3.2
chalk: 4.1.2
emittery: 0.13.1
@@ -12596,17 +12596,17 @@ snapshots:
jest-worker@29.7.0:
dependencies:
'@types/node': 18.19.0
'@types/node': 20.14.8
jest-util: 29.7.0
merge-stream: 2.0.0
supports-color: 8.1.1
jest@29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4)):
jest@29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4)):
dependencies:
'@jest/core': 29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
'@jest/core': 29.7.0(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
'@jest/types': 29.6.3
import-local: 3.2.0
jest-cli: 29.7.0(@types/node@18.19.0)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4))
jest-cli: 29.7.0(@types/node@20.14.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4))
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
@@ -13571,7 +13571,7 @@ snapshots:
'@protobufjs/path': 1.1.2
'@protobufjs/pool': 1.1.0
'@protobufjs/utf8': 1.1.0
'@types/node': 18.19.0
'@types/node': 20.14.8
long: 5.2.3
proxy-addr@2.0.7:
@@ -14460,14 +14460,14 @@ snapshots:
'@ts-morph/common': 0.12.3
code-block-writer: 11.0.3
ts-node@10.9.1(@swc/core@1.3.38)(@types/node@18.19.0)(typescript@5.5.4):
ts-node@10.9.1(@swc/core@1.3.38)(@types/node@20.14.8)(typescript@5.5.4):
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.9
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
'@types/node': 18.19.0
'@types/node': 20.14.8
acorn: 8.10.0
acorn-walk: 8.2.0
arg: 4.1.3
@@ -14715,7 +14715,7 @@ snapshots:
unist-util-stringify-position: 4.0.0
vfile-message: 4.0.2
vite-plugin-checker@0.7.2(@biomejs/biome@1.8.3)(eslint@8.52.0)(optionator@0.9.3)(typescript@5.5.4)(vite@5.4.1(@types/node@18.19.0)):
vite-plugin-checker@0.7.2(@biomejs/biome@1.8.3)(eslint@8.52.0)(optionator@0.9.3)(typescript@5.5.4)(vite@5.4.1(@types/node@20.14.8)):
dependencies:
'@babel/code-frame': 7.24.7
ansi-escapes: 4.3.2
@@ -14727,7 +14727,7 @@ snapshots:
npm-run-path: 4.0.1
strip-ansi: 6.0.1
tiny-invariant: 1.3.3
vite: 5.4.1(@types/node@18.19.0)
vite: 5.4.1(@types/node@20.14.8)
vscode-languageclient: 7.0.0
vscode-languageserver: 7.0.0
vscode-languageserver-textdocument: 1.0.12
@@ -14740,13 +14740,13 @@ snapshots:
vite-plugin-turbosnap@1.0.3: {}
vite@5.4.1(@types/node@18.19.0):
vite@5.4.1(@types/node@20.14.8):
dependencies:
esbuild: 0.21.5
postcss: 8.4.41
rollup: 4.20.0
optionalDependencies:
'@types/node': 18.19.0
'@types/node': 20.14.8
fsevents: 2.3.3
vscode-jsonrpc@6.0.0: {}
+97
View File
@@ -0,0 +1,97 @@
import react from "@vitejs/plugin-react";
import * as path from "node:path";
import { visualizer } from "rollup-plugin-visualizer";
import { defineConfig, type PluginOption } from "vite";
import checker from "vite-plugin-checker";
const plugins: PluginOption[] = [
react(),
checker({
typescript: true,
}),
];
if (process.env.STATS !== undefined) {
plugins.push(
visualizer({
filename: "./stats/index.html",
}),
);
}
export default defineConfig({
plugins: plugins,
publicDir: path.resolve(__dirname, "./static"),
build: {
outDir: path.resolve(__dirname, "./out"),
// We need to keep the /bin folder and GITKEEP files
emptyOutDir: false,
// 'hidden' works like true except that the corresponding sourcemap comments in the bundled files are suppressed
sourcemap: "hidden",
},
define: {
"process.env": {
NODE_ENV: process.env.NODE_ENV,
STORYBOOK: process.env.STORYBOOK,
INSPECT_XSTATE: process.env.INSPECT_XSTATE,
},
},
server: {
host: "127.0.0.1",
port: process.env.PORT ? Number(process.env.PORT) : 8080,
headers: {
// This header corresponds to "src/api/api.ts"'s hardcoded FE token.
// This is the secret side of the CSRF double cookie submit method.
// This should be sent on **every** response from the webserver.
//
// This is required because in production, the Golang webserver generates
// this "Set-Cookie" header. The Vite webserver needs to replicate this
// behavior. Instead of implementing CSRF though, we just use static
// values for simplicity.
"Set-Cookie":
"csrf_token=JXm9hOUdZctWt0ZZGAy9xiS/gxMKYOThdxjjMnMUyn4=; Path=/; HttpOnly; SameSite=Lax",
},
proxy: {
"/api": {
ws: true,
changeOrigin: true,
target: process.env.CODER_HOST || "http://localhost:3000",
secure: process.env.NODE_ENV === "production",
configure: (proxy) => {
// Vite does not catch socket errors, and stops the webserver.
// As /logs endpoint can return HTTP 4xx status, we need to embrace
// Vite with a custom error handler to prevent from quitting.
proxy.on("proxyReqWs", (proxyReq, req, socket) => {
if (process.env.NODE_ENV === "development") {
proxyReq.setHeader(
"origin",
process.env.CODER_HOST || "http://localhost:3000",
);
}
socket.on("error", (error) => {
console.error(error);
});
});
},
},
"/swagger": {
target: process.env.CODER_HOST || "http://localhost:3000",
secure: process.env.NODE_ENV === "production",
},
},
},
resolve: {
alias: {
api: path.resolve(__dirname, "./src/api"),
components: path.resolve(__dirname, "./src/components"),
contexts: path.resolve(__dirname, "./src/contexts"),
hooks: path.resolve(__dirname, "./src/hooks"),
modules: path.resolve(__dirname, "./src/modules"),
pages: path.resolve(__dirname, "./src/pages"),
testHelpers: path.resolve(__dirname, "./src/testHelpers"),
theme: path.resolve(__dirname, "./src/theme"),
utils: path.resolve(__dirname, "./src/utils"),
},
},
});
-97
View File
@@ -1,97 +0,0 @@
import react from "@vitejs/plugin-react";
import path from "path";
import { visualizer } from "rollup-plugin-visualizer";
import { defineConfig, type PluginOption } from "vite";
import checker from "vite-plugin-checker";
const plugins: PluginOption[] = [
react(),
checker({
typescript: true,
}),
];
if (process.env.STATS !== undefined) {
plugins.push(
visualizer({
filename: "./stats/index.html",
}),
);
}
export default defineConfig({
plugins: plugins,
publicDir: path.resolve(__dirname, "./static"),
build: {
outDir: path.resolve(__dirname, "./out"),
// We need to keep the /bin folder and GITKEEP files
emptyOutDir: false,
// 'hidden' works like true except that the corresponding sourcemap comments in the bundled files are suppressed
sourcemap: "hidden",
},
define: {
"process.env": {
NODE_ENV: process.env.NODE_ENV,
STORYBOOK: process.env.STORYBOOK,
INSPECT_XSTATE: process.env.INSPECT_XSTATE,
},
},
server: {
host: "127.0.0.1",
port: process.env.PORT ? Number(process.env.PORT) : 8080,
headers: {
// This header corresponds to "src/api/api.ts"'s hardcoded FE token.
// This is the secret side of the CSRF double cookie submit method.
// This should be sent on **every** response from the webserver.
//
// This is required because in production, the Golang webserver generates
// this "Set-Cookie" header. The Vite webserver needs to replicate this
// behavior. Instead of implementing CSRF though, we just use static
// values for simplicity.
"Set-Cookie":
"csrf_token=JXm9hOUdZctWt0ZZGAy9xiS/gxMKYOThdxjjMnMUyn4=; Path=/; HttpOnly; SameSite=Lax",
},
proxy: {
"/api": {
ws: true,
changeOrigin: true,
target: process.env.CODER_HOST || "http://localhost:3000",
secure: process.env.NODE_ENV === "production",
configure: (proxy) => {
// Vite does not catch socket errors, and stops the webserver.
// As /logs endpoint can return HTTP 4xx status, we need to embrace
// Vite with a custom error handler to prevent from quitting.
proxy.on("proxyReqWs", (proxyReq, req, socket) => {
if (process.env.NODE_ENV === "development") {
proxyReq.setHeader(
"origin",
process.env.CODER_HOST || "http://localhost:3000",
);
}
socket.on("error", (error) => {
console.error(error);
});
});
},
},
"/swagger": {
target: process.env.CODER_HOST || "http://localhost:3000",
secure: process.env.NODE_ENV === "production",
},
},
},
resolve: {
alias: {
api: path.resolve(__dirname, "./src/api"),
components: path.resolve(__dirname, "./src/components"),
contexts: path.resolve(__dirname, "./src/contexts"),
hooks: path.resolve(__dirname, "./src/hooks"),
modules: path.resolve(__dirname, "./src/modules"),
pages: path.resolve(__dirname, "./src/pages"),
testHelpers: path.resolve(__dirname, "./src/testHelpers"),
theme: path.resolve(__dirname, "./src/theme"),
utils: path.resolve(__dirname, "./src/utils"),
},
},
});