howdyai / botkit

Botkit is an open source developer tool for building chat bots, apps and custom integrations for major messaging platforms.
MIT License
11.38k stars 2.29k forks source link

Remove deprecated request package #2238

Open strmer15 opened 1 year ago

strmer15 commented 1 year ago

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.