Skip to content

Commit 8e3decb

Browse files
Reflexclaude
andcommitted
chore(deps): remove dead undici HTTP/2 adapter and dependency
The SDK's HTTP/2 transport is the native `node:http2` implementation (`makeHttp2Fetch` → `createH2Fetch`). The old undici-based adapter, `src/lib/undici-fetch.ts`, is no longer imported anywhere — it's dead code, and `undici` is a dependency only that file used. Remove the dead adapter, its test, and the `undici` dependency. This also drops undici 7's transitive Node >= 20.18.1 install constraint. Stale undici references in doc comments are cleaned up separately in the HTTP/2-default PR (#815). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6ceb236 commit 8e3decb

4 files changed

Lines changed: 0 additions & 171 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"formdata-node": "^4.3.2",
4949
"node-fetch": "^2.6.7",
5050
"tar": "^7.5.2",
51-
"undici": "^7.26.0",
5251
"uuidv7": "^1.0.2",
5352
"zod": "^3.24.1"
5453
},

src/lib/undici-fetch.ts

Lines changed: 0 additions & 126 deletions
This file was deleted.

tests/lib/undici-fetch.test.ts

Lines changed: 0 additions & 39 deletions
This file was deleted.

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3844,11 +3844,6 @@ undici-types@~5.26.4:
38443844
resolved "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz"
38453845
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
38463846

3847-
undici@^7.26.0:
3848-
version "7.26.0"
3849-
resolved "https://registry.yarnpkg.com/undici/-/undici-7.26.0.tgz#d413a2b5752e3e71e003bb268dec32b9a0ad0ce7"
3850-
integrity sha512-3O9Tf67pGhgOv9jM35AbhkXAKi13f3oy3aE4CSgr+TckGeY+/iu97ZXN+J7DpHPzLbVApFd1IFhcnBjREYXYcg==
3851-
38523847
universalify@^2.0.0:
38533848
version "2.0.1"
38543849
resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz"

0 commit comments

Comments
 (0)