botkit
botkit copied to clipboard
Update dependencies and replace `request` package
This fixes https://github.com/howdyai/botkit/issues/2238
-
Updates a lot of dependencies, since I couldn't actually install or build anything until I did a lot of these
- Latest
eslint
and plugins, so that there weren't peer dependency errors- Updated the config files, notably switched
@typescript-eslint/ban-ts-ignore
to@typescript-eslint/ban-ts-comment
-
eslint-plugin-node
has been replaced byeslint-plugin-n
- Updated the config files, notably switched
- Latest
typescript
andtsdoc
,tsdoc
0.22 was giving peer dependency errors about oldtypescript
- Fixed the
build-docs
command, seems like it may have been broken for a while - incorrect options, missing tsconfig - Removed
typedoc-plugin-external-module-name
since it's no longer maintained and doesn't work with newertsdoc
versions
- Fixed the
- Regenerated
package-lock.json
files, some of them were deleted since they're no longer used - Updated to latest
lerna
and updated thereadme
- Latest
-
Replaced
request
withcross-fetch
in a few different places- https://github.com/lquixada/cross-fetch
- The trickiest part of this is handling the errors and responses - in each case, I'm checking
response.ok
(for a 2xx response status) and then throwing anError
if it doesn't match. Then, I'm handling the response as plain text or as JSON if it parses correctly.