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

fix(deps): update React to latest canary 19.x #10482

Merged
merged 29 commits into from
Apr 20, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Apr 19, 2024

This PR updates react and react-dom to the latest canary release.

We're going from 18.3.x canaries to 19.x canaries here. So technically a breaking change because of the major version upgrade. But from what I've been able to find there are no breaking changes detailed by the React team. Plus we don't ship RW with this (yet). We still ship with the latest stable release of React. So for RW I'm not exactly sure how to label this, but going with "fix" for now. And the reason for that is that we need this update to fix a bug with preinit present in the older version of React that we're currently on.

React 19 is very new, so a couple of our dependencies aren't updated to support it yet. Notably I had to patch both @apollo/client and @storybook/react-dom-shim. Patching and setting resolutions is something we really don't want to do. Definitely need to revert those changes before we can release this.

PR to support React 19 in Apollo: apollographql/apollo-client#11795
PR to support React 19 in Storybook: storybookjs/storybook#26898

When those PRs get merged we should come back and remove our patches and resolutions

@Tobbe Tobbe added the release:fix This PR is a fix label Apr 19, 2024
@Tobbe Tobbe added this to the RSC milestone Apr 19, 2024
@Tobbe Tobbe added the changesets-ok Override the changesets check label Apr 19, 2024
@Tobbe Tobbe merged commit 1ed2650 into redwoodjs:main Apr 20, 2024
46 checks passed
@Tobbe Tobbe deleted the tobbe-chore-react-canary-upgrade branch April 20, 2024 20:56
@Tobbe Tobbe added release:breaking This PR is a breaking change and removed release:fix This PR is a fix labels Apr 20, 2024
Tobbe added a commit to Tobbe/redwood that referenced this pull request Apr 22, 2024
Tobbe added a commit that referenced this pull request Apr 22, 2024
dac09 added a commit that referenced this pull request Apr 22, 2024
…g-gen-mw-p2

* 'main' of github.com:redwoodjs/redwood:
  fix(deps): update React to latest canary 19.x (#10496)
  fix(upgrade): Download yarn patches (#10497)
  Revert React 19 upgrade (#10482 and #10491) (#10495)
  Modified type for describeScenario (#10468)
  fix(upgrade): Download yarn patches (#10491)
  fix(deps): update React to latest canary 19.x (#10482)
  chore(dataMigrate): Fix package.json directory value (#10490)
  RSC: css preinit: Add required option precedence (#10481)
  chore(renovate): Remove config for unused package (#10489)
  RSC: Update test projects to use new @apollo/client-react-streaming (#10488)
  RSC: Remove unused vite patch from test-project-rsa (#10487)
  chore(ssr): Switch to use `@apollo/client-react-streaming` package (#10484)
  chore(docs): Move .mdx import into separate file (#10486)
  fix(cli): avoid `npx` during upgrade command (#10479)
  fix: Fixes Unknown Fragment issues due to GraphQL Tag type mismatch in web (#10357)
  RSC: Clean up some comments and logs (#10480)
  feat: redwoodjs/auth-dbauth-middleware - Part 2/3 - Auth Middleware for dbAuth to authenticate users via cookie (#10447)
@Josh-Walker-GM Josh-Walker-GM modified the milestones: RSC, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:breaking This PR is a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants