From 7991d1c569629a6f458a4d5145a8df3f581bb27d Mon Sep 17 00:00:00 2001 From: Rairn <958414905@qq.com> Date: Sun, 25 Jun 2023 09:24:21 +0800 Subject: [PATCH] chore: upgrade types for react --- package.json | 8 ++++---- packages/plugins/mobile-client/package.json | 4 ++-- yarn.lock | 17 +++++++++-------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 0e405358ce..bf61d063af 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "run:example": "ts-node-dev -r dotenv/config -r tsconfig-paths/register ./examples/index.ts" }, "resolutions": { - "@types/react": "^17.0.0", - "@types/react-dom": "^17.0.0", + "@types/react": "^18.0.0", + "@types/react-dom": "^18.0.0", "react-router-dom": "^6.11.2", "react-router": "^6.11.2", "react": "^18.0.0", @@ -44,8 +44,8 @@ } }, "devDependencies": { - "@types/react": "^17.0.0", - "@types/react-dom": "^17.0.0", + "@types/react": "^18.0.0", + "@types/react-dom": "^18.0.0", "react": "^18.0.0", "react-dom": "^18.0.0", "@commitlint/cli": "^16.1.0", diff --git a/packages/plugins/mobile-client/package.json b/packages/plugins/mobile-client/package.json index bf390f2653..5891768962 100644 --- a/packages/plugins/mobile-client/package.json +++ b/packages/plugins/mobile-client/package.json @@ -13,8 +13,8 @@ "@formily/shared": "2.2.26", "@nocobase/server": "0.10.0-alpha.3", "@nocobase/test": "0.10.0-alpha.3", - "@types/react": "^17.0.0", - "@types/react-dom": "^17.0.0", + "@types/react": "^18.0.0", + "@types/react-dom": "^18.0.0", "antd": "^4.24.8", "classnames": "^2.3.1", "react": "^18.0.0", diff --git a/yarn.lock b/yarn.lock index 1529091186..48c710b7e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6740,11 +6740,12 @@ version "1.2.4" resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc" -"@types/react-dom@<18.0.0", "@types/react-dom@^17.0.0", "@types/react-dom@^18.0.0": - version "17.0.19" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.19.tgz#36feef3aa35d045cacd5ed60fe0eef5272f19492" +"@types/react-dom@<18.0.0", "@types/react-dom@^18.0.0": + version "18.2.6" + resolved "https://registry.npmmirror.com/@types/react-dom/-/react-dom-18.2.6.tgz#ad621fa71a8db29af7c31b41b2ea3d8a6f4144d1" + integrity sha512-2et4PDvg6PVCyS7fuTc4gPoksV58bW0RwSxWKcPRcHZf0PRUGq03TKcD/rUHe3azfV6/5/biUBJw+HhCQjaP0A== dependencies: - "@types/react" "^17" + "@types/react" "*" "@types/react-redux@^7.1.20": version "7.1.25" @@ -6755,10 +6756,10 @@ hoist-non-react-statics "^3.3.0" redux "^4.0.0" -"@types/react@*", "@types/react@16 || 17 || 18", "@types/react@>=16.9.11", "@types/react@^17", "@types/react@^17.0.0", "@types/react@^18.0.0": - version "17.0.60" - resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.60.tgz#a4a97dcdbebad76612c188fc06440e4995fd8ad2" - integrity sha512-pCH7bqWIfzHs3D+PDs3O/COCQJka+Kcw3RnO9rFA2zalqoXg7cNjJDh6mZ7oRtY1wmY4LVwDdAbA1F7Z8tv3BQ== +"@types/react@*", "@types/react@16 || 17 || 18", "@types/react@>=16.9.11", "@types/react@^18.0.0": + version "18.2.14" + resolved "https://registry.npmmirror.com/@types/react/-/react-18.2.14.tgz#fa7a6fecf1ce35ca94e74874f70c56ce88f7a127" + integrity sha512-A0zjq+QN/O0Kpe30hA1GidzyFjatVvrpIvWLxD+xv67Vt91TWWgco9IvrJBkeyHm1trGaFS/FSGqPlhyeZRm0g== dependencies: "@types/prop-types" "*" "@types/scheduler" "*"