hookrouter icon indicating copy to clipboard operation
hookrouter copied to clipboard

Support React 17

Open prageeth opened this issue 3 years ago • 12 comments

This PR fixes https://github.com/Paratron/hookrouter/issues/149 and ensures:

  • that we can use React 17 as a peer dependency
  • fixes some npm vulnerabilities using npm audit fix

prageeth avatar Jan 23 '21 20:01 prageeth

Please release this fix, I love this package and I also love using the most recent version of react 😁 Super useful package, keep up the great work 👍

benprofitt avatar Jan 24 '21 20:01 benprofitt

@Paratron any chance this can be merged?

prageeth avatar Jan 31 '21 17:01 prageeth

Need that to ... PLease merge it

fstn avatar Feb 03 '21 00:02 fstn

@benprofitt @fstn or anyone still stuck with this issue, you can use my branch directly from the git repo in the mean time. I use this in my own projets:

npm install hookrouter@pureartisan/hookrouter#master --save

prageeth avatar Feb 06 '21 00:02 prageeth

Please merge this so we can start using react 17! :)

alvaradojl avatar Mar 20 '21 14:03 alvaradojl

Please

Le sam. 20 mars 2021 à 08:51, Jorge Alvarado @.***> a écrit :

Please merge this so we can start using react 17! :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Paratron/hookrouter/pull/151#issuecomment-803369459, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWNAGKZQ5TBFKRAL6YW3L3TESZAHANCNFSM4WP67FKQ .

fstn avatar Mar 20 '21 15:03 fstn

@benprofitt @fstn or anyone still stuck with this issue, you can use my branch directly from the git repo in the mean time. I use this in my own projets:

npm install hookrouter@pureartisan/hookrouter#master --save

I tried this command, package.json and package-lock.json are correctly updated, but the files in node_modules/hookrouter only contain a package.json and the README.md, I tried already to delete the folder and the package-lock but I always get the same output.

alvaradojl avatar Mar 20 '21 15:03 alvaradojl

I tried this command, package.json and package-lock.json are correctly updated, but the files in node_modules/hookrouter only contain a package.json and the README.md, I tried already to delete the folder and the package-lock but I always get the same output.

@alvaradojl It's possible that your global node cache still uses the old package.

Anyhow, I've just gone ahead and published a "patched" version with a few other fixes (open PRs).

npm i @patched/[email protected]

Let me know if you have any issues. You can also view the exact changes that are included here: https://github.com/Paratron/hookrouter/compare/master...pureartisan:patched

NOTE: Your imports will ofcourse have to use @patched/hookrouter as the package name.

import { navgiate } from '@patched/hookrouter';

prageeth avatar Mar 20 '21 18:03 prageeth

I tried this command, package.json and package-lock.json are correctly updated, but the files in node_modules/hookrouter only contain a package.json and the README.md, I tried already to delete the folder and the package-lock but I always get the same output.

@alvaradojl It's possible that your global node cache still uses the old package.

Anyhow, I've just gone ahead and published a "patched" version with a few other fixes (open PRs).

npm i @patched/[email protected]

Let me know if you have any issues. You can also view the exact changes that are included here: master...pureartisan:patched

NOTE: Your imports will ofcourse have to use @patched/hookrouter as the package name.

import { navgiate } from '@patched/hookrouter';

@prageeth Thanks for the patch, managed to get it working on React 17. The only problem i got was it missing the TS declarations. I copied them from the main version to a separate .d.ts file in my project, and it seems to work alright like this.

mkayander avatar May 18 '21 05:05 mkayander

I really liked this approach while it worked, but I can not have all these hacks in a production build and so, I'll be removing it from my project... wasted a lot of hours btw before finding this thread. You should merge your fix @prageeth and stop updating this thread.

ohchad avatar May 29 '21 00:05 ohchad

I mean at this point @prageeth you should merge. @Patatron last update was 8 months ago

v33y avatar Jul 20 '21 02:07 v33y

Unfortunately I don’t have permissions to merge any PRs in this repo. Therefore, I’m using my own @patched/hookrouter package. I’ve recently published a few more fixes there. So if anyone wants to continue, please feel free to use it.

prageeth avatar Jul 20 '21 07:07 prageeth