node-vault icon indicating copy to clipboard operation
node-vault copied to clipboard

Replacing Request with another library

Open pratikpc opened this issue 4 years ago • 27 comments

As of https://github.com/request/request/issues/3142, the Request Library and Request-Promise library on which Node-Vault depend, have both been deprecated

As such, I believe that, we must replace Request with another library The async libraries which could replace it are

  1. Node-Fetch
  2. Axios
  3. Any Other ??

pratikpc avatar Mar 15 '20 09:03 pratikpc

It would be nice to find an alternative for request. There is a thread on https://github.com/request/request/issues/3143 about alternatives.

bjankord avatar Mar 16 '20 21:03 bjankord

@bjankord I tried my hand at replacing Request with axios in this pull request

Let's see if it's accepted

pratikpc avatar Mar 17 '20 21:03 pratikpc

A good alternative to request is got IMHO.

fungiboletus avatar Apr 28 '20 07:04 fungiboletus

@bjankord I tried my hand at replacing Request with axios in this pull request

Let's see if it's accepted

axios is amasing

muturgan avatar Nov 02 '20 11:11 muturgan

I'd like to budge in and offer needle

aviadhahami avatar Nov 26 '20 15:11 aviadhahami

For me, the prime driver for replacing request is that it brings along 20 additional dependencies that are almost certainly not needed by upstream projects. Given that there was a pull request to move to axios submitted above, is there any way to nudge this along? It would be really great to resolve this one.

delfuego avatar Dec 17 '20 02:12 delfuego

This issue is affecting me as well, because having request-promise and request-promise-native in the dependency tree causes problems when testing with Jest: https://github.com/request/request-promise/issues/247

Is there any way to help the axios PR along?

jjnkr avatar Dec 18 '20 00:12 jjnkr

It seems like this PR was opened over a year ago. Is this project no longer maintained and are there alternatives?

adam2k avatar Nov 16 '21 15:11 adam2k

@adam2k seems so [unmaintained]

aviadhahami avatar Nov 16 '21 16:11 aviadhahami

@kr1sp1n Any updates on this?

tgrassl avatar Nov 30 '21 19:11 tgrassl

@aviadhahami do you know of any other good alternatives and is it worth forking this repo at this point?

adam2k avatar Nov 30 '21 23:11 adam2k

@adam2k - per "is it worth" --> there are 52K downloads per week of this pkg (according to npm)

@pratikpc , regarding https://github.com/kr1sp1n/node-vault/pull/151, any progress? the last comment was asking to fix the conflicts. Can you attend this? (if not - I believe others [including myself] are able to help :) )

aviadhahami avatar Dec 01 '21 11:12 aviadhahami

@aviadhahami I'm unfamiliar with the npm process of forking a project like this. I suppose we could fork and make a new project that is open sourced. I'll talk with my company about working on a project like this to see if I can get support from them as well.

adam2k avatar Dec 29 '21 13:12 adam2k

@adam2k not sure myself as well, I think we can maintain this if you'd like :) @kr1sp1n - is this 100% stale on your end? if yes - would u like to move ownership to @adam2k & myself?

aviadhahami avatar Jan 02 '22 09:01 aviadhahami

Update - emailed npm themselves for a dispute on package name due to owner's inactivity and the security risk imposed by this

aviadhahami avatar Jan 07 '22 11:01 aviadhahami

@aviadhahami I'm discussing with my company to see if they want to fork and take on ownership of this repo. We should have a response by the end of this week.

adam2k avatar Jan 18 '22 15:01 adam2k

@aviadhahami Hi, I would like to move the ownership to you. I do not maintain this lib any longer but I would love to hand it over to responsible people. Let me know where to move it exactly.

kr1sp1n avatar Jan 18 '22 18:01 kr1sp1n

Hi @kr1sp1n, thx for the reply :)

Steps needed for transfer: 1/ Change npm ownership [howto] [my npm profile] 2/ Change GH ownership [howto] [my gh profile]

IMO that's it. lmk if u need any help or anything :)

aviadhahami avatar Jan 19 '22 10:01 aviadhahami

Thanks @kr1sp1n and @aviadhahami! 👍🏻

adam2k avatar Jan 23 '22 15:01 adam2k

@aviadhahami and @kr1sp1n let me know if you all need anything from me in the immediate term. Otherwise I'll open up PRs in @aviadhahami's repo when it's ready to go.

adam2k avatar Jan 24 '22 17:01 adam2k

Hey guys I think the safest option is Postman Request.

Asio would be a bit of a headache to port as I found out myself and would definitely break existing code for users so we can move to Postman Request for the time being.

Postman Request is the request we love and admire (I don't) with the bugs fixed and slightly less warnings (It's named so because it is maintained by @postmanlabs) I was also able to update a lot of the codebase and dependencies and fix code with the newer changes as recommended by our Airbnb overlords with a few ignored

@aviadhahami done!

pratikpc avatar Jan 26 '22 00:01 pratikpc

@aviadhahami and @kr1sp1n do you all have an idea when this repo could be transferred?

adam2k avatar Feb 23 '22 21:02 adam2k

@adam2k I'm waiting patiently 🤷‍♂️

aviadhahami avatar Feb 23 '22 21:02 aviadhahami

@adam2k @aviadhahami I added @aviadhahami to the npm maintainers, created a github organization called "nodevault" (node-vault was already taken) and invited @aviadhahami as a member. That should do the trick, right?

kr1sp1n avatar Feb 24 '22 05:02 kr1sp1n

@kr1sp1n almost :D I still lack permissions and get this: image

So, what's left to do is: 1/ give repo permissions 2/ give npm permissions (for publishing)

aviadhahami avatar Feb 24 '22 14:02 aviadhahami

@kr1sp1n pinging again (so we can stop ping you <3 ) lmk if u wanna zoom on this so we can tie all ends and get it over with :)

aviadhahami avatar Mar 27 '22 08:03 aviadhahami

has someone forked? as far as github just fork (could do as not even a "click fork", just clone and push to a new repo), npm rights are more important, as to update all of the info.

xenoterracide avatar Jul 08 '22 18:07 xenoterracide

@kr1sp1n was the missing ownership ever resolved?

ghost avatar Nov 09 '22 08:11 ghost

@kr1sp1n added me to the org so I can collab, but I still lack permissions to the repo 😕 image

Siri, play "we're half way there"

aviadhahami avatar Nov 09 '22 15:11 aviadhahami

@kr1sp1n, please, if you can clear up an hour (±) we can do a handover and I can help maintain 🙏

aviadhahami avatar Nov 09 '22 15:11 aviadhahami