-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: change switch fetch to undici fetch in watch #399
base: main
Are you sure you want to change the base?
Changes from all commits
dece9ed
62df6f5
bc2b80f
6beecd8
37cc70a
c1c67ec
5951978
e86c2d7
9dfb568
673014a
88fb8fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
rm -rf dist; npm run build |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ | |
"node-fetch": "2.7.0", | ||
"quicktype-core": "23.0.170", | ||
"type-fest": "4.26.1", | ||
"undici": "^6.19.8", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should use exact versions--but also would recommend we try using native-fetch first (same library) and bump the base required version to Node 22 for at least this feature in the docs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay will try that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The real struggle that I am running into with this is that native fetch does not have an agent. I am making an |
||
"yargs": "17.7.2" | ||
}, | ||
"devDependencies": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,7 @@ export async function k8sCfg(method: FetchMethods) { | |
}); | ||
|
||
// Enable compression | ||
opts.compress = true; | ||
opts.compress = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this seems like a really good thing to try too--but we might consider testing these changes independently There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, this is left over from the test where this was the only change (GH Issue). Soak Result did not show a difference. However, in this specific case, we are not using compress at all. We are only using opts to get the cluster ca-cert (cert and key too if in dev) and manufacturing our own agent. |
||
|
||
return { opts, serverUrl: cluster.server }; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this file was left by mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for sure, rushed to push to show. Needs a bit of clean up still. Wasn't sure it was going to pass the soak at first.