Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 6, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/react (source) ^18.2.21 -> ^19.0.0 age adoption passing confidence
react (source) ^18 -> ^18 || ^19.0.0 age adoption passing confidence
react (source) ^18.2.0 -> ^19.0.0 age adoption passing confidence
react-dom (source) ^18.3.1 -> ^19.0.0 age adoption passing confidence

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

cloudflare-workers-and-pages bot commented Dec 6, 2024

Deploying compound-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0ea89f6
Status: ✅  Deploy successful!
Preview URL: https://ebe27070.compound-web.pages.dev
Branch Preview URL: https://renovate-major-react-monorep.compound-web.pages.dev

View logs

@renovate renovate bot requested a review from a team as a code owner December 6, 2024 08:39
@renovate renovate bot requested review from dbkr and robintown and removed request for a team December 6, 2024 08:39
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 41265a2 to d302631 Compare December 6, 2024 09:07
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from acef524 to c058910 Compare December 10, 2024 14:50
@robintown
Copy link
Member

@sandhose Looks like Renovate force-pushed and overwrote your changes (which is odd, that's not supposed to happen)

@sandhose
Copy link
Member

This is intentional on my side, I wanted to rebase on top of #294. I still have to backport the fixes I did

Copy link
Contributor Author

renovate bot commented Dec 11, 2024

Edited/Blocked Notification

Renovate 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.

⚠️ Warning: custom changes will be lost.

Copy link
Member

@sandhose sandhose left a 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 useRefs 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,
Copy link
Member

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,
Copy link
Member

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) & {
Copy link
Member

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

Copy link
Member

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

Copy link
Member

@robintown robintown left a 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)

@sandhose
Copy link
Member

@robintown I've opened #297 to fix that, I'll rebase on top of it once merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants