Skip to content

chore(deps): upgrade orval to ~8.24.0 - #31

Merged
yagop merged 1 commit into
mainfrom
chore/orval-8.24
Aug 22, 2026
Merged

yagop merged 1 commit into
mainfrom
chore/orval-8.24

Conversation

@yagop

@yagop yagop commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Upgrades orval ^8.20.0 → ~8.24.0.

Why pinned below 8.25

orval 8.25.0's fetch client adds a getHeaders helper (from the #3880 header-merge fix) that our typecheck rejects under lib: ["ES2022"] (no DOM) with @types/node@26 + @types/bun in scope:

error TS2304: Cannot find name 'HeadersInit'.

and, once HeadersInit is shimmed, the helper's Record<string, string> return is incompatible with header values typed string | readonly string[]:

error TS2345/TS2322: 'Record<string, string | readonly string[]>' is not assignable to 'Record<string, string>'

@types/node@26 deliberately omits the HeadersInit global (undici web-globals), so bumping it doesn't help. 8.24.0 is the newest release without the getHeaders template.

Upstream regression to be filed separately.

Verification (on 8.24.0)

  • tsc --noEmit (mcp) clean
  • 27/27 tests pass
  • Generation unchanged in shape; still emits per-operation titles (used by the tool-descriptions work)

🤖 Generated with Claude Code

Bumps orval from ^8.20.0 to ~8.24.0. Pinned below 8.25.0: that release's fetch
client adds a `getHeaders` helper (for orval #3880) that references the
`HeadersInit` global and returns `Record<string, string>`, which does not
type-check under our `lib: ["ES2022"]` (no DOM) tsconfig with @types/node +
@types/bun in scope:

  - TS2304: Cannot find name 'HeadersInit'
  - TS2345/TS2322: header value type `string | readonly string[]` is not
    assignable to `Record<string, string>`

8.24.0 is the newest release without that template, and regenerates cleanly
(typecheck + 27 tests green; still emits per-op `title`s used by tool
descriptions). `~8.24.0` allows 8.24.x patches but holds back 8.25.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@yagop
yagop force-pushed the chore/orval-8.24 branch from 0a2ebaa to b31ba99 Compare August 22, 2026 22:04
@yagop
yagop merged commit 2d31e2f into main Aug 22, 2026
1 check passed
@yagop
yagop deleted the chore/orval-8.24 branch August 22, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant