From 0fd2890828b30a3ef2ebcb087a9c8b6c0610c0e2 Mon Sep 17 00:00:00 2001 From: Philipp Keck Date: Sat, 7 Dec 2024 16:08:48 +0100 Subject: [PATCH] Update to @types/react v17 To match the react v17 that's already being used. This makes the new React.JSX type available, which is needed for v19 compatibility, see https://github.com/jaredpalmer/formik/issues/4011. --- packages/formik-native/package.json | 2 +- packages/formik/package.json | 4 ++-- yarn.lock | 26 ++++++++++++++++++++------ 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/packages/formik-native/package.json b/packages/formik-native/package.json index 9a698ea58..e717df3a2 100644 --- a/packages/formik-native/package.json +++ b/packages/formik-native/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@react-native-community/eslint-config": "^0.0.5", - "@types/react": "^16.9.55", + "@types/react": "^17.0.83", "@types/react-native": "^0.63.32", "react": "^17.0.1", "react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz" diff --git a/packages/formik/package.json b/packages/formik/package.json index 962b515c1..8d0609fcd 100644 --- a/packages/formik/package.json +++ b/packages/formik/package.json @@ -55,8 +55,8 @@ "@testing-library/react": "^11.1.0", "@types/hoist-non-react-statics": "^3.3.1", "@types/lodash": "^4.14.119", - "@types/react": "^16.9.55", - "@types/react-dom": "^16.9.9", + "@types/react": "^17.0.83", + "@types/react-dom": "^17.0.25", "@types/warning": "^3.0.0", "@types/yup": "^0.24.9", "just-debounce-it": "^1.1.0", diff --git a/yarn.lock b/yarn.lock index 8ef7e7f87..b4a035547 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3072,12 +3072,12 @@ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== -"@types/react-dom@^16.9.9": - version "16.9.9" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.9.tgz#d2d0a6f720a0206369ccbefff752ba37b9583136" - integrity sha512-jE16FNWO3Logq/Lf+yvEAjKzhpST/Eac8EMd1i4dgZdMczfgqC8EjpxwNgEe3SExHYLliabXDh9DEhhqnlXJhg== +"@types/react-dom@^17.0.25": + version "17.0.25" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.25.tgz#e0e5b3571e1069625b3a3da2b279379aa33a0cb5" + integrity sha512-urx7A7UxkZQmThYA4So0NelOVjx3V4rNFVJwp0WZlbIK5eM4rNJDiN3R/E9ix0MBh6kAEojk/9YL+Te6D9zHNA== dependencies: - "@types/react" "*" + "@types/react" "^17" "@types/react-native@^0.63.32": version "0.63.32" @@ -3086,7 +3086,7 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^16.9.55": +"@types/react@*": version "16.9.55" resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.55.tgz#47078587f5bfe028a23b6b46c7b94ac0d436acff" integrity sha512-6KLe6lkILeRwyyy7yG9rULKJ0sXplUsl98MGoCfpteXf9sPWFWWMknDcsvubcpaTdBuxtsLF6HDUwdApZL/xIg== @@ -3094,6 +3094,15 @@ "@types/prop-types" "*" csstype "^3.0.2" +"@types/react@^17", "@types/react@^17.0.83": + version "17.0.83" + resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.83.tgz#b477c56387b74279281149dcf5ba2a1e2216d131" + integrity sha512-l0m4ArKJvmFtR4e8UmKrj1pB4tUgOhJITf+mADyF/p69Ts1YAR/E+G9XEM0mHXKVRa1dQNHseyyDNzeuAXfXQw== + dependencies: + "@types/prop-types" "*" + "@types/scheduler" "^0.16" + csstype "^3.0.2" + "@types/resolve@1.17.1": version "1.17.1" resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6" @@ -3108,6 +3117,11 @@ dependencies: "@types/node" "*" +"@types/scheduler@^0.16": + version "0.16.8" + resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.8.tgz#ce5ace04cfeabe7ef87c0091e50752e36707deff" + integrity sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A== + "@types/semver@^6.0.0": version "6.2.2" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-6.2.2.tgz#5c27df09ca39e3c9beb4fae6b95f4d71426df0a9"