OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.59k stars 6.52k forks source link

typescript-node: Replace the deprecated request package with something else #6264

Open onemvictor opened 4 years ago

onemvictor commented 4 years ago

The typescript-node generator generates code which is dependent on the request package. This package got deprecated in February this year. The proposal is to replace this package with something non-deprecated. Possible list of similar packages is mentioned at the below link. https://github.com/request/request/issues/3143

sloan-dog commented 4 years ago

Ideally, the implementation of this package could support timeouts so users don't have to create setTimeout races :)

SerKnight commented 3 years ago

We are working on this migration now. Will try to get it back into project sometime in the new year.

atanasiuk-hubspot commented 3 years ago

Hi, any updates or ETA on this? Is any assist needed?

RSchneider94 commented 2 years ago

Hi, also looking forward to it! Any updates? The usage with React (e.g.) and new react-scripts and Webpack v5 is impossible when using an OpenAPI generated package, a lot of errors because of dependencies that are there just for the request. Thanks!

onemvictor commented 2 years ago

@RSchneider94 You can use typescript-fetch or typescript-axios generators instead of this one, they are nodejs compatible.

quezak commented 2 years ago

Hello! Do you have a proposal which lib could/should be used instead of request? This way, someone from the community could implement it :)

RettBehrens commented 2 years ago

Any update on this? We're working with a fork of typescript-node and looking at both typescript-fetch and typescript-axios, they're both structured significantly differently. Is there an eta on an updated typescript-node module?

dtiziani commented 1 year ago

are there any updates on this matter regarding typescript-node generator?