New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade React packages to v18 #45235
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
d4e140f
Upgrade React packages to v18
jsnajdr 3cc35fd
Upgrade framer-motion to get React 18 support and updated types
jsnajdr 7af9bf2
React Native: upgrade to 0.69.4
jsnajdr b9d3d28
React Native: upgrade libraries
jsnajdr ea93ff0
LinkControl: fix unit tests
jsnajdr 05da41f
Components: fix unit tests
jsnajdr 9408a92
Block Editor: fix unit tests
jsnajdr 382359b
NUX: fix unit tests
jsnajdr 61e8e7a
useSelect: fix unit tests (partially)
jsnajdr 23fb060
LinkSettings test: fix finding blocks by label text
jsnajdr b712d42
BlockDraggable test: fix finding blocks by label text
jsnajdr d253cdb
React Native test helpers: fix getting blocks
jsnajdr 637ce64
Block Library tests: fix finding blocks by label text
jsnajdr 6da1678
ToggleGroupControl: fix unit test by waiting for tooltip
jsnajdr cd42397
File Block: update snapshots to account for empty children
jsnajdr 9f7c332
Embed native tests: improve mocked API response
jsnajdr 4de9c4a
Embed native tests: wait for rich preview to appear
jsnajdr c9b9bd6
Format Library: fix finding blocks by label text
jsnajdr 7fb330c
Edit Post: fix finding blocks by label text
jsnajdr 4edb25f
Update native snapshots
tyxla 7774a2f
useNestedSettingsUpdate: deoptimize/unbatch dispatching the updateBlo…
jsnajdr 78faaeb
Color Palette: wait for dropdown to appear
jsnajdr 807bcea
Add custom Jest matcher: toBePositionedPopover
jsnajdr 595ce61
Use toBePositionedPopover matcher in tests
jsnajdr bb2595d
Mobile - Update tests
geriux 36de541
Mobile - Update gitignore
geriux 34c9c7f
Mobile - Update ruby config
geriux 3271c32
[Mobile] - React Native 0.69.4 Upgrade - Android (#43486)
geriux c0adb62
[Mobile] - React Native 0.69.4 Upgrade - iOS
derekblank c9c71e7
Mobile - Check for a local bundle running with metro and use a jsbund…
geriux d016b5d
Remove duplicated import of Gesture handler
geriux e7bacd7
Remove deprecated initialization for Reanimated
geriux d19e915
Update Podfile.lock after updating dependencies
geriux 69444f7
Remove React peer deps from packages that don't need them
jsnajdr 259e3bb
Add changelog entries about React 18 upgrade
jsnajdr 16d1ec2
Extract useIsScreenReaderEnabled hook, set state only if enabled=true
jsnajdr 6e704aa
Mobile - Update Podfile.lock
geriux File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order for the rest of the ecosystem to update smoothly and at their own pace, should we support both 17 and 18 as peer deps in most packages? (As long as our code is still compatible with 17, that is)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if our code will be compatible, that's the problem.
For example, I suspect that we'll need to update the
useSelect
hook to useuseSyncExternalStore
from React 18, otherwise it will not work 100% reliably with v18. Then the@wordpress/data
library has a non-negotiable dependency on React 18, and that transitively affects all other libraries...Let's keep the v17 compat requirement in mind, and see what we can do. Libraries like
react-redux
use a compat shim foruseSyncExternalStore
, and that allows them to support older versions back to React 16.