react-simple-pull-to-refresh icon indicating copy to clipboard operation
react-simple-pull-to-refresh copied to clipboard

Compatibility with react 19

Open dartess opened this issue 1 year ago • 7 comments

npm i react-simple-pull-to-refresh
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.10.2 || ^17.0.0 || ^18.0.0" from [email protected]

dartess avatar Jan 16 '25 16:01 dartess

@thmsgbrt hey! Thank you for this project! Can you tell a little about its status?

Will you have time and desire to check compatibility with react 19 and update the package?

If not, will you have time and desire to look at the PR from the community?

If not, please write about it, so that your project does not become a blocker for the update.

Thanks in advance for your answer!

dartess avatar Jan 16 '25 16:01 dartess

@dartess Have you found a solution or an alternative?

esskar avatar Feb 26 '25 21:02 esskar

@esskar

I tried several react libraries and none of them showed themselves as "just works" (like react-simple-pull-to-refresh).

So... @operato/pull-to-refresh + useEffect looks OK, I settled on it. But I'm not sure if you can customize the appearance there.

dartess avatar Feb 27 '25 06:02 dartess

So... @operato/pull-to-refresh + useEffect looks OK, I settled on it. But I'm not sure if you can customize the appearance there.

Thanks. it's github page points to nowhere though.

esskar avatar Feb 27 '25 06:02 esskar

Yeah (( doesn't look good and safe. Just in case I analyzed the sources after installing the package and locked the version.

dartess avatar Feb 27 '25 07:02 dartess

I justed ended up including the source from here directly in my app

esskar avatar Feb 27 '25 07:02 esskar

Might because of this issue when adding react 19 and react-dom 19 I got these following warnings.

I have folk the project and will look at the code and see if I can fix/resolve some of these issues.

npm install
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: this library is no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm warn deprecated [email protected]: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.

redimongo avatar Apr 06 '25 02:04 redimongo