Skip to content

refactor: rename Flags type to Flagship and prefix exported types#6584

Merged
git-bruh merged 2 commits intocloudflare:mainfrom
roerohan:roerohan/flagship-rename-types
Apr 15, 2026
Merged

refactor: rename Flags type to Flagship and prefix exported types#6584
git-bruh merged 2 commits intocloudflare:mainfrom
roerohan:roerohan/flagship-rename-types

Conversation

@roerohan
Copy link
Copy Markdown
Member

Summary

  • Renames types/defines/flags.d.ts to types/defines/flagship.d.ts
  • Renames all exported types to use the Flagship prefix:
    • Flags -> Flagship
    • EvaluationContext -> FlagshipEvaluationContext
    • EvaluationDetails -> FlagshipEvaluationDetails
    • FlagEvaluationError -> FlagshipEvaluationError
  • Regenerates types/generated-snapshot/ to reflect the new names

Motivation

Wrangler's type generation already references this binding type as Flagship. This change aligns the workerd type definitions to match, preventing type mismatches for users.

@roerohan roerohan requested review from a team as code owners April 15, 2026 08:05
@roerohan roerohan requested a review from ascorbic April 15, 2026 08:05
Rename flags.d.ts to flagship.d.ts and update all exported type names:
- Flags -> Flagship
- EvaluationContext -> FlagshipEvaluationContext
- EvaluationDetails -> FlagshipEvaluationDetails
- FlagEvaluationError -> FlagshipEvaluationError

This aligns workerd types with the Flagship type name used in wrangler's
type generation (workers-sdk).
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 15, 2026

Merging this PR will not alter performance

✅ 72 untouched benchmarks
⏩ 129 skipped benchmarks1


Comparing roerohan:roerohan/flagship-rename-types (dfc3d1a) with main (5d2c819)

Open in CodSpeed

Footnotes

  1. 129 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@roerohan roerohan force-pushed the roerohan/flagship-rename-types branch 3 times, most recently from e4ffde3 to f9e950f Compare April 15, 2026 09:03
@roerohan roerohan force-pushed the roerohan/flagship-rename-types branch from f9e950f to dfc3d1a Compare April 15, 2026 09:07
@git-bruh git-bruh merged commit 38adcaf into cloudflare:main Apr 15, 2026
20 checks passed
@roerohan roerohan deleted the roerohan/flagship-rename-types branch April 16, 2026 05:45
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.

4 participants