-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use internal fetch as replacement for node-fetch #3184
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## develop #3184 +/- ##
===========================================
- Coverage 25.39% 25.31% -0.09%
===========================================
Files 55 54 -1
Lines 11882 11852 -30
===========================================
- Hits 3018 3000 -18
+ Misses 8864 8852 -12
|
08d484c
to
7b94db1
Compare
Looks like digest-fetch fixed that with their latest release, but thats the v3 line where they switched to ESM. I dont like removing stuff, so maybe we can provide either a patch for their v2 branch (if there is any) and ask them nicely if they want to release that too. Or look for an alternative library... Or is digest-auth so uncommon that we can remove it? |
I don't know, I checked when it went to the doc-repo and this happened in the first commit, so I think that is in there because the We have no tests for this and who knows if this ever worked after the change to Will dig deeper and try to use the digest auth method with the current setup. |
I tried to setup a test for digest auth with current setup ( Got it not working because this line in fetcher = new digest(auth.user, auth.pass).fetch(url, { headers: headers, agent: httpsAgent }); So I think we can remove digest auth because it has never worked since we replaced I will make a documentation PR after this is merged. |
7b94db1
to
0ba786d
Compare
…est auth for calendar
0ba786d
to
bcc8ba7
Compare
@khassel, many thanks for this solid work! 🚀👏 |
related to #2649
I was able to move to internal fetch and all tests seems fine so far.
But we have one problem with the calendar module. In the docs we have several authentication methods and one of them is
digest
. For this we useddigest-fetch
which needsnode-fetch
(this is not so clear from code but I was not able to get it working).So we have 3 options:
digest
as authentication method for calendar module (this is what this PR does at the moment)digest-fetch
andnode-fetch
for calendar module (so they would remain as dependencies inpackage.json
)Opinions? @KristjanESPERANTO @rejas @sdetweil @MichMich