Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

CharlieWallace17
Copy link

What kind of change does this PR introduce?

  • Bug Fix
  • Feature
  • Refactoring
  • Style
  • Build
  • [ X ] Chore
  • Documentation
  • CI

Did you add tests for your changes?

  • [ X ] Yes, my code is well tested
  • Not relevant

If relevant, did you update the documentation?

  • Yes, I've updated the documentation
  • [ X ] Not relevant

Summary
Explain the motivation for making this change. What existing problem does the pull request solve?
Try to link to an open issue for more information.

Solves #1400 . Updates peer dependency package range to support react 19.

Does this PR introduce a breaking change?
If this PR introduces a breaking change, please describe the impact and a migration path for existing applications.
N/A

Other information
N/A

@CharlieWallace17
Copy link
Author

@rolandjitsu would it be possible to have this merged soon?

@GHEMID-Mohamed
Copy link

Can you do merge this soon please ?

Copy link

@lostfictions lostfictions left a comment

Choose a reason for hiding this comment

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

I... don't think this PR solves any issue? The current semver range for react-dropzone is >= 16.8 || 18.0.0... which may have been written in error, since it simplifies to just >= 16.8 (that is, a constraint satisfiable by any React version equal to or above 16.8, including React 17, React 19, etc.).

Expanding this further to >= 16.8 || 18.0.0 || 19.0.0 as this PR does has no impact whatsoever. It will not fix any issues. Check for yourself here:

image

I haven't even tried to install react-dropzone yet; I was just checking most upvoted open issues to see if this library was maintained enough to use (which unfortunately might not be the case?), so take this with a grain of salt, but offhand without looking more closely I'd assume @Philipp91's PR #1407 is closer to fixing the underlying issue. It would probably just need to change the React peer dependency version to ~19.0.0 and add a semver-major bump to react-dropzone itself, since I assume the typings change is backwards-incompatible.

EDIT: I see #1410 was already merged and released, which obviates #1407 as well -- perhaps this library is working after all as of the latest release and this PR as well as #1400 can be closed?

@btnalexandre
Copy link

hello @rolandjitsu have you some news regarding this PR ?

@shahnewaz-gain
Copy link

Have you any update on this PR @rolandjitsu ?

@lostfictions
Copy link

lostfictions commented Jul 3, 2025

Hi folks, just repeating again that this PR does nothing. It won't help with any issues you're experiencing around React version mismatch. I'll be unsubscribing from this issue now, but for anyone still struggling, you can try checking whether you're on the latest react-dropzone point release (you can check with npm outdated).

"license": "MIT",
"peerDependencies": {
"react": ">= 16.8 || 18.0.0"
"react": ">= 16.8 || 18.0.0 || 19.0.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably make this a bit more verbose

Suggested change
"react": ">= 16.8 || 18.0.0 || 19.0.0"
"react": ">= 17.x || 18.x || 19.x"

Setting semver range w/ full major, patch, minor tells the package manager that even w/ the >= it expects it to be 19.0.0

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.

9 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.