loopback-connector-rest icon indicating copy to clipboard operation
loopback-connector-rest copied to clipboard

Replacing deprecated request dependency

Open fidgi opened this issue 2 years ago • 2 comments

Suggestion

Replacing the deprecated request package by a modern equivalent like axios or superagent.

More alternatives mentionned here

Use Cases

N/A

Examples

N/A

Acceptance criteria

TBD - will be filled by the team.

fidgi avatar Aug 27 '22 09:08 fidgi

Already being discussed here: https://github.com/loopbackio/loopback-connector-rest/issues/147

shubhamp-sf avatar Mar 22 '23 06:03 shubhamp-sf

In order to introduce a new library in place of request, it will need a full rewrite of the codebase. Also, there are a few alternatives available like axios, got or fetch (natively available since nodejs v21). I think we need to see what could be our best and future proof alternative. I would propose to move to native fetch module since that's going to be native to nodejs in coming future. Thoughts @raymondfeng @dhmlau @achrinza ?

samarpanB avatar Mar 03 '24 16:03 samarpanB