-
Notifications
You must be signed in to change notification settings - Fork 11
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
Update react monorepo to v19 (major) #290
base: main
Are you sure you want to change the base?
Conversation
Deploying compound-web with Cloudflare Pages
|
41265a2
to
d302631
Compare
acef524
to
c058910
Compare
@sandhose Looks like Renovate force-pushed and overwrote your changes (which is odd, that's not supposed to happen) |
This is intentional on my side, I wanted to rebase on top of #294. I still have to backport the fixes I did |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
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.
The main changes are around useRef
s and avoid using the JSX.IntrinsicElements
and JSX.Element
, but rather React.ComponentProps
and React.ReactElement
@@ -106,11 +106,10 @@ function ReleaseAnnouncementAnchor({ | |||
children, | |||
context.getReferenceProps({ | |||
ref, | |||
...children.props, |
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.
cloneElement
will anyway keep the existing props
// If the ReleaseAnnouncement is open, we need manually aria-describedby. | ||
// The RA has the dialog role and it's not adding automatically the aria-describedby. | ||
...(context.open && { | ||
"aria-describedby": context.getFloatingProps().id, | ||
"aria-describedby": context.getFloatingProps().id as string, |
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.
getFloatingProps
returns Record<string, unknown>
, but we know this is a string
|
||
// Unfortunately Omit doesn't distribute nicely over sum types, so we have to | ||
// piece together the useTooltip options type by hand | ||
type TooltipProps = Omit<CommonUseTooltipProps, "isTriggerInteractive"> & | ||
XOR<TooltipLabel, TooltipDescription> & { | ||
(TooltipLabel | TooltipDescription) & { |
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.
ts-xor
really makes it impossible to use in some context, especially stories, so I removed it
src/utils/SuspenseImg.tsx
Outdated
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.
That file wasn't used
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.
LGTM, the screenshot diffs seem to be that GitHub Actions has switched to Ubuntu 24.04 which has turned on subpixel antialiasing for text (so, we should switch to the corresponding Playwright Docker image)
@robintown I've opened #297 to fix that, I'll rebase on top of it once merged |
This was missing a TooltipProvider
This PR contains the following updates:
^18.2.21
->^19.0.0
^18
->^18 || ^19.0.0
^18.2.0
->^19.0.0
^18.3.1
->^19.0.0
Release Notes
facebook/react (react)
v19.0.0
Compare Source
facebook/react (react-dom)
v19.0.0
Compare Source
Configuration
📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.