-
Notifications
You must be signed in to change notification settings - Fork 820
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
React 19 compatibility #2934
Merged
+4,044
−4,264
Merged
React 19 compatibility #2934
Changes from 17 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
82bff21
Access ref from props before element.ref
chungweileong94 45b510a
Apply ref access fix to presence component
chungweileong94 2be7074
adding react 19 to peer deps
BenAHammond 44c9aa9
Upgrade to React 18.3.1
4daf046
Merge branch 'chungweileong94/main' into vlad/react-upgrades
980acb3
Merge branch 'ben/react-19' into vlad/react-upgrades
21da11f
Add missing React 19 peer deps
bdbbc87
Remove propTypes
09c0140
Update ReactDOM usage
7a5e1b3
yarn
eccd0b0
Upgrade to React 19 and access refs in a backwards compatible way
8750d9c
Recover Storybook
2bbd60a
Remove an outdated type
6e97323
Suppress a type error, tweak formatting
a5a3075
Track version changes
b02edfc
Don't throw in render, just log the error
9f74b8a
Update and upgrade tests
303c39a
Roll back tests deps changes
f1bd85f
^ in react version affects tests?
007ba3a
Upgrade testing-library and wrap FocusScope tests in act
d8f2071
Upgrade @testing-library/react to 16.0
f3575fa
Of cooooourse
ceb0e7c
Remove unnecessary changes
e890cc1
Refine getElementRef
e2f4e2e
Upgrade start-server-and-test
f1f02eb
Flaky cypress test?
ac7d8a4
Remove unnecessary changes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
releases: | ||
"@radix-ui/react-accessible-icon": patch | ||
"@radix-ui/react-accordion": patch | ||
"@radix-ui/react-alert-dialog": patch | ||
"@radix-ui/react-announce": patch | ||
"@radix-ui/react-arrow": patch | ||
"@radix-ui/react-aspect-ratio": patch | ||
"@radix-ui/react-avatar": patch | ||
"@radix-ui/react-checkbox": patch | ||
"@radix-ui/react-collapsible": patch | ||
"@radix-ui/react-collection": patch | ||
"@radix-ui/react-compose-refs": patch | ||
"@radix-ui/react-context": patch | ||
"@radix-ui/react-context-menu": patch | ||
"@radix-ui/react-dialog": patch | ||
"@radix-ui/react-direction": patch | ||
"@radix-ui/react-dismissable-layer": patch | ||
"@radix-ui/react-dropdown-menu": patch | ||
"@radix-ui/react-focus-guards": patch | ||
"@radix-ui/react-focus-scope": patch | ||
"@radix-ui/react-form": patch | ||
"@radix-ui/react-hover-card": patch | ||
"@radix-ui/react-id": patch | ||
"@radix-ui/react-label": patch | ||
"@radix-ui/react-menu": patch | ||
"@radix-ui/react-menubar": patch | ||
"@radix-ui/react-navigation-menu": patch | ||
"@radix-ui/react-popover": patch | ||
"@radix-ui/react-popper": patch | ||
"@radix-ui/react-portal": patch | ||
"@radix-ui/react-presence": minor | ||
"@radix-ui/react-primitive": major | ||
"@radix-ui/react-progress": patch | ||
"@radix-ui/react-radio-group": patch | ||
"@radix-ui/react-roving-focus": patch | ||
"@radix-ui/react-scroll-area": patch | ||
"@radix-ui/react-select": patch | ||
"@radix-ui/react-separator": patch | ||
"@radix-ui/react-slider": patch | ||
"@radix-ui/react-slot": minor | ||
"@radix-ui/react-switch": patch | ||
"@radix-ui/react-tabs": patch | ||
"@radix-ui/react-toast": patch | ||
"@radix-ui/react-toggle": patch | ||
"@radix-ui/react-toggle-group": patch | ||
"@radix-ui/react-toolbar": patch | ||
"@radix-ui/react-tooltip": patch | ||
"@radix-ui/react-use-callback-ref": patch | ||
"@radix-ui/react-use-controllable-state": patch | ||
"@radix-ui/react-use-escape-keydown": patch | ||
"@radix-ui/react-use-layout-effect": patch | ||
"@radix-ui/react-use-previous": patch | ||
"@radix-ui/react-use-rect": patch | ||
"@radix-ui/react-use-size": patch | ||
"@radix-ui/react-visually-hidden": patch | ||
|
||
declined: | ||
- primitives | ||
- ssr-testing |
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
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.
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.
Prop types have been deprecated for a while and are now completely removed
https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-deprecated-react-apis
Using TypeScript already handles this