From c0a13a5cde843a3a1f6a8d045db50e340ca14368 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Thu, 22 Jun 2023 09:23:50 -0400 Subject: [PATCH] feat(react): update types for react, react-dom, and react-is Fixes issues with module resolution e.g. https://github.com/nrwl/nx/actions/runs/5340097689/jobs/9679607300 --- packages/react/migrations.json | 17 +++++++++++++++++ packages/react/src/utils/versions.ts | 6 +++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/packages/react/migrations.json b/packages/react/migrations.json index 5b3b5f68e6f5e..e1ad0a3b25e09 100644 --- a/packages/react/migrations.json +++ b/packages/react/migrations.json @@ -933,6 +933,23 @@ "alwaysAddToPackageJson": false } } + }, + "16.4.0-beta.11": { + "version": "16.4.0-beta.11", + "packages": { + "@types/react": { + "version": "18.2.13", + "alwaysAddToPackageJson": false + }, + "@types/react-dom": { + "version": "18.2.6", + "alwaysAddToPackageJson": false + }, + "@types/react-is": { + "version": "18.2.1", + "alwaysAddToPackageJson": false + } + } } } } diff --git a/packages/react/src/utils/versions.ts b/packages/react/src/utils/versions.ts index 77d2fa8bf91d6..bdcda062134e5 100755 --- a/packages/react/src/utils/versions.ts +++ b/packages/react/src/utils/versions.ts @@ -8,9 +8,9 @@ export const reactDomVersion = '18.2.0'; export const reactIsVersion = '18.2.0'; export const swcLoaderVersion = '0.1.15'; export const babelLoaderVersion = '^9.1.2'; -export const typesReactVersion = '18.2.12'; -export const typesReactDomVersion = '18.2.5'; -export const typesReactIsVersion = '18.2.0'; +export const typesReactVersion = '18.2.13'; +export const typesReactDomVersion = '18.2.6'; +export const typesReactIsVersion = '18.2.1'; export const typesNodeVersion = '18.14.2';