loopback-connector-rest
loopback-connector-rest copied to clipboard
Replacing deprecated request dependency
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.
Already being discussed here: https://github.com/loopbackio/loopback-connector-rest/issues/147
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 ?