Skip to content

Commit aed1463

Browse files
authored
chore: remove undici in favor of global fetch (#5168)
1 parent 224d2f5 commit aed1463

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

‎bun.lock‎

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,6 @@
685685
"prettier": "3.7.4",
686686
"publint": "0.3.15",
687687
"typescript": "^6.0.3",
688-
"undici": "^6.27.0",
689688
"vite-plugin-fastly-js-compute": "^0.4.2",
690689
"vitest": "^4.1.9",
691690
"wrangler": "4.107.0",

‎runtime-tests/node/index.test.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { createAdaptorServer, serve } from '@hono/node-server'
2-
import * as undici from 'undici'
32
import { once } from 'node:events'
43
import type { Server } from 'node:http'
54
import type { AddressInfo } from 'node:net'
@@ -278,10 +277,10 @@ function createAgent(app: Hono) {
278277
const listening = once(server.listen(), 'listening')
279278

280279
return {
281-
async get(path: string, init?: undici.RequestInit) {
280+
async get(path: string, init?: RequestInit) {
282281
await listening
283282
const url = new URL(path, getOrigin())
284-
return undici.fetch(url, init)
283+
return fetch(url, init)
285284
},
286285
}
287286

0 commit comments

Comments
 (0)