-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
deps: update peerDeps to support React 19 without warnings #116
Conversation
- react 19 is also incompatible with `@testing-library/react` 13, so it needs updating as well, see next commits
This comment was marked as resolved.
This comment was marked as resolved.
I was wondering if fully updating to the new JSX transform might require a breaking change to not have the warning, but it seems like the end-user compiler can handle that automatically without the library needing to update? I didn't have any warnings like the upgrade guide mentions. The |
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.
✅ Code LGTM. Tests pass, example works with no console warnings
* deps: update peerDeps to support React 19 without warnings - react 19 is also incompatible with `@testing-library/react` 13, so it needs updating as well, see next commits * typings fixes required in new version * update @testing-library/react to compatible 16.1 version - react 19 support in https://github.com/testing-library/react-testing-library/releases/tag/v16.1.0 (cherry picked from commit ebec40b) - fixed various merge conflicts: - no typings changes as there is no TS on the `v1.0.x` branch - no `@types/` updates either - isolate surrounding deps changes etc (only update `react`, `react-dom`, and `@testing-library/react`)
Summary
Update
peerDependencies
range to support React 19. Update devDeps, typings, tests to support / use React 19Details
seems to work without any source component modifications needed on React 19
ensure tests pass with React 19
react-dom
19,@types/react
19Future Work
Backport this to v1.0.7, i.e. prior to the TypeScript rewrite (TypeScript Rewrite #42) being merged