fix: CVE-2023-45133 (#7988)

* Upgrade @babel/* versions to 7.24 to ensure non-vulnerable Babel versions
* Pinning React version to 18.2.0 exactly, avoiding test-utils type version clashes
* Fix warning message on yarn start
* Moving react to peer dependencies
* Moving app dependencies from workspace into app
* Bump vitest to 1.6.0 to fix history.test.tsx breaking

---------

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Márk Tolmács 2024-08-02 14:44:38 +02:00 committed by GitHub
parent 84d89b9a8a
commit c641860cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 2496 additions and 2735 deletions

View file

@ -23,8 +23,8 @@
"clsx": "^1.2.1", "clsx": "^1.2.1",
"docusaurus-plugin-sass": "0.2.3", "docusaurus-plugin-sass": "0.2.3",
"prism-react-renderer": "^1.3.5", "prism-react-renderer": "^1.3.5",
"react": "^17.0.2", "react": "18.2.0",
"react-dom": "^17.0.2", "react-dom": "18.2.0",
"sass": "1.57.1" "sass": "1.57.1"
}, },
"devDependencies": { "devDependencies": {

View file

@ -13,13 +13,13 @@
"dependencies": { "dependencies": {
"@excalidraw/excalidraw": "*", "@excalidraw/excalidraw": "*",
"next": "14.1", "next": "14.1",
"react": "^18", "react": "18.2.0",
"react-dom": "^18" "react-dom": "18.2.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20", "@types/node": "^20",
"@types/react": "^18", "@types/react": "18.2.0",
"@types/react-dom": "^18", "@types/react-dom": "18.2.0",
"path2d-polyfill": "2.0.1", "path2d-polyfill": "2.0.1",
"typescript": "^5" "typescript": "^5"
} }

View file

@ -26,7 +26,17 @@
"node": ">=18.0.0" "node": ">=18.0.0"
}, },
"dependencies": { "dependencies": {
"vite-plugin-html": "3.2.2" "firebase": "8.3.3",
"idb-keyval": "6.0.3",
"jotai": "1.13.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"vite-plugin-html": "3.2.2",
"@excalidraw/random-username": "1.0.0",
"@sentry/browser": "6.2.5",
"@sentry/integrations": "6.2.5",
"i18next-browser-languagedetector": "6.1.4",
"socket.io-client": "4.7.2"
}, },
"prettier": "@excalidraw/prettier-config", "prettier": "@excalidraw/prettier-config",
"scripts": { "scripts": {

View file

@ -9,19 +9,8 @@
"examples/excalidraw", "examples/excalidraw",
"examples/excalidraw/*" "examples/excalidraw/*"
], ],
"dependencies": {
"@excalidraw/random-username": "1.0.0",
"@sentry/browser": "6.2.5",
"@sentry/integrations": "6.2.5",
"firebase": "8.3.3",
"i18next-browser-languagedetector": "6.1.4",
"idb-keyval": "6.0.3",
"jotai": "1.13.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"socket.io-client": "4.7.2"
},
"devDependencies": { "devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
"@excalidraw/eslint-config": "1.0.3", "@excalidraw/eslint-config": "1.0.3",
"@excalidraw/prettier-config": "1.0.2", "@excalidraw/prettier-config": "1.0.2",
"@types/chai": "4.3.0", "@types/chai": "4.3.0",
@ -51,7 +40,7 @@
"vite-plugin-ejs": "1.7.0", "vite-plugin-ejs": "1.7.0",
"vite-plugin-pwa": "0.17.4", "vite-plugin-pwa": "0.17.4",
"vite-plugin-svgr": "2.4.0", "vite-plugin-svgr": "2.4.0",
"vitest": "1.5.3", "vitest": "1.6.0",
"vitest-canvas-mock": "0.3.2" "vitest-canvas-mock": "0.3.2"
}, },
"engines": { "engines": {
@ -88,5 +77,8 @@
"prerelease:excalidraw": "node scripts/prerelease.js", "prerelease:excalidraw": "node scripts/prerelease.js",
"build:preview": "yarn build && vite preview --port 5000", "build:preview": "yarn build && vite preview --port 5000",
"release:excalidraw": "node scripts/release.js" "release:excalidraw": "node scripts/release.js"
},
"resolutions": {
"@types/react": "18.2.0"
} }
} }

View file

@ -87,14 +87,14 @@
"tunnel-rat": "0.1.2" "tunnel-rat": "0.1.2"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.18.9", "@babel/core": "7.24.5",
"@babel/plugin-transform-arrow-functions": "7.18.6", "@babel/plugin-transform-arrow-functions": "7.24.1",
"@babel/plugin-transform-async-to-generator": "7.18.6", "@babel/plugin-transform-async-to-generator": "7.24.1",
"@babel/plugin-transform-runtime": "7.18.9", "@babel/plugin-transform-runtime": "7.24.3",
"@babel/plugin-transform-typescript": "7.18.8", "@babel/plugin-transform-typescript": "7.24.5",
"@babel/preset-env": "7.18.6", "@babel/preset-env": "7.24.5",
"@babel/preset-react": "7.18.6", "@babel/preset-react": "7.24.1",
"@babel/preset-typescript": "7.18.6", "@babel/preset-typescript": "7.24.1",
"@size-limit/preset-big-lib": "9.0.0", "@size-limit/preset-big-lib": "9.0.0",
"@testing-library/jest-dom": "5.16.2", "@testing-library/jest-dom": "5.16.2",
"@testing-library/react": "12.1.5", "@testing-library/react": "12.1.5",
@ -115,8 +115,6 @@
"import-meta-loader": "1.1.0", "import-meta-loader": "1.1.0",
"mini-css-extract-plugin": "2.6.1", "mini-css-extract-plugin": "2.6.1",
"postcss-loader": "7.0.1", "postcss-loader": "7.0.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"sass-loader": "13.0.2", "sass-loader": "13.0.2",
"size-limit": "9.0.0", "size-limit": "9.0.0",
"style-loader": "3.3.3", "style-loader": "3.3.3",

View file

@ -55,13 +55,13 @@
"roughjs": "4.6.4" "roughjs": "4.6.4"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.18.9", "@babel/core": "7.24.5",
"@babel/plugin-transform-arrow-functions": "7.18.6", "@babel/plugin-transform-arrow-functions": "7.24.1",
"@babel/plugin-transform-async-to-generator": "7.18.6", "@babel/plugin-transform-async-to-generator": "7.24.1",
"@babel/plugin-transform-runtime": "7.18.6", "@babel/plugin-transform-runtime": "7.24.3",
"@babel/plugin-transform-typescript": "7.18.8", "@babel/plugin-transform-typescript": "7.24.5",
"@babel/preset-env": "7.18.9", "@babel/preset-env": "7.24.5",
"@babel/preset-typescript": "7.18.6", "@babel/preset-typescript": "7.24.1",
"babel-loader": "8.2.5", "babel-loader": "8.2.5",
"babel-plugin-transform-class-properties": "6.24.1", "babel-plugin-transform-class-properties": "6.24.1",
"cross-env": "7.0.3", "cross-env": "7.0.3",

5157
yarn.lock

File diff suppressed because it is too large Load diff