From 3e2d5994f34559a4a8f820c8a33861446758b8b2 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Wed, 27 Sep 2023 16:28:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=87=EF=B8=8F(deps)=20downgrade=20@types/r?= =?UTF-8?q?eact=20to=2018.2.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was causing compilation issue when using React.StrictMode, see this https://github.com/DefinitelyTyped/DefinitelyTyped/issues/66841 --- apps/demo/package.json | 2 +- packages/react/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/demo/package.json b/apps/demo/package.json index 78198e2..468a635 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -14,7 +14,7 @@ "@openfun/cunningham-react": "*", "@openfun/cunningham-tokens": "*", "@openfun/typescript-configs": "*", - "@types/react": "18.2.23", + "@types/react": "18.2.21", "@types/react-dom": "18.2.8", "@vitejs/plugin-react": "4.1.0", "react": "18.2.0", diff --git a/packages/react/package.json b/packages/react/package.json index efb92ca..50337db 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -87,7 +87,7 @@ "@testing-library/react": "14.0.0", "@testing-library/user-event": "14.5.1", "@types/jest": "29.5.5", - "@types/react": "18.2.23", + "@types/react": "18.2.21", "@types/react-dom": "18.2.8", "@vitejs/plugin-react": "4.1.0", "@vitest/coverage-c8": "0.33.0", diff --git a/yarn.lock b/yarn.lock index ce9a41b..3629cd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5832,10 +5832,10 @@ "@types/scheduler" "*" csstype "^3.0.2" -"@types/react@18.2.23": - version "18.2.23" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.23.tgz#60ad6cf4895e93bed858db0e03bcc4ff97d0410e" - integrity sha512-qHLW6n1q2+7KyBEYnrZpcsAmU/iiCh9WGCKgXvMxx89+TYdJWRjZohVIo9XTcoLhfX3+/hP0Pbulu3bCZQ9PSA== +"@types/react@18.2.21": + version "18.2.21" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.21.tgz#774c37fd01b522d0b91aed04811b58e4e0514ed9" + integrity sha512-neFKG/sBAwGxHgXiIxnbm3/AAVQ/cMRS93hvBpg8xYRbeQSPVABp9U2bRnPf0iI4+Ucdv3plSxKK+3CW2ENJxA== dependencies: "@types/prop-types" "*" "@types/scheduler" "*"