Skip to content

Commit

Permalink
build: bump undici to 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jan 31, 2025
1 parent 5f463eb commit f22a77a
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 55 deletions.
2 changes: 1 addition & 1 deletion packages/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"p-limit": "^6.2.0",
"p-queue": "^8.0.1",
"tslib": "^2.8.1",
"undici": "6.21.0"
"undici": "7.3.0"
},
"devDependencies": {
"@types/node": "^22.10.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"fast-deep-equal": "3.1.3",
"lodash.snakecase": "4.1.1",
"tslib": "^2.8.1",
"undici": "6.21.0"
"undici": "7.3.0"
},
"devDependencies": {
"@discordjs/api-extractor": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@discordjs/rest": "workspace:^",
"@discordjs/util": "workspace:^",
"tslib": "^2.8.1",
"undici": "6.21.0"
"undici": "7.3.0"
},
"devDependencies": {
"@discordjs/api-extractor": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"discord-api-types": "^0.37.118",
"magic-bytes.js": "^1.10.0",
"tslib": "^2.8.1",
"undici": "6.21.0",
"undici": "7.3.0",
"uuid": "^11.0.3"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/rest/src/strategies/undiciRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { STATUS_CODES } from 'node:http';
import { URLSearchParams } from 'node:url';
import { types } from 'node:util';
import { type RequestInit, request, Headers } from 'undici';
import type { HeaderRecord } from 'undici/types/header.js';
import type { ResponseLike } from '../shared.js';

export type RequestOptions = Exclude<Parameters<typeof request>[1], undefined>;
Expand All @@ -28,7 +29,7 @@ export async function makeRequest(url: string, init: RequestInit): Promise<Respo
get bodyUsed() {
return res.body.bodyUsed;
},
headers: new Headers(res.headers as Record<string, string[] | string>),
headers: new Headers(res.headers as HeaderRecord),
status: res.statusCode,
statusText: STATUS_CODES[res.statusCode]!,
ok: res.statusCode >= 200 && res.statusCode < 300,
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@vercel/postgres": "^0.9.0",
"commander": "^12.1.0",
"tslib": "^2.8.1",
"undici": "6.21.0",
"undici": "7.3.0",
"yaml": "^2.7.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"tsup": "^8.3.5",
"turbo": "^2.3.3",
"typescript": "~5.5.4",
"undici": "6.21.0",
"undici": "7.3.0",
"vitest": "^2.1.8",
"zlib-sync": "^0.1.9"
},
Expand Down
Loading

0 comments on commit f22a77a

Please # to comment.