cloudant / nodejs-cloudant

Cloudant Node.js client library
Apache License 2.0
255 stars 90 forks source link

deprecated dependent request lib #415

Closed profhun closed 4 years ago

profhun commented 4 years ago

Hi Team!

Please update the request package, because my yarn write this for me when i install:

[Balazs@localhost]$ yarn add @cloudant/cloudant
yarn add v1.22.0
[1/4] Resolving packages...
warning @cloudant/cloudant > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
ricellis commented 4 years ago

We're working on a new Node library for Cloudant that won't have a dependency on request. We'll update this repo in due course.

mumeshr commented 4 years ago

@ricellis do you have ETA for this issue? We need an alternative very soon. So asking for it.

ricellis commented 4 years ago

You can get updates on our new library here: https://github.com/IBM/cloudant-node-sdk

Alternatively, if you prefer to stay with the Nano style you can follow work in Apache CouchDB Nano to replace request with axios here: https://github.com/apache/couchdb-nano/pull/208

We need an alternative very soon

Although it is deprecated the request package is not going away (you can see it is still downloaded over 16M times a week).

mumeshr commented 4 years ago

Thanks @ricellis, the request API is deprecated and cannot run Contrast to clear vulnerability test. So have to move to alternate solution sooner. I tried https://github.com/IBM/cloudant-node-sdk, but there is no status or ETA on solution. I will see if we can move to couchdb-nano. I do use one nano api in our application for attachments. Will see if that works on not.

ricellis commented 4 years ago

Our new cloudant-node-sdk(beta) is available and does not have a dependency on request.

Nano 9.x is also recently released and replaces request with axios - we won't be getting that new Nano version as a dependency for nodejs-cloudant because of incompatibilities with our existing plugin structures.