Skip to content

refactor(navigation): drop V0 suffix from planner types#2008

Open
NathanDrake2406 wants to merge 1 commit into
cloudflare:mainfrom
NathanDrake2406:worktree-promote-operation-token
Open

refactor(navigation): drop V0 suffix from planner types#2008
NathanDrake2406 wants to merge 1 commit into
cloudflare:mainfrom
NathanDrake2406:worktree-promote-operation-token

Conversation

@NathanDrake2406

@NathanDrake2406 NathanDrake2406 commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

What this changes

Renames all 22 …V0-suffixed navigation planner types to their unsuffixed names — RouteSnapshotV0RouteSnapshot, NavigationDecisionV0NavigationDecision, FlightResultV0FlightResult, and 19 others — across the planner, the browser state/entry/action modules, and the planner test suite (205 occurrences, 10 files).

Why

The V0 suffix implied a versioning scheme that never materialized — there is no V1, and the schema-version concerns it hinted at are carried explicitly elsewhere (NAVIGATION_TRACE_SCHEMA_VERSION, CACHE_PROOF_MODEL_SCHEMA_VERSION). The bare suffix was pure noise at every call site.

Approach

Pure mechanical rename. Two comment references to the old naming were reworded; no identifier collisions (every de-suffixed name was free). No behavior change.

Validation

All 295 planner + browser-entry tests pass unchanged. vp check (format, type-aware lint) and knip green.

Stacked PR

This is the base of a two-PR stack for #1790 PR 5. The logic change — promoting OperationToken to the navigation eligibility authority — sits on top in a separate (draft) PR so this rename reviews as a clean, behavior-free diff. The follow-up will rebase to logic-only once this merges.

Refs #1790.

The navigation planner's public and internal types were suffixed `V0`
(RouteSnapshotV0, NavigationDecisionV0, FlightResultV0, and 19 others).
The suffix implied a versioning scheme that never materialized — there is
no V1, and the schema-version concerns it hinted at are carried explicitly
elsewhere (NAVIGATION_TRACE_SCHEMA_VERSION, CACHE_PROOF_MODEL_SCHEMA_VERSION).
The bare suffix was pure noise at every call site.

Rename all 22 `…V0` planner types to their unsuffixed names across the
planner, the browser state/entry/action modules, and the planner test
suite. Pure mechanical rename: no behavior change, all 295 planner and
browser-entry tests pass unchanged.
@pkg-pr-new

pkg-pr-new Bot commented Jun 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vinext/cloudflare@2008
npm i https://pkg.pr.new/vinext@2008

commit: 42cfc71

@NathanDrake2406 NathanDrake2406 force-pushed the worktree-promote-operation-token branch from 29af69f to 42cfc71 Compare June 14, 2026 05:49
@NathanDrake2406 NathanDrake2406 changed the title feat(navigation): promote OperationToken to the eligibility authority (#1790 PR 5) refactor(navigation): drop V0 suffix from planner types Jun 14, 2026
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