-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade React packages to v18 (#45235)
* Upgrade React packages to v18 * Upgrade framer-motion to get React 18 support and updated types * React Native: upgrade to 0.69.4 * React Native: upgrade libraries * LinkControl: fix unit tests * Components: fix unit tests * Block Editor: fix unit tests * NUX: fix unit tests * useSelect: fix unit tests (partially) * LinkSettings test: fix finding blocks by label text * BlockDraggable test: fix finding blocks by label text * React Native test helpers: fix getting blocks * Block Library tests: fix finding blocks by label text * ToggleGroupControl: fix unit test by waiting for tooltip * File Block: update snapshots to account for empty children * Embed native tests: improve mocked API response * Embed native tests: wait for rich preview to appear * Format Library: fix finding blocks by label text * Edit Post: fix finding blocks by label text * Update native snapshots * useNestedSettingsUpdate: deoptimize/unbatch dispatching the updateBlockListSettings actions * Color Palette: wait for dropdown to appear * Add custom Jest matcher: toBePositionedPopover * Use toBePositionedPopover matcher in tests * Mobile - Update tests * Mobile - Update gitignore * Mobile - Update ruby config * [Mobile] - React Native 0.69.4 Upgrade - Android (#43486) * Mobile - React Native 0.69.4 upgrade, base Android changes * Mobile - Remove RNGestureHandlerEnabledRootView since its now deprecated * Mobile - Update bundle android script * [Mobile] - React Native 0.69.4 Upgrade - iOS * Mobile - Check for a local bundle running with metro and use a jsbundle as a fallback * Remove duplicated import of Gesture handler * Remove deprecated initialization for Reanimated * Update Podfile.lock after updating dependencies * Remove React peer deps from packages that don't need them * Add changelog entries about React 18 upgrade * Extract useIsScreenReaderEnabled hook, set state only if enabled=true * Mobile - Update Podfile.lock Co-authored-by: Marin Atanasov <[email protected]> Co-authored-by: Gerardo <[email protected]> Co-authored-by: Derek Blank <[email protected]>
- Loading branch information
1 parent
7d6cf4d
commit 705ab44
Showing
149 changed files
with
6,086 additions
and
3,220 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,10 +112,10 @@ | |
"@storybook/builder-webpack5": "6.5.7", | ||
"@storybook/manager-webpack5": "6.5.7", | ||
"@storybook/react": "6.5.7", | ||
"@testing-library/jest-dom": "5.16.4", | ||
"@testing-library/react": "12.1.5", | ||
"@testing-library/react-native": "9.1.0", | ||
"@testing-library/user-event": "14.2.0", | ||
"@testing-library/jest-dom": "5.16.5", | ||
"@testing-library/react": "13.4.0", | ||
"@testing-library/react-native": "11.3.0", | ||
"@testing-library/user-event": "14.4.3", | ||
"@types/classnames": "2.3.1", | ||
"@types/eslint": "7.28.0", | ||
"@types/estree": "0.0.50", | ||
|
@@ -126,7 +126,9 @@ | |
"@types/npm-package-arg": "6.1.1", | ||
"@types/prettier": "2.4.4", | ||
"@types/qs": "6.9.7", | ||
"@types/react": "18.0.21", | ||
"@types/react-dates": "21.8.3", | ||
"@types/react-dom": "18.0.6", | ||
"@types/requestidlecallback": "0.3.4", | ||
"@types/semver": "7.3.8", | ||
"@types/sprintf-js": "1.1.2", | ||
|
@@ -204,8 +206,8 @@ | |
"lint-staged": "10.0.1", | ||
"lodash": "4.17.21", | ||
"make-dir": "3.0.0", | ||
"metro-react-native-babel-preset": "0.66.2", | ||
"metro-react-native-babel-transformer": "0.66.2", | ||
"metro-react-native-babel-preset": "0.70.3", | ||
"metro-react-native-babel-transformer": "0.70.3", | ||
"mkdirp": "0.5.1", | ||
"nock": "12.0.3", | ||
"node-fetch": "2.6.1", | ||
|
@@ -216,12 +218,12 @@ | |
"postcss-loader": "6.2.1", | ||
"prettier": "npm:[email protected]", | ||
"progress": "2.0.3", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-native": "0.66.2", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react-native": "0.69.4", | ||
"react-native-url-polyfill": "1.1.2", | ||
"react-refresh": "0.10.0", | ||
"react-test-renderer": "17.0.2", | ||
"react-test-renderer": "18.2.0", | ||
"redux": "4.1.2", | ||
"resize-observer-polyfill": "1.5.1", | ||
"rimraf": "3.0.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.