-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request-promise is deprecated #1076
Comments
In addition, it uses 'request', which has been deprecated. And 'request' has a dependency on 'har-validator', which is no longer supported, and on an a deprecated version of 'uuid'. It would be great if this could be resolved by moving to an alternative, e.g. see some examples here: request/request#3143 Other than that, I'm super happy with this library. Thanks for the great work! |
Since version 18 (I believe) Node has the fetch API included, so no more need for a third-party HTTP client. |
Indeed. The only disadvantage is that it requires every application using tgbot to be on Node 18 or above (which may cause problems for some people, including me ;-)). |
how about node-fetch? It's a polyfill of |
Not only is |
And this package now also causes issues with bun! |
any updates? |
fix: on next release |
@cypress/request is not working with node v20.x. :( |
I test in node v20.9.0 and i dont have any problem 🤔 At less you have one bot.onText('... |
I found also it works in node v20 with mac. But it doesn't work in node v20 with |
Does this bot have the ability to update with axios? |
The idea is not use axios. Is use the native fetch from node 16 (with feature flag), 18 or new versions that support it native without need any dependency. This will be a breaking change to the next mayor version when we start the refactor. |
Maybe you can open a new issuse with the error that you have and more info. But is so strange 🤔 |
Please do consider refactoring to native fetch. This change will boost performance, reduce dependencies, and align us with good development practices.✅ |
Might be related with cypress-io/request#47 ? |
tgbot is using request-promise as https client. but request-promise is deprecated by upstream developers.
see request/request#3143
The text was updated successfully, but these errors were encountered: