Conversation
🦋 Changeset detectedLatest commit: fbf2e98 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Rebased this branch onto current Re-ran the relevant local checks after the rebase: npm ci
npm run build:esm
npm run build:cjs
npm run typecheck
npm run lint
npm test -- test/client/sse.test.ts test/client/streamableHttp.test.ts
git diff --check upstream/v1.x..HEADResults: ESM/CJS builds passed, typecheck passed, lint/prettier passed, focused client transport tests passed ( Note: before |
6b74bc7 to
10b945a
Compare
commit: |
10b945a to
781cc62
Compare
|
Rebased this branch onto current Re-ran the relevant local checks after the rebase: npm ci
npm run build:esm
npm run build:cjs
npm run typecheck
npm run lint
npm test -- test/client/sse.test.ts test/client/streamableHttp.test.ts
git diff --check origin/v1.x..HEAD
git status --shortResults: ESM/CJS builds passed, typecheck passed, lint/prettier passed, focused client transport tests passed (
|
781cc62 to
16e543e
Compare
|
Refreshed this branch onto current Local verification on the refreshed head:
Push note: the local push hook runner was unavailable ( GitHub checks are now green as well ( |
|
Refreshed this v1.x PR again onto current Verification on the rebased head
I also attempted full Duplicate/overlap sweep note: the later open PR #2807 touches only |
7a4a7eb to
99d14cd
Compare
|
Rebased this onto current Fresh local verification on signed-off head
I also attempted full |
Signed-off-by: Emre K <110906681+kocaemre@users.noreply.github.com>
99d14cd to
fbf2e98
Compare
|
Rebased this v1.x PR onto current Verification on the refreshed branch:
I also attempted the full local
Push note: the repo hook runner was not available locally ( |
Summary
Fixes the v1 declaration output so Node-only TypeScript projects do not need the DOM lib just to consume
normalizeHeaders.The generated
shared/transport.d.tscurrently exposes the bare globalHeadersInit, which is not provided by@types/nodeeven when Node fetch globals are enabled. This changes the public signature toRequestInit['headers'], matching the same runtime inputs without pulling in a DOM-only alias.Also updates two internal client header annotations for the same reason and adds a patch changeset.
Verification
npm run build:esm npm run build:cjs npm run typecheck npm run lint npm test -- test/client/sse.test.ts test/client/streamableHttp.test.tsNode-only declaration smoke test:
Result:
npx tsc -p tsconfig.jsonpasses.Fixes #2568