Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #110

Closed
ShivamJoker opened this issue Jul 17, 2022 · 7 comments
Closed

Comments

@ShivamJoker
Copy link

Would be great to have it fixed

(node:145390) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use node --trace-deprecation ... to show where the warning was created)

@cmdshepard
Copy link

cmdshepard commented Jul 18, 2022

This is due to the version of got being used.

Issue #104 mentions a pending migration away from got.

@terinjokes is migrating away from got still on your radar?

@terinjokes
Copy link
Contributor

Yep. That work is in progress (and you may see WIP branches soon).

@ShivamJoker
Copy link
Author

@terinjokes shouldn't it be as simple as updating the package or are there any breaking changes?

@terinjokes
Copy link
Contributor

I didn't know this at the time I picked it, but pretty much every version of got is a breaking change, and I made the mistake of exposing too much of the API to external users.

@ShivamJoker
Copy link
Author

@terinjokes it's been 3 months and still no updates on the library?

@holgersindbaek
Copy link

This issue seems to have broken the library. Since the new year, I've received a 400 response.

@rawpixel-vincent
Copy link

rawpixel-vincent commented Jan 16, 2023

the deprecated warnings come from timed-out module
sindresorhus/timed-out@5c74693

it's been fixed in 5.0.0.

would the maintainer accept a PR that pin timed-out to resolve from this commit ^
using resolutions field from package.json

Edit: nevermind this probably need to be handled properly by upgrading or removing got #109

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants