Giter VIP home page Giter VIP logo

Comments (17)

kjschulz avatar kjschulz commented on July 18, 2024 6

Any update on this deprecation warning issue...it's literally 2.5 yrs old ? 😂

from node-cloudflare.

michakfromparis avatar michakfromparis commented on July 18, 2024 4

Any update on this ? Thanks for doing your best.

from node-cloudflare.

mjpoo avatar mjpoo commented on July 18, 2024 4

Hi @terinjokes many thanks for your work on this.
Do you have a rough idea of when the deprecated _headers will be replaced?

from node-cloudflare.

justinasfour04 avatar justinasfour04 commented on July 18, 2024 3

@terinjokes you talk about got API leaking through a lot. Can you elaborate please? Why can't this project use the latest version of got?

from node-cloudflare.

terinjokes avatar terinjokes commented on July 18, 2024 2

Hey,

Upgrades of dependencies are planned, just not finished yet.

from node-cloudflare.

terinjokes avatar terinjokes commented on July 18, 2024 2

I'm working on a 3.0 that stops using got, until then there's no good way for me to fix this.

from node-cloudflare.

terinjokes avatar terinjokes commented on July 18, 2024 1

There's no version of the got dependency where this message is fixed that doesn't also break their API. Since the got API leaks through a lot, it's not feasible to upgrade without also having a breaking change ourselves.

from node-cloudflare.

terinjokes avatar terinjokes commented on July 18, 2024 1

@vkentta this is believed to be fixed in 2.8.0

from node-cloudflare.

artursudnik avatar artursudnik commented on July 18, 2024 1

Wow... It is still not fixed. Impressive...

from node-cloudflare.

aishwat avatar aishwat commented on July 18, 2024 1

It's gonna be 4th year anniversary for this issue 🎉 😅
tl;dr
For anyone if it helps, if you run with --trace-deprecation option and you get something along the lines timed-out/index.js this is for you

this line is the culprit var host = req._headers ? (' to ' + req._headers.host) : '';
change it to var host = req.getHeaders() ? (' to ' + req.getHeaders().host) : ''; and you should be good to go 😛

from node-cloudflare.

Pavlovich4 avatar Pavlovich4 commented on July 18, 2024

Hi @terinjokes

any update about the upgrade of dependencies ? I am getting the same message.

from node-cloudflare.

sadtaco avatar sadtaco commented on July 18, 2024

What's wrong with making a breaking change? People on old versions of node can just use the older version of the module.
Also, getHeaders() is supported all the way back to version 8.

from node-cloudflare.

terinjokes avatar terinjokes commented on July 18, 2024

@sadtaco It's more difficult both for us developing this package and for users. Especially since the "breaking change" isn't just changing the version number in package.json: newer versions of got are very different.

from node-cloudflare.

vkentta avatar vkentta commented on July 18, 2024

As a workaround one can use node v10. Would love to get the fix though 🥰

from node-cloudflare.

Sv443 avatar Sv443 commented on July 18, 2024

Are there any updates on this?
I'd hate delivering my software while these warnings are spammed to the console.

from node-cloudflare.

MooseSaeed avatar MooseSaeed commented on July 18, 2024

Any updates? A fix would be nice

from node-cloudflare.

lexuzieel avatar lexuzieel commented on July 18, 2024

Still getting this warning on node 18. Maybe somebody have made a fork with the fix or could point out how to fix it so I could update it and share the fork myself?

from node-cloudflare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.