openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

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

Open onemvictor opened this issue 4 years ago • 7 comments

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

onemvictor avatar May 12 '20 08:05 onemvictor

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

sloan-dog avatar May 13 '20 05:05 sloan-dog

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

SerKnight avatar Dec 14 '20 22:12 SerKnight

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

atanasiuk-hubspot avatar Apr 09 '21 11:04 atanasiuk-hubspot

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!

RSchneider94 avatar Mar 31 '22 00:03 RSchneider94

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

onemvictor avatar Mar 31 '22 04:03 onemvictor

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

quezak avatar Aug 10 '22 13:08 quezak

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?

RettBehrens avatar Sep 15 '22 17:09 RettBehrens

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

dtiziani avatar Dec 08 '22 16:12 dtiziani