Comments (17)
Any update on this deprecation warning issue...it's literally 2.5 yrs old ? 😂
from node-cloudflare.
Any update on this ? Thanks for doing your best.
from node-cloudflare.
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.
@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.
Hey,
Upgrades of dependencies are planned, just not finished yet.
from node-cloudflare.
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.
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.
@vkentta this is believed to be fixed in 2.8.0
from node-cloudflare.
Wow... It is still not fixed. Impressive...
from node-cloudflare.
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.
Hi @terinjokes
any update about the upgrade of dependencies ? I am getting the same message.
from node-cloudflare.
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.
@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.
As a workaround one can use node v10. Would love to get the fix though 🥰
from node-cloudflare.
Are there any updates on this?
I'd hate delivering my software while these warnings are spammed to the console.
from node-cloudflare.
Any updates? A fix would be nice
from node-cloudflare.
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)
- Argo tunnel support HOT 5
- Improve error catching HOT 3
- GraphQL API support? HOT 1
- Old `got` breaks runtime HOT 6
- DNSRecords Scan is not supported
- Docs incorrect for Add PageRules
- Security Vulnerability: CVE-2022-33987 - got dependency HOT 10
- DeprecationWarning: OutgoingMessage.prototype._headers is deprecated HOT 7
- require('cloudflare') is not a function HOT 1
- domain registration support HOT 1
- Purge cache : Bad Request with lib, works with curl HOT 1
- Support deleting a worker script using the `accounts` api.
- Complete support for stream APIs
- Auth returns empty Object and no errors
- Please publish 2.8.0 HOT 3
- SSL Endpoints should be added
- Please add support for pages HOT 5
- Deprecated workers/filters for Zone Worker Routes HOT 2
- cf.zoneSettings.editAll not works as excepted HOT 2
- 403 error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-cloudflare.