botkit icon indicating copy to clipboard operation
botkit copied to clipboard

Remove deprecated request package

Open strmer15 opened this issue 2 years ago • 0 comments

Are you sure this is an issue with the Botkit core module?

In several of the botkit adapters, there are imports for the request package - it's been deprecated for a few years now.

What are you trying to achieve or the steps to reproduce?

The request library should be replaced with a package that is maintained. For Node.js 18+, there's a native fetch that can be used, but for other use cases the node-fetch library is great (or cross-fetch for isomorphic uses). Plus, switching to it makes it easier in the future to switch to the native Node / browser fetch API.

strmer15 avatar Feb 14 '23 20:02 strmer15