dillon1000/react

Commit

Upgrade to React 19 beta (#2938)

- Updated all directly defined dependencies to the latest React 19 Beta
- `package.json`: used `resolutions` to force React 19 for `react-is` transitive dependency
- `package.json`: postinstall script to patch fbt for the React 19 element Symbol
- Match on the message in Snap to exclude a React 19 warning that `act` should be imported from `react` instead (from inside `@testing-library/react`)
- Some updated snapshots, I think due to now recovering behavior of `useMemoCache`, please review.

In a next step, we can do the following. I excluded it since it from here as it made the PR unreviewable on GitHub.

- Snapshots now use `react/compiler-runtime` as in prod, so the different default in Snap is no longer needed.
Browse files
Changed paths9 files
First-parent comparison
M compiler/package.json ModifiedM compiler/packages/babel-plugin-react-compiler/package.json ModifiedM compiler/packages/babel-plugin-react-compiler/scripts/jest/setupEnvE2E.js ModifiedM compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/skip-useMemoCache.expect.md ModifiedM compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/skip-useMemoCache.js ModifiedM compiler/packages/react-compiler-runtime/package.json ModifiedM compiler/packages/snap/package.json ModifiedM compiler/packages/snap/src/sprout/evaluator.ts ModifiedM compiler/yarn.lock Modified
Patch

Files changed

Rendering syntax-highlighted changes…