Skip to content

Commit

Permalink
Use Undici 7
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Dec 16, 2024
1 parent 34b23b6 commit 8793cbf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-eels-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/platform-node": patch
---

Use Undici 7
2 changes: 1 addition & 1 deletion packages/platform-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"dependencies": {
"@effect/platform-node-shared": "workspace:^",
"mime": "^3.0.0",
"undici": "^6.19.7",
"undici": "^7.1.0",
"ws": "^8.18.0"
},
"peerDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/platform-node/src/internal/httpClientUndici.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ export const make = (dispatcher: Undici.Dispatcher): Client.HttpClient =>
body,
// leave timeouts to Effect.timeout etc
headersTimeout: 60 * 60 * 1000,
bodyTimeout: 0,
throwOnError: false
bodyTimeout: 0
}),
catch: (cause) =>
new Error.RequestError({
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8793cbf

Please sign in to comment.