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

Add support for React 19 #79

Merged
merged 6 commits into from
Jan 15, 2025
Merged

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Jan 4, 2025

Closes #78

This PR is primarily focused on allowing this package to be installed with React 19, by updating the peer dependency constraint to ^18.0.0 || ^19.0.0.

On top of that, this PR adds a few extra improvements:

  1. Update actions used in the test workflow to their latest versions.
  2. Ensure test workflow is run for every supported React minor version.

There's an open question though: The project defines a peer dependency on react, but dev dependencies on react and react-dom. I have only updated the peer dependency, but it probably makes sense to keep those in sync.

However, when using npm, you can skip duplicating dev and peer dependencies, as it installs peer dependencies if it's not explicitly defined anywhere else. That would require defining react-dom as a peer dependency though, which probably makes sense, but I'm not sure if it would be a breaking change.

@acelaya acelaya mentioned this pull request Jan 4, 2025
.github/workflows/test.yml Outdated Show resolved Hide resolved
@happzotech
Copy link

Hi Thanks For this npm package, I am also facing issues while deployment due to version issues, when are you planning to release new version of this package

@i-like-robots i-like-robots self-requested a review January 15, 2025 16:11
Copy link
Owner

@i-like-robots i-like-robots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @acelaya, I really appreciate it. If you could simplify the versions matrix then I'm happy to go forward and merge this.

@acelaya
Copy link
Contributor Author

acelaya commented Jan 15, 2025

Thank you for your contribution @acelaya, I really appreciate it. If you could simplify the versions matrix then I'm happy to go forward and merge this.

I'll do the change, but can you approve the workflow execution? Just to make sure everything works as expected.

I sort-of tested it on my own fork's actions, but it ended up failing due to not being able to upload the code coverage reports from there (which is expected), so I think it should pass here, but we don't know for sure until it's green 😅

@acelaya acelaya requested a review from i-like-robots January 15, 2025 16:27
@coveralls
Copy link

coveralls commented Jan 15, 2025

Pull Request Test Coverage Report for Build 12792683108

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.587%

Totals Coverage Status
Change from base Build 12244687486: 0.0%
Covered Lines: 966
Relevant Lines: 975

💛 - Coveralls

@i-like-robots i-like-robots merged commit ab02659 into i-like-robots:main Jan 15, 2025
4 checks passed
@i-like-robots
Copy link
Owner

Thank you @acelaya

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.

Support React 19
4 participants